OSDN Git Service

Prevent sharing of commit calls among transactions.
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178     PATH=/empty FPATH=/empty; export PATH FPATH
179     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 PPLINC
608 PPLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 common_out_object_file
625 common_out_file
626 out_object_file
627 out_file
628 objc_boehm_gc
629 md_file
630 local_prefix
631 lang_tree_files
632 lang_specs_files
633 lang_opt_files
634 install
635 out_host_hook_obj
636 host_xm_defines
637 host_xm_include_list
638 host_xm_file_list
639 host_exeext
640 gcc_gxx_include_dir
641 gcc_config_arguments
642 float_h_file
643 extra_programs
644 extra_passes
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 dollar
671 gcc_tooldir
672 enable_lto
673 MAINT
674 zlibinc
675 zlibdir
676 HOST_LIBS
677 GGC
678 libgcc_visibility
679 gcc_cv_readelf
680 gcc_cv_objdump
681 ORIGINAL_NM_FOR_TARGET
682 gcc_cv_nm
683 ORIGINAL_LD_FOR_TARGET
684 ORIGINAL_PLUGIN_LD_FOR_TARGET
685 gcc_cv_ld
686 ORIGINAL_AS_FOR_TARGET
687 gcc_cv_as
688 enable_fast_install
689 objdir
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 STRIP
696 OBJDUMP
697 ac_ct_DUMPBIN
698 DUMPBIN
699 LD
700 FGREP
701 SED
702 LIBTOOL
703 collect2
704 STMP_FIXINC
705 BUILD_LDFLAGS
706 BUILD_CFLAGS
707 CC_FOR_BUILD
708 inhibit_libc
709 SYSTEM_HEADER_DIR
710 ALL
711 CROSS
712 CATOBJEXT
713 GENCAT
714 INSTOBJEXT
715 DATADIRNAME
716 CATALOGS
717 POSUB
718 GMSGFMT
719 XGETTEXT
720 INCINTL
721 LIBINTL_DEP
722 LIBINTL
723 USE_NLS
724 extra_opt_files
725 extra_modes_file
726 NATIVE_SYSTEM_HEADER_DIR
727 objext
728 manext
729 LIBICONV_DEP
730 LTLIBICONV
731 LIBICONV
732 LDEXP_LIB
733 EXTRA_GCC_LIBS
734 GNAT_LIBEXC
735 COLLECT2_LIBS
736 CXXCPP
737 AR
738 NM
739 BISON
740 FLEX
741 GENERATED_MANPAGES
742 BUILD_INFO
743 MAKEINFO
744 have_mktemp_command
745 make_compare_target
746 INSTALL_DATA
747 INSTALL_PROGRAM
748 INSTALL
749 ranlib_flags
750 RANLIB
751 LN
752 LN_S
753 AWK
754 SET_MAKE
755 REPORT_BUGS_TEXI
756 REPORT_BUGS_TO
757 PKGVERSION
758 CONFIGURE_SPECS
759 CROSS_SYSTEM_HEADER_DIR
760 TARGET_SYSTEM_ROOT_DEFINE
761 TARGET_SYSTEM_ROOT
762 SYSROOT_CFLAGS_FOR_TARGET
763 enable_shared
764 enable_fixed_point
765 enable_decimal_float
766 enable_multilib
767 ENABLE_BUILD_WITH_CXX
768 coverage_flags
769 valgrind_command
770 valgrind_path_defines
771 valgrind_path
772 TREEBROWSER
773 nocommon_flag
774 noexception_flags
775 warn_cxxflags
776 warn_cflags
777 c_strict_warn
778 strict_warn
779 c_loose_warn
780 loose_warn
781 EGREP
782 GREP
783 CPP
784 PICFLAG_FOR_TARGET
785 OUTPUT_OPTION
786 NO_MINUS_C_MINUS_O
787 GNATMAKE
788 GNATBIND
789 ac_ct_CXX
790 CXXFLAGS
791 CXX
792 OBJEXT
793 EXEEXT
794 ac_ct_CC
795 CPPFLAGS
796 LDFLAGS
797 CFLAGS
798 CC
799 GENINSRC
800 target_subdir
801 host_subdir
802 build_subdir
803 build_libsubdir
804 target_noncanonical
805 target_os
806 target_vendor
807 target_cpu
808 target
809 host_os
810 host_vendor
811 host_cpu
812 host
813 build_os
814 build_vendor
815 build_cpu
816 build
817 target_alias
818 host_alias
819 build_alias
820 LIBS
821 ECHO_T
822 ECHO_N
823 ECHO_C
824 DEFS
825 mandir
826 localedir
827 libdir
828 psdir
829 pdfdir
830 dvidir
831 htmldir
832 infodir
833 docdir
834 oldincludedir
835 includedir
836 localstatedir
837 sharedstatedir
838 sysconfdir
839 datadir
840 datarootdir
841 libexecdir
842 sbindir
843 bindir
844 program_transform_name
845 prefix
846 exec_prefix
847 PACKAGE_URL
848 PACKAGE_BUGREPORT
849 PACKAGE_STRING
850 PACKAGE_VERSION
851 PACKAGE_TARNAME
852 PACKAGE_NAME
853 PATH_SEPARATOR
854 SHELL'
855 ac_subst_files='option_includes
856 language_hooks'
857 ac_user_opts='
858 enable_option_checking
859 with_build_libsubdir
860 with_local_prefix
861 with_gxx_include_dir
862 with_cpp_install_dir
863 enable_generated_files_in_srcdir
864 with_gnu_ld
865 with_ld
866 with_demangler_in_ld
867 with_gnu_as
868 with_as
869 enable_largefile
870 enable_werror_always
871 enable_checking
872 enable_coverage
873 enable_gather_detailed_mem_stats
874 enable_build_with_cxx
875 with_stabs
876 enable_multilib
877 enable___cxa_atexit
878 enable_decimal_float
879 enable_fixed_point
880 enable_threads
881 enable_tls
882 enable_objc_gc
883 with_dwarf2
884 enable_shared
885 with_native_system_header_dir
886 with_build_sysroot
887 with_sysroot
888 with_specs
889 with_pkgversion
890 with_bugurl
891 enable_languages
892 with_multilib_list
893 enable_rpath
894 with_libiconv_prefix
895 enable_initfini_array
896 enable_sjlj_exceptions
897 enable_secureplt
898 enable_leading_mingw64_underscores
899 enable_cld
900 enable_frame_pointer
901 enable_win32_registry
902 enable_static
903 with_pic
904 enable_fast_install
905 enable_libtool_lock
906 with_plugin_ld
907 enable_gnu_indirect_function
908 enable_comdat
909 enable_gnu_unique_object
910 enable_linker_build_id
911 with_long_double_128
912 with_gc
913 with_system_zlib
914 enable_maintainer_mode
915 enable_version_specific_runtime_libs
916 enable_plugin
917 enable_libquadmath_support
918 with_linker_hash_style
919 '
920       ac_precious_vars='build_alias
921 host_alias
922 target_alias
923 CC
924 CFLAGS
925 LDFLAGS
926 LIBS
927 CPPFLAGS
928 CXX
929 CXXFLAGS
930 CCC
931 CPP
932 CXXCPP
933 GMPLIBS
934 GMPINC
935 PPLLIBS
936 PPLINC
937 CLOOGLIBS
938 CLOOGINC'
939
940
941 # Initialize some variables set by options.
942 ac_init_help=
943 ac_init_version=false
944 ac_unrecognized_opts=
945 ac_unrecognized_sep=
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
948 cache_file=/dev/null
949 exec_prefix=NONE
950 no_create=
951 no_recursion=
952 prefix=NONE
953 program_prefix=NONE
954 program_suffix=NONE
955 program_transform_name=s,x,x,
956 silent=
957 site=
958 srcdir=
959 verbose=
960 x_includes=NONE
961 x_libraries=NONE
962
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir='${exec_prefix}/bin'
970 sbindir='${exec_prefix}/sbin'
971 libexecdir='${exec_prefix}/libexec'
972 datarootdir='${prefix}/share'
973 datadir='${datarootdir}'
974 sysconfdir='${prefix}/etc'
975 sharedstatedir='${prefix}/com'
976 localstatedir='${prefix}/var'
977 includedir='${prefix}/include'
978 oldincludedir='/usr/include'
979 docdir='${datarootdir}/doc/${PACKAGE}'
980 infodir='${datarootdir}/info'
981 htmldir='${docdir}'
982 dvidir='${docdir}'
983 pdfdir='${docdir}'
984 psdir='${docdir}'
985 libdir='${exec_prefix}/lib'
986 localedir='${datarootdir}/locale'
987 mandir='${datarootdir}/man'
988
989 ac_prev=
990 ac_dashdash=
991 for ac_option
992 do
993   # If the previous option needs an argument, assign it.
994   if test -n "$ac_prev"; then
995     eval $ac_prev=\$ac_option
996     ac_prev=
997     continue
998   fi
999
1000   case $ac_option in
1001   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1002   *)    ac_optarg=yes ;;
1003   esac
1004
1005   # Accept the important Cygnus configure options, so we can diagnose typos.
1006
1007   case $ac_dashdash$ac_option in
1008   --)
1009     ac_dashdash=yes ;;
1010
1011   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012     ac_prev=bindir ;;
1013   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014     bindir=$ac_optarg ;;
1015
1016   -build | --build | --buil | --bui | --bu)
1017     ac_prev=build_alias ;;
1018   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019     build_alias=$ac_optarg ;;
1020
1021   -cache-file | --cache-file | --cache-fil | --cache-fi \
1022   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023     ac_prev=cache_file ;;
1024   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026     cache_file=$ac_optarg ;;
1027
1028   --config-cache | -C)
1029     cache_file=config.cache ;;
1030
1031   -datadir | --datadir | --datadi | --datad)
1032     ac_prev=datadir ;;
1033   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034     datadir=$ac_optarg ;;
1035
1036   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037   | --dataroo | --dataro | --datar)
1038     ac_prev=datarootdir ;;
1039   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041     datarootdir=$ac_optarg ;;
1042
1043   -disable-* | --disable-*)
1044     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045     # Reject names that are not valid shell variable names.
1046     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047       as_fn_error "invalid feature name: $ac_useropt"
1048     ac_useropt_orig=$ac_useropt
1049     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050     case $ac_user_opts in
1051       *"
1052 "enable_$ac_useropt"
1053 "*) ;;
1054       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055          ac_unrecognized_sep=', ';;
1056     esac
1057     eval enable_$ac_useropt=no ;;
1058
1059   -docdir | --docdir | --docdi | --doc | --do)
1060     ac_prev=docdir ;;
1061   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062     docdir=$ac_optarg ;;
1063
1064   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065     ac_prev=dvidir ;;
1066   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067     dvidir=$ac_optarg ;;
1068
1069   -enable-* | --enable-*)
1070     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071     # Reject names that are not valid shell variable names.
1072     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073       as_fn_error "invalid feature name: $ac_useropt"
1074     ac_useropt_orig=$ac_useropt
1075     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076     case $ac_user_opts in
1077       *"
1078 "enable_$ac_useropt"
1079 "*) ;;
1080       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081          ac_unrecognized_sep=', ';;
1082     esac
1083     eval enable_$ac_useropt=\$ac_optarg ;;
1084
1085   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087   | --exec | --exe | --ex)
1088     ac_prev=exec_prefix ;;
1089   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091   | --exec=* | --exe=* | --ex=*)
1092     exec_prefix=$ac_optarg ;;
1093
1094   -gas | --gas | --ga | --g)
1095     # Obsolete; use --with-gas.
1096     with_gas=yes ;;
1097
1098   -help | --help | --hel | --he | -h)
1099     ac_init_help=long ;;
1100   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101     ac_init_help=recursive ;;
1102   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103     ac_init_help=short ;;
1104
1105   -host | --host | --hos | --ho)
1106     ac_prev=host_alias ;;
1107   -host=* | --host=* | --hos=* | --ho=*)
1108     host_alias=$ac_optarg ;;
1109
1110   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111     ac_prev=htmldir ;;
1112   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113   | --ht=*)
1114     htmldir=$ac_optarg ;;
1115
1116   -includedir | --includedir | --includedi | --included | --include \
1117   | --includ | --inclu | --incl | --inc)
1118     ac_prev=includedir ;;
1119   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120   | --includ=* | --inclu=* | --incl=* | --inc=*)
1121     includedir=$ac_optarg ;;
1122
1123   -infodir | --infodir | --infodi | --infod | --info | --inf)
1124     ac_prev=infodir ;;
1125   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126     infodir=$ac_optarg ;;
1127
1128   -libdir | --libdir | --libdi | --libd)
1129     ac_prev=libdir ;;
1130   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131     libdir=$ac_optarg ;;
1132
1133   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134   | --libexe | --libex | --libe)
1135     ac_prev=libexecdir ;;
1136   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137   | --libexe=* | --libex=* | --libe=*)
1138     libexecdir=$ac_optarg ;;
1139
1140   -localedir | --localedir | --localedi | --localed | --locale)
1141     ac_prev=localedir ;;
1142   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143     localedir=$ac_optarg ;;
1144
1145   -localstatedir | --localstatedir | --localstatedi | --localstated \
1146   | --localstate | --localstat | --localsta | --localst | --locals)
1147     ac_prev=localstatedir ;;
1148   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150     localstatedir=$ac_optarg ;;
1151
1152   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153     ac_prev=mandir ;;
1154   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155     mandir=$ac_optarg ;;
1156
1157   -nfp | --nfp | --nf)
1158     # Obsolete; use --without-fp.
1159     with_fp=no ;;
1160
1161   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162   | --no-cr | --no-c | -n)
1163     no_create=yes ;;
1164
1165   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167     no_recursion=yes ;;
1168
1169   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171   | --oldin | --oldi | --old | --ol | --o)
1172     ac_prev=oldincludedir ;;
1173   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176     oldincludedir=$ac_optarg ;;
1177
1178   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179     ac_prev=prefix ;;
1180   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181     prefix=$ac_optarg ;;
1182
1183   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184   | --program-pre | --program-pr | --program-p)
1185     ac_prev=program_prefix ;;
1186   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188     program_prefix=$ac_optarg ;;
1189
1190   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191   | --program-suf | --program-su | --program-s)
1192     ac_prev=program_suffix ;;
1193   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195     program_suffix=$ac_optarg ;;
1196
1197   -program-transform-name | --program-transform-name \
1198   | --program-transform-nam | --program-transform-na \
1199   | --program-transform-n | --program-transform- \
1200   | --program-transform | --program-transfor \
1201   | --program-transfo | --program-transf \
1202   | --program-trans | --program-tran \
1203   | --progr-tra | --program-tr | --program-t)
1204     ac_prev=program_transform_name ;;
1205   -program-transform-name=* | --program-transform-name=* \
1206   | --program-transform-nam=* | --program-transform-na=* \
1207   | --program-transform-n=* | --program-transform-=* \
1208   | --program-transform=* | --program-transfor=* \
1209   | --program-transfo=* | --program-transf=* \
1210   | --program-trans=* | --program-tran=* \
1211   | --progr-tra=* | --program-tr=* | --program-t=*)
1212     program_transform_name=$ac_optarg ;;
1213
1214   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215     ac_prev=pdfdir ;;
1216   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217     pdfdir=$ac_optarg ;;
1218
1219   -psdir | --psdir | --psdi | --psd | --ps)
1220     ac_prev=psdir ;;
1221   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222     psdir=$ac_optarg ;;
1223
1224   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225   | -silent | --silent | --silen | --sile | --sil)
1226     silent=yes ;;
1227
1228   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229     ac_prev=sbindir ;;
1230   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231   | --sbi=* | --sb=*)
1232     sbindir=$ac_optarg ;;
1233
1234   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1235   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1236   | --sharedst | --shareds | --shared | --share | --shar \
1237   | --sha | --sh)
1238     ac_prev=sharedstatedir ;;
1239   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1240   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1241   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242   | --sha=* | --sh=*)
1243     sharedstatedir=$ac_optarg ;;
1244
1245   -site | --site | --sit)
1246     ac_prev=site ;;
1247   -site=* | --site=* | --sit=*)
1248     site=$ac_optarg ;;
1249
1250   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251     ac_prev=srcdir ;;
1252   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1253     srcdir=$ac_optarg ;;
1254
1255   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1256   | --syscon | --sysco | --sysc | --sys | --sy)
1257     ac_prev=sysconfdir ;;
1258   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1259   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1260     sysconfdir=$ac_optarg ;;
1261
1262   -target | --target | --targe | --targ | --tar | --ta | --t)
1263     ac_prev=target_alias ;;
1264   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1265     target_alias=$ac_optarg ;;
1266
1267   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1268     verbose=yes ;;
1269
1270   -version | --version | --versio | --versi | --vers | -V)
1271     ac_init_version=: ;;
1272
1273   -with-* | --with-*)
1274     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275     # Reject names that are not valid shell variable names.
1276     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277       as_fn_error "invalid package name: $ac_useropt"
1278     ac_useropt_orig=$ac_useropt
1279     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280     case $ac_user_opts in
1281       *"
1282 "with_$ac_useropt"
1283 "*) ;;
1284       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285          ac_unrecognized_sep=', ';;
1286     esac
1287     eval with_$ac_useropt=\$ac_optarg ;;
1288
1289   -without-* | --without-*)
1290     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291     # Reject names that are not valid shell variable names.
1292     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293       as_fn_error "invalid package name: $ac_useropt"
1294     ac_useropt_orig=$ac_useropt
1295     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296     case $ac_user_opts in
1297       *"
1298 "with_$ac_useropt"
1299 "*) ;;
1300       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301          ac_unrecognized_sep=', ';;
1302     esac
1303     eval with_$ac_useropt=no ;;
1304
1305   --x)
1306     # Obsolete; use --with-x.
1307     with_x=yes ;;
1308
1309   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310   | --x-incl | --x-inc | --x-in | --x-i)
1311     ac_prev=x_includes ;;
1312   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314     x_includes=$ac_optarg ;;
1315
1316   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318     ac_prev=x_libraries ;;
1319   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321     x_libraries=$ac_optarg ;;
1322
1323   -*) as_fn_error "unrecognized option: \`$ac_option'
1324 Try \`$0 --help' for more information."
1325     ;;
1326
1327   *=*)
1328     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329     # Reject names that are not valid shell variable names.
1330     case $ac_envvar in #(
1331       '' | [0-9]* | *[!_$as_cr_alnum]* )
1332       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1333     esac
1334     eval $ac_envvar=\$ac_optarg
1335     export $ac_envvar ;;
1336
1337   *)
1338     # FIXME: should be removed in autoconf 3.0.
1339     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1343     ;;
1344
1345   esac
1346 done
1347
1348 if test -n "$ac_prev"; then
1349   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350   as_fn_error "missing argument to $ac_option"
1351 fi
1352
1353 if test -n "$ac_unrecognized_opts"; then
1354   case $enable_option_checking in
1355     no) ;;
1356     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1357     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1358   esac
1359 fi
1360
1361 # Check all directory arguments for consistency.
1362 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363                 datadir sysconfdir sharedstatedir localstatedir includedir \
1364                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365                 libdir localedir mandir
1366 do
1367   eval ac_val=\$$ac_var
1368   # Remove trailing slashes.
1369   case $ac_val in
1370     */ )
1371       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372       eval $ac_var=\$ac_val;;
1373   esac
1374   # Be sure to have absolute directory names.
1375   case $ac_val in
1376     [\\/$]* | ?:[\\/]* )  continue;;
1377     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378   esac
1379   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1380 done
1381
1382 # There might be people who depend on the old broken behavior: `$host'
1383 # used to hold the argument of --host etc.
1384 # FIXME: To remove some day.
1385 build=$build_alias
1386 host=$host_alias
1387 target=$target_alias
1388
1389 # FIXME: To remove some day.
1390 if test "x$host_alias" != x; then
1391   if test "x$build_alias" = x; then
1392     cross_compiling=maybe
1393     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1394     If a cross compiler is detected then cross compile mode will be used." >&2
1395   elif test "x$build_alias" != "x$host_alias"; then
1396     cross_compiling=yes
1397   fi
1398 fi
1399
1400 ac_tool_prefix=
1401 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402
1403 test "$silent" = yes && exec 6>/dev/null
1404
1405
1406 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di=`ls -di .` &&
1408 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409   as_fn_error "working directory cannot be determined"
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411   as_fn_error "pwd does not report name of working directory"
1412
1413
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416   ac_srcdir_defaulted=yes
1417   # Try the directory containing this script, then the parent directory.
1418   ac_confdir=`$as_dirname -- "$as_myself" ||
1419 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420          X"$as_myself" : 'X\(//\)[^/]' \| \
1421          X"$as_myself" : 'X\(//\)$' \| \
1422          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423 $as_echo X"$as_myself" |
1424     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425             s//\1/
1426             q
1427           }
1428           /^X\(\/\/\)[^/].*/{
1429             s//\1/
1430             q
1431           }
1432           /^X\(\/\/\)$/{
1433             s//\1/
1434             q
1435           }
1436           /^X\(\/\).*/{
1437             s//\1/
1438             q
1439           }
1440           s/.*/./; q'`
1441   srcdir=$ac_confdir
1442   if test ! -r "$srcdir/$ac_unique_file"; then
1443     srcdir=..
1444   fi
1445 else
1446   ac_srcdir_defaulted=no
1447 fi
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1451 fi
1452 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453 ac_abs_confdir=`(
1454         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1455         pwd)`
1456 # When building in place, set srcdir=.
1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
1458   srcdir=.
1459 fi
1460 # Remove unnecessary trailing slashes from srcdir.
1461 # Double slashes in file names in object file debugging info
1462 # mess up M-x gdb in Emacs.
1463 case $srcdir in
1464 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 esac
1466 for ac_var in $ac_precious_vars; do
1467   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468   eval ac_env_${ac_var}_value=\$${ac_var}
1469   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471 done
1472
1473 #
1474 # Report the --help message.
1475 #
1476 if test "$ac_init_help" = "long"; then
1477   # Omit some internal or obsolete options to make the list less imposing.
1478   # This message is too long to be a string in the A/UX 3.1 sh.
1479   cat <<_ACEOF
1480 \`configure' configures this package to adapt to many kinds of systems.
1481
1482 Usage: $0 [OPTION]... [VAR=VALUE]...
1483
1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485 VAR=VALUE.  See below for descriptions of some of the useful variables.
1486
1487 Defaults for the options are specified in brackets.
1488
1489 Configuration:
1490   -h, --help              display this help and exit
1491       --help=short        display options specific to this package
1492       --help=recursive    display the short help of all the included packages
1493   -V, --version           display version information and exit
1494   -q, --quiet, --silent   do not print \`checking...' messages
1495       --cache-file=FILE   cache test results in FILE [disabled]
1496   -C, --config-cache      alias for \`--cache-file=config.cache'
1497   -n, --no-create         do not create output files
1498       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1499
1500 Installation directories:
1501   --prefix=PREFIX         install architecture-independent files in PREFIX
1502                           [$ac_default_prefix]
1503   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1504                           [PREFIX]
1505
1506 By default, \`make install' will install all the files in
1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509 for instance \`--prefix=\$HOME'.
1510
1511 For better control, use the options below.
1512
1513 Fine tuning of the installation directories:
1514   --bindir=DIR            user executables [EPREFIX/bin]
1515   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1516   --libexecdir=DIR        program executables [EPREFIX/libexec]
1517   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1518   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1519   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1520   --libdir=DIR            object code libraries [EPREFIX/lib]
1521   --includedir=DIR        C header files [PREFIX/include]
1522   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1523   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1524   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1525   --infodir=DIR           info documentation [DATAROOTDIR/info]
1526   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1527   --mandir=DIR            man documentation [DATAROOTDIR/man]
1528   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1529   --htmldir=DIR           html documentation [DOCDIR]
1530   --dvidir=DIR            dvi documentation [DOCDIR]
1531   --pdfdir=DIR            pdf documentation [DOCDIR]
1532   --psdir=DIR             ps documentation [DOCDIR]
1533 _ACEOF
1534
1535   cat <<\_ACEOF
1536
1537 Program names:
1538   --program-prefix=PREFIX            prepend PREFIX to installed program names
1539   --program-suffix=SUFFIX            append SUFFIX to installed program names
1540   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1541
1542 System types:
1543   --build=BUILD     configure for building on BUILD [guessed]
1544   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1545   --target=TARGET   configure for building compilers for TARGET [HOST]
1546 _ACEOF
1547 fi
1548
1549 if test -n "$ac_init_help"; then
1550
1551   cat <<\_ACEOF
1552
1553 Optional Features:
1554   --disable-option-checking  ignore unrecognized --enable/--with options
1555   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1556   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1557   --enable-generated-files-in-srcdir
1558                           put copies of generated files in source dir intended
1559                           for creating source tarballs for users without
1560                           texinfo bison or flex
1561   --disable-largefile     omit support for large files
1562   --enable-werror-always  enable -Werror despite compiler version
1563   --enable-checking[=LIST]
1564                           enable expensive run-time checks. With LIST, enable
1565                           only specific categories of checks. Categories are:
1566                           yes,no,all,none,release. Flags are:
1567                           assert,df,fold,gc,gcac,gimple,misc,
1568                           rtlflag,rtl,runtime,tree,valgrind,types
1569   --enable-coverage[=LEVEL]
1570                           enable compiler's code coverage collection. Use to
1571                           measure compiler performance and locate unused parts
1572                           of the compiler. With LEVEL, specify optimization.
1573                           Values are opt, noopt, default is noopt
1574   --enable-gather-detailed-mem-stats
1575                           enable detailed memory allocation stats gathering
1576   --enable-build-with-cxx build with C++ compiler instead of C compiler
1577   --enable-multilib       enable library support for multiple ABIs
1578   --enable-__cxa_atexit   enable __cxa_atexit for C++
1579   --enable-decimal-float={no,yes,bid,dpd}
1580                         enable decimal float extension to C.  Selecting 'bid'
1581                         or 'dpd' choses which decimal floating point format
1582                         to use
1583   --enable-fixed-point    enable fixed-point arithmetic extension to C
1584   --enable-threads[=LIB]  enable thread usage for target GCC, using LIB thread
1585                           package
1586   --enable-tls            enable or disable generation of tls code overriding
1587                           the assembler check for tls support
1588   --enable-objc-gc        enable the use of Boehm's garbage collector with the
1589                           GNU Objective-C runtime
1590   --disable-shared        don't provide a shared libgcc
1591   --enable-languages=LIST specify which front-ends to build
1592   --disable-rpath         do not hardcode runtime library paths
1593   --enable-initfini-array       use .init_array/.fini_array sections
1594   --enable-sjlj-exceptions
1595                           arrange to use setjmp/longjmp exception handling
1596   --enable-secureplt      enable -msecure-plt by default for PowerPC
1597   --enable-leading-mingw64-underscores
1598                           enable leading underscores on 64 bit mingw targets
1599   --enable-cld            enable -mcld by default for 32bit x86
1600   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit
1601                           x86
1602   --disable-win32-registry
1603                           disable lookup of installation paths in the Registry
1604                           on Windows hosts
1605   --enable-win32-registry enable registry lookup (default)
1606   --enable-win32-registry=KEY
1607                           use KEY instead of GCC version as the last portion
1608                           of the registry key
1609   --enable-shared[=PKGS]  build shared libraries [default=yes]
1610   --enable-static[=PKGS]  build static libraries [default=yes]
1611   --enable-fast-install[=PKGS]
1612                           optimize for fast installation [default=yes]
1613   --disable-libtool-lock  avoid locking (might break parallel builds)
1614   --enable-gnu-indirect-function
1615                           enable the use of the @gnu_indirect_function to
1616                           glibc systems
1617   --enable-comdat         enable COMDAT group support
1618   --enable-gnu-unique-object
1619                           enable the use of the @gnu_unique_object ELF
1620                           extension on glibc systems
1621   --enable-linker-build-id
1622                           compiler will always pass --build-id to linker
1623   --enable-maintainer-mode
1624                           enable make rules and dependencies not useful (and
1625                           sometimes confusing) to the casual installer
1626   --enable-version-specific-runtime-libs
1627                           specify that runtime libraries should be installed
1628                           in a compiler-specific directory
1629   --enable-plugin         enable plugin support
1630   --disable-libquadmath-support
1631                           disable libquadmath support for Fortran
1632
1633 Optional Packages:
1634   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1635   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1636   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1637   --with-local-prefix=DIR specifies directory to put local include
1638   --with-gxx-include-dir=DIR
1639                           specifies directory to put g++ header files
1640   --with-cpp-install-dir=DIR
1641                           install the user visible C preprocessor in DIR
1642                           (relative to PREFIX) as well as PREFIX/bin
1643   --with-gnu-ld           arrange to work with GNU ld
1644   --with-ld               arrange to use the specified ld (full pathname)
1645   --with-demangler-in-ld  try to use demangler in GNU ld
1646   --with-gnu-as           arrange to work with GNU as
1647   --with-as               arrange to use the specified as (full pathname)
1648   --with-stabs            arrange to use stabs instead of host debug format
1649   --with-dwarf2           force the default debug format to be DWARF 2
1650   --with-native-system-header-dir=dir
1651                           use dir as the directory to look for standard
1652                           system header files in.  Defaults to /usr/include.
1653   --with-build-sysroot=sysroot
1654                           use sysroot as the system root during the build
1655   --with-sysroot[=DIR]    search for usr/lib, usr/include, et al, within DIR
1656   --with-specs=SPECS      add SPECS to driver command-line processing
1657   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1658   --with-bugurl=URL       Direct users to URL to report a bug
1659   --with-multilib-list    select multilibs (SH and x86-64 only)
1660   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1661   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1662   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1663   --with-pic              try to use only PIC/non-PIC objects [default=use
1664                           both]
1665   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1666   --with-plugin-ld=[ARG]  specify the plugin linker
1667   --with-long-double-128  use 128-bit long double by default
1668   --with-gc={page,zone}   choose the garbage collection mechanism to use with
1669                           the compiler
1670   --with-system-zlib      use installed libz
1671   --with-linker-hash-style={sysv,gnu,both}
1672                           specify the linker hash style
1673
1674 Some influential environment variables:
1675   CC          C compiler command
1676   CFLAGS      C compiler flags
1677   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1678               nonstandard directory <lib dir>
1679   LIBS        libraries to pass to the linker, e.g. -l<library>
1680   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1681               you have headers in a nonstandard directory <include dir>
1682   CXX         C++ compiler command
1683   CXXFLAGS    C++ compiler flags
1684   CPP         C preprocessor
1685   CXXCPP      C++ preprocessor
1686   GMPLIBS     How to link GMP
1687   GMPINC      How to find GMP include files
1688   PPLLIBS     How to link PPL
1689   PPLINC      How to find PPL include files
1690   CLOOGLIBS   How to link CLOOG
1691   CLOOGINC    How to find CLOOG include files
1692
1693 Use these variables to override the choices made by `configure' or to help
1694 it to find libraries and programs with nonstandard names/locations.
1695
1696 Report bugs to the package provider.
1697 _ACEOF
1698 ac_status=$?
1699 fi
1700
1701 if test "$ac_init_help" = "recursive"; then
1702   # If there are subdirs, report their specific --help.
1703   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1704     test -d "$ac_dir" ||
1705       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1706       continue
1707     ac_builddir=.
1708
1709 case "$ac_dir" in
1710 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1711 *)
1712   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1713   # A ".." for each directory in $ac_dir_suffix.
1714   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1715   case $ac_top_builddir_sub in
1716   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1718   esac ;;
1719 esac
1720 ac_abs_top_builddir=$ac_pwd
1721 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1722 # for backward compatibility:
1723 ac_top_builddir=$ac_top_build_prefix
1724
1725 case $srcdir in
1726   .)  # We are building in place.
1727     ac_srcdir=.
1728     ac_top_srcdir=$ac_top_builddir_sub
1729     ac_abs_top_srcdir=$ac_pwd ;;
1730   [\\/]* | ?:[\\/]* )  # Absolute name.
1731     ac_srcdir=$srcdir$ac_dir_suffix;
1732     ac_top_srcdir=$srcdir
1733     ac_abs_top_srcdir=$srcdir ;;
1734   *) # Relative name.
1735     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1736     ac_top_srcdir=$ac_top_build_prefix$srcdir
1737     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1738 esac
1739 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1740
1741     cd "$ac_dir" || { ac_status=$?; continue; }
1742     # Check for guested configure.
1743     if test -f "$ac_srcdir/configure.gnu"; then
1744       echo &&
1745       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1746     elif test -f "$ac_srcdir/configure"; then
1747       echo &&
1748       $SHELL "$ac_srcdir/configure" --help=recursive
1749     else
1750       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1751     fi || ac_status=$?
1752     cd "$ac_pwd" || { ac_status=$?; break; }
1753   done
1754 fi
1755
1756 test -n "$ac_init_help" && exit $ac_status
1757 if $ac_init_version; then
1758   cat <<\_ACEOF
1759 configure
1760 generated by GNU Autoconf 2.64
1761
1762 Copyright (C) 2009 Free Software Foundation, Inc.
1763 This configure script is free software; the Free Software Foundation
1764 gives unlimited permission to copy, distribute and modify it.
1765 _ACEOF
1766   exit
1767 fi
1768
1769 ## ------------------------ ##
1770 ## Autoconf initialization. ##
1771 ## ------------------------ ##
1772
1773 # ac_fn_c_try_compile LINENO
1774 # --------------------------
1775 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_compile ()
1777 {
1778   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779   rm -f conftest.$ac_objext
1780   if { { ac_try="$ac_compile"
1781 case "(($ac_try" in
1782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783   *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787   (eval "$ac_compile") 2>conftest.err
1788   ac_status=$?
1789   if test -s conftest.err; then
1790     grep -v '^ *+' conftest.err >conftest.er1
1791     cat conftest.er1 >&5
1792     mv -f conftest.er1 conftest.err
1793   fi
1794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795   test $ac_status = 0; } && {
1796          test -z "$ac_c_werror_flag" ||
1797          test ! -s conftest.err
1798        } && test -s conftest.$ac_objext; then :
1799   ac_retval=0
1800 else
1801   $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1803
1804         ac_retval=1
1805 fi
1806   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1807   return $ac_retval
1808
1809 } # ac_fn_c_try_compile
1810
1811 # ac_fn_cxx_try_compile LINENO
1812 # ----------------------------
1813 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_cxx_try_compile ()
1815 {
1816   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817   rm -f conftest.$ac_objext
1818   if { { ac_try="$ac_compile"
1819 case "(($ac_try" in
1820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821   *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825   (eval "$ac_compile") 2>conftest.err
1826   ac_status=$?
1827   if test -s conftest.err; then
1828     grep -v '^ *+' conftest.err >conftest.er1
1829     cat conftest.er1 >&5
1830     mv -f conftest.er1 conftest.err
1831   fi
1832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833   test $ac_status = 0; } && {
1834          test -z "$ac_cxx_werror_flag" ||
1835          test ! -s conftest.err
1836        } && test -s conftest.$ac_objext; then :
1837   ac_retval=0
1838 else
1839   $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842         ac_retval=1
1843 fi
1844   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845   return $ac_retval
1846
1847 } # ac_fn_cxx_try_compile
1848
1849 # ac_fn_c_try_cpp LINENO
1850 # ----------------------
1851 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_c_try_cpp ()
1853 {
1854   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855   if { { ac_try="$ac_cpp conftest.$ac_ext"
1856 case "(($ac_try" in
1857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858   *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1863   ac_status=$?
1864   if test -s conftest.err; then
1865     grep -v '^ *+' conftest.err >conftest.er1
1866     cat conftest.er1 >&5
1867     mv -f conftest.er1 conftest.err
1868   fi
1869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870   test $ac_status = 0; } >/dev/null && {
1871          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1872          test ! -s conftest.err
1873        }; then :
1874   ac_retval=0
1875 else
1876   $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879     ac_retval=1
1880 fi
1881   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882   return $ac_retval
1883
1884 } # ac_fn_c_try_cpp
1885
1886 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1887 # -------------------------------------------------------
1888 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1889 # the include files in INCLUDES and setting the cache variable VAR
1890 # accordingly.
1891 ac_fn_c_check_header_mongrel ()
1892 {
1893   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898   $as_echo_n "(cached) " >&6
1899 fi
1900 eval ac_res=\$$3
1901                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 else
1904   # Is the header compilable?
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1906 $as_echo_n "checking $2 usability... " >&6; }
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h.  */
1909 $4
1910 #include <$2>
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913   ac_header_compiler=yes
1914 else
1915   ac_header_compiler=no
1916 fi
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1919 $as_echo "$ac_header_compiler" >&6; }
1920
1921 # Is the header present?
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1923 $as_echo_n "checking $2 presence... " >&6; }
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h.  */
1926 #include <$2>
1927 _ACEOF
1928 if ac_fn_c_try_cpp "$LINENO"; then :
1929   ac_header_preproc=yes
1930 else
1931   ac_header_preproc=no
1932 fi
1933 rm -f conftest.err conftest.$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1935 $as_echo "$ac_header_preproc" >&6; }
1936
1937 # So?  What about this header?
1938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1939   yes:no: )
1940     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1941 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1942     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1943 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1944     ;;
1945   no:yes:* )
1946     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1947 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1948     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1949 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1950     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1951 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1952     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1953 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1954     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1955 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1956     ;;
1957 esac
1958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1961   $as_echo_n "(cached) " >&6
1962 else
1963   eval "$3=\$ac_header_compiler"
1964 fi
1965 eval ac_res=\$$3
1966                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968 fi
1969   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970
1971 } # ac_fn_c_check_header_mongrel
1972
1973 # ac_fn_c_try_run LINENO
1974 # ----------------------
1975 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1976 # that executables *can* be run.
1977 ac_fn_c_try_run ()
1978 {
1979   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980   if { { ac_try="$ac_link"
1981 case "(($ac_try" in
1982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983   *) ac_try_echo=$ac_try;;
1984 esac
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987   (eval "$ac_link") 2>&5
1988   ac_status=$?
1989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1991   { { case "(($ac_try" in
1992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993   *) ac_try_echo=$ac_try;;
1994 esac
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997   (eval "$ac_try") 2>&5
1998   ac_status=$?
1999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000   test $ac_status = 0; }; }; then :
2001   ac_retval=0
2002 else
2003   $as_echo "$as_me: program exited with status $ac_status" >&5
2004        $as_echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2006
2007        ac_retval=$ac_status
2008 fi
2009   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2010   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2011   return $ac_retval
2012
2013 } # ac_fn_c_try_run
2014
2015 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2016 # -------------------------------------------------------
2017 # Tests whether HEADER exists and can be compiled using the include files in
2018 # INCLUDES, setting the cache variable VAR accordingly.
2019 ac_fn_c_check_header_compile ()
2020 {
2021   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2025   $as_echo_n "(cached) " >&6
2026 else
2027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h.  */
2029 $4
2030 #include <$2>
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033   eval "$3=yes"
2034 else
2035   eval "$3=no"
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 fi
2039 eval ac_res=\$$3
2040                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043
2044 } # ac_fn_c_check_header_compile
2045
2046 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2047 # --------------------------------------------
2048 # Tries to find the compile-time value of EXPR in a program that includes
2049 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2050 # computed
2051 ac_fn_c_compute_int ()
2052 {
2053   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054   if test "$cross_compiling" = yes; then
2055     # Depending upon the size, compute the lo and hi bounds.
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h.  */
2058 $4
2059 int
2060 main ()
2061 {
2062 static int test_array [1 - 2 * !(($2) >= 0)];
2063 test_array [0] = 0
2064
2065   ;
2066   return 0;
2067 }
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"; then :
2070   ac_lo=0 ac_mid=0
2071   while :; do
2072     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h.  */
2074 $4
2075 int
2076 main ()
2077 {
2078 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2079 test_array [0] = 0
2080
2081   ;
2082   return 0;
2083 }
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086   ac_hi=$ac_mid; break
2087 else
2088   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2089                         if test $ac_lo -le $ac_mid; then
2090                           ac_lo= ac_hi=
2091                           break
2092                         fi
2093                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2094 fi
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096   done
2097 else
2098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h.  */
2100 $4
2101 int
2102 main ()
2103 {
2104 static int test_array [1 - 2 * !(($2) < 0)];
2105 test_array [0] = 0
2106
2107   ;
2108   return 0;
2109 }
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112   ac_hi=-1 ac_mid=-1
2113   while :; do
2114     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h.  */
2116 $4
2117 int
2118 main ()
2119 {
2120 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2121 test_array [0] = 0
2122
2123   ;
2124   return 0;
2125 }
2126 _ACEOF
2127 if ac_fn_c_try_compile "$LINENO"; then :
2128   ac_lo=$ac_mid; break
2129 else
2130   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2131                         if test $ac_mid -le $ac_hi; then
2132                           ac_lo= ac_hi=
2133                           break
2134                         fi
2135                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138   done
2139 else
2140   ac_lo= ac_hi=
2141 fi
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 fi
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 # Binary search between lo and hi bounds.
2146 while test "x$ac_lo" != "x$ac_hi"; do
2147   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h.  */
2150 $4
2151 int
2152 main ()
2153 {
2154 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2155 test_array [0] = 0
2156
2157   ;
2158   return 0;
2159 }
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162   ac_hi=$ac_mid
2163 else
2164   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2165 fi
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 done
2168 case $ac_lo in #((
2169 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2170 '') ac_retval=1 ;;
2171 esac
2172   else
2173     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h.  */
2175 $4
2176 static long int longval () { return $2; }
2177 static unsigned long int ulongval () { return $2; }
2178 #include <stdio.h>
2179 #include <stdlib.h>
2180 int
2181 main ()
2182 {
2183
2184   FILE *f = fopen ("conftest.val", "w");
2185   if (! f)
2186     return 1;
2187   if (($2) < 0)
2188     {
2189       long int i = longval ();
2190       if (i != ($2))
2191         return 1;
2192       fprintf (f, "%ld", i);
2193     }
2194   else
2195     {
2196       unsigned long int i = ulongval ();
2197       if (i != ($2))
2198         return 1;
2199       fprintf (f, "%lu", i);
2200     }
2201   /* Do not output a trailing newline, as this causes \r\n confusion
2202      on some platforms.  */
2203   return ferror (f) || fclose (f) != 0;
2204
2205   ;
2206   return 0;
2207 }
2208 _ACEOF
2209 if ac_fn_c_try_run "$LINENO"; then :
2210   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2211 else
2212   ac_retval=1
2213 fi
2214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2215   conftest.$ac_objext conftest.beam conftest.$ac_ext
2216 rm -f conftest.val
2217
2218   fi
2219   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2220   return $ac_retval
2221
2222 } # ac_fn_c_compute_int
2223
2224 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2225 # -------------------------------------------
2226 # Tests whether TYPE exists after having included INCLUDES, setting cache
2227 # variable VAR accordingly.
2228 ac_fn_c_check_type ()
2229 {
2230   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2232 $as_echo_n "checking for $2... " >&6; }
2233 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2234   $as_echo_n "(cached) " >&6
2235 else
2236   eval "$3=no"
2237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h.  */
2239 $4
2240 int
2241 main ()
2242 {
2243 if (sizeof ($2))
2244          return 0;
2245   ;
2246   return 0;
2247 }
2248 _ACEOF
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h.  */
2252 $4
2253 int
2254 main ()
2255 {
2256 if (sizeof (($2)))
2257             return 0;
2258   ;
2259   return 0;
2260 }
2261 _ACEOF
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263
2264 else
2265   eval "$3=yes"
2266 fi
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 fi
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 fi
2271 eval ac_res=\$$3
2272                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2275
2276 } # ac_fn_c_check_type
2277
2278 # ac_fn_c_find_intX_t LINENO BITS VAR
2279 # -----------------------------------
2280 # Finds a signed integer type with width BITS, setting cache variable VAR
2281 # accordingly.
2282 ac_fn_c_find_intX_t ()
2283 {
2284   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2286 $as_echo_n "checking for int$2_t... " >&6; }
2287 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2288   $as_echo_n "(cached) " >&6
2289 else
2290   eval "$3=no"
2291      for ac_type in int$2_t 'int' 'long int' \
2292          'long long int' 'short int' 'signed char'; do
2293        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h.  */
2295 $ac_includes_default
2296 int
2297 main ()
2298 {
2299 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2300 test_array [0] = 0
2301
2302   ;
2303   return 0;
2304 }
2305 _ACEOF
2306 if ac_fn_c_try_compile "$LINENO"; then :
2307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h.  */
2309 $ac_includes_default
2310 int
2311 main ()
2312 {
2313 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2314                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2315 test_array [0] = 0
2316
2317   ;
2318   return 0;
2319 }
2320 _ACEOF
2321 if ac_fn_c_try_compile "$LINENO"; then :
2322
2323 else
2324   case $ac_type in #(
2325   int$2_t) :
2326     eval "$3=yes" ;; #(
2327   *) :
2328     eval "$3=\$ac_type" ;;
2329 esac
2330 fi
2331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2332 fi
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334        eval as_val=\$$3
2335    if test "x$as_val" = x""no; then :
2336
2337 else
2338   break
2339 fi
2340      done
2341 fi
2342 eval ac_res=\$$3
2343                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2344 $as_echo "$ac_res" >&6; }
2345   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2346
2347 } # ac_fn_c_find_intX_t
2348
2349 # ac_fn_c_try_link LINENO
2350 # -----------------------
2351 # Try to link conftest.$ac_ext, and return whether this succeeded.
2352 ac_fn_c_try_link ()
2353 {
2354   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2355   rm -f conftest.$ac_objext conftest$ac_exeext
2356   if { { ac_try="$ac_link"
2357 case "(($ac_try" in
2358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359   *) ac_try_echo=$ac_try;;
2360 esac
2361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2362 $as_echo "$ac_try_echo"; } >&5
2363   (eval "$ac_link") 2>conftest.err
2364   ac_status=$?
2365   if test -s conftest.err; then
2366     grep -v '^ *+' conftest.err >conftest.er1
2367     cat conftest.er1 >&5
2368     mv -f conftest.er1 conftest.err
2369   fi
2370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2371   test $ac_status = 0; } && {
2372          test -z "$ac_c_werror_flag" ||
2373          test ! -s conftest.err
2374        } && test -s conftest$ac_exeext && {
2375          test "$cross_compiling" = yes ||
2376          $as_test_x conftest$ac_exeext
2377        }; then :
2378   ac_retval=0
2379 else
2380   $as_echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2382
2383         ac_retval=1
2384 fi
2385   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2386   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2387   # interfere with the next link command; also delete a directory that is
2388   # left behind by Apple's compiler.  We do this before executing the actions.
2389   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2390   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2391   return $ac_retval
2392
2393 } # ac_fn_c_try_link
2394
2395 # ac_fn_c_find_uintX_t LINENO BITS VAR
2396 # ------------------------------------
2397 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2398 # accordingly.
2399 ac_fn_c_find_uintX_t ()
2400 {
2401   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2403 $as_echo_n "checking for uint$2_t... " >&6; }
2404 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2405   $as_echo_n "(cached) " >&6
2406 else
2407   eval "$3=no"
2408      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2409          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2410        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h.  */
2412 $ac_includes_default
2413 int
2414 main ()
2415 {
2416 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2417 test_array [0] = 0
2418
2419   ;
2420   return 0;
2421 }
2422 _ACEOF
2423 if ac_fn_c_try_compile "$LINENO"; then :
2424   case $ac_type in #(
2425   uint$2_t) :
2426     eval "$3=yes" ;; #(
2427   *) :
2428     eval "$3=\$ac_type" ;;
2429 esac
2430 fi
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432        eval as_val=\$$3
2433    if test "x$as_val" = x""no; then :
2434
2435 else
2436   break
2437 fi
2438      done
2439 fi
2440 eval ac_res=\$$3
2441                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2444
2445 } # ac_fn_c_find_uintX_t
2446
2447 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2448 # ----------------------------------------------
2449 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2450 ac_fn_c_check_header_preproc ()
2451 {
2452   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2454 $as_echo_n "checking for $2... " >&6; }
2455 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2456   $as_echo_n "(cached) " >&6
2457 else
2458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459 /* end confdefs.h.  */
2460 #include <$2>
2461 _ACEOF
2462 if ac_fn_c_try_cpp "$LINENO"; then :
2463   eval "$3=yes"
2464 else
2465   eval "$3=no"
2466 fi
2467 rm -f conftest.err conftest.$ac_ext
2468 fi
2469 eval ac_res=\$$3
2470                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2472   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2473
2474 } # ac_fn_c_check_header_preproc
2475
2476 # ac_fn_cxx_try_cpp LINENO
2477 # ------------------------
2478 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2479 ac_fn_cxx_try_cpp ()
2480 {
2481   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482   if { { ac_try="$ac_cpp conftest.$ac_ext"
2483 case "(($ac_try" in
2484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485   *) ac_try_echo=$ac_try;;
2486 esac
2487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2488 $as_echo "$ac_try_echo"; } >&5
2489   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2490   ac_status=$?
2491   if test -s conftest.err; then
2492     grep -v '^ *+' conftest.err >conftest.er1
2493     cat conftest.er1 >&5
2494     mv -f conftest.er1 conftest.err
2495   fi
2496   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2497   test $ac_status = 0; } >/dev/null && {
2498          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2499          test ! -s conftest.err
2500        }; then :
2501   ac_retval=0
2502 else
2503   $as_echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.$ac_ext >&5
2505
2506     ac_retval=1
2507 fi
2508   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2509   return $ac_retval
2510
2511 } # ac_fn_cxx_try_cpp
2512
2513 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2514 # ------------------------------------------------
2515 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2516 ac_fn_cxx_check_header_preproc ()
2517 {
2518   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2520 $as_echo_n "checking for $2... " >&6; }
2521 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2522   $as_echo_n "(cached) " >&6
2523 else
2524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h.  */
2526 #include <$2>
2527 _ACEOF
2528 if ac_fn_cxx_try_cpp "$LINENO"; then :
2529   eval "$3=yes"
2530 else
2531   eval "$3=no"
2532 fi
2533 rm -f conftest.err conftest.$ac_ext
2534 fi
2535 eval ac_res=\$$3
2536                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2537 $as_echo "$ac_res" >&6; }
2538   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2539
2540 } # ac_fn_cxx_check_header_preproc
2541
2542 # ac_fn_c_check_func LINENO FUNC VAR
2543 # ----------------------------------
2544 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2545 ac_fn_c_check_func ()
2546 {
2547   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2549 $as_echo_n "checking for $2... " >&6; }
2550 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2551   $as_echo_n "(cached) " >&6
2552 else
2553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h.  */
2555 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2557 #define $2 innocuous_$2
2558
2559 /* System header to define __stub macros and hopefully few prototypes,
2560     which can conflict with char $2 (); below.
2561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2562     <limits.h> exists even on freestanding compilers.  */
2563
2564 #ifdef __STDC__
2565 # include <limits.h>
2566 #else
2567 # include <assert.h>
2568 #endif
2569
2570 #undef $2
2571
2572 /* Override any GCC internal prototype to avoid an error.
2573    Use char because int might match the return type of a GCC
2574    builtin and then its argument prototype would still apply.  */
2575 #ifdef __cplusplus
2576 extern "C"
2577 #endif
2578 char $2 ();
2579 /* The GNU C library defines this for functions which it implements
2580     to always fail with ENOSYS.  Some functions are actually named
2581     something starting with __ and the normal name is an alias.  */
2582 #if defined __stub_$2 || defined __stub___$2
2583 choke me
2584 #endif
2585
2586 int
2587 main ()
2588 {
2589 return $2 ();
2590   ;
2591   return 0;
2592 }
2593 _ACEOF
2594 if ac_fn_c_try_link "$LINENO"; then :
2595   eval "$3=yes"
2596 else
2597   eval "$3=no"
2598 fi
2599 rm -f core conftest.err conftest.$ac_objext \
2600     conftest$ac_exeext conftest.$ac_ext
2601 fi
2602 eval ac_res=\$$3
2603                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2604 $as_echo "$ac_res" >&6; }
2605   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2606
2607 } # ac_fn_c_check_func
2608
2609 # ac_fn_cxx_try_link LINENO
2610 # -------------------------
2611 # Try to link conftest.$ac_ext, and return whether this succeeded.
2612 ac_fn_cxx_try_link ()
2613 {
2614   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2615   rm -f conftest.$ac_objext conftest$ac_exeext
2616   if { { ac_try="$ac_link"
2617 case "(($ac_try" in
2618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619   *) ac_try_echo=$ac_try;;
2620 esac
2621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2622 $as_echo "$ac_try_echo"; } >&5
2623   (eval "$ac_link") 2>conftest.err
2624   ac_status=$?
2625   if test -s conftest.err; then
2626     grep -v '^ *+' conftest.err >conftest.er1
2627     cat conftest.er1 >&5
2628     mv -f conftest.er1 conftest.err
2629   fi
2630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2631   test $ac_status = 0; } && {
2632          test -z "$ac_cxx_werror_flag" ||
2633          test ! -s conftest.err
2634        } && test -s conftest$ac_exeext && {
2635          test "$cross_compiling" = yes ||
2636          $as_test_x conftest$ac_exeext
2637        }; then :
2638   ac_retval=0
2639 else
2640   $as_echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2642
2643         ac_retval=1
2644 fi
2645   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2646   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2647   # interfere with the next link command; also delete a directory that is
2648   # left behind by Apple's compiler.  We do this before executing the actions.
2649   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2650   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2651   return $ac_retval
2652
2653 } # ac_fn_cxx_try_link
2654 cat >config.log <<_ACEOF
2655 This file contains any messages produced by compilers while
2656 running configure, to aid debugging if configure makes a mistake.
2657
2658 It was created by $as_me, which was
2659 generated by GNU Autoconf 2.64.  Invocation command line was
2660
2661   $ $0 $@
2662
2663 _ACEOF
2664 exec 5>>config.log
2665 {
2666 cat <<_ASUNAME
2667 ## --------- ##
2668 ## Platform. ##
2669 ## --------- ##
2670
2671 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2672 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2673 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2674 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2675 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2676
2677 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2678 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2679
2680 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2681 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2682 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2683 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2684 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2685 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2686 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2687
2688 _ASUNAME
2689
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693   IFS=$as_save_IFS
2694   test -z "$as_dir" && as_dir=.
2695     $as_echo "PATH: $as_dir"
2696   done
2697 IFS=$as_save_IFS
2698
2699 } >&5
2700
2701 cat >&5 <<_ACEOF
2702
2703
2704 ## ----------- ##
2705 ## Core tests. ##
2706 ## ----------- ##
2707
2708 _ACEOF
2709
2710
2711 # Keep a trace of the command line.
2712 # Strip out --no-create and --no-recursion so they do not pile up.
2713 # Strip out --silent because we don't want to record it for future runs.
2714 # Also quote any args containing shell meta-characters.
2715 # Make two passes to allow for proper duplicate-argument suppression.
2716 ac_configure_args=
2717 ac_configure_args0=
2718 ac_configure_args1=
2719 ac_must_keep_next=false
2720 for ac_pass in 1 2
2721 do
2722   for ac_arg
2723   do
2724     case $ac_arg in
2725     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2726     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2727     | -silent | --silent | --silen | --sile | --sil)
2728       continue ;;
2729     *\'*)
2730       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2731     esac
2732     case $ac_pass in
2733     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2734     2)
2735       as_fn_append ac_configure_args1 " '$ac_arg'"
2736       if test $ac_must_keep_next = true; then
2737         ac_must_keep_next=false # Got value, back to normal.
2738       else
2739         case $ac_arg in
2740           *=* | --config-cache | -C | -disable-* | --disable-* \
2741           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2742           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2743           | -with-* | --with-* | -without-* | --without-* | --x)
2744             case "$ac_configure_args0 " in
2745               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2746             esac
2747             ;;
2748           -* ) ac_must_keep_next=true ;;
2749         esac
2750       fi
2751       as_fn_append ac_configure_args " '$ac_arg'"
2752       ;;
2753     esac
2754   done
2755 done
2756 { ac_configure_args0=; unset ac_configure_args0;}
2757 { ac_configure_args1=; unset ac_configure_args1;}
2758
2759 # When interrupted or exit'd, cleanup temporary files, and complete
2760 # config.log.  We remove comments because anyway the quotes in there
2761 # would cause problems or look ugly.
2762 # WARNING: Use '\'' to represent an apostrophe within the trap.
2763 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2764 trap 'exit_status=$?
2765   # Save into config.log some information that might help in debugging.
2766   {
2767     echo
2768
2769     cat <<\_ASBOX
2770 ## ---------------- ##
2771 ## Cache variables. ##
2772 ## ---------------- ##
2773 _ASBOX
2774     echo
2775     # The following way of writing the cache mishandles newlines in values,
2776 (
2777   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2778     eval ac_val=\$$ac_var
2779     case $ac_val in #(
2780     *${as_nl}*)
2781       case $ac_var in #(
2782       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2783 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2784       esac
2785       case $ac_var in #(
2786       _ | IFS | as_nl) ;; #(
2787       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2788       *) { eval $ac_var=; unset $ac_var;} ;;
2789       esac ;;
2790     esac
2791   done
2792   (set) 2>&1 |
2793     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2794     *${as_nl}ac_space=\ *)
2795       sed -n \
2796         "s/'\''/'\''\\\\'\'''\''/g;
2797           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2798       ;; #(
2799     *)
2800       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2801       ;;
2802     esac |
2803     sort
2804 )
2805     echo
2806
2807     cat <<\_ASBOX
2808 ## ----------------- ##
2809 ## Output variables. ##
2810 ## ----------------- ##
2811 _ASBOX
2812     echo
2813     for ac_var in $ac_subst_vars
2814     do
2815       eval ac_val=\$$ac_var
2816       case $ac_val in
2817       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2818       esac
2819       $as_echo "$ac_var='\''$ac_val'\''"
2820     done | sort
2821     echo
2822
2823     if test -n "$ac_subst_files"; then
2824       cat <<\_ASBOX
2825 ## ------------------- ##
2826 ## File substitutions. ##
2827 ## ------------------- ##
2828 _ASBOX
2829       echo
2830       for ac_var in $ac_subst_files
2831       do
2832         eval ac_val=\$$ac_var
2833         case $ac_val in
2834         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2835         esac
2836         $as_echo "$ac_var='\''$ac_val'\''"
2837       done | sort
2838       echo
2839     fi
2840
2841     if test -s confdefs.h; then
2842       cat <<\_ASBOX
2843 ## ----------- ##
2844 ## confdefs.h. ##
2845 ## ----------- ##
2846 _ASBOX
2847       echo
2848       cat confdefs.h
2849       echo
2850     fi
2851     test "$ac_signal" != 0 &&
2852       $as_echo "$as_me: caught signal $ac_signal"
2853     $as_echo "$as_me: exit $exit_status"
2854   } >&5
2855   rm -f core *.core core.conftest.* &&
2856     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2857     exit $exit_status
2858 ' 0
2859 for ac_signal in 1 2 13 15; do
2860   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2861 done
2862 ac_signal=0
2863
2864 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2865 rm -f -r conftest* confdefs.h
2866
2867 $as_echo "/* confdefs.h */" > confdefs.h
2868
2869 # Predefined preprocessor variables.
2870
2871 cat >>confdefs.h <<_ACEOF
2872 #define PACKAGE_NAME "$PACKAGE_NAME"
2873 _ACEOF
2874
2875 cat >>confdefs.h <<_ACEOF
2876 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2877 _ACEOF
2878
2879 cat >>confdefs.h <<_ACEOF
2880 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2881 _ACEOF
2882
2883 cat >>confdefs.h <<_ACEOF
2884 #define PACKAGE_STRING "$PACKAGE_STRING"
2885 _ACEOF
2886
2887 cat >>confdefs.h <<_ACEOF
2888 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2889 _ACEOF
2890
2891 cat >>confdefs.h <<_ACEOF
2892 #define PACKAGE_URL "$PACKAGE_URL"
2893 _ACEOF
2894
2895
2896 # Let the site file select an alternate cache file if it wants to.
2897 # Prefer an explicitly selected file to automatically selected ones.
2898 ac_site_file1=NONE
2899 ac_site_file2=NONE
2900 if test -n "$CONFIG_SITE"; then
2901   ac_site_file1=$CONFIG_SITE
2902 elif test "x$prefix" != xNONE; then
2903   ac_site_file1=$prefix/share/config.site
2904   ac_site_file2=$prefix/etc/config.site
2905 else
2906   ac_site_file1=$ac_default_prefix/share/config.site
2907   ac_site_file2=$ac_default_prefix/etc/config.site
2908 fi
2909 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2910 do
2911   test "x$ac_site_file" = xNONE && continue
2912   if test -r "$ac_site_file"; then
2913     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2914 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2915     sed 's/^/| /' "$ac_site_file" >&5
2916     . "$ac_site_file"
2917   fi
2918 done
2919
2920 if test -r "$cache_file"; then
2921   # Some versions of bash will fail to source /dev/null (special
2922   # files actually), so we avoid doing that.
2923   if test -f "$cache_file"; then
2924     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2925 $as_echo "$as_me: loading cache $cache_file" >&6;}
2926     case $cache_file in
2927       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2928       *)                      . "./$cache_file";;
2929     esac
2930   fi
2931 else
2932   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2933 $as_echo "$as_me: creating cache $cache_file" >&6;}
2934   >$cache_file
2935 fi
2936
2937 # Check that the precious variables saved in the cache have kept the same
2938 # value.
2939 ac_cache_corrupted=false
2940 for ac_var in $ac_precious_vars; do
2941   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2942   eval ac_new_set=\$ac_env_${ac_var}_set
2943   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2944   eval ac_new_val=\$ac_env_${ac_var}_value
2945   case $ac_old_set,$ac_new_set in
2946     set,)
2947       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2948 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2949       ac_cache_corrupted=: ;;
2950     ,set)
2951       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2952 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2953       ac_cache_corrupted=: ;;
2954     ,);;
2955     *)
2956       if test "x$ac_old_val" != "x$ac_new_val"; then
2957         # differences in whitespace do not lead to failure.
2958         ac_old_val_w=`echo x $ac_old_val`
2959         ac_new_val_w=`echo x $ac_new_val`
2960         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2961           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2962 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2963           ac_cache_corrupted=:
2964         else
2965           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2966 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2967           eval $ac_var=\$ac_old_val
2968         fi
2969         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2970 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2971         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2972 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2973       fi;;
2974   esac
2975   # Pass precious variables to config.status.
2976   if test "$ac_new_set" = set; then
2977     case $ac_new_val in
2978     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2979     *) ac_arg=$ac_var=$ac_new_val ;;
2980     esac
2981     case " $ac_configure_args " in
2982       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2983       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2984     esac
2985   fi
2986 done
2987 if $ac_cache_corrupted; then
2988   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2991 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2992   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2993 fi
2994 ## -------------------- ##
2995 ## Main body of script. ##
2996 ## -------------------- ##
2997
2998 ac_ext=c
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003
3004
3005
3006
3007
3008
3009 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3010
3011
3012 gcc_version=`cat $srcdir/BASE-VER`
3013
3014 # Determine the host, build, and target systems
3015 ac_aux_dir=
3016 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3017   for ac_t in install-sh install.sh shtool; do
3018     if test -f "$ac_dir/$ac_t"; then
3019       ac_aux_dir=$ac_dir
3020       ac_install_sh="$ac_aux_dir/$ac_t -c"
3021       break 2
3022     fi
3023   done
3024 done
3025 if test -z "$ac_aux_dir"; then
3026   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3027 fi
3028
3029 # These three variables are undocumented and unsupported,
3030 # and are intended to be withdrawn in a future Autoconf release.
3031 # They can cause serious problems if a builder's source tree is in a directory
3032 # whose full name contains unusual characters.
3033 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3034 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3035 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3036
3037
3038 # Make sure we can run config.sub.
3039 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3040   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3041
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3043 $as_echo_n "checking build system type... " >&6; }
3044 if test "${ac_cv_build+set}" = set; then :
3045   $as_echo_n "(cached) " >&6
3046 else
3047   ac_build_alias=$build_alias
3048 test "x$ac_build_alias" = x &&
3049   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3050 test "x$ac_build_alias" = x &&
3051   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3053   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3054
3055 fi
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3057 $as_echo "$ac_cv_build" >&6; }
3058 case $ac_cv_build in
3059 *-*-*) ;;
3060 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3061 esac
3062 build=$ac_cv_build
3063 ac_save_IFS=$IFS; IFS='-'
3064 set x $ac_cv_build
3065 shift
3066 build_cpu=$1
3067 build_vendor=$2
3068 shift; shift
3069 # Remember, the first character of IFS is used to create $*,
3070 # except with old shells:
3071 build_os=$*
3072 IFS=$ac_save_IFS
3073 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3074
3075
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3077 $as_echo_n "checking host system type... " >&6; }
3078 if test "${ac_cv_host+set}" = set; then :
3079   $as_echo_n "(cached) " >&6
3080 else
3081   if test "x$host_alias" = x; then
3082   ac_cv_host=$ac_cv_build
3083 else
3084   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3085     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3086 fi
3087
3088 fi
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3090 $as_echo "$ac_cv_host" >&6; }
3091 case $ac_cv_host in
3092 *-*-*) ;;
3093 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3094 esac
3095 host=$ac_cv_host
3096 ac_save_IFS=$IFS; IFS='-'
3097 set x $ac_cv_host
3098 shift
3099 host_cpu=$1
3100 host_vendor=$2
3101 shift; shift
3102 # Remember, the first character of IFS is used to create $*,
3103 # except with old shells:
3104 host_os=$*
3105 IFS=$ac_save_IFS
3106 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3107
3108
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3110 $as_echo_n "checking target system type... " >&6; }
3111 if test "${ac_cv_target+set}" = set; then :
3112   $as_echo_n "(cached) " >&6
3113 else
3114   if test "x$target_alias" = x; then
3115   ac_cv_target=$ac_cv_host
3116 else
3117   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3118     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3119 fi
3120
3121 fi
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3123 $as_echo "$ac_cv_target" >&6; }
3124 case $ac_cv_target in
3125 *-*-*) ;;
3126 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3127 esac
3128 target=$ac_cv_target
3129 ac_save_IFS=$IFS; IFS='-'
3130 set x $ac_cv_target
3131 shift
3132 target_cpu=$1
3133 target_vendor=$2
3134 shift; shift
3135 # Remember, the first character of IFS is used to create $*,
3136 # except with old shells:
3137 target_os=$*
3138 IFS=$ac_save_IFS
3139 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3140
3141
3142 # The aliases save the names the user supplied, while $host etc.
3143 # will get canonicalized.
3144 test -n "$target_alias" &&
3145   test "$program_prefix$program_suffix$program_transform_name" = \
3146     NONENONEs,x,x, &&
3147   program_prefix=${target_alias}-
3148
3149 # Determine the noncanonical target name, for directory use.
3150  case ${build_alias} in
3151   "") build_noncanonical=${build} ;;
3152   *) build_noncanonical=${build_alias} ;;
3153 esac
3154
3155  case ${host_alias} in
3156   "") host_noncanonical=${build_noncanonical} ;;
3157   *) host_noncanonical=${host_alias} ;;
3158 esac
3159
3160  case ${target_alias} in
3161   "") target_noncanonical=${host_noncanonical} ;;
3162   *) target_noncanonical=${target_alias} ;;
3163 esac
3164
3165
3166
3167
3168 # Determine the target- and build-specific subdirectories
3169
3170 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3171 # have matching libraries, they should use host libraries: Makefile.tpl
3172 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3173 # However, they still use the build modules, because the corresponding
3174 # host modules (e.g. bison) are only built for the host when bootstrap
3175 # finishes. So:
3176 # - build_subdir is where we find build modules, and never changes.
3177 # - build_libsubdir is where we find build libraries, and can be overridden.
3178
3179 # Prefix 'build-' so this never conflicts with target_subdir.
3180 build_subdir="build-${build_noncanonical}"
3181
3182 # Check whether --with-build-libsubdir was given.
3183 if test "${with_build_libsubdir+set}" = set; then :
3184   withval=$with_build_libsubdir; build_libsubdir="$withval"
3185 else
3186   build_libsubdir="$build_subdir"
3187 fi
3188
3189 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3190 if ( test $srcdir = . && test -d gcc ) \
3191    || test -d $srcdir/../host-${host_noncanonical}; then
3192   host_subdir="host-${host_noncanonical}"
3193 else
3194   host_subdir=.
3195 fi
3196 # No prefix.
3197 target_subdir=${target_noncanonical}
3198
3199
3200 # Set program_transform_name
3201 test "$program_prefix" != NONE &&
3202   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3203 # Use a double $ so make ignores it.
3204 test "$program_suffix" != NONE &&
3205   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3206 # Double any \ or $.
3207 # By default was `s,x,x', remove it if useless.
3208 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3209 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3210
3211
3212 # Check for bogus environment variables.
3213 # Test if LIBRARY_PATH contains the notation for the current directory
3214 # since this would lead to problems installing/building glibc.
3215 # LIBRARY_PATH contains the current directory if one of the following
3216 # is true:
3217 # - one of the terminals (":" and ";") is the first or last sign
3218 # - two terminals occur directly after each other
3219 # - the path contains an element with a dot in it
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3221 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3222 case ${LIBRARY_PATH} in
3223   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3224     library_path_setting="contains current directory"
3225     ;;
3226   *)
3227     library_path_setting="ok"
3228     ;;
3229 esac
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3231 $as_echo "$library_path_setting" >&6; }
3232 if test "$library_path_setting" != "ok"; then
3233 as_fn_error "
3234 *** LIBRARY_PATH shouldn't contain the current directory when
3235 *** building gcc. Please change the environment variable
3236 *** and run configure again." "$LINENO" 5
3237 fi
3238
3239 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3240 # since this would lead to problems installing/building glibc.
3241 # GCC_EXEC_PREFIX contains the current directory if one of the following
3242 # is true:
3243 # - one of the terminals (":" and ";") is the first or last sign
3244 # - two terminals occur directly after each other
3245 # - the path contains an element with a dot in it
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3247 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3248 case ${GCC_EXEC_PREFIX} in
3249   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3250     gcc_exec_prefix_setting="contains current directory"
3251     ;;
3252   *)
3253     gcc_exec_prefix_setting="ok"
3254     ;;
3255 esac
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3257 $as_echo "$gcc_exec_prefix_setting" >&6; }
3258 if test "$gcc_exec_prefix_setting" != "ok"; then
3259 as_fn_error "
3260 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3261 *** building gcc. Please change the environment variable
3262 *** and run configure again." "$LINENO" 5
3263 fi
3264
3265 # -----------
3266 # Directories
3267 # -----------
3268
3269 # Specify the local prefix
3270 local_prefix=
3271
3272 # Check whether --with-local-prefix was given.
3273 if test "${with_local_prefix+set}" = set; then :
3274   withval=$with_local_prefix; case "${withval}" in
3275 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3276 no)     ;;
3277 *)      local_prefix=$with_local_prefix ;;
3278 esac
3279 fi
3280
3281
3282 # Default local prefix if it is empty
3283 if test x$local_prefix = x; then
3284         local_prefix=/usr/local
3285 fi
3286
3287 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3288 # passed in by the toplevel make and thus we'd get different behavior
3289 # depending on where we built the sources.
3290 gcc_gxx_include_dir=
3291 # Specify the g++ header file directory
3292
3293 # Check whether --with-gxx-include-dir was given.
3294 if test "${with_gxx_include_dir+set}" = set; then :
3295   withval=$with_gxx_include_dir; case "${withval}" in
3296 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3297 no)     ;;
3298 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3299 esac
3300 fi
3301
3302
3303 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3304 if test x${gcc_gxx_include_dir} = x; then
3305   if test x${enable_version_specific_runtime_libs} = xyes; then
3306     gcc_gxx_include_dir='${libsubdir}/include/c++'
3307   else
3308     libstdcxx_incdir='include/c++/$(version)'
3309     if test x$host != x$target; then
3310        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3311     fi
3312     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3313   fi
3314 fi
3315
3316
3317 # Check whether --with-cpp_install_dir was given.
3318 if test "${with_cpp_install_dir+set}" = set; then :
3319   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3320   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3321 elif test x$withval != xno; then
3322   cpp_install_dir=$withval
3323 fi
3324 fi
3325
3326
3327 # We would like to our source tree to be readonly.  However when releases or
3328 # pre-releases are generated, the flex/bison generated files as well as the
3329 # various formats of manuals need to be included along with the rest of the
3330 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3331 # just that.
3332
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3334 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3335     # Check whether --enable-generated-files-in-srcdir was given.
3336 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3337   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3338 else
3339   generated_files_in_srcdir=no
3340 fi
3341
3342
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3344 $as_echo "$generated_files_in_srcdir" >&6; }
3345
3346 if test "$generated_files_in_srcdir" = "yes"; then
3347   GENINSRC=''
3348 else
3349   GENINSRC='#'
3350 fi
3351
3352
3353 # -------------------
3354 # Find default linker
3355 # -------------------
3356
3357 # With GNU ld
3358
3359 # Check whether --with-gnu-ld was given.
3360 if test "${with_gnu_ld+set}" = set; then :
3361   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3362 else
3363   gnu_ld_flag=no
3364 fi
3365
3366
3367 # With pre-defined ld
3368
3369 # Check whether --with-ld was given.
3370 if test "${with_ld+set}" = set; then :
3371   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3372 fi
3373
3374 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3375   if test ! -x "$DEFAULT_LINKER"; then
3376     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3377   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3378     gnu_ld_flag=yes
3379   fi
3380
3381 cat >>confdefs.h <<_ACEOF
3382 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3383 _ACEOF
3384
3385 fi
3386
3387 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3388
3389 cat >>confdefs.h <<_ACEOF
3390 #define HAVE_GNU_LD $gnu_ld
3391 _ACEOF
3392
3393
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3395 $as_echo_n "checking whether a default linker was specified... " >&6; }
3396 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3397   if test x"$gnu_ld_flag" = x"no"; then
3398     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3399 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3400   else
3401     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3402 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3403   fi
3404 else
3405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3407 fi
3408
3409 # With demangler in GNU ld
3410
3411 # Check whether --with-demangler-in-ld was given.
3412 if test "${with_demangler_in_ld+set}" = set; then :
3413   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3414 else
3415   demangler_in_ld=yes
3416 fi
3417
3418
3419 # ----------------------
3420 # Find default assembler
3421 # ----------------------
3422
3423 # With GNU as
3424
3425 # Check whether --with-gnu-as was given.
3426 if test "${with_gnu_as+set}" = set; then :
3427   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3428 else
3429   gas_flag=no
3430 fi
3431
3432
3433
3434 # Check whether --with-as was given.
3435 if test "${with_as+set}" = set; then :
3436   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3437 fi
3438
3439 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3440   if test ! -x "$DEFAULT_ASSEMBLER"; then
3441     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3442   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3443     gas_flag=yes
3444   fi
3445
3446 cat >>confdefs.h <<_ACEOF
3447 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3448 _ACEOF
3449
3450 fi
3451
3452 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3453
3454 cat >>confdefs.h <<_ACEOF
3455 #define HAVE_GNU_AS $gnu_as
3456 _ACEOF
3457
3458
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3460 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3461 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3462   if test x"$gas_flag" = x"no"; then
3463     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3464 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3465   else
3466     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3467 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3468   fi
3469 else
3470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3472 fi
3473
3474 # ---------------
3475 # Find C compiler
3476 # ---------------
3477
3478 # If a non-executable a.out is present (e.g. created by GNU as above even if
3479 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3480 # file, even when creating an executable, so an execution test fails.
3481 # Remove possible default executable files to avoid this.
3482 #
3483 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3484 # Autoconf includes it.
3485 rm -f a.out a.exe b.out
3486
3487 # Find the native compiler
3488 ac_ext=c
3489 ac_cpp='$CPP $CPPFLAGS'
3490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493 if test -n "$ac_tool_prefix"; then
3494   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3495 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 $as_echo_n "checking for $ac_word... " >&6; }
3498 if test "${ac_cv_prog_CC+set}" = set; then :
3499   $as_echo_n "(cached) " >&6
3500 else
3501   if test -n "$CC"; then
3502   ac_cv_prog_CC="$CC" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3506 do
3507   IFS=$as_save_IFS
3508   test -z "$as_dir" && as_dir=.
3509     for ac_exec_ext in '' $ac_executable_extensions; do
3510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513     break 2
3514   fi
3515 done
3516   done
3517 IFS=$as_save_IFS
3518
3519 fi
3520 fi
3521 CC=$ac_cv_prog_CC
3522 if test -n "$CC"; then
3523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3524 $as_echo "$CC" >&6; }
3525 else
3526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3528 fi
3529
3530
3531 fi
3532 if test -z "$ac_cv_prog_CC"; then
3533   ac_ct_CC=$CC
3534   # Extract the first word of "gcc", so it can be a program name with args.
3535 set dummy gcc; ac_word=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3539   $as_echo_n "(cached) " >&6
3540 else
3541   if test -n "$ac_ct_CC"; then
3542   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3546 do
3547   IFS=$as_save_IFS
3548   test -z "$as_dir" && as_dir=.
3549     for ac_exec_ext in '' $ac_executable_extensions; do
3550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3551     ac_cv_prog_ac_ct_CC="gcc"
3552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553     break 2
3554   fi
3555 done
3556   done
3557 IFS=$as_save_IFS
3558
3559 fi
3560 fi
3561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562 if test -n "$ac_ct_CC"; then
3563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3564 $as_echo "$ac_ct_CC" >&6; }
3565 else
3566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3568 fi
3569
3570   if test "x$ac_ct_CC" = x; then
3571     CC=""
3572   else
3573     case $cross_compiling:$ac_tool_warned in
3574 yes:)
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3577 ac_tool_warned=yes ;;
3578 esac
3579     CC=$ac_ct_CC
3580   fi
3581 else
3582   CC="$ac_cv_prog_CC"
3583 fi
3584
3585 if test -z "$CC"; then
3586           if test -n "$ac_tool_prefix"; then
3587     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3588 set dummy ${ac_tool_prefix}cc; ac_word=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if test "${ac_cv_prog_CC+set}" = set; then :
3592   $as_echo_n "(cached) " >&6
3593 else
3594   if test -n "$CC"; then
3595   ac_cv_prog_CC="$CC" # Let the user override the test.
3596 else
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3599 do
3600   IFS=$as_save_IFS
3601   test -z "$as_dir" && as_dir=.
3602     for ac_exec_ext in '' $ac_executable_extensions; do
3603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3604     ac_cv_prog_CC="${ac_tool_prefix}cc"
3605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3606     break 2
3607   fi
3608 done
3609   done
3610 IFS=$as_save_IFS
3611
3612 fi
3613 fi
3614 CC=$ac_cv_prog_CC
3615 if test -n "$CC"; then
3616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3617 $as_echo "$CC" >&6; }
3618 else
3619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 $as_echo "no" >&6; }
3621 fi
3622
3623
3624   fi
3625 fi
3626 if test -z "$CC"; then
3627   # Extract the first word of "cc", so it can be a program name with args.
3628 set dummy cc; ac_word=$2
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3630 $as_echo_n "checking for $ac_word... " >&6; }
3631 if test "${ac_cv_prog_CC+set}" = set; then :
3632   $as_echo_n "(cached) " >&6
3633 else
3634   if test -n "$CC"; then
3635   ac_cv_prog_CC="$CC" # Let the user override the test.
3636 else
3637   ac_prog_rejected=no
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3640 do
3641   IFS=$as_save_IFS
3642   test -z "$as_dir" && as_dir=.
3643     for ac_exec_ext in '' $ac_executable_extensions; do
3644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3645     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3646        ac_prog_rejected=yes
3647        continue
3648      fi
3649     ac_cv_prog_CC="cc"
3650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651     break 2
3652   fi
3653 done
3654   done
3655 IFS=$as_save_IFS
3656
3657 if test $ac_prog_rejected = yes; then
3658   # We found a bogon in the path, so make sure we never use it.
3659   set dummy $ac_cv_prog_CC
3660   shift
3661   if test $# != 0; then
3662     # We chose a different compiler from the bogus one.
3663     # However, it has the same basename, so the bogon will be chosen
3664     # first if we set CC to just the basename; use the full file name.
3665     shift
3666     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3667   fi
3668 fi
3669 fi
3670 fi
3671 CC=$ac_cv_prog_CC
3672 if test -n "$CC"; then
3673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3675 else
3676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3678 fi
3679
3680
3681 fi
3682 if test -z "$CC"; then
3683   if test -n "$ac_tool_prefix"; then
3684   for ac_prog in cl.exe
3685   do
3686     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3687 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 $as_echo_n "checking for $ac_word... " >&6; }
3690 if test "${ac_cv_prog_CC+set}" = set; then :
3691   $as_echo_n "(cached) " >&6
3692 else
3693   if test -n "$CC"; then
3694   ac_cv_prog_CC="$CC" # Let the user override the test.
3695 else
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH
3698 do
3699   IFS=$as_save_IFS
3700   test -z "$as_dir" && as_dir=.
3701     for ac_exec_ext in '' $ac_executable_extensions; do
3702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3703     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705     break 2
3706   fi
3707 done
3708   done
3709 IFS=$as_save_IFS
3710
3711 fi
3712 fi
3713 CC=$ac_cv_prog_CC
3714 if test -n "$CC"; then
3715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3716 $as_echo "$CC" >&6; }
3717 else
3718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3720 fi
3721
3722
3723     test -n "$CC" && break
3724   done
3725 fi
3726 if test -z "$CC"; then
3727   ac_ct_CC=$CC
3728   for ac_prog in cl.exe
3729 do
3730   # Extract the first word of "$ac_prog", so it can be a program name with args.
3731 set dummy $ac_prog; ac_word=$2
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3735   $as_echo_n "(cached) " >&6
3736 else
3737   if test -n "$ac_ct_CC"; then
3738   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3742 do
3743   IFS=$as_save_IFS
3744   test -z "$as_dir" && as_dir=.
3745     for ac_exec_ext in '' $ac_executable_extensions; do
3746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747     ac_cv_prog_ac_ct_CC="$ac_prog"
3748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3749     break 2
3750   fi
3751 done
3752   done
3753 IFS=$as_save_IFS
3754
3755 fi
3756 fi
3757 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3758 if test -n "$ac_ct_CC"; then
3759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3760 $as_echo "$ac_ct_CC" >&6; }
3761 else
3762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 $as_echo "no" >&6; }
3764 fi
3765
3766
3767   test -n "$ac_ct_CC" && break
3768 done
3769
3770   if test "x$ac_ct_CC" = x; then
3771     CC=""
3772   else
3773     case $cross_compiling:$ac_tool_warned in
3774 yes:)
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3777 ac_tool_warned=yes ;;
3778 esac
3779     CC=$ac_ct_CC
3780   fi
3781 fi
3782
3783 fi
3784
3785
3786 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3788 as_fn_error "no acceptable C compiler found in \$PATH
3789 See \`config.log' for more details." "$LINENO" 5; }
3790
3791 # Provide some information about the compiler.
3792 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3793 set X $ac_compile
3794 ac_compiler=$2
3795 for ac_option in --version -v -V -qversion; do
3796   { { ac_try="$ac_compiler $ac_option >&5"
3797 case "(($ac_try" in
3798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799   *) ac_try_echo=$ac_try;;
3800 esac
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3804   ac_status=$?
3805   if test -s conftest.err; then
3806     sed '10a\
3807 ... rest of stderr output deleted ...
3808          10q' conftest.err >conftest.er1
3809     cat conftest.er1 >&5
3810     rm -f conftest.er1 conftest.err
3811   fi
3812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813   test $ac_status = 0; }
3814 done
3815
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h.  */
3818
3819 int
3820 main ()
3821 {
3822
3823   ;
3824   return 0;
3825 }
3826 _ACEOF
3827 ac_clean_files_save=$ac_clean_files
3828 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3829 # Try to create an executable without -o first, disregard a.out.
3830 # It will help us diagnose broken compilers, and finding out an intuition
3831 # of exeext.
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3833 $as_echo_n "checking for C compiler default output file name... " >&6; }
3834 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3835
3836 # The possible output files:
3837 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3838
3839 ac_rmfiles=
3840 for ac_file in $ac_files
3841 do
3842   case $ac_file in
3843     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3844     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3845   esac
3846 done
3847 rm -f $ac_rmfiles
3848
3849 if { { ac_try="$ac_link_default"
3850 case "(($ac_try" in
3851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852   *) ac_try_echo=$ac_try;;
3853 esac
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856   (eval "$ac_link_default") 2>&5
3857   ac_status=$?
3858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859   test $ac_status = 0; }; then :
3860   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3861 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3862 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3863 # so that the user can short-circuit this test for compilers unknown to
3864 # Autoconf.
3865 for ac_file in $ac_files ''
3866 do
3867   test -f "$ac_file" || continue
3868   case $ac_file in
3869     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3870         ;;
3871     [ab].out )
3872         # We found the default executable, but exeext='' is most
3873         # certainly right.
3874         break;;
3875     *.* )
3876         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3877         then :; else
3878            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3879         fi
3880         # We set ac_cv_exeext here because the later test for it is not
3881         # safe: cross compilers may not add the suffix if given an `-o'
3882         # argument, so we may need to know it at that point already.
3883         # Even if this section looks crufty: it has the advantage of
3884         # actually working.
3885         break;;
3886     * )
3887         break;;
3888   esac
3889 done
3890 test "$ac_cv_exeext" = no && ac_cv_exeext=
3891
3892 else
3893   ac_file=''
3894 fi
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3896 $as_echo "$ac_file" >&6; }
3897 if test -z "$ac_file"; then :
3898   $as_echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3900
3901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3903 { as_fn_set_status 77
3904 as_fn_error "C compiler cannot create executables
3905 See \`config.log' for more details." "$LINENO" 5; }; }
3906 fi
3907 ac_exeext=$ac_cv_exeext
3908
3909 # Check that the compiler produces executables we can run.  If not, either
3910 # the compiler is broken, or we cross compile.
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3912 $as_echo_n "checking whether the C compiler works... " >&6; }
3913 # If not cross compiling, check that we can run a simple program.
3914 if test "$cross_compiling" != yes; then
3915   if { ac_try='./$ac_file'
3916   { { case "(($ac_try" in
3917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918   *) ac_try_echo=$ac_try;;
3919 esac
3920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3921 $as_echo "$ac_try_echo"; } >&5
3922   (eval "$ac_try") 2>&5
3923   ac_status=$?
3924   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3925   test $ac_status = 0; }; }; then
3926     cross_compiling=no
3927   else
3928     if test "$cross_compiling" = maybe; then
3929         cross_compiling=yes
3930     else
3931         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933 as_fn_error "cannot run C compiled programs.
3934 If you meant to cross compile, use \`--host'.
3935 See \`config.log' for more details." "$LINENO" 5; }
3936     fi
3937   fi
3938 fi
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3940 $as_echo "yes" >&6; }
3941
3942 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3943 ac_clean_files=$ac_clean_files_save
3944 # Check that the compiler produces executables we can run.  If not, either
3945 # the compiler is broken, or we cross compile.
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3947 $as_echo_n "checking whether we are cross compiling... " >&6; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3949 $as_echo "$cross_compiling" >&6; }
3950
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3952 $as_echo_n "checking for suffix of executables... " >&6; }
3953 if { { ac_try="$ac_link"
3954 case "(($ac_try" in
3955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956   *) ac_try_echo=$ac_try;;
3957 esac
3958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 $as_echo "$ac_try_echo"; } >&5
3960   (eval "$ac_link") 2>&5
3961   ac_status=$?
3962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963   test $ac_status = 0; }; then :
3964   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3965 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3966 # work properly (i.e., refer to `conftest.exe'), while it won't with
3967 # `rm'.
3968 for ac_file in conftest.exe conftest conftest.*; do
3969   test -f "$ac_file" || continue
3970   case $ac_file in
3971     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3972     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3973           break;;
3974     * ) break;;
3975   esac
3976 done
3977 else
3978   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error "cannot compute suffix of executables: cannot compile and link
3981 See \`config.log' for more details." "$LINENO" 5; }
3982 fi
3983 rm -f conftest$ac_cv_exeext
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3985 $as_echo "$ac_cv_exeext" >&6; }
3986
3987 rm -f conftest.$ac_ext
3988 EXEEXT=$ac_cv_exeext
3989 ac_exeext=$EXEEXT
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3991 $as_echo_n "checking for suffix of object files... " >&6; }
3992 if test "${ac_cv_objext+set}" = set; then :
3993   $as_echo_n "(cached) " >&6
3994 else
3995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h.  */
3997
3998 int
3999 main ()
4000 {
4001
4002   ;
4003   return 0;
4004 }
4005 _ACEOF
4006 rm -f conftest.o conftest.obj
4007 if { { ac_try="$ac_compile"
4008 case "(($ac_try" in
4009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010   *) ac_try_echo=$ac_try;;
4011 esac
4012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 $as_echo "$ac_try_echo"; } >&5
4014   (eval "$ac_compile") 2>&5
4015   ac_status=$?
4016   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017   test $ac_status = 0; }; then :
4018   for ac_file in conftest.o conftest.obj conftest.*; do
4019   test -f "$ac_file" || continue;
4020   case $ac_file in
4021     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4022     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4023        break;;
4024   esac
4025 done
4026 else
4027   $as_echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4029
4030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4032 as_fn_error "cannot compute suffix of object files: cannot compile
4033 See \`config.log' for more details." "$LINENO" 5; }
4034 fi
4035 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4036 fi
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4038 $as_echo "$ac_cv_objext" >&6; }
4039 OBJEXT=$ac_cv_objext
4040 ac_objext=$OBJEXT
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4042 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4043 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4044   $as_echo_n "(cached) " >&6
4045 else
4046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h.  */
4048
4049 int
4050 main ()
4051 {
4052 #ifndef __GNUC__
4053        choke me
4054 #endif
4055
4056   ;
4057   return 0;
4058 }
4059 _ACEOF
4060 if ac_fn_c_try_compile "$LINENO"; then :
4061   ac_compiler_gnu=yes
4062 else
4063   ac_compiler_gnu=no
4064 fi
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4067
4068 fi
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4070 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4071 if test $ac_compiler_gnu = yes; then
4072   GCC=yes
4073 else
4074   GCC=
4075 fi
4076 ac_test_CFLAGS=${CFLAGS+set}
4077 ac_save_CFLAGS=$CFLAGS
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4079 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4080 if test "${ac_cv_prog_cc_g+set}" = set; then :
4081   $as_echo_n "(cached) " >&6
4082 else
4083   ac_save_c_werror_flag=$ac_c_werror_flag
4084    ac_c_werror_flag=yes
4085    ac_cv_prog_cc_g=no
4086    CFLAGS="-g"
4087    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h.  */
4089
4090 int
4091 main ()
4092 {
4093
4094   ;
4095   return 0;
4096 }
4097 _ACEOF
4098 if ac_fn_c_try_compile "$LINENO"; then :
4099   ac_cv_prog_cc_g=yes
4100 else
4101   CFLAGS=""
4102       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h.  */
4104
4105 int
4106 main ()
4107 {
4108
4109   ;
4110   return 0;
4111 }
4112 _ACEOF
4113 if ac_fn_c_try_compile "$LINENO"; then :
4114
4115 else
4116   ac_c_werror_flag=$ac_save_c_werror_flag
4117          CFLAGS="-g"
4118          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h.  */
4120
4121 int
4122 main ()
4123 {
4124
4125   ;
4126   return 0;
4127 }
4128 _ACEOF
4129 if ac_fn_c_try_compile "$LINENO"; then :
4130   ac_cv_prog_cc_g=yes
4131 fi
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 fi
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 fi
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137    ac_c_werror_flag=$ac_save_c_werror_flag
4138 fi
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4140 $as_echo "$ac_cv_prog_cc_g" >&6; }
4141 if test "$ac_test_CFLAGS" = set; then
4142   CFLAGS=$ac_save_CFLAGS
4143 elif test $ac_cv_prog_cc_g = yes; then
4144   if test "$GCC" = yes; then
4145     CFLAGS="-g -O2"
4146   else
4147     CFLAGS="-g"
4148   fi
4149 else
4150   if test "$GCC" = yes; then
4151     CFLAGS="-O2"
4152   else
4153     CFLAGS=
4154   fi
4155 fi
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4157 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4158 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4159   $as_echo_n "(cached) " >&6
4160 else
4161   ac_cv_prog_cc_c89=no
4162 ac_save_CC=$CC
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h.  */
4165 #include <stdarg.h>
4166 #include <stdio.h>
4167 #include <sys/types.h>
4168 #include <sys/stat.h>
4169 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4170 struct buf { int x; };
4171 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4172 static char *e (p, i)
4173      char **p;
4174      int i;
4175 {
4176   return p[i];
4177 }
4178 static char *f (char * (*g) (char **, int), char **p, ...)
4179 {
4180   char *s;
4181   va_list v;
4182   va_start (v,p);
4183   s = g (p, va_arg (v,int));
4184   va_end (v);
4185   return s;
4186 }
4187
4188 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4189    function prototypes and stuff, but not '\xHH' hex character constants.
4190    These don't provoke an error unfortunately, instead are silently treated
4191    as 'x'.  The following induces an error, until -std is added to get
4192    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4193    array size at least.  It's necessary to write '\x00'==0 to get something
4194    that's true only with -std.  */
4195 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4196
4197 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4198    inside strings and character constants.  */
4199 #define FOO(x) 'x'
4200 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4201
4202 int test (int i, double x);
4203 struct s1 {int (*f) (int a);};
4204 struct s2 {int (*f) (double a);};
4205 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4206 int argc;
4207 char **argv;
4208 int
4209 main ()
4210 {
4211 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4212   ;
4213   return 0;
4214 }
4215 _ACEOF
4216 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4217         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4218 do
4219   CC="$ac_save_CC $ac_arg"
4220   if ac_fn_c_try_compile "$LINENO"; then :
4221   ac_cv_prog_cc_c89=$ac_arg
4222 fi
4223 rm -f core conftest.err conftest.$ac_objext
4224   test "x$ac_cv_prog_cc_c89" != "xno" && break
4225 done
4226 rm -f conftest.$ac_ext
4227 CC=$ac_save_CC
4228
4229 fi
4230 # AC_CACHE_VAL
4231 case "x$ac_cv_prog_cc_c89" in
4232   x)
4233     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4234 $as_echo "none needed" >&6; } ;;
4235   xno)
4236     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4237 $as_echo "unsupported" >&6; } ;;
4238   *)
4239     CC="$CC $ac_cv_prog_cc_c89"
4240     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4241 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4242 esac
4243 if test "x$ac_cv_prog_cc_c89" != xno; then :
4244
4245 fi
4246
4247 ac_ext=c
4248 ac_cpp='$CPP $CPPFLAGS'
4249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4252
4253 if test "x$CC" != xcc; then
4254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4255 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4256 else
4257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4258 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4259 fi
4260 set dummy $CC; ac_cc=`$as_echo "$2" |
4261                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4262 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4263   $as_echo_n "(cached) " >&6
4264 else
4265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h.  */
4267
4268 int
4269 main ()
4270 {
4271
4272   ;
4273   return 0;
4274 }
4275 _ACEOF
4276 # Make sure it works both with $CC and with simple cc.
4277 # We do the test twice because some compilers refuse to overwrite an
4278 # existing .o file with -o, though they will create one.
4279 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4280 rm -f conftest2.*
4281 if { { case "(($ac_try" in
4282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283   *) ac_try_echo=$ac_try;;
4284 esac
4285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4286 $as_echo "$ac_try_echo"; } >&5
4287   (eval "$ac_try") 2>&5
4288   ac_status=$?
4289   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4290   test $ac_status = 0; } &&
4291    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293   *) ac_try_echo=$ac_try;;
4294 esac
4295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296 $as_echo "$ac_try_echo"; } >&5
4297   (eval "$ac_try") 2>&5
4298   ac_status=$?
4299   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300   test $ac_status = 0; };
4301 then
4302   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4303   if test "x$CC" != xcc; then
4304     # Test first that cc exists at all.
4305     if { ac_try='cc -c conftest.$ac_ext >&5'
4306   { { case "(($ac_try" in
4307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308   *) ac_try_echo=$ac_try;;
4309 esac
4310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4311 $as_echo "$ac_try_echo"; } >&5
4312   (eval "$ac_try") 2>&5
4313   ac_status=$?
4314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315   test $ac_status = 0; }; }; then
4316       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4317       rm -f conftest2.*
4318       if { { case "(($ac_try" in
4319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320   *) ac_try_echo=$ac_try;;
4321 esac
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324   (eval "$ac_try") 2>&5
4325   ac_status=$?
4326   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327   test $ac_status = 0; } &&
4328          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330   *) ac_try_echo=$ac_try;;
4331 esac
4332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333 $as_echo "$ac_try_echo"; } >&5
4334   (eval "$ac_try") 2>&5
4335   ac_status=$?
4336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337   test $ac_status = 0; };
4338       then
4339         # cc works too.
4340         :
4341       else
4342         # cc exists but doesn't like -o.
4343         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4344       fi
4345     fi
4346   fi
4347 else
4348   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4349 fi
4350 rm -f core conftest*
4351
4352 fi
4353 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4355 $as_echo "yes" >&6; }
4356 else
4357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4359
4360 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4361
4362 fi
4363
4364 # expand $ac_aux_dir to an absolute path
4365 am_aux_dir=`cd $ac_aux_dir && pwd`
4366
4367 # FIXME: we rely on the cache variable name because
4368 # there is no other way.
4369 set dummy $CC
4370 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4371 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4372 if test "$am_t" != yes; then
4373    # Losing compiler, so override with the script.
4374    # FIXME: It is wrong to rewrite CC.
4375    # But if we don't then we get into trouble of one sort or another.
4376    # A longer-term fix would be to have automake use am__CC in this case,
4377    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4378    CC="$am_aux_dir/compile $CC"
4379 fi
4380
4381
4382 ac_ext=cpp
4383 ac_cpp='$CXXCPP $CPPFLAGS'
4384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4387 if test -z "$CXX"; then
4388   if test -n "$CCC"; then
4389     CXX=$CCC
4390   else
4391     if test -n "$ac_tool_prefix"; then
4392   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4393   do
4394     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if test "${ac_cv_prog_CXX+set}" = set; then :
4399   $as_echo_n "(cached) " >&6
4400 else
4401   if test -n "$CXX"; then
4402   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4406 do
4407   IFS=$as_save_IFS
4408   test -z "$as_dir" && as_dir=.
4409     for ac_exec_ext in '' $ac_executable_extensions; do
4410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413     break 2
4414   fi
4415 done
4416   done
4417 IFS=$as_save_IFS
4418
4419 fi
4420 fi
4421 CXX=$ac_cv_prog_CXX
4422 if test -n "$CXX"; then
4423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4424 $as_echo "$CXX" >&6; }
4425 else
4426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4428 fi
4429
4430
4431     test -n "$CXX" && break
4432   done
4433 fi
4434 if test -z "$CXX"; then
4435   ac_ct_CXX=$CXX
4436   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4437 do
4438   # Extract the first word of "$ac_prog", so it can be a program name with args.
4439 set dummy $ac_prog; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4443   $as_echo_n "(cached) " >&6
4444 else
4445   if test -n "$ac_ct_CXX"; then
4446   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451   IFS=$as_save_IFS
4452   test -z "$as_dir" && as_dir=.
4453     for ac_exec_ext in '' $ac_executable_extensions; do
4454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455     ac_cv_prog_ac_ct_CXX="$ac_prog"
4456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457     break 2
4458   fi
4459 done
4460   done
4461 IFS=$as_save_IFS
4462
4463 fi
4464 fi
4465 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4466 if test -n "$ac_ct_CXX"; then
4467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4468 $as_echo "$ac_ct_CXX" >&6; }
4469 else
4470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4472 fi
4473
4474
4475   test -n "$ac_ct_CXX" && break
4476 done
4477
4478   if test "x$ac_ct_CXX" = x; then
4479     CXX="g++"
4480   else
4481     case $cross_compiling:$ac_tool_warned in
4482 yes:)
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485 ac_tool_warned=yes ;;
4486 esac
4487     CXX=$ac_ct_CXX
4488   fi
4489 fi
4490
4491   fi
4492 fi
4493 # Provide some information about the compiler.
4494 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4495 set X $ac_compile
4496 ac_compiler=$2
4497 for ac_option in --version -v -V -qversion; do
4498   { { ac_try="$ac_compiler $ac_option >&5"
4499 case "(($ac_try" in
4500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501   *) ac_try_echo=$ac_try;;
4502 esac
4503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504 $as_echo "$ac_try_echo"; } >&5
4505   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4506   ac_status=$?
4507   if test -s conftest.err; then
4508     sed '10a\
4509 ... rest of stderr output deleted ...
4510          10q' conftest.err >conftest.er1
4511     cat conftest.er1 >&5
4512     rm -f conftest.er1 conftest.err
4513   fi
4514   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515   test $ac_status = 0; }
4516 done
4517
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4519 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4520 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4521   $as_echo_n "(cached) " >&6
4522 else
4523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h.  */
4525
4526 int
4527 main ()
4528 {
4529 #ifndef __GNUC__
4530        choke me
4531 #endif
4532
4533   ;
4534   return 0;
4535 }
4536 _ACEOF
4537 if ac_fn_cxx_try_compile "$LINENO"; then :
4538   ac_compiler_gnu=yes
4539 else
4540   ac_compiler_gnu=no
4541 fi
4542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4543 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4544
4545 fi
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4547 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4548 if test $ac_compiler_gnu = yes; then
4549   GXX=yes
4550 else
4551   GXX=
4552 fi
4553 ac_test_CXXFLAGS=${CXXFLAGS+set}
4554 ac_save_CXXFLAGS=$CXXFLAGS
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4556 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4557 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4558   $as_echo_n "(cached) " >&6
4559 else
4560   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4561    ac_cxx_werror_flag=yes
4562    ac_cv_prog_cxx_g=no
4563    CXXFLAGS="-g"
4564    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h.  */
4566
4567 int
4568 main ()
4569 {
4570
4571   ;
4572   return 0;
4573 }
4574 _ACEOF
4575 if ac_fn_cxx_try_compile "$LINENO"; then :
4576   ac_cv_prog_cxx_g=yes
4577 else
4578   CXXFLAGS=""
4579       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h.  */
4581
4582 int
4583 main ()
4584 {
4585
4586   ;
4587   return 0;
4588 }
4589 _ACEOF
4590 if ac_fn_cxx_try_compile "$LINENO"; then :
4591
4592 else
4593   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4594          CXXFLAGS="-g"
4595          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h.  */
4597
4598 int
4599 main ()
4600 {
4601
4602   ;
4603   return 0;
4604 }
4605 _ACEOF
4606 if ac_fn_cxx_try_compile "$LINENO"; then :
4607   ac_cv_prog_cxx_g=yes
4608 fi
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 fi
4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 fi
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4615 fi
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4617 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4618 if test "$ac_test_CXXFLAGS" = set; then
4619   CXXFLAGS=$ac_save_CXXFLAGS
4620 elif test $ac_cv_prog_cxx_g = yes; then
4621   if test "$GXX" = yes; then
4622     CXXFLAGS="-g -O2"
4623   else
4624     CXXFLAGS="-g"
4625   fi
4626 else
4627   if test "$GXX" = yes; then
4628     CXXFLAGS="-O2"
4629   else
4630     CXXFLAGS=
4631   fi
4632 fi
4633 ac_ext=c
4634 ac_cpp='$CPP $CPPFLAGS'
4635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4638
4639
4640
4641
4642 if test -n "$ac_tool_prefix"; then
4643   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4644 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4648   $as_echo_n "(cached) " >&6
4649 else
4650   if test -n "$GNATBIND"; then
4651   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4655 do
4656   IFS=$as_save_IFS
4657   test -z "$as_dir" && as_dir=.
4658     for ac_exec_ext in '' $ac_executable_extensions; do
4659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662     break 2
4663   fi
4664 done
4665   done
4666 IFS=$as_save_IFS
4667
4668 fi
4669 fi
4670 GNATBIND=$ac_cv_prog_GNATBIND
4671 if test -n "$GNATBIND"; then
4672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4673 $as_echo "$GNATBIND" >&6; }
4674 else
4675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4677 fi
4678
4679
4680 fi
4681 if test -z "$ac_cv_prog_GNATBIND"; then
4682   ac_ct_GNATBIND=$GNATBIND
4683   # Extract the first word of "gnatbind", so it can be a program name with args.
4684 set dummy gnatbind; ac_word=$2
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 $as_echo_n "checking for $ac_word... " >&6; }
4687 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4688   $as_echo_n "(cached) " >&6
4689 else
4690   if test -n "$ac_ct_GNATBIND"; then
4691   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4692 else
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4695 do
4696   IFS=$as_save_IFS
4697   test -z "$as_dir" && as_dir=.
4698     for ac_exec_ext in '' $ac_executable_extensions; do
4699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702     break 2
4703   fi
4704 done
4705   done
4706 IFS=$as_save_IFS
4707
4708 fi
4709 fi
4710 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4711 if test -n "$ac_ct_GNATBIND"; then
4712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4713 $as_echo "$ac_ct_GNATBIND" >&6; }
4714 else
4715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4717 fi
4718
4719   if test "x$ac_ct_GNATBIND" = x; then
4720     GNATBIND="no"
4721   else
4722     case $cross_compiling:$ac_tool_warned in
4723 yes:)
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4726 ac_tool_warned=yes ;;
4727 esac
4728     GNATBIND=$ac_ct_GNATBIND
4729   fi
4730 else
4731   GNATBIND="$ac_cv_prog_GNATBIND"
4732 fi
4733
4734 if test -n "$ac_tool_prefix"; then
4735   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4736 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4740   $as_echo_n "(cached) " >&6
4741 else
4742   if test -n "$GNATMAKE"; then
4743   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4747 do
4748   IFS=$as_save_IFS
4749   test -z "$as_dir" && as_dir=.
4750     for ac_exec_ext in '' $ac_executable_extensions; do
4751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754     break 2
4755   fi
4756 done
4757   done
4758 IFS=$as_save_IFS
4759
4760 fi
4761 fi
4762 GNATMAKE=$ac_cv_prog_GNATMAKE
4763 if test -n "$GNATMAKE"; then
4764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4765 $as_echo "$GNATMAKE" >&6; }
4766 else
4767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4769 fi
4770
4771
4772 fi
4773 if test -z "$ac_cv_prog_GNATMAKE"; then
4774   ac_ct_GNATMAKE=$GNATMAKE
4775   # Extract the first word of "gnatmake", so it can be a program name with args.
4776 set dummy gnatmake; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4780   $as_echo_n "(cached) " >&6
4781 else
4782   if test -n "$ac_ct_GNATMAKE"; then
4783   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4787 do
4788   IFS=$as_save_IFS
4789   test -z "$as_dir" && as_dir=.
4790     for ac_exec_ext in '' $ac_executable_extensions; do
4791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794     break 2
4795   fi
4796 done
4797   done
4798 IFS=$as_save_IFS
4799
4800 fi
4801 fi
4802 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4803 if test -n "$ac_ct_GNATMAKE"; then
4804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4805 $as_echo "$ac_ct_GNATMAKE" >&6; }
4806 else
4807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4809 fi
4810
4811   if test "x$ac_ct_GNATMAKE" = x; then
4812     GNATMAKE="no"
4813   else
4814     case $cross_compiling:$ac_tool_warned in
4815 yes:)
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4818 ac_tool_warned=yes ;;
4819 esac
4820     GNATMAKE=$ac_ct_GNATMAKE
4821   fi
4822 else
4823   GNATMAKE="$ac_cv_prog_GNATMAKE"
4824 fi
4825
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4827 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4828 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4829   $as_echo_n "(cached) " >&6
4830 else
4831   cat >conftest.adb <<EOF
4832 procedure conftest is begin null; end conftest;
4833 EOF
4834 acx_cv_cc_gcc_supports_ada=no
4835 # There is a bug in old released versions of GCC which causes the
4836 # driver to exit successfully when the appropriate language module
4837 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4838 # Therefore we must check for the error message as well as an
4839 # unsuccessful exit.
4840 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4841 # given a .adb file, but produce no object file.  So we must check
4842 # if an object file was really produced to guard against this.
4843 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4844 if test x"$errors" = x && test -f conftest.$ac_objext; then
4845   acx_cv_cc_gcc_supports_ada=yes
4846 fi
4847 rm -f conftest.*
4848 fi
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4850 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4851
4852 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4853   have_gnat=yes
4854 else
4855   have_gnat=no
4856 fi
4857
4858
4859 # autoconf is lame and doesn't give us any substitution variable for this.
4860 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4861   NO_MINUS_C_MINUS_O=yes
4862 else
4863   OUTPUT_OPTION='-o $@'
4864 fi
4865
4866
4867
4868 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4869 # optimizations to be activated explicitly by the toplevel.
4870 case "$CC" in
4871   */prev-gcc/xgcc*) ;;
4872   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4873 esac
4874
4875
4876 # Determine PICFLAG for target gnatlib.
4877
4878
4879
4880
4881 case "${target}" in
4882     # PIC is the default on some targets or must not be used.
4883     *-*-darwin*)
4884         # PIC is the default on this platform
4885         # Common symbols not allowed in MH_DYLIB files
4886         PICFLAG_FOR_TARGET=-fno-common
4887         ;;
4888     alpha*-dec-osf5*)
4889         # PIC is the default.
4890         ;;
4891     hppa*64*-*-hpux*)
4892         # PIC is the default for 64-bit PA HP-UX.
4893         ;;
4894     i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4895         ;;
4896     i[34567]86-*-interix3*)
4897         # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4898         # Instead, we relocate shared libraries at runtime.
4899         ;;
4900     i[34567]86-*-nto-qnx*)
4901         # QNX uses GNU C++, but need to define -shared option too, otherwise
4902         # it will coredump.
4903         PICFLAG_FOR_TARGET='-fPIC -shared'
4904         ;;
4905     i[34567]86-pc-msdosdjgpp*)
4906         # DJGPP does not support shared libraries at all.
4907         ;;
4908     ia64*-*-hpux*)
4909         # On IA64 HP-UX, PIC is the default but the pic flag
4910         # sets the default TLS model and affects inlining.
4911         PICFLAG_FOR_TARGET=-fPIC
4912         ;;
4913     mips-sgi-irix6*)
4914         # PIC is the default.
4915         ;;
4916     rs6000-ibm-aix* | powerpc-ibm-aix*)
4917         # All AIX code is PIC.
4918         ;;
4919
4920     # Some targets support both -fPIC and -fpic, but prefer the latter.
4921     # FIXME: Why?
4922     i[34567]86-*-* | x86_64-*-*)
4923         PICFLAG_FOR_TARGET=-fpic
4924         ;;
4925     m68k-*-*)
4926         PICFLAG_FOR_TARGET=-fpic
4927         ;;
4928     s390*-*-*)
4929         PICFLAG_FOR_TARGET=-fpic
4930         ;;
4931     # FIXME: Override -fPIC default in libgcc only?
4932     sh-*-linux* | sh[2346lbe]*-*-linux*)
4933         PICFLAG_FOR_TARGET=-fpic
4934         ;;
4935     # FIXME: Simplify to sh*-*-netbsd*?
4936     sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4937       sh64-*-netbsd* | sh64l*-*-netbsd*)
4938         PICFLAG_FOR_TARGET=-fpic
4939         ;;
4940     # Default to -fPIC unless specified otherwise.
4941     *)
4942         PICFLAG_FOR_TARGET=-fPIC
4943         ;;
4944 esac
4945
4946 # If the user explicitly uses -fpic/-fPIC, keep that.
4947 case "${CFLAGS_FOR_TARGET}" in
4948     *-fpic*)
4949         PICFLAG_FOR_TARGET=-fpic
4950         ;;
4951     *-fPIC*)
4952         PICFLAG_FOR_TARGET=-fPIC
4953         ;;
4954 esac
4955
4956
4957
4958 # -------------------------
4959 # Check C compiler features
4960 # -------------------------
4961
4962
4963 ac_ext=c
4964 ac_cpp='$CPP $CPPFLAGS'
4965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4969 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4970 # On Suns, sometimes $CPP names a directory.
4971 if test -n "$CPP" && test -d "$CPP"; then
4972   CPP=
4973 fi
4974 if test -z "$CPP"; then
4975   if test "${ac_cv_prog_CPP+set}" = set; then :
4976   $as_echo_n "(cached) " >&6
4977 else
4978       # Double quotes because CPP needs to be expanded
4979     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4980     do
4981       ac_preproc_ok=false
4982 for ac_c_preproc_warn_flag in '' yes
4983 do
4984   # Use a header file that comes with gcc, so configuring glibc
4985   # with a fresh cross-compiler works.
4986   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4987   # <limits.h> exists even on freestanding compilers.
4988   # On the NeXT, cc -E runs the code through the compiler's parser,
4989   # not just through cpp. "Syntax error" is here to catch this case.
4990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h.  */
4992 #ifdef __STDC__
4993 # include <limits.h>
4994 #else
4995 # include <assert.h>
4996 #endif
4997                      Syntax error
4998 _ACEOF
4999 if ac_fn_c_try_cpp "$LINENO"; then :
5000
5001 else
5002   # Broken: fails on valid input.
5003 continue
5004 fi
5005 rm -f conftest.err conftest.$ac_ext
5006
5007   # OK, works on sane cases.  Now check whether nonexistent headers
5008   # can be detected and how.
5009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h.  */
5011 #include <ac_nonexistent.h>
5012 _ACEOF
5013 if ac_fn_c_try_cpp "$LINENO"; then :
5014   # Broken: success on invalid input.
5015 continue
5016 else
5017   # Passes both tests.
5018 ac_preproc_ok=:
5019 break
5020 fi
5021 rm -f conftest.err conftest.$ac_ext
5022
5023 done
5024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5025 rm -f conftest.err conftest.$ac_ext
5026 if $ac_preproc_ok; then :
5027   break
5028 fi
5029
5030     done
5031     ac_cv_prog_CPP=$CPP
5032
5033 fi
5034   CPP=$ac_cv_prog_CPP
5035 else
5036   ac_cv_prog_CPP=$CPP
5037 fi
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5039 $as_echo "$CPP" >&6; }
5040 ac_preproc_ok=false
5041 for ac_c_preproc_warn_flag in '' yes
5042 do
5043   # Use a header file that comes with gcc, so configuring glibc
5044   # with a fresh cross-compiler works.
5045   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5046   # <limits.h> exists even on freestanding compilers.
5047   # On the NeXT, cc -E runs the code through the compiler's parser,
5048   # not just through cpp. "Syntax error" is here to catch this case.
5049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h.  */
5051 #ifdef __STDC__
5052 # include <limits.h>
5053 #else
5054 # include <assert.h>
5055 #endif
5056                      Syntax error
5057 _ACEOF
5058 if ac_fn_c_try_cpp "$LINENO"; then :
5059
5060 else
5061   # Broken: fails on valid input.
5062 continue
5063 fi
5064 rm -f conftest.err conftest.$ac_ext
5065
5066   # OK, works on sane cases.  Now check whether nonexistent headers
5067   # can be detected and how.
5068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069 /* end confdefs.h.  */
5070 #include <ac_nonexistent.h>
5071 _ACEOF
5072 if ac_fn_c_try_cpp "$LINENO"; then :
5073   # Broken: success on invalid input.
5074 continue
5075 else
5076   # Passes both tests.
5077 ac_preproc_ok=:
5078 break
5079 fi
5080 rm -f conftest.err conftest.$ac_ext
5081
5082 done
5083 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5084 rm -f conftest.err conftest.$ac_ext
5085 if $ac_preproc_ok; then :
5086
5087 else
5088   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5090 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5091 See \`config.log' for more details." "$LINENO" 5; }
5092 fi
5093
5094 ac_ext=c
5095 ac_cpp='$CPP $CPPFLAGS'
5096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5099
5100
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5102 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5103 if test "${ac_cv_path_GREP+set}" = set; then :
5104   $as_echo_n "(cached) " >&6
5105 else
5106   if test -z "$GREP"; then
5107   ac_path_GREP_found=false
5108   # Loop through the user's path and test for each of PROGNAME-LIST
5109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5111 do
5112   IFS=$as_save_IFS
5113   test -z "$as_dir" && as_dir=.
5114     for ac_prog in grep ggrep; do
5115     for ac_exec_ext in '' $ac_executable_extensions; do
5116       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5117       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5118 # Check for GNU ac_path_GREP and select it if it is found.
5119   # Check for GNU $ac_path_GREP
5120 case `"$ac_path_GREP" --version 2>&1` in
5121 *GNU*)
5122   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5123 *)
5124   ac_count=0
5125   $as_echo_n 0123456789 >"conftest.in"
5126   while :
5127   do
5128     cat "conftest.in" "conftest.in" >"conftest.tmp"
5129     mv "conftest.tmp" "conftest.in"
5130     cp "conftest.in" "conftest.nl"
5131     $as_echo 'GREP' >> "conftest.nl"
5132     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5133     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5134     as_fn_arith $ac_count + 1 && ac_count=$as_val
5135     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5136       # Best one so far, save it but keep looking for a better one
5137       ac_cv_path_GREP="$ac_path_GREP"
5138       ac_path_GREP_max=$ac_count
5139     fi
5140     # 10*(2^10) chars as input seems more than enough
5141     test $ac_count -gt 10 && break
5142   done
5143   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5144 esac
5145
5146       $ac_path_GREP_found && break 3
5147     done
5148   done
5149   done
5150 IFS=$as_save_IFS
5151   if test -z "$ac_cv_path_GREP"; then
5152     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5153   fi
5154 else
5155   ac_cv_path_GREP=$GREP
5156 fi
5157
5158 fi
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5160 $as_echo "$ac_cv_path_GREP" >&6; }
5161  GREP="$ac_cv_path_GREP"
5162
5163
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5165 $as_echo_n "checking for egrep... " >&6; }
5166 if test "${ac_cv_path_EGREP+set}" = set; then :
5167   $as_echo_n "(cached) " >&6
5168 else
5169   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5170    then ac_cv_path_EGREP="$GREP -E"
5171    else
5172      if test -z "$EGREP"; then
5173   ac_path_EGREP_found=false
5174   # Loop through the user's path and test for each of PROGNAME-LIST
5175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5177 do
5178   IFS=$as_save_IFS
5179   test -z "$as_dir" && as_dir=.
5180     for ac_prog in egrep; do
5181     for ac_exec_ext in '' $ac_executable_extensions; do
5182       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5183       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5184 # Check for GNU ac_path_EGREP and select it if it is found.
5185   # Check for GNU $ac_path_EGREP
5186 case `"$ac_path_EGREP" --version 2>&1` in
5187 *GNU*)
5188   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5189 *)
5190   ac_count=0
5191   $as_echo_n 0123456789 >"conftest.in"
5192   while :
5193   do
5194     cat "conftest.in" "conftest.in" >"conftest.tmp"
5195     mv "conftest.tmp" "conftest.in"
5196     cp "conftest.in" "conftest.nl"
5197     $as_echo 'EGREP' >> "conftest.nl"
5198     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5199     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5200     as_fn_arith $ac_count + 1 && ac_count=$as_val
5201     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5202       # Best one so far, save it but keep looking for a better one
5203       ac_cv_path_EGREP="$ac_path_EGREP"
5204       ac_path_EGREP_max=$ac_count
5205     fi
5206     # 10*(2^10) chars as input seems more than enough
5207     test $ac_count -gt 10 && break
5208   done
5209   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5210 esac
5211
5212       $ac_path_EGREP_found && break 3
5213     done
5214   done
5215   done
5216 IFS=$as_save_IFS
5217   if test -z "$ac_cv_path_EGREP"; then
5218     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5219   fi
5220 else
5221   ac_cv_path_EGREP=$EGREP
5222 fi
5223
5224    fi
5225 fi
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5227 $as_echo "$ac_cv_path_EGREP" >&6; }
5228  EGREP="$ac_cv_path_EGREP"
5229
5230
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5232 $as_echo_n "checking for ANSI C header files... " >&6; }
5233 if test "${ac_cv_header_stdc+set}" = set; then :
5234   $as_echo_n "(cached) " >&6
5235 else
5236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h.  */
5238 #include <stdlib.h>
5239 #include <stdarg.h>
5240 #include <string.h>
5241 #include <float.h>
5242
5243 int
5244 main ()
5245 {
5246
5247   ;
5248   return 0;
5249 }
5250 _ACEOF
5251 if ac_fn_c_try_compile "$LINENO"; then :
5252   ac_cv_header_stdc=yes
5253 else
5254   ac_cv_header_stdc=no
5255 fi
5256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5257
5258 if test $ac_cv_header_stdc = yes; then
5259   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h.  */
5262 #include <string.h>
5263
5264 _ACEOF
5265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5266   $EGREP "memchr" >/dev/null 2>&1; then :
5267
5268 else
5269   ac_cv_header_stdc=no
5270 fi
5271 rm -f conftest*
5272
5273 fi
5274
5275 if test $ac_cv_header_stdc = yes; then
5276   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h.  */
5279 #include <stdlib.h>
5280
5281 _ACEOF
5282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5283   $EGREP "free" >/dev/null 2>&1; then :
5284
5285 else
5286   ac_cv_header_stdc=no
5287 fi
5288 rm -f conftest*
5289
5290 fi
5291
5292 if test $ac_cv_header_stdc = yes; then
5293   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5294   if test "$cross_compiling" = yes; then :
5295   :
5296 else
5297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h.  */
5299 #include <ctype.h>
5300 #include <stdlib.h>
5301 #if ((' ' & 0x0FF) == 0x020)
5302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5304 #else
5305 # define ISLOWER(c) \
5306                    (('a' <= (c) && (c) <= 'i') \
5307                      || ('j' <= (c) && (c) <= 'r') \
5308                      || ('s' <= (c) && (c) <= 'z'))
5309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5310 #endif
5311
5312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5313 int
5314 main ()
5315 {
5316   int i;
5317   for (i = 0; i < 256; i++)
5318     if (XOR (islower (i), ISLOWER (i))
5319         || toupper (i) != TOUPPER (i))
5320       return 2;
5321   return 0;
5322 }
5323 _ACEOF
5324 if ac_fn_c_try_run "$LINENO"; then :
5325
5326 else
5327   ac_cv_header_stdc=no
5328 fi
5329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5330   conftest.$ac_objext conftest.beam conftest.$ac_ext
5331 fi
5332
5333 fi
5334 fi
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5336 $as_echo "$ac_cv_header_stdc" >&6; }
5337 if test $ac_cv_header_stdc = yes; then
5338
5339 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5340
5341 fi
5342
5343 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5344 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5345                   inttypes.h stdint.h unistd.h
5346 do :
5347   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5348 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5349 "
5350 eval as_val=\$$as_ac_Header
5351    if test "x$as_val" = x""yes; then :
5352   cat >>confdefs.h <<_ACEOF
5353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5354 _ACEOF
5355
5356 fi
5357
5358 done
5359
5360
5361
5362   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5363 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5364   MINIX=yes
5365 else
5366   MINIX=
5367 fi
5368
5369
5370   if test "$MINIX" = yes; then
5371
5372 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5373
5374
5375 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5376
5377
5378 $as_echo "#define _MINIX 1" >>confdefs.h
5379
5380   fi
5381
5382
5383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5384 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5385 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5386   $as_echo_n "(cached) " >&6
5387 else
5388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h.  */
5390
5391 #         define __EXTENSIONS__ 1
5392           $ac_includes_default
5393 int
5394 main ()
5395 {
5396
5397   ;
5398   return 0;
5399 }
5400 _ACEOF
5401 if ac_fn_c_try_compile "$LINENO"; then :
5402   ac_cv_safe_to_define___extensions__=yes
5403 else
5404   ac_cv_safe_to_define___extensions__=no
5405 fi
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 fi
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5409 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5410   test $ac_cv_safe_to_define___extensions__ = yes &&
5411     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5412
5413   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5414
5415   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5416
5417   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5418
5419   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5420
5421
5422 ac_ext=c
5423 ac_cpp='$CPP $CPPFLAGS'
5424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5428 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5429 # On Suns, sometimes $CPP names a directory.
5430 if test -n "$CPP" && test -d "$CPP"; then
5431   CPP=
5432 fi
5433 if test -z "$CPP"; then
5434   if test "${ac_cv_prog_CPP+set}" = set; then :
5435   $as_echo_n "(cached) " >&6
5436 else
5437       # Double quotes because CPP needs to be expanded
5438     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5439     do
5440       ac_preproc_ok=false
5441 for ac_c_preproc_warn_flag in '' yes
5442 do
5443   # Use a header file that comes with gcc, so configuring glibc
5444   # with a fresh cross-compiler works.
5445   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5446   # <limits.h> exists even on freestanding compilers.
5447   # On the NeXT, cc -E runs the code through the compiler's parser,
5448   # not just through cpp. "Syntax error" is here to catch this case.
5449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450 /* end confdefs.h.  */
5451 #ifdef __STDC__
5452 # include <limits.h>
5453 #else
5454 # include <assert.h>
5455 #endif
5456                      Syntax error
5457 _ACEOF
5458 if ac_fn_c_try_cpp "$LINENO"; then :
5459
5460 else
5461   # Broken: fails on valid input.
5462 continue
5463 fi
5464 rm -f conftest.err conftest.$ac_ext
5465
5466   # OK, works on sane cases.  Now check whether nonexistent headers
5467   # can be detected and how.
5468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h.  */
5470 #include <ac_nonexistent.h>
5471 _ACEOF
5472 if ac_fn_c_try_cpp "$LINENO"; then :
5473   # Broken: success on invalid input.
5474 continue
5475 else
5476   # Passes both tests.
5477 ac_preproc_ok=:
5478 break
5479 fi
5480 rm -f conftest.err conftest.$ac_ext
5481
5482 done
5483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5484 rm -f conftest.err conftest.$ac_ext
5485 if $ac_preproc_ok; then :
5486   break
5487 fi
5488
5489     done
5490     ac_cv_prog_CPP=$CPP
5491
5492 fi
5493   CPP=$ac_cv_prog_CPP
5494 else
5495   ac_cv_prog_CPP=$CPP
5496 fi
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5498 $as_echo "$CPP" >&6; }
5499 ac_preproc_ok=false
5500 for ac_c_preproc_warn_flag in '' yes
5501 do
5502   # Use a header file that comes with gcc, so configuring glibc
5503   # with a fresh cross-compiler works.
5504   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5505   # <limits.h> exists even on freestanding compilers.
5506   # On the NeXT, cc -E runs the code through the compiler's parser,
5507   # not just through cpp. "Syntax error" is here to catch this case.
5508   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h.  */
5510 #ifdef __STDC__
5511 # include <limits.h>
5512 #else
5513 # include <assert.h>
5514 #endif
5515                      Syntax error
5516 _ACEOF
5517 if ac_fn_c_try_cpp "$LINENO"; then :
5518
5519 else
5520   # Broken: fails on valid input.
5521 continue
5522 fi
5523 rm -f conftest.err conftest.$ac_ext
5524
5525   # OK, works on sane cases.  Now check whether nonexistent headers
5526   # can be detected and how.
5527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h.  */
5529 #include <ac_nonexistent.h>
5530 _ACEOF
5531 if ac_fn_c_try_cpp "$LINENO"; then :
5532   # Broken: success on invalid input.
5533 continue
5534 else
5535   # Passes both tests.
5536 ac_preproc_ok=:
5537 break
5538 fi
5539 rm -f conftest.err conftest.$ac_ext
5540
5541 done
5542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5543 rm -f conftest.err conftest.$ac_ext
5544 if $ac_preproc_ok; then :
5545
5546 else
5547   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5549 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5550 See \`config.log' for more details." "$LINENO" 5; }
5551 fi
5552
5553 ac_ext=c
5554 ac_cpp='$CPP $CPPFLAGS'
5555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5558
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5560 $as_echo_n "checking for inline... " >&6; }
5561 if test "${ac_cv_c_inline+set}" = set; then :
5562   $as_echo_n "(cached) " >&6
5563 else
5564   ac_cv_c_inline=no
5565 for ac_kw in inline __inline__ __inline; do
5566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h.  */
5568 #ifndef __cplusplus
5569 typedef int foo_t;
5570 static $ac_kw foo_t static_foo () {return 0; }
5571 $ac_kw foo_t foo () {return 0; }
5572 #endif
5573
5574 _ACEOF
5575 if ac_fn_c_try_compile "$LINENO"; then :
5576   ac_cv_c_inline=$ac_kw
5577 fi
5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579   test "$ac_cv_c_inline" != no && break
5580 done
5581
5582 fi
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5584 $as_echo "$ac_cv_c_inline" >&6; }
5585
5586 case $ac_cv_c_inline in
5587   inline | yes) ;;
5588   *)
5589     case $ac_cv_c_inline in
5590       no) ac_val=;;
5591       *) ac_val=$ac_cv_c_inline;;
5592     esac
5593     cat >>confdefs.h <<_ACEOF
5594 #ifndef __cplusplus
5595 #define inline $ac_val
5596 #endif
5597 _ACEOF
5598     ;;
5599 esac
5600
5601
5602 # Check whether --enable-largefile was given.
5603 if test "${enable_largefile+set}" = set; then :
5604   enableval=$enable_largefile;
5605 fi
5606
5607 if test "$enable_largefile" != no; then
5608
5609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5610 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5611 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5612   $as_echo_n "(cached) " >&6
5613 else
5614   ac_cv_sys_largefile_CC=no
5615      if test "$GCC" != yes; then
5616        ac_save_CC=$CC
5617        while :; do
5618          # IRIX 6.2 and later do not support large files by default,
5619          # so use the C compiler's -n32 option if that helps.
5620          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h.  */
5622 #include <sys/types.h>
5623  /* Check that off_t can represent 2**63 - 1 correctly.
5624     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5625     since some C++ compilers masquerading as C compilers
5626     incorrectly reject 9223372036854775807.  */
5627 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5628   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5629                        && LARGE_OFF_T % 2147483647 == 1)
5630                       ? 1 : -1];
5631 int
5632 main ()
5633 {
5634
5635   ;
5636   return 0;
5637 }
5638 _ACEOF
5639          if ac_fn_c_try_compile "$LINENO"; then :
5640   break
5641 fi
5642 rm -f core conftest.err conftest.$ac_objext
5643          CC="$CC -n32"
5644          if ac_fn_c_try_compile "$LINENO"; then :
5645   ac_cv_sys_largefile_CC=' -n32'; break
5646 fi
5647 rm -f core conftest.err conftest.$ac_objext
5648          break
5649        done
5650        CC=$ac_save_CC
5651        rm -f conftest.$ac_ext
5652     fi
5653 fi
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5655 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5656   if test "$ac_cv_sys_largefile_CC" != no; then
5657     CC=$CC$ac_cv_sys_largefile_CC
5658   fi
5659
5660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5661 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5662 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5663   $as_echo_n "(cached) " >&6
5664 else
5665   while :; do
5666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h.  */
5668 #include <sys/types.h>
5669  /* Check that off_t can represent 2**63 - 1 correctly.
5670     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5671     since some C++ compilers masquerading as C compilers
5672     incorrectly reject 9223372036854775807.  */
5673 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5674   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5675                        && LARGE_OFF_T % 2147483647 == 1)
5676                       ? 1 : -1];
5677 int
5678 main ()
5679 {
5680
5681   ;
5682   return 0;
5683 }
5684 _ACEOF
5685 if ac_fn_c_try_compile "$LINENO"; then :
5686   ac_cv_sys_file_offset_bits=no; break
5687 fi
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h.  */
5691 #define _FILE_OFFSET_BITS 64
5692 #include <sys/types.h>
5693  /* Check that off_t can represent 2**63 - 1 correctly.
5694     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5695     since some C++ compilers masquerading as C compilers
5696     incorrectly reject 9223372036854775807.  */
5697 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5698   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5699                        && LARGE_OFF_T % 2147483647 == 1)
5700                       ? 1 : -1];
5701 int
5702 main ()
5703 {
5704
5705   ;
5706   return 0;
5707 }
5708 _ACEOF
5709 if ac_fn_c_try_compile "$LINENO"; then :
5710   ac_cv_sys_file_offset_bits=64; break
5711 fi
5712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5713   ac_cv_sys_file_offset_bits=unknown
5714   break
5715 done
5716 fi
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5718 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5719 case $ac_cv_sys_file_offset_bits in #(
5720   no | unknown) ;;
5721   *)
5722 cat >>confdefs.h <<_ACEOF
5723 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5724 _ACEOF
5725 ;;
5726 esac
5727 rm -rf conftest*
5728   if test $ac_cv_sys_file_offset_bits = unknown; then
5729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5730 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5731 if test "${ac_cv_sys_large_files+set}" = set; then :
5732   $as_echo_n "(cached) " >&6
5733 else
5734   while :; do
5735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736 /* end confdefs.h.  */
5737 #include <sys/types.h>
5738  /* Check that off_t can represent 2**63 - 1 correctly.
5739     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5740     since some C++ compilers masquerading as C compilers
5741     incorrectly reject 9223372036854775807.  */
5742 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5743   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5744                        && LARGE_OFF_T % 2147483647 == 1)
5745                       ? 1 : -1];
5746 int
5747 main ()
5748 {
5749
5750   ;
5751   return 0;
5752 }
5753 _ACEOF
5754 if ac_fn_c_try_compile "$LINENO"; then :
5755   ac_cv_sys_large_files=no; break
5756 fi
5757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h.  */
5760 #define _LARGE_FILES 1
5761 #include <sys/types.h>
5762  /* Check that off_t can represent 2**63 - 1 correctly.
5763     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5764     since some C++ compilers masquerading as C compilers
5765     incorrectly reject 9223372036854775807.  */
5766 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5767   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5768                        && LARGE_OFF_T % 2147483647 == 1)
5769                       ? 1 : -1];
5770 int
5771 main ()
5772 {
5773
5774   ;
5775   return 0;
5776 }
5777 _ACEOF
5778 if ac_fn_c_try_compile "$LINENO"; then :
5779   ac_cv_sys_large_files=1; break
5780 fi
5781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782   ac_cv_sys_large_files=unknown
5783   break
5784 done
5785 fi
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5787 $as_echo "$ac_cv_sys_large_files" >&6; }
5788 case $ac_cv_sys_large_files in #(
5789   no | unknown) ;;
5790   *)
5791 cat >>confdefs.h <<_ACEOF
5792 #define _LARGE_FILES $ac_cv_sys_large_files
5793 _ACEOF
5794 ;;
5795 esac
5796 rm -rf conftest*
5797   fi
5798 fi
5799
5800
5801 # sizeof(char) is 1 by definition.
5802 # The cast to long int works around a bug in the HP C Compiler
5803 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5804 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5805 # This bug is HP SR number 8606223364.
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5807 $as_echo_n "checking size of void *... " >&6; }
5808 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5809   $as_echo_n "(cached) " >&6
5810 else
5811   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5812
5813 else
5814   if test "$ac_cv_type_void_p" = yes; then
5815      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5817 { as_fn_set_status 77
5818 as_fn_error "cannot compute sizeof (void *)
5819 See \`config.log' for more details." "$LINENO" 5; }; }
5820    else
5821      ac_cv_sizeof_void_p=0
5822    fi
5823 fi
5824
5825 fi
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5827 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5828
5829
5830
5831 cat >>confdefs.h <<_ACEOF
5832 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5833 _ACEOF
5834
5835
5836 # The cast to long int works around a bug in the HP C Compiler
5837 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5838 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5839 # This bug is HP SR number 8606223364.
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5841 $as_echo_n "checking size of short... " >&6; }
5842 if test "${ac_cv_sizeof_short+set}" = set; then :
5843   $as_echo_n "(cached) " >&6
5844 else
5845   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5846
5847 else
5848   if test "$ac_cv_type_short" = yes; then
5849      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5851 { as_fn_set_status 77
5852 as_fn_error "cannot compute sizeof (short)
5853 See \`config.log' for more details." "$LINENO" 5; }; }
5854    else
5855      ac_cv_sizeof_short=0
5856    fi
5857 fi
5858
5859 fi
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5861 $as_echo "$ac_cv_sizeof_short" >&6; }
5862
5863
5864
5865 cat >>confdefs.h <<_ACEOF
5866 #define SIZEOF_SHORT $ac_cv_sizeof_short
5867 _ACEOF
5868
5869
5870 # The cast to long int works around a bug in the HP C Compiler
5871 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5872 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5873 # This bug is HP SR number 8606223364.
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5875 $as_echo_n "checking size of int... " >&6; }
5876 if test "${ac_cv_sizeof_int+set}" = set; then :
5877   $as_echo_n "(cached) " >&6
5878 else
5879   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5880
5881 else
5882   if test "$ac_cv_type_int" = yes; then
5883      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5885 { as_fn_set_status 77
5886 as_fn_error "cannot compute sizeof (int)
5887 See \`config.log' for more details." "$LINENO" 5; }; }
5888    else
5889      ac_cv_sizeof_int=0
5890    fi
5891 fi
5892
5893 fi
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5895 $as_echo "$ac_cv_sizeof_int" >&6; }
5896
5897
5898
5899 cat >>confdefs.h <<_ACEOF
5900 #define SIZEOF_INT $ac_cv_sizeof_int
5901 _ACEOF
5902
5903
5904 # The cast to long int works around a bug in the HP C Compiler
5905 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5906 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5907 # This bug is HP SR number 8606223364.
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5909 $as_echo_n "checking size of long... " >&6; }
5910 if test "${ac_cv_sizeof_long+set}" = set; then :
5911   $as_echo_n "(cached) " >&6
5912 else
5913   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5914
5915 else
5916   if test "$ac_cv_type_long" = yes; then
5917      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5919 { as_fn_set_status 77
5920 as_fn_error "cannot compute sizeof (long)
5921 See \`config.log' for more details." "$LINENO" 5; }; }
5922    else
5923      ac_cv_sizeof_long=0
5924    fi
5925 fi
5926
5927 fi
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5929 $as_echo "$ac_cv_sizeof_long" >&6; }
5930
5931
5932
5933 cat >>confdefs.h <<_ACEOF
5934 #define SIZEOF_LONG $ac_cv_sizeof_long
5935 _ACEOF
5936
5937
5938 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5939 if test "x$ac_cv_type_long_long" = x""yes; then :
5940
5941 cat >>confdefs.h <<_ACEOF
5942 #define HAVE_LONG_LONG 1
5943 _ACEOF
5944
5945 # The cast to long int works around a bug in the HP C Compiler
5946 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5947 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5948 # This bug is HP SR number 8606223364.
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5950 $as_echo_n "checking size of long long... " >&6; }
5951 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5952   $as_echo_n "(cached) " >&6
5953 else
5954   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5955
5956 else
5957   if test "$ac_cv_type_long_long" = yes; then
5958      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5960 { as_fn_set_status 77
5961 as_fn_error "cannot compute sizeof (long long)
5962 See \`config.log' for more details." "$LINENO" 5; }; }
5963    else
5964      ac_cv_sizeof_long_long=0
5965    fi
5966 fi
5967
5968 fi
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5970 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5971
5972
5973
5974 cat >>confdefs.h <<_ACEOF
5975 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5976 _ACEOF
5977
5978
5979 fi
5980
5981 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5982 if test "x$ac_cv_type___int64" = x""yes; then :
5983
5984 cat >>confdefs.h <<_ACEOF
5985 #define HAVE___INT64 1
5986 _ACEOF
5987
5988 # The cast to long int works around a bug in the HP C Compiler
5989 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5990 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5991 # This bug is HP SR number 8606223364.
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5993 $as_echo_n "checking size of __int64... " >&6; }
5994 if test "${ac_cv_sizeof___int64+set}" = set; then :
5995   $as_echo_n "(cached) " >&6
5996 else
5997   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5998
5999 else
6000   if test "$ac_cv_type___int64" = yes; then
6001      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6003 { as_fn_set_status 77
6004 as_fn_error "cannot compute sizeof (__int64)
6005 See \`config.log' for more details." "$LINENO" 5; }; }
6006    else
6007      ac_cv_sizeof___int64=0
6008    fi
6009 fi
6010
6011 fi
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6013 $as_echo "$ac_cv_sizeof___int64" >&6; }
6014
6015
6016
6017 cat >>confdefs.h <<_ACEOF
6018 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6019 _ACEOF
6020
6021
6022 fi
6023
6024 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6025 case $ac_cv_c_int8_t in #(
6026   no|yes) ;; #(
6027   *)
6028
6029 cat >>confdefs.h <<_ACEOF
6030 #define int8_t $ac_cv_c_int8_t
6031 _ACEOF
6032 ;;
6033 esac
6034
6035 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6036 case $ac_cv_c_int16_t in #(
6037   no|yes) ;; #(
6038   *)
6039
6040 cat >>confdefs.h <<_ACEOF
6041 #define int16_t $ac_cv_c_int16_t
6042 _ACEOF
6043 ;;
6044 esac
6045
6046 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6047 case $ac_cv_c_int32_t in #(
6048   no|yes) ;; #(
6049   *)
6050
6051 cat >>confdefs.h <<_ACEOF
6052 #define int32_t $ac_cv_c_int32_t
6053 _ACEOF
6054 ;;
6055 esac
6056
6057 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6058 case $ac_cv_c_int64_t in #(
6059   no|yes) ;; #(
6060   *)
6061
6062 cat >>confdefs.h <<_ACEOF
6063 #define int64_t $ac_cv_c_int64_t
6064 _ACEOF
6065 ;;
6066 esac
6067
6068
6069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6070 $as_echo_n "checking for long long int... " >&6; }
6071 if test "${ac_cv_type_long_long_int+set}" = set; then :
6072   $as_echo_n "(cached) " >&6
6073 else
6074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h.  */
6076
6077   /* For now, do not test the preprocessor; as of 2007 there are too many
6078          implementations with broken preprocessors.  Perhaps this can
6079          be revisited in 2012.  In the meantime, code should not expect
6080          #if to work with literals wider than 32 bits.  */
6081       /* Test literals.  */
6082       long long int ll = 9223372036854775807ll;
6083       long long int nll = -9223372036854775807LL;
6084       unsigned long long int ull = 18446744073709551615ULL;
6085       /* Test constant expressions.   */
6086       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6087                      ? 1 : -1)];
6088       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6089                      ? 1 : -1)];
6090       int i = 63;
6091 int
6092 main ()
6093 {
6094 /* Test availability of runtime routines for shift and division.  */
6095       long long int llmax = 9223372036854775807ll;
6096       unsigned long long int ullmax = 18446744073709551615ull;
6097       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6098               | (llmax / ll) | (llmax % ll)
6099               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6100               | (ullmax / ull) | (ullmax % ull));
6101   ;
6102   return 0;
6103 }
6104
6105 _ACEOF
6106 if ac_fn_c_try_link "$LINENO"; then :
6107                         if test "$cross_compiling" = yes; then :
6108   ac_cv_type_long_long_int=yes
6109 else
6110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h.  */
6112 #include <limits.h>
6113                #ifndef LLONG_MAX
6114                # define HALF \
6115                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6116                # define LLONG_MAX (HALF - 1 + HALF)
6117                #endif
6118 int
6119 main ()
6120 {
6121 long long int n = 1;
6122                int i;
6123                for (i = 0; ; i++)
6124                  {
6125                    long long int m = n << i;
6126                    if (m >> i != n)
6127                      return 1;
6128                    if (LLONG_MAX / 2 < m)
6129                      break;
6130                  }
6131                return 0;
6132   ;
6133   return 0;
6134 }
6135 _ACEOF
6136 if ac_fn_c_try_run "$LINENO"; then :
6137   ac_cv_type_long_long_int=yes
6138 else
6139   ac_cv_type_long_long_int=no
6140 fi
6141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6142   conftest.$ac_objext conftest.beam conftest.$ac_ext
6143 fi
6144
6145 else
6146   ac_cv_type_long_long_int=no
6147 fi
6148 rm -f core conftest.err conftest.$ac_objext \
6149     conftest$ac_exeext conftest.$ac_ext
6150 fi
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6152 $as_echo "$ac_cv_type_long_long_int" >&6; }
6153   if test $ac_cv_type_long_long_int = yes; then
6154
6155 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6156
6157   fi
6158
6159
6160
6161   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6162 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6163
6164 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6165
6166 else
6167   test $ac_cv_type_long_long_int = yes \
6168        && ac_type='long long int' \
6169        || ac_type='long int'
6170
6171 cat >>confdefs.h <<_ACEOF
6172 #define intmax_t $ac_type
6173 _ACEOF
6174
6175 fi
6176
6177
6178
6179   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6180 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6181
6182 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6183
6184 else
6185   for ac_type in 'int' 'long int' 'long long int'; do
6186        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h.  */
6188 $ac_includes_default
6189 int
6190 main ()
6191 {
6192 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6193 test_array [0] = 0
6194
6195   ;
6196   return 0;
6197 }
6198 _ACEOF
6199 if ac_fn_c_try_compile "$LINENO"; then :
6200
6201 cat >>confdefs.h <<_ACEOF
6202 #define intptr_t $ac_type
6203 _ACEOF
6204
6205           ac_type=
6206 fi
6207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6208        test -z "$ac_type" && break
6209      done
6210 fi
6211
6212
6213 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6214 case $ac_cv_c_uint8_t in #(
6215   no|yes) ;; #(
6216   *)
6217
6218 $as_echo "#define _UINT8_T 1" >>confdefs.h
6219
6220
6221 cat >>confdefs.h <<_ACEOF
6222 #define uint8_t $ac_cv_c_uint8_t
6223 _ACEOF
6224 ;;
6225   esac
6226
6227 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6228 case $ac_cv_c_uint16_t in #(
6229   no|yes) ;; #(
6230   *)
6231
6232
6233 cat >>confdefs.h <<_ACEOF
6234 #define uint16_t $ac_cv_c_uint16_t
6235 _ACEOF
6236 ;;
6237   esac
6238
6239 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6240 case $ac_cv_c_uint32_t in #(
6241   no|yes) ;; #(
6242   *)
6243
6244 $as_echo "#define _UINT32_T 1" >>confdefs.h
6245
6246
6247 cat >>confdefs.h <<_ACEOF
6248 #define uint32_t $ac_cv_c_uint32_t
6249 _ACEOF
6250 ;;
6251   esac
6252
6253 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6254 case $ac_cv_c_uint64_t in #(
6255   no|yes) ;; #(
6256   *)
6257
6258 $as_echo "#define _UINT64_T 1" >>confdefs.h
6259
6260
6261 cat >>confdefs.h <<_ACEOF
6262 #define uint64_t $ac_cv_c_uint64_t
6263 _ACEOF
6264 ;;
6265   esac
6266
6267
6268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6269 $as_echo_n "checking for unsigned long long int... " >&6; }
6270 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6271   $as_echo_n "(cached) " >&6
6272 else
6273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h.  */
6275
6276   /* For now, do not test the preprocessor; as of 2007 there are too many
6277          implementations with broken preprocessors.  Perhaps this can
6278          be revisited in 2012.  In the meantime, code should not expect
6279          #if to work with literals wider than 32 bits.  */
6280       /* Test literals.  */
6281       long long int ll = 9223372036854775807ll;
6282       long long int nll = -9223372036854775807LL;
6283       unsigned long long int ull = 18446744073709551615ULL;
6284       /* Test constant expressions.   */
6285       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6286                      ? 1 : -1)];
6287       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6288                      ? 1 : -1)];
6289       int i = 63;
6290 int
6291 main ()
6292 {
6293 /* Test availability of runtime routines for shift and division.  */
6294       long long int llmax = 9223372036854775807ll;
6295       unsigned long long int ullmax = 18446744073709551615ull;
6296       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6297               | (llmax / ll) | (llmax % ll)
6298               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6299               | (ullmax / ull) | (ullmax % ull));
6300   ;
6301   return 0;
6302 }
6303
6304 _ACEOF
6305 if ac_fn_c_try_link "$LINENO"; then :
6306   ac_cv_type_unsigned_long_long_int=yes
6307 else
6308   ac_cv_type_unsigned_long_long_int=no
6309 fi
6310 rm -f core conftest.err conftest.$ac_objext \
6311     conftest$ac_exeext conftest.$ac_ext
6312 fi
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6314 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6315   if test $ac_cv_type_unsigned_long_long_int = yes; then
6316
6317 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6318
6319   fi
6320
6321
6322
6323   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6324 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6325
6326 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6327
6328 else
6329   test $ac_cv_type_unsigned_long_long_int = yes \
6330        && ac_type='unsigned long long int' \
6331        || ac_type='unsigned long int'
6332
6333 cat >>confdefs.h <<_ACEOF
6334 #define uintmax_t $ac_type
6335 _ACEOF
6336
6337 fi
6338
6339
6340
6341   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6342 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6343
6344 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6345
6346 else
6347   for ac_type in 'unsigned int' 'unsigned long int' \
6348         'unsigned long long int'; do
6349        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h.  */
6351 $ac_includes_default
6352 int
6353 main ()
6354 {
6355 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6356 test_array [0] = 0
6357
6358   ;
6359   return 0;
6360 }
6361 _ACEOF
6362 if ac_fn_c_try_compile "$LINENO"; then :
6363
6364 cat >>confdefs.h <<_ACEOF
6365 #define uintptr_t $ac_type
6366 _ACEOF
6367
6368           ac_type=
6369 fi
6370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6371        test -z "$ac_type" && break
6372      done
6373 fi
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389 # ---------------------
6390 # Warnings and checking
6391 # ---------------------
6392
6393 # Check $CC warning features (if it's GCC).
6394 # We want to use -pedantic, but we don't want warnings about
6395 # * 'long long'
6396 # * variadic macros
6397 # * overlong strings
6398 # * C++11 narrowing conversions in { }
6399 # So, we only use -pedantic if we can disable those warnings.
6400
6401 loose_warn=
6402 save_CFLAGS="$CFLAGS"
6403 for option in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual; do
6404   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6405
6406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6407 $as_echo_n "checking whether $CC supports $option... " >&6; }
6408 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6409   $as_echo_n "(cached) " >&6
6410 else
6411   CFLAGS="$option"
6412     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413 /* end confdefs.h.  */
6414
6415 int
6416 main ()
6417 {
6418
6419   ;
6420   return 0;
6421 }
6422 _ACEOF
6423 if ac_fn_c_try_compile "$LINENO"; then :
6424   eval "$as_acx_Woption=yes"
6425 else
6426   eval "$as_acx_Woption=no"
6427 fi
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429
6430 fi
6431 eval ac_res=\$$as_acx_Woption
6432                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6433 $as_echo "$ac_res" >&6; }
6434   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6435   loose_warn="$loose_warn${loose_warn:+ }$option"
6436 fi
6437   done
6438 CFLAGS="$save_CFLAGS"
6439
6440 c_loose_warn=
6441 save_CFLAGS="$CFLAGS"
6442 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6443   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6444
6445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6446 $as_echo_n "checking whether $CC supports $option... " >&6; }
6447 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6448   $as_echo_n "(cached) " >&6
6449 else
6450   CFLAGS="$option"
6451     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h.  */
6453
6454 int
6455 main ()
6456 {
6457
6458   ;
6459   return 0;
6460 }
6461 _ACEOF
6462 if ac_fn_c_try_compile "$LINENO"; then :
6463   eval "$as_acx_Woption=yes"
6464 else
6465   eval "$as_acx_Woption=no"
6466 fi
6467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6468
6469 fi
6470 eval ac_res=\$$as_acx_Woption
6471                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6472 $as_echo "$ac_res" >&6; }
6473   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6474   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6475 fi
6476   done
6477 CFLAGS="$save_CFLAGS"
6478
6479 strict_warn=
6480 save_CFLAGS="$CFLAGS"
6481 for option in -Wmissing-format-attribute; do
6482   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6483
6484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6485 $as_echo_n "checking whether $CC supports $option... " >&6; }
6486 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6487   $as_echo_n "(cached) " >&6
6488 else
6489   CFLAGS="$option"
6490     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h.  */
6492
6493 int
6494 main ()
6495 {
6496
6497   ;
6498   return 0;
6499 }
6500 _ACEOF
6501 if ac_fn_c_try_compile "$LINENO"; then :
6502   eval "$as_acx_Woption=yes"
6503 else
6504   eval "$as_acx_Woption=no"
6505 fi
6506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507
6508 fi
6509 eval ac_res=\$$as_acx_Woption
6510                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6511 $as_echo "$ac_res" >&6; }
6512   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6513   strict_warn="$strict_warn${strict_warn:+ }$option"
6514 fi
6515   done
6516 CFLAGS="$save_CFLAGS"
6517
6518 c_strict_warn=
6519 save_CFLAGS="$CFLAGS"
6520 for option in -Wold-style-definition -Wc++-compat; do
6521   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6522
6523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6524 $as_echo_n "checking whether $CC supports $option... " >&6; }
6525 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6526   $as_echo_n "(cached) " >&6
6527 else
6528   CFLAGS="$option"
6529     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h.  */
6531
6532 int
6533 main ()
6534 {
6535
6536   ;
6537   return 0;
6538 }
6539 _ACEOF
6540 if ac_fn_c_try_compile "$LINENO"; then :
6541   eval "$as_acx_Woption=yes"
6542 else
6543   eval "$as_acx_Woption=no"
6544 fi
6545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546
6547 fi
6548 eval ac_res=\$$as_acx_Woption
6549                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6550 $as_echo "$ac_res" >&6; }
6551   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6552   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6553 fi
6554   done
6555 CFLAGS="$save_CFLAGS"
6556
6557 if test "$GCC" = yes; then :
6558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6559 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6560 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6561   $as_echo_n "(cached) " >&6
6562 else
6563   save_CFLAGS="$CFLAGS"
6564 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h.  */
6567
6568 int
6569 main ()
6570 {
6571
6572   ;
6573   return 0;
6574 }
6575 _ACEOF
6576 if ac_fn_c_try_compile "$LINENO"; then :
6577   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6578 else
6579   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6580 fi
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 CFLAGS="$save_CFLAGS"
6583 fi
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6585 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6586 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6587   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6588 fi
6589
6590 fi
6591
6592 # Check whether --enable-werror-always was given.
6593 if test "${enable_werror_always+set}" = set; then :
6594   enableval=$enable_werror_always;
6595 else
6596   enable_werror_always=no
6597 fi
6598
6599 if test $enable_werror_always = yes; then :
6600   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6601 fi
6602
6603
6604
6605 # The above macros do nothing if the compiler is not GCC.  However, the
6606 # Makefile has more goo to add other flags, so these variables are used
6607 # to enable warnings only for GCC.
6608 warn_cflags=
6609 warn_cxxflags=
6610 if test "x$GCC" = "xyes"; then
6611   warn_cflags='$(GCC_WARN_CFLAGS)'
6612   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6613 fi
6614
6615
6616
6617 # Disable exceptions and RTTI if building with g++
6618 noexception_flags=
6619 save_CFLAGS="$CFLAGS"
6620 for option in -fno-exceptions -fno-rtti; do
6621   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6622
6623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6624 $as_echo_n "checking whether $CC supports $option... " >&6; }
6625 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6626   $as_echo_n "(cached) " >&6
6627 else
6628   CFLAGS="$option"
6629     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630 /* end confdefs.h.  */
6631
6632 int
6633 main ()
6634 {
6635
6636   ;
6637   return 0;
6638 }
6639 _ACEOF
6640 if ac_fn_c_try_compile "$LINENO"; then :
6641   eval "$as_acx_Woption=yes"
6642 else
6643   eval "$as_acx_Woption=no"
6644 fi
6645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6646
6647 fi
6648 eval ac_res=\$$as_acx_Woption
6649                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6650 $as_echo "$ac_res" >&6; }
6651   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6652   noexception_flags="$noexception_flags${noexception_flags:+ }$option"
6653 fi
6654   done
6655 CFLAGS="$save_CFLAGS"
6656
6657
6658 # Enable expensive internal checks
6659 is_release=
6660 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6661   is_release=yes
6662 fi
6663
6664 # Check whether --enable-checking was given.
6665 if test "${enable_checking+set}" = set; then :
6666   enableval=$enable_checking; ac_checking_flags="${enableval}"
6667 else
6668
6669 # Determine the default checks.
6670 if test x$is_release = x ; then
6671   ac_checking_flags=yes
6672 else
6673   ac_checking_flags=release
6674 fi
6675 fi
6676
6677 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6678 for check in release $ac_checking_flags
6679 do
6680         case $check in
6681         # these set all the flags to specific states
6682         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6683                         ac_fold_checking= ; ac_gc_checking=1 ;
6684                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6685                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6686                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6687                         ac_types_checking=1 ;;
6688         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6689                         ac_fold_checking= ; ac_gc_checking= ;
6690                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6691                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6692                         ac_tree_checking= ; ac_valgrind_checking= ;
6693                         ac_types_checking= ;;
6694         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6695                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6696                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6697                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6698                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6699                         ac_types_checking=1 ;;
6700         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6701                         ac_fold_checking= ; ac_gc_checking= ;
6702                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6703                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6704                         ac_tree_checking= ; ac_valgrind_checking= ;
6705                         ac_types_checking= ;;
6706         # these enable particular checks
6707         assert)         ac_assert_checking=1 ;;
6708         df)             ac_df_checking=1 ;;
6709         fold)           ac_fold_checking=1 ;;
6710         gc)             ac_gc_checking=1 ;;
6711         gcac)           ac_gc_always_collect=1 ;;
6712         gimple)         ac_gimple_checking=1 ;;
6713         misc)           ac_checking=1 ;;
6714         rtl)            ac_rtl_checking=1 ;;
6715         rtlflag)        ac_rtlflag_checking=1 ;;
6716         runtime)        ac_runtime_checking=1 ;;
6717         tree)           ac_tree_checking=1 ;;
6718         types)          ac_types_checking=1 ;;
6719         valgrind)       ac_valgrind_checking=1 ;;
6720         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6721         esac
6722 done
6723 IFS="$ac_save_IFS"
6724
6725 nocommon_flag=""
6726 if test x$ac_checking != x ; then
6727
6728 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6729
6730   nocommon_flag=-fno-common
6731 fi
6732
6733 if test x$ac_df_checking != x ; then
6734
6735 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6736
6737 fi
6738 if test x$ac_assert_checking != x ; then
6739
6740 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6741
6742 fi
6743 if test x$ac_gimple_checking != x ; then
6744
6745 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6746
6747 fi
6748
6749 if test x$ac_runtime_checking != x ; then
6750
6751 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6752
6753 fi
6754 if test x$ac_tree_checking != x ; then
6755
6756 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6757
6758   TREEBROWSER=tree-browser.o
6759 fi
6760 if test x$ac_types_checking != x ; then
6761
6762 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6763
6764 fi
6765
6766 if test x$ac_rtl_checking != x ; then
6767
6768 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6769
6770 fi
6771 if test x$ac_rtlflag_checking != x ; then
6772
6773 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6774
6775 fi
6776 if test x$ac_gc_checking != x ; then
6777
6778 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6779
6780 fi
6781 if test x$ac_gc_always_collect != x ; then
6782
6783 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6784
6785 fi
6786 if test x$ac_fold_checking != x ; then
6787
6788 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6789
6790 fi
6791 valgrind_path_defines=
6792 valgrind_command=
6793
6794 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6795 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6796   have_valgrind_h=yes
6797 else
6798   have_valgrind_h=no
6799 fi
6800
6801
6802
6803 if test x$ac_valgrind_checking != x ; then
6804   # It is certainly possible that there's valgrind but no valgrind.h.
6805   # GCC relies on making annotations so we must have both.
6806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6807 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h.  */
6810 #include <valgrind/memcheck.h>
6811 #ifndef VALGRIND_DISCARD
6812 #error VALGRIND_DISCARD not defined
6813 #endif
6814 _ACEOF
6815 if ac_fn_c_try_cpp "$LINENO"; then :
6816   gcc_cv_header_valgrind_memcheck_h=yes
6817 else
6818   gcc_cv_header_valgrind_memcheck_h=no
6819 fi
6820 rm -f conftest.err conftest.$ac_ext
6821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6822 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6824 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h.  */
6827 #include <memcheck.h>
6828 #ifndef VALGRIND_DISCARD
6829 #error VALGRIND_DISCARD not defined
6830 #endif
6831 _ACEOF
6832 if ac_fn_c_try_cpp "$LINENO"; then :
6833   gcc_cv_header_memcheck_h=yes
6834 else
6835   gcc_cv_header_memcheck_h=no
6836 fi
6837 rm -f conftest.err conftest.$ac_ext
6838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6839 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6840
6841 # Prepare PATH_SEPARATOR.
6842 # The user is always right.
6843 if test "${PATH_SEPARATOR+set}" != set; then
6844   echo "#! /bin/sh" >conf$$.sh
6845   echo  "exit 0"   >>conf$$.sh
6846   chmod +x conf$$.sh
6847   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6848     PATH_SEPARATOR=';'
6849   else
6850     PATH_SEPARATOR=:
6851   fi
6852   rm -f conf$$.sh
6853 fi
6854
6855 # Find out how to test for executable files. Don't use a zero-byte file,
6856 # as systems may use methods other than mode bits to determine executability.
6857 cat >conf$$.file <<_ASEOF
6858 #! /bin/sh
6859 exit 0
6860 _ASEOF
6861 chmod +x conf$$.file
6862 if test -x conf$$.file >/dev/null 2>&1; then
6863   ac_executable_p="test -x"
6864 else
6865   ac_executable_p="test -f"
6866 fi
6867 rm -f conf$$.file
6868
6869 # Extract the first word of "valgrind", so it can be a program name with args.
6870 set dummy valgrind; ac_word=$2
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 $as_echo_n "checking for $ac_word... " >&6; }
6873 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6874   $as_echo_n "(cached) " >&6
6875 else
6876   case "$valgrind_path" in
6877   [\\/]* | ?:[\\/]*)
6878     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6879     ;;
6880   *)
6881     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6882     for ac_dir in $PATH; do
6883       IFS="$ac_save_IFS"
6884       test -z "$ac_dir" && ac_dir=.
6885       for ac_exec_ext in '' $ac_executable_extensions; do
6886         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6887           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6888             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6889             break 2
6890           fi
6891         fi
6892       done
6893     done
6894     IFS="$ac_save_IFS"
6895     ;;
6896 esac
6897 fi
6898 valgrind_path="$ac_cv_path_valgrind_path"
6899 if test -n "$valgrind_path"; then
6900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6901 $as_echo "$valgrind_path" >&6; }
6902 else
6903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6905 fi
6906
6907   if test "x$valgrind_path" = "x" \
6908     || (test $have_valgrind_h = no \
6909         && test $gcc_cv_header_memcheck_h = no \
6910         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6911         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6912   fi
6913   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6914   valgrind_command="$valgrind_path -q"
6915
6916 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6917
6918   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6919
6920 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6921
6922   fi
6923   if test $gcc_cv_header_memcheck_h = yes; then
6924
6925 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6926
6927   fi
6928 fi
6929
6930
6931
6932 # Enable code coverage collection
6933 # Check whether --enable-coverage was given.
6934 if test "${enable_coverage+set}" = set; then :
6935   enableval=$enable_coverage; case "${enableval}" in
6936   yes|noopt)
6937     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6938     ;;
6939   opt)
6940     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6941     ;;
6942   no)
6943     # a.k.a. --disable-coverage
6944     coverage_flags=""
6945     ;;
6946   *)
6947     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6948     ;;
6949 esac
6950 else
6951   coverage_flags=""
6952 fi
6953
6954
6955
6956 # Check whether --enable-gather-detailed-mem-stats was given.
6957 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6958   enableval=$enable_gather_detailed_mem_stats;
6959 else
6960   enable_gather_detailed_mem_stats=no
6961 fi
6962
6963 if test x$enable_gather_detailed_mem_stats = xyes ; then
6964
6965 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6966
6967 fi
6968
6969 # -------------------------------
6970 # Miscenalleous configure options
6971 # -------------------------------
6972
6973 # See if we are building gcc with C++.
6974 # Check whether --enable-build-with-cxx was given.
6975 if test "${enable_build_with_cxx+set}" = set; then :
6976   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6977 else
6978   ENABLE_BUILD_WITH_CXX=no
6979 fi
6980
6981
6982 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6983
6984 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6985
6986 fi
6987
6988 # With stabs
6989
6990 # Check whether --with-stabs was given.
6991 if test "${with_stabs+set}" = set; then :
6992   withval=$with_stabs; stabs="$with_stabs"
6993 else
6994   stabs=no
6995 fi
6996
6997
6998 # Determine whether or not multilibs are enabled.
6999 # Check whether --enable-multilib was given.
7000 if test "${enable_multilib+set}" = set; then :
7001   enableval=$enable_multilib;
7002 else
7003   enable_multilib=yes
7004 fi
7005
7006
7007
7008 # Enable __cxa_atexit for C++.
7009 # Check whether --enable-__cxa_atexit was given.
7010 if test "${enable___cxa_atexit+set}" = set; then :
7011   enableval=$enable___cxa_atexit;
7012 fi
7013
7014
7015 # Enable C extension for decimal float if target supports it.
7016
7017 # Check whether --enable-decimal-float was given.
7018 if test "${enable_decimal_float+set}" = set; then :
7019   enableval=$enable_decimal_float;
7020   case $enable_decimal_float in
7021     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
7022     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7023 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7024   esac
7025
7026 else
7027
7028   case $target in
7029     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
7030     i?86*-*-mingw* | x86_64*-*-mingw* | \
7031     i?86*-*-cygwin*)
7032       enable_decimal_float=yes
7033       ;;
7034     *)
7035       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7036 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7037       enable_decimal_float=no
7038       ;;
7039   esac
7040
7041 fi
7042
7043
7044 # x86's use BID format instead of DPD
7045 case x$enable_decimal_float in
7046   xyes)
7047     case $target in
7048       i?86*-*-* | x86_64*-*-*)
7049         enable_decimal_float=bid
7050         ;;
7051       *)
7052         enable_decimal_float=dpd
7053         ;;
7054     esac
7055     default_decimal_float=$enable_decimal_float
7056     ;;
7057   xno)
7058     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7059     # dependency on libdecnumber.
7060     default_decimal_float=dpd
7061     ;;
7062 esac
7063
7064
7065
7066
7067 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7068
7069 cat >>confdefs.h <<_ACEOF
7070 #define ENABLE_DECIMAL_FLOAT $dfp
7071 _ACEOF
7072
7073
7074 # Use default_decimal_float for dependency.
7075 enable_decimal_float=$default_decimal_float
7076
7077 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7078
7079 cat >>confdefs.h <<_ACEOF
7080 #define ENABLE_DECIMAL_BID_FORMAT $bid
7081 _ACEOF
7082
7083
7084 # Enable C extension for fixed-point arithmetic.
7085 # Check whether --enable-fixed-point was given.
7086 if test "${enable_fixed_point+set}" = set; then :
7087   enableval=$enable_fixed_point;
7088 else
7089
7090   case $target in
7091     arm*)
7092       enable_fixed_point=yes
7093       ;;
7094
7095     mips*-*-*)
7096       case $host in
7097         mips*-sgi-irix*)
7098           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7099 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7100           enable_fixed_point=no
7101           ;;
7102         *)
7103           enable_fixed_point=yes
7104           ;;
7105       esac
7106       ;;
7107     *)
7108       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7109 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7110       enable_fixed_point=no
7111       ;;
7112   esac
7113
7114 fi
7115
7116
7117
7118 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7119
7120 cat >>confdefs.h <<_ACEOF
7121 #define ENABLE_FIXED_POINT $fixedpoint
7122 _ACEOF
7123
7124
7125 # Enable threads
7126 # Pass with no value to take the default
7127 # Pass with a value to specify a thread package
7128 # Check whether --enable-threads was given.
7129 if test "${enable_threads+set}" = set; then :
7130   enableval=$enable_threads;
7131 else
7132   enable_threads=''
7133 fi
7134
7135
7136 # Check whether --enable-tls was given.
7137 if test "${enable_tls+set}" = set; then :
7138   enableval=$enable_tls;
7139   case $enable_tls in
7140     yes | no) ;;
7141     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7142 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7143   esac
7144
7145 else
7146   enable_tls=''
7147 fi
7148
7149
7150 # Check whether --enable-objc-gc was given.
7151 if test "${enable_objc_gc+set}" = set; then :
7152   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7153         objc_boehm_gc=''
7154 else
7155         objc_boehm_gc=1
7156 fi
7157 else
7158   objc_boehm_gc=''
7159 fi
7160
7161
7162
7163 # Check whether --with-dwarf2 was given.
7164 if test "${with_dwarf2+set}" = set; then :
7165   withval=$with_dwarf2; dwarf2="$with_dwarf2"
7166 else
7167   dwarf2=no
7168 fi
7169
7170
7171 # Check whether --enable-shared was given.
7172 if test "${enable_shared+set}" = set; then :
7173   enableval=$enable_shared;
7174   case $enable_shared in
7175   yes | no) ;;
7176   *)
7177     enable_shared=no
7178     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7179     for pkg in $enableval; do
7180       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7181         enable_shared=yes
7182       fi
7183     done
7184     IFS="$ac_save_ifs"
7185     ;;
7186   esac
7187
7188 else
7189   enable_shared=yes
7190 fi
7191
7192
7193
7194
7195 # Check whether --with-native-system-header-dir was given.
7196 if test "${with_native_system_header_dir+set}" = set; then :
7197   withval=$with_native_system_header_dir;
7198  case ${with_native_system_header_dir} in
7199  yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7200  /* | [A-Za-z]:[\\/]*) ;;
7201  *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7202  esac
7203  configured_native_system_header_dir="${withval}"
7204
7205 else
7206   configured_native_system_header_dir=
7207 fi
7208
7209
7210
7211 # Check whether --with-build-sysroot was given.
7212 if test "${with_build_sysroot+set}" = set; then :
7213   withval=$with_build_sysroot; if test x"$withval" != x ; then
7214      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7215    fi
7216 else
7217   SYSROOT_CFLAGS_FOR_TARGET=
7218 fi
7219
7220
7221
7222
7223 # Check whether --with-sysroot was given.
7224 if test "${with_sysroot+set}" = set; then :
7225   withval=$with_sysroot;
7226  case ${with_sysroot} in
7227  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7228  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7229  esac
7230
7231  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7232  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7233
7234  if test "x$prefix" = xNONE; then
7235   test_prefix=/usr/local
7236  else
7237   test_prefix=$prefix
7238  fi
7239  if test "x$exec_prefix" = xNONE; then
7240   test_exec_prefix=$test_prefix
7241  else
7242   test_exec_prefix=$exec_prefix
7243  fi
7244  case ${TARGET_SYSTEM_ROOT} in
7245  "${test_prefix}"|"${test_prefix}/"*|\
7246  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7247  '${prefix}'|'${prefix}/'*|\
7248  '${exec_prefix}'|'${exec_prefix}/'*)
7249    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7250    TARGET_SYSTEM_ROOT_DEFINE="$t"
7251    ;;
7252  esac
7253
7254 else
7255
7256  TARGET_SYSTEM_ROOT=
7257  TARGET_SYSTEM_ROOT_DEFINE=
7258  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7259
7260 fi
7261
7262
7263
7264
7265
7266
7267 # Check whether --with-specs was given.
7268 if test "${with_specs+set}" = set; then :
7269   withval=$with_specs; CONFIGURE_SPECS=$withval
7270 else
7271   CONFIGURE_SPECS=
7272
7273 fi
7274
7275
7276
7277
7278
7279 # Check whether --with-pkgversion was given.
7280 if test "${with_pkgversion+set}" = set; then :
7281   withval=$with_pkgversion; case "$withval" in
7282       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7283       no)  PKGVERSION= ;;
7284       *)   PKGVERSION="($withval) " ;;
7285      esac
7286 else
7287   PKGVERSION="(GCC) "
7288
7289 fi
7290
7291
7292
7293
7294
7295 # Check whether --with-bugurl was given.
7296 if test "${with_bugurl+set}" = set; then :
7297   withval=$with_bugurl; case "$withval" in
7298       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7299       no)  BUGURL=
7300            ;;
7301       *)   BUGURL="$withval"
7302            ;;
7303      esac
7304 else
7305   BUGURL="http://gcc.gnu.org/bugs.html"
7306
7307 fi
7308
7309   case ${BUGURL} in
7310   "")
7311     REPORT_BUGS_TO=
7312     REPORT_BUGS_TEXI=
7313     ;;
7314   *)
7315     REPORT_BUGS_TO="<$BUGURL>"
7316     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7317     ;;
7318   esac;
7319
7320
7321
7322
7323 # Sanity check enable_languages in case someone does not run the toplevel
7324 # configure # script.
7325 # Check whether --enable-languages was given.
7326 if test "${enable_languages+set}" = set; then :
7327   enableval=$enable_languages; case ,${enable_languages}, in
7328        ,,|,yes,)
7329                 # go safe -- we cannot be much sure without the toplevel
7330                 # configure's
7331                 # analysis of which target libs are present and usable
7332                 enable_languages=c
7333                 ;;
7334          *,all,*)
7335                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7336                 ;;
7337         *,c,*)
7338                 ;;
7339         *)
7340                 enable_languages=c,${enable_languages}
7341                 ;;
7342 esac
7343 else
7344   enable_languages=c
7345 fi
7346
7347
7348
7349 # Check whether --with-multilib-list was given.
7350 if test "${with_multilib_list+set}" = set; then :
7351   withval=$with_multilib_list; :
7352 else
7353   with_multilib_list=default
7354 fi
7355
7356
7357 # -------------------------
7358 # Checks for other programs
7359 # -------------------------
7360
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7362 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7363 set x ${MAKE-make}
7364 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7365 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7366   $as_echo_n "(cached) " >&6
7367 else
7368   cat >conftest.make <<\_ACEOF
7369 SHELL = /bin/sh
7370 all:
7371         @echo '@@@%%%=$(MAKE)=@@@%%%'
7372 _ACEOF
7373 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7374 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7375   *@@@%%%=?*=@@@%%%*)
7376     eval ac_cv_prog_make_${ac_make}_set=yes;;
7377   *)
7378     eval ac_cv_prog_make_${ac_make}_set=no;;
7379 esac
7380 rm -f conftest.make
7381 fi
7382 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7384 $as_echo "yes" >&6; }
7385   SET_MAKE=
7386 else
7387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7389   SET_MAKE="MAKE=${MAKE-make}"
7390 fi
7391
7392
7393 # Find some useful tools
7394 for ac_prog in gawk mawk nawk awk
7395 do
7396   # Extract the first word of "$ac_prog", so it can be a program name with args.
7397 set dummy $ac_prog; ac_word=$2
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 $as_echo_n "checking for $ac_word... " >&6; }
7400 if test "${ac_cv_prog_AWK+set}" = set; then :
7401   $as_echo_n "(cached) " >&6
7402 else
7403   if test -n "$AWK"; then
7404   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7405 else
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 for as_dir in $PATH
7408 do
7409   IFS=$as_save_IFS
7410   test -z "$as_dir" && as_dir=.
7411     for ac_exec_ext in '' $ac_executable_extensions; do
7412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7413     ac_cv_prog_AWK="$ac_prog"
7414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415     break 2
7416   fi
7417 done
7418   done
7419 IFS=$as_save_IFS
7420
7421 fi
7422 fi
7423 AWK=$ac_cv_prog_AWK
7424 if test -n "$AWK"; then
7425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7426 $as_echo "$AWK" >&6; }
7427 else
7428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7430 fi
7431
7432
7433   test -n "$AWK" && break
7434 done
7435
7436 # We need awk to create options.c and options.h.
7437 # Bail out if it's missing.
7438 case ${AWK} in
7439   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7440 esac
7441
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7443 $as_echo_n "checking whether ln -s works... " >&6; }
7444 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7445   $as_echo_n "(cached) " >&6
7446 else
7447   rm -f conftestdata_t
7448 echo >conftestdata_f
7449 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7450 then
7451   gcc_cv_prog_LN_S="ln -s"
7452 else
7453   if ln conftestdata_f conftestdata_t 2>/dev/null
7454   then
7455     gcc_cv_prog_LN_S=ln
7456   else
7457     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7458     then
7459       gcc_cv_prog_LN_S="cp -p"
7460     else
7461       gcc_cv_prog_LN_S=cp
7462     fi
7463   fi
7464 fi
7465 rm -f conftestdata_f conftestdata_t
7466
7467 fi
7468 LN_S="$gcc_cv_prog_LN_S"
7469 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7471 $as_echo "yes" >&6; }
7472 else
7473   if test "$gcc_cv_prog_LN_S" = "ln"; then
7474     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7475 $as_echo "no, using ln" >&6; }
7476   else
7477     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7478 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7479   fi
7480 fi
7481
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7483 $as_echo_n "checking whether ln works... " >&6; }
7484 if test "${acx_cv_prog_LN+set}" = set; then :
7485   $as_echo_n "(cached) " >&6
7486 else
7487   rm -f conftestdata_t
7488 echo >conftestdata_f
7489 if ln conftestdata_f conftestdata_t 2>/dev/null
7490 then
7491   acx_cv_prog_LN=ln
7492 else
7493   acx_cv_prog_LN=no
7494 fi
7495 rm -f conftestdata_f conftestdata_t
7496
7497 fi
7498 if test $acx_cv_prog_LN = no; then
7499   LN="$LN_S"
7500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7501 $as_echo "no, using $LN" >&6; }
7502 else
7503   LN="$acx_cv_prog_LN"
7504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7505 $as_echo "yes" >&6; }
7506 fi
7507
7508 if test -n "$ac_tool_prefix"; then
7509   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7510 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512 $as_echo_n "checking for $ac_word... " >&6; }
7513 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7514   $as_echo_n "(cached) " >&6
7515 else
7516   if test -n "$RANLIB"; then
7517   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7518 else
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7521 do
7522   IFS=$as_save_IFS
7523   test -z "$as_dir" && as_dir=.
7524     for ac_exec_ext in '' $ac_executable_extensions; do
7525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7526     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528     break 2
7529   fi
7530 done
7531   done
7532 IFS=$as_save_IFS
7533
7534 fi
7535 fi
7536 RANLIB=$ac_cv_prog_RANLIB
7537 if test -n "$RANLIB"; then
7538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7539 $as_echo "$RANLIB" >&6; }
7540 else
7541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7543 fi
7544
7545
7546 fi
7547 if test -z "$ac_cv_prog_RANLIB"; then
7548   ac_ct_RANLIB=$RANLIB
7549   # Extract the first word of "ranlib", so it can be a program name with args.
7550 set dummy ranlib; ac_word=$2
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552 $as_echo_n "checking for $ac_word... " >&6; }
7553 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7554   $as_echo_n "(cached) " >&6
7555 else
7556   if test -n "$ac_ct_RANLIB"; then
7557   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7558 else
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7561 do
7562   IFS=$as_save_IFS
7563   test -z "$as_dir" && as_dir=.
7564     for ac_exec_ext in '' $ac_executable_extensions; do
7565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7566     ac_cv_prog_ac_ct_RANLIB="ranlib"
7567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568     break 2
7569   fi
7570 done
7571   done
7572 IFS=$as_save_IFS
7573
7574 fi
7575 fi
7576 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7577 if test -n "$ac_ct_RANLIB"; then
7578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7579 $as_echo "$ac_ct_RANLIB" >&6; }
7580 else
7581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7583 fi
7584
7585   if test "x$ac_ct_RANLIB" = x; then
7586     RANLIB=":"
7587   else
7588     case $cross_compiling:$ac_tool_warned in
7589 yes:)
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7592 ac_tool_warned=yes ;;
7593 esac
7594     RANLIB=$ac_ct_RANLIB
7595   fi
7596 else
7597   RANLIB="$ac_cv_prog_RANLIB"
7598 fi
7599
7600 ranlib_flags=""
7601
7602
7603 # Find a good install program.  We prefer a C program (faster),
7604 # so one script is as good as another.  But avoid the broken or
7605 # incompatible versions:
7606 # SysV /etc/install, /usr/sbin/install
7607 # SunOS /usr/etc/install
7608 # IRIX /sbin/install
7609 # AIX /bin/install
7610 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7611 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7612 # ./install, which can be erroneously created by make from ./install.sh.
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7614 $as_echo_n "checking for a BSD compatible install... " >&6; }
7615 if test -z "$INSTALL"; then
7616 if test "${ac_cv_path_install+set}" = set; then :
7617   $as_echo_n "(cached) " >&6
7618 else
7619     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7620   for ac_dir in $PATH; do
7621     # Account for people who put trailing slashes in PATH elements.
7622     case "$ac_dir/" in
7623     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7624     *)
7625       # OSF1 and SCO ODT 3.0 have their own names for install.
7626       for ac_prog in ginstall scoinst install; do
7627         if test -f $ac_dir/$ac_prog; then
7628           if test $ac_prog = install &&
7629             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7630             # AIX install.  It has an incompatible calling convention.
7631             # OSF/1 installbsd also uses dspmsg, but is usable.
7632             :
7633           else
7634             ac_cv_path_install="$ac_dir/$ac_prog -c"
7635             break 2
7636           fi
7637         fi
7638       done
7639       ;;
7640     esac
7641   done
7642   IFS="$ac_save_IFS"
7643
7644 fi
7645   if test "${ac_cv_path_install+set}" = set; then
7646     INSTALL="$ac_cv_path_install"
7647   else
7648     # As a last resort, use the slow shell script.  We don't cache a
7649     # path for INSTALL within a source directory, because that will
7650     # break other packages using the cache if that directory is
7651     # removed, or if the path is relative.
7652     INSTALL="$ac_install_sh"
7653   fi
7654 fi
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7656 $as_echo "$INSTALL" >&6; }
7657
7658 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7659 # It thinks the first close brace ends the variable substitution.
7660 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7661
7662 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7663
7664
7665 # See if cmp has --ignore-initial.
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7667 $as_echo_n "checking for cmp's capabilities... " >&6; }
7668 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7669   $as_echo_n "(cached) " >&6
7670 else
7671    echo abfoo >t1
7672   echo cdfoo >t2
7673   gcc_cv_prog_cmp_skip=slowcompare
7674   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7675     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7676       :
7677     else
7678       gcc_cv_prog_cmp_skip=gnucompare
7679     fi
7680   fi
7681   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7682     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7683       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7684         :
7685       else
7686         gcc_cv_prog_cmp_skip=fastcompare
7687       fi
7688     fi
7689   fi
7690   rm t1 t2
7691
7692 fi
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7694 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7695 make_compare_target=$gcc_cv_prog_cmp_skip
7696
7697
7698
7699 # See if we have the mktemp command.
7700 # Extract the first word of "mktemp", so it can be a program name with args.
7701 set dummy mktemp; ac_word=$2
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703 $as_echo_n "checking for $ac_word... " >&6; }
7704 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7705   $as_echo_n "(cached) " >&6
7706 else
7707   if test -n "$have_mktemp_command"; then
7708   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7709 else
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 for as_dir in $PATH
7712 do
7713   IFS=$as_save_IFS
7714   test -z "$as_dir" && as_dir=.
7715     for ac_exec_ext in '' $ac_executable_extensions; do
7716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7717     ac_cv_prog_have_mktemp_command="yes"
7718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7719     break 2
7720   fi
7721 done
7722   done
7723 IFS=$as_save_IFS
7724
7725   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7726 fi
7727 fi
7728 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7729 if test -n "$have_mktemp_command"; then
7730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7731 $as_echo "$have_mktemp_command" >&6; }
7732 else
7733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734 $as_echo "no" >&6; }
7735 fi
7736
7737
7738
7739 # See if makeinfo has been installed and is modern enough
7740 # that we can use it.
7741
7742   # Extract the first word of "makeinfo", so it can be a program name with args.
7743 set dummy makeinfo; ac_word=$2
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7745 $as_echo_n "checking for $ac_word... " >&6; }
7746 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7747   $as_echo_n "(cached) " >&6
7748 else
7749   if test -n "$MAKEINFO"; then
7750   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7751 else
7752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753 for as_dir in $PATH
7754 do
7755   IFS=$as_save_IFS
7756   test -z "$as_dir" && as_dir=.
7757     for ac_exec_ext in '' $ac_executable_extensions; do
7758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7759     ac_cv_prog_MAKEINFO="makeinfo"
7760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7761     break 2
7762   fi
7763 done
7764   done
7765 IFS=$as_save_IFS
7766
7767 fi
7768 fi
7769 MAKEINFO=$ac_cv_prog_MAKEINFO
7770 if test -n "$MAKEINFO"; then
7771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7772 $as_echo "$MAKEINFO" >&6; }
7773 else
7774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 $as_echo "no" >&6; }
7776 fi
7777
7778
7779   if test -n "$MAKEINFO"; then
7780     # Found it, now check the version.
7781     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7782 $as_echo_n "checking for modern makeinfo... " >&6; }
7783 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7784   $as_echo_n "(cached) " >&6
7785 else
7786   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7787                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7788
7789                     case $ac_prog_version in
7790                       '')  gcc_cv_prog_makeinfo_modern=no;;
7791                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7792                       *)   gcc_cv_prog_makeinfo_modern=no;;
7793                     esac
7794
7795 fi
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7797 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7798   else
7799     gcc_cv_prog_makeinfo_modern=no
7800   fi
7801   if test $gcc_cv_prog_makeinfo_modern = no; then
7802     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7803   fi
7804
7805 if test $gcc_cv_prog_makeinfo_modern = no; then
7806   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7807 *** Makeinfo is missing or too old.
7808 *** Info documentation will not be built." >&5
7809 $as_echo "$as_me: WARNING:
7810 *** Makeinfo is missing or too old.
7811 *** Info documentation will not be built." >&2;}
7812   BUILD_INFO=
7813 else
7814   BUILD_INFO=info
7815 fi
7816
7817
7818 # Is pod2man recent enough to regenerate manpages?
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7820 $as_echo_n "checking for recent Pod::Man... " >&6; }
7821 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7823 $as_echo "yes" >&6; }
7824   GENERATED_MANPAGES=generated-manpages
7825 else
7826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7828   GENERATED_MANPAGES=
7829 fi
7830
7831
7832 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7833
7834 # How about lex?
7835 for ac_prog in flex
7836 do
7837   # Extract the first word of "$ac_prog", so it can be a program name with args.
7838 set dummy $ac_prog; ac_word=$2
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 $as_echo_n "checking for $ac_word... " >&6; }
7841 if test "${ac_cv_prog_FLEX+set}" = set; then :
7842   $as_echo_n "(cached) " >&6
7843 else
7844   if test -n "$FLEX"; then
7845   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7846 else
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 for as_dir in $PATH
7849 do
7850   IFS=$as_save_IFS
7851   test -z "$as_dir" && as_dir=.
7852     for ac_exec_ext in '' $ac_executable_extensions; do
7853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7854     ac_cv_prog_FLEX="$ac_prog"
7855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7856     break 2
7857   fi
7858 done
7859   done
7860 IFS=$as_save_IFS
7861
7862 fi
7863 fi
7864 FLEX=$ac_cv_prog_FLEX
7865 if test -n "$FLEX"; then
7866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7867 $as_echo "$FLEX" >&6; }
7868 else
7869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7871 fi
7872
7873
7874   test -n "$FLEX" && break
7875 done
7876 test -n "$FLEX" || FLEX="$MISSING flex"
7877
7878
7879 # Bison?
7880 for ac_prog in bison
7881 do
7882   # Extract the first word of "$ac_prog", so it can be a program name with args.
7883 set dummy $ac_prog; ac_word=$2
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885 $as_echo_n "checking for $ac_word... " >&6; }
7886 if test "${ac_cv_prog_BISON+set}" = set; then :
7887   $as_echo_n "(cached) " >&6
7888 else
7889   if test -n "$BISON"; then
7890   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7891 else
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893 for as_dir in $PATH
7894 do
7895   IFS=$as_save_IFS
7896   test -z "$as_dir" && as_dir=.
7897     for ac_exec_ext in '' $ac_executable_extensions; do
7898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7899     ac_cv_prog_BISON="$ac_prog"
7900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901     break 2
7902   fi
7903 done
7904   done
7905 IFS=$as_save_IFS
7906
7907 fi
7908 fi
7909 BISON=$ac_cv_prog_BISON
7910 if test -n "$BISON"; then
7911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7912 $as_echo "$BISON" >&6; }
7913 else
7914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915 $as_echo "no" >&6; }
7916 fi
7917
7918
7919   test -n "$BISON" && break
7920 done
7921 test -n "$BISON" || BISON="$MISSING bison"
7922
7923
7924 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7925 # check for build == host before using them.
7926
7927 # NM
7928 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7929   && test -d ../binutils ; then
7930   NM='${objdir}/../binutils/nm-new'
7931 else
7932   # Extract the first word of "nm", so it can be a program name with args.
7933 set dummy nm; ac_word=$2
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935 $as_echo_n "checking for $ac_word... " >&6; }
7936 if test "${ac_cv_prog_NM+set}" = set; then :
7937   $as_echo_n "(cached) " >&6
7938 else
7939   if test -n "$NM"; then
7940   ac_cv_prog_NM="$NM" # Let the user override the test.
7941 else
7942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943 for as_dir in $PATH
7944 do
7945   IFS=$as_save_IFS
7946   test -z "$as_dir" && as_dir=.
7947     for ac_exec_ext in '' $ac_executable_extensions; do
7948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7949     ac_cv_prog_NM="nm"
7950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7951     break 2
7952   fi
7953 done
7954   done
7955 IFS=$as_save_IFS
7956
7957   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7958 fi
7959 fi
7960 NM=$ac_cv_prog_NM
7961 if test -n "$NM"; then
7962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7963 $as_echo "$NM" >&6; }
7964 else
7965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7967 fi
7968
7969
7970 fi
7971
7972 # AR
7973 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7974   && test -d ../binutils ; then
7975   AR='${objdir}/../binutils/ar'
7976 else
7977   # Extract the first word of "ar", so it can be a program name with args.
7978 set dummy ar; ac_word=$2
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7980 $as_echo_n "checking for $ac_word... " >&6; }
7981 if test "${ac_cv_prog_AR+set}" = set; then :
7982   $as_echo_n "(cached) " >&6
7983 else
7984   if test -n "$AR"; then
7985   ac_cv_prog_AR="$AR" # Let the user override the test.
7986 else
7987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988 for as_dir in $PATH
7989 do
7990   IFS=$as_save_IFS
7991   test -z "$as_dir" && as_dir=.
7992     for ac_exec_ext in '' $ac_executable_extensions; do
7993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7994     ac_cv_prog_AR="ar"
7995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7996     break 2
7997   fi
7998 done
7999   done
8000 IFS=$as_save_IFS
8001
8002   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8003 fi
8004 fi
8005 AR=$ac_cv_prog_AR
8006 if test -n "$AR"; then
8007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8008 $as_echo "$AR" >&6; }
8009 else
8010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8012 fi
8013
8014
8015 fi
8016
8017
8018 # --------------------
8019 # Checks for C headers
8020 # --------------------
8021
8022 # Need to reject headers which give warnings, so that the -Werror bootstrap
8023 # works later. *sigh*  This needs to come before all header checks.
8024
8025 ac_c_preproc_warn_flag=yes
8026
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8028 $as_echo_n "checking for ANSI C header files... " >&6; }
8029 if test "${ac_cv_header_stdc+set}" = set; then :
8030   $as_echo_n "(cached) " >&6
8031 else
8032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033 /* end confdefs.h.  */
8034 #include <stdlib.h>
8035 #include <stdarg.h>
8036 #include <string.h>
8037 #include <float.h>
8038
8039 int
8040 main ()
8041 {
8042
8043   ;
8044   return 0;
8045 }
8046 _ACEOF
8047 if ac_fn_c_try_compile "$LINENO"; then :
8048   ac_cv_header_stdc=yes
8049 else
8050   ac_cv_header_stdc=no
8051 fi
8052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053
8054 if test $ac_cv_header_stdc = yes; then
8055   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h.  */
8058 #include <string.h>
8059
8060 _ACEOF
8061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8062   $EGREP "memchr" >/dev/null 2>&1; then :
8063
8064 else
8065   ac_cv_header_stdc=no
8066 fi
8067 rm -f conftest*
8068
8069 fi
8070
8071 if test $ac_cv_header_stdc = yes; then
8072   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h.  */
8075 #include <stdlib.h>
8076
8077 _ACEOF
8078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8079   $EGREP "free" >/dev/null 2>&1; then :
8080
8081 else
8082   ac_cv_header_stdc=no
8083 fi
8084 rm -f conftest*
8085
8086 fi
8087
8088 if test $ac_cv_header_stdc = yes; then
8089   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8090   if test "$cross_compiling" = yes; then :
8091   :
8092 else
8093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h.  */
8095 #include <ctype.h>
8096 #include <stdlib.h>
8097 #if ((' ' & 0x0FF) == 0x020)
8098 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8099 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8100 #else
8101 # define ISLOWER(c) \
8102                    (('a' <= (c) && (c) <= 'i') \
8103                      || ('j' <= (c) && (c) <= 'r') \
8104                      || ('s' <= (c) && (c) <= 'z'))
8105 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8106 #endif
8107
8108 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8109 int
8110 main ()
8111 {
8112   int i;
8113   for (i = 0; i < 256; i++)
8114     if (XOR (islower (i), ISLOWER (i))
8115         || toupper (i) != TOUPPER (i))
8116       return 2;
8117   return 0;
8118 }
8119 _ACEOF
8120 if ac_fn_c_try_run "$LINENO"; then :
8121
8122 else
8123   ac_cv_header_stdc=no
8124 fi
8125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8126   conftest.$ac_objext conftest.beam conftest.$ac_ext
8127 fi
8128
8129 fi
8130 fi
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8132 $as_echo "$ac_cv_header_stdc" >&6; }
8133 if test $ac_cv_header_stdc = yes; then
8134
8135 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8136
8137 fi
8138
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8140 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8141 if test "${ac_cv_header_time+set}" = set; then :
8142   $as_echo_n "(cached) " >&6
8143 else
8144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h.  */
8146 #include <sys/types.h>
8147 #include <sys/time.h>
8148 #include <time.h>
8149
8150 int
8151 main ()
8152 {
8153 if ((struct tm *) 0)
8154 return 0;
8155   ;
8156   return 0;
8157 }
8158 _ACEOF
8159 if ac_fn_c_try_compile "$LINENO"; then :
8160   ac_cv_header_time=yes
8161 else
8162   ac_cv_header_time=no
8163 fi
8164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8165 fi
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8167 $as_echo "$ac_cv_header_time" >&6; }
8168 if test $ac_cv_header_time = yes; then
8169
8170 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8171
8172 fi
8173
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8175 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8176 if test "${gcc_cv_header_string+set}" = set; then :
8177   $as_echo_n "(cached) " >&6
8178 else
8179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h.  */
8181 #include <string.h>
8182 #include <strings.h>
8183 int
8184 main ()
8185 {
8186
8187   ;
8188   return 0;
8189 }
8190 _ACEOF
8191 if ac_fn_c_try_compile "$LINENO"; then :
8192   gcc_cv_header_string=yes
8193 else
8194   gcc_cv_header_string=no
8195 fi
8196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8197 fi
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8199 $as_echo "$gcc_cv_header_string" >&6; }
8200 if test $gcc_cv_header_string = yes; then
8201
8202 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8203
8204 fi
8205
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8207 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8208 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8209   $as_echo_n "(cached) " >&6
8210 else
8211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8212 /* end confdefs.h.  */
8213 #include <sys/types.h>
8214 #include <sys/wait.h>
8215 #ifndef WEXITSTATUS
8216 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8217 #endif
8218 #ifndef WIFEXITED
8219 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8220 #endif
8221
8222 int
8223 main ()
8224 {
8225   int s;
8226   wait (&s);
8227   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8228   ;
8229   return 0;
8230 }
8231 _ACEOF
8232 if ac_fn_c_try_compile "$LINENO"; then :
8233   ac_cv_header_sys_wait_h=yes
8234 else
8235   ac_cv_header_sys_wait_h=no
8236 fi
8237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8238 fi
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8240 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8241 if test $ac_cv_header_sys_wait_h = yes; then
8242
8243 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8244
8245 fi
8246
8247 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8248                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8249                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8250                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8251 do :
8252   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8253 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8254 eval as_val=\$$as_ac_Header
8255    if test "x$as_val" = x""yes; then :
8256   cat >>confdefs.h <<_ACEOF
8257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8258 _ACEOF
8259
8260 fi
8261 done
8262
8263
8264 # Check for thread headers.
8265 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8266 if test "x$ac_cv_header_thread_h" = x""yes; then :
8267   have_thread_h=yes
8268 else
8269   have_thread_h=
8270 fi
8271
8272 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8273 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8274   have_pthread_h=yes
8275 else
8276   have_pthread_h=
8277 fi
8278
8279
8280 # These tests can't be done till we know if we have limits.h.
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8282 $as_echo_n "checking for CHAR_BIT... " >&6; }
8283 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8284   $as_echo_n "(cached) " >&6
8285 else
8286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287 /* end confdefs.h.  */
8288 #ifdef HAVE_LIMITS_H
8289 #include <limits.h>
8290 #endif
8291 #ifdef CHAR_BIT
8292 found
8293 #endif
8294 _ACEOF
8295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8296   $EGREP "found" >/dev/null 2>&1; then :
8297   gcc_cv_decl_char_bit=yes
8298 else
8299   gcc_cv_decl_char_bit=no
8300 fi
8301 rm -f conftest*
8302
8303
8304 fi
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8306 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8307 if test $gcc_cv_decl_char_bit = no; then
8308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8309 $as_echo_n "checking number of bits in a byte... " >&6; }
8310 if test "${gcc_cv_c_nbby+set}" = set; then :
8311   $as_echo_n "(cached) " >&6
8312 else
8313   i=8
8314  gcc_cv_c_nbby=
8315  while test $i -lt 65; do
8316    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317 /* end confdefs.h.  */
8318
8319 int
8320 main ()
8321 {
8322 switch(0) {
8323   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8324   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8325   ; }
8326   ;
8327   return 0;
8328 }
8329 _ACEOF
8330 if ac_fn_c_try_compile "$LINENO"; then :
8331   gcc_cv_c_nbby=$i; break
8332 fi
8333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334    i=`expr $i + 1`
8335  done
8336  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8337
8338 fi
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8340 $as_echo "$gcc_cv_c_nbby" >&6; }
8341 if test $gcc_cv_c_nbby = failed; then
8342   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8343 else
8344
8345 cat >>confdefs.h <<_ACEOF
8346 #define CHAR_BIT $gcc_cv_c_nbby
8347 _ACEOF
8348
8349 fi
8350 fi
8351  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8352 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8353 if test "${ac_cv_c_bigendian+set}" = set; then :
8354   $as_echo_n "(cached) " >&6
8355 else
8356   ac_cv_c_bigendian=unknown
8357     # See if we're dealing with a universal compiler.
8358     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359 /* end confdefs.h.  */
8360 #ifndef __APPLE_CC__
8361                not a universal capable compiler
8362              #endif
8363              typedef int dummy;
8364
8365 _ACEOF
8366 if ac_fn_c_try_compile "$LINENO"; then :
8367
8368         # Check for potential -arch flags.  It is not universal unless
8369         # there are at least two -arch flags with different values.
8370         ac_arch=
8371         ac_prev=
8372         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8373          if test -n "$ac_prev"; then
8374            case $ac_word in
8375              i?86 | x86_64 | ppc | ppc64)
8376                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8377                  ac_arch=$ac_word
8378                else
8379                  ac_cv_c_bigendian=universal
8380                  break
8381                fi
8382                ;;
8383            esac
8384            ac_prev=
8385          elif test "x$ac_word" = "x-arch"; then
8386            ac_prev=arch
8387          fi
8388        done
8389 fi
8390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8391     if test $ac_cv_c_bigendian = unknown; then
8392       # See if sys/param.h defines the BYTE_ORDER macro.
8393       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h.  */
8395 #include <sys/types.h>
8396              #include <sys/param.h>
8397
8398 int
8399 main ()
8400 {
8401 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8402                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8403                      && LITTLE_ENDIAN)
8404               bogus endian macros
8405              #endif
8406
8407   ;
8408   return 0;
8409 }
8410 _ACEOF
8411 if ac_fn_c_try_compile "$LINENO"; then :
8412   # It does; now see whether it defined to BIG_ENDIAN or not.
8413          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414 /* end confdefs.h.  */
8415 #include <sys/types.h>
8416                 #include <sys/param.h>
8417
8418 int
8419 main ()
8420 {
8421 #if BYTE_ORDER != BIG_ENDIAN
8422                  not big endian
8423                 #endif
8424
8425   ;
8426   return 0;
8427 }
8428 _ACEOF
8429 if ac_fn_c_try_compile "$LINENO"; then :
8430   ac_cv_c_bigendian=yes
8431 else
8432   ac_cv_c_bigendian=no
8433 fi
8434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435 fi
8436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8437     fi
8438     if test $ac_cv_c_bigendian = unknown; then
8439       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8440       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h.  */
8442 #include <limits.h>
8443
8444 int
8445 main ()
8446 {
8447 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8448               bogus endian macros
8449              #endif
8450
8451   ;
8452   return 0;
8453 }
8454 _ACEOF
8455 if ac_fn_c_try_compile "$LINENO"; then :
8456   # It does; now see whether it defined to _BIG_ENDIAN or not.
8457          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h.  */
8459 #include <limits.h>
8460
8461 int
8462 main ()
8463 {
8464 #ifndef _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       # Compile a test program.
8483       if test "$cross_compiling" = yes; then :
8484   # Try to guess by grepping values from an object file.
8485          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h.  */
8487 short int ascii_mm[] =
8488                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8489                 short int ascii_ii[] =
8490                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8491                 int use_ascii (int i) {
8492                   return ascii_mm[i] + ascii_ii[i];
8493                 }
8494                 short int ebcdic_ii[] =
8495                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8496                 short int ebcdic_mm[] =
8497                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8498                 int use_ebcdic (int i) {
8499                   return ebcdic_mm[i] + ebcdic_ii[i];
8500                 }
8501                 extern int foo;
8502
8503 int
8504 main ()
8505 {
8506 return use_ascii (foo) == use_ebcdic (foo);
8507   ;
8508   return 0;
8509 }
8510 _ACEOF
8511 if ac_fn_c_try_compile "$LINENO"; then :
8512   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8513               ac_cv_c_bigendian=yes
8514             fi
8515             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8516               if test "$ac_cv_c_bigendian" = unknown; then
8517                 ac_cv_c_bigendian=no
8518               else
8519                 # finding both strings is unlikely to happen, but who knows?
8520                 ac_cv_c_bigendian=unknown
8521               fi
8522             fi
8523 fi
8524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8525 else
8526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8527 /* end confdefs.h.  */
8528 $ac_includes_default
8529 int
8530 main ()
8531 {
8532
8533              /* Are we little or big endian?  From Harbison&Steele.  */
8534              union
8535              {
8536                long int l;
8537                char c[sizeof (long int)];
8538              } u;
8539              u.l = 1;
8540              return u.c[sizeof (long int) - 1] == 1;
8541
8542   ;
8543   return 0;
8544 }
8545 _ACEOF
8546 if ac_fn_c_try_run "$LINENO"; then :
8547   ac_cv_c_bigendian=no
8548 else
8549   ac_cv_c_bigendian=yes
8550 fi
8551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8552   conftest.$ac_objext conftest.beam conftest.$ac_ext
8553 fi
8554
8555     fi
8556 fi
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8558 $as_echo "$ac_cv_c_bigendian" >&6; }
8559  case $ac_cv_c_bigendian in #(
8560    yes)
8561      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8562 ;; #(
8563    no)
8564       ;; #(
8565    universal)
8566
8567 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8568
8569      ;; #(
8570    *)
8571      as_fn_error "unknown endianness
8572  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8573  esac
8574
8575
8576 # ----------------------
8577 # Checks for C++ headers
8578 # ----------------------
8579
8580 ac_ext=cpp
8581 ac_cpp='$CXXCPP $CPPFLAGS'
8582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8586 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8587 if test -z "$CXXCPP"; then
8588   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8589   $as_echo_n "(cached) " >&6
8590 else
8591       # Double quotes because CXXCPP needs to be expanded
8592     for CXXCPP in "$CXX -E" "/lib/cpp"
8593     do
8594       ac_preproc_ok=false
8595 for ac_cxx_preproc_warn_flag in '' yes
8596 do
8597   # Use a header file that comes with gcc, so configuring glibc
8598   # with a fresh cross-compiler works.
8599   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8600   # <limits.h> exists even on freestanding compilers.
8601   # On the NeXT, cc -E runs the code through the compiler's parser,
8602   # not just through cpp. "Syntax error" is here to catch this case.
8603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h.  */
8605 #ifdef __STDC__
8606 # include <limits.h>
8607 #else
8608 # include <assert.h>
8609 #endif
8610                      Syntax error
8611 _ACEOF
8612 if ac_fn_cxx_try_cpp "$LINENO"; then :
8613
8614 else
8615   # Broken: fails on valid input.
8616 continue
8617 fi
8618 rm -f conftest.err conftest.$ac_ext
8619
8620   # OK, works on sane cases.  Now check whether nonexistent headers
8621   # can be detected and how.
8622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h.  */
8624 #include <ac_nonexistent.h>
8625 _ACEOF
8626 if ac_fn_cxx_try_cpp "$LINENO"; then :
8627   # Broken: success on invalid input.
8628 continue
8629 else
8630   # Passes both tests.
8631 ac_preproc_ok=:
8632 break
8633 fi
8634 rm -f conftest.err conftest.$ac_ext
8635
8636 done
8637 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8638 rm -f conftest.err conftest.$ac_ext
8639 if $ac_preproc_ok; then :
8640   break
8641 fi
8642
8643     done
8644     ac_cv_prog_CXXCPP=$CXXCPP
8645
8646 fi
8647   CXXCPP=$ac_cv_prog_CXXCPP
8648 else
8649   ac_cv_prog_CXXCPP=$CXXCPP
8650 fi
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8652 $as_echo "$CXXCPP" >&6; }
8653 ac_preproc_ok=false
8654 for ac_cxx_preproc_warn_flag in '' yes
8655 do
8656   # Use a header file that comes with gcc, so configuring glibc
8657   # with a fresh cross-compiler works.
8658   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8659   # <limits.h> exists even on freestanding compilers.
8660   # On the NeXT, cc -E runs the code through the compiler's parser,
8661   # not just through cpp. "Syntax error" is here to catch this case.
8662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8663 /* end confdefs.h.  */
8664 #ifdef __STDC__
8665 # include <limits.h>
8666 #else
8667 # include <assert.h>
8668 #endif
8669                      Syntax error
8670 _ACEOF
8671 if ac_fn_cxx_try_cpp "$LINENO"; then :
8672
8673 else
8674   # Broken: fails on valid input.
8675 continue
8676 fi
8677 rm -f conftest.err conftest.$ac_ext
8678
8679   # OK, works on sane cases.  Now check whether nonexistent headers
8680   # can be detected and how.
8681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8682 /* end confdefs.h.  */
8683 #include <ac_nonexistent.h>
8684 _ACEOF
8685 if ac_fn_cxx_try_cpp "$LINENO"; then :
8686   # Broken: success on invalid input.
8687 continue
8688 else
8689   # Passes both tests.
8690 ac_preproc_ok=:
8691 break
8692 fi
8693 rm -f conftest.err conftest.$ac_ext
8694
8695 done
8696 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8697 rm -f conftest.err conftest.$ac_ext
8698 if $ac_preproc_ok; then :
8699
8700 else
8701   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8704 See \`config.log' for more details." >&5
8705 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8706 See \`config.log' for more details." >&2;}; }
8707 fi
8708
8709 ac_ext=c
8710 ac_cpp='$CPP $CPPFLAGS'
8711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8714
8715
8716 ac_ext=cpp
8717 ac_cpp='$CXXCPP $CPPFLAGS'
8718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8721
8722
8723
8724
8725 for ac_header in unordered_map
8726 do :
8727   ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8728 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8729   cat >>confdefs.h <<_ACEOF
8730 #define HAVE_UNORDERED_MAP 1
8731 _ACEOF
8732
8733 fi
8734 done
8735
8736 for ac_header in tr1/unordered_map
8737 do :
8738   ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8739 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8740   cat >>confdefs.h <<_ACEOF
8741 #define HAVE_TR1_UNORDERED_MAP 1
8742 _ACEOF
8743
8744 fi
8745 done
8746
8747 for ac_header in ext/hash_map
8748 do :
8749   ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8750 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8751   cat >>confdefs.h <<_ACEOF
8752 #define HAVE_EXT_HASH_MAP 1
8753 _ACEOF
8754
8755 fi
8756 done
8757
8758
8759 ac_ext=c
8760 ac_cpp='$CPP $CPPFLAGS'
8761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8764
8765
8766 # --------
8767 # UNSORTED
8768 # --------
8769
8770
8771 # These libraries may be used by collect2.
8772 # We may need a special search path to get them linked.
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8774 $as_echo_n "checking for collect2 libraries... " >&6; }
8775 if test "${gcc_cv_collect2_libs+set}" = set; then :
8776   $as_echo_n "(cached) " >&6
8777 else
8778   save_LIBS="$LIBS"
8779 for libs in '' -lld -lmld \
8780                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8781                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8782 do
8783         LIBS="$libs"
8784         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8785 /* end confdefs.h.  */
8786
8787 /* Override any GCC internal prototype to avoid an error.
8788    Use char because int might match the return type of a GCC
8789    builtin and then its argument prototype would still apply.  */
8790 #ifdef __cplusplus
8791 extern "C"
8792 #endif
8793 char ldopen ();
8794 int
8795 main ()
8796 {
8797 return ldopen ();
8798   ;
8799   return 0;
8800 }
8801 _ACEOF
8802 if ac_fn_c_try_link "$LINENO"; then :
8803   gcc_cv_collect2_libs="$libs"; break
8804 fi
8805 rm -f core conftest.err conftest.$ac_objext \
8806     conftest$ac_exeext conftest.$ac_ext
8807 done
8808 LIBS="$save_LIBS"
8809 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8810 fi
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8812 $as_echo "$gcc_cv_collect2_libs" >&6; }
8813 case $gcc_cv_collect2_libs in
8814         "none required")        ;;
8815         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8816 esac
8817
8818
8819 # When building Ada code on Alpha, we need exc_resume which is usually in
8820 # -lexc.  So test for it.
8821 save_LIBS="$LIBS"
8822 LIBS=
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8824 $as_echo_n "checking for library containing exc_resume... " >&6; }
8825 if test "${ac_cv_search_exc_resume+set}" = set; then :
8826   $as_echo_n "(cached) " >&6
8827 else
8828   ac_func_search_save_LIBS=$LIBS
8829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h.  */
8831
8832 /* Override any GCC internal prototype to avoid an error.
8833    Use char because int might match the return type of a GCC
8834    builtin and then its argument prototype would still apply.  */
8835 #ifdef __cplusplus
8836 extern "C"
8837 #endif
8838 char exc_resume ();
8839 int
8840 main ()
8841 {
8842 return exc_resume ();
8843   ;
8844   return 0;
8845 }
8846 _ACEOF
8847 for ac_lib in '' exc; do
8848   if test -z "$ac_lib"; then
8849     ac_res="none required"
8850   else
8851     ac_res=-l$ac_lib
8852     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8853   fi
8854   if ac_fn_c_try_link "$LINENO"; then :
8855   ac_cv_search_exc_resume=$ac_res
8856 fi
8857 rm -f core conftest.err conftest.$ac_objext \
8858     conftest$ac_exeext
8859   if test "${ac_cv_search_exc_resume+set}" = set; then :
8860   break
8861 fi
8862 done
8863 if test "${ac_cv_search_exc_resume+set}" = set; then :
8864
8865 else
8866   ac_cv_search_exc_resume=no
8867 fi
8868 rm conftest.$ac_ext
8869 LIBS=$ac_func_search_save_LIBS
8870 fi
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8872 $as_echo "$ac_cv_search_exc_resume" >&6; }
8873 ac_res=$ac_cv_search_exc_resume
8874 if test "$ac_res" != no; then :
8875   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8876
8877 fi
8878
8879 GNAT_LIBEXC="$LIBS"
8880 LIBS="$save_LIBS"
8881
8882
8883 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8884 save_LIBS="$LIBS"
8885 LIBS=
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8887 $as_echo_n "checking for library containing kstat_open... " >&6; }
8888 if test "${ac_cv_search_kstat_open+set}" = set; then :
8889   $as_echo_n "(cached) " >&6
8890 else
8891   ac_func_search_save_LIBS=$LIBS
8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h.  */
8894
8895 /* Override any GCC internal prototype to avoid an error.
8896    Use char because int might match the return type of a GCC
8897    builtin and then its argument prototype would still apply.  */
8898 #ifdef __cplusplus
8899 extern "C"
8900 #endif
8901 char kstat_open ();
8902 int
8903 main ()
8904 {
8905 return kstat_open ();
8906   ;
8907   return 0;
8908 }
8909 _ACEOF
8910 for ac_lib in '' kstat; do
8911   if test -z "$ac_lib"; then
8912     ac_res="none required"
8913   else
8914     ac_res=-l$ac_lib
8915     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8916   fi
8917   if ac_fn_c_try_link "$LINENO"; then :
8918   ac_cv_search_kstat_open=$ac_res
8919 fi
8920 rm -f core conftest.err conftest.$ac_objext \
8921     conftest$ac_exeext
8922   if test "${ac_cv_search_kstat_open+set}" = set; then :
8923   break
8924 fi
8925 done
8926 if test "${ac_cv_search_kstat_open+set}" = set; then :
8927
8928 else
8929   ac_cv_search_kstat_open=no
8930 fi
8931 rm conftest.$ac_ext
8932 LIBS=$ac_func_search_save_LIBS
8933 fi
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8935 $as_echo "$ac_cv_search_kstat_open" >&6; }
8936 ac_res=$ac_cv_search_kstat_open
8937 if test "$ac_res" != no; then :
8938   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8939
8940 fi
8941
8942 EXTRA_GCC_LIBS="$LIBS"
8943 LIBS="$save_LIBS"
8944
8945
8946 # Some systems put ldexp and frexp in libm instead of libc; assume
8947 # they're both in the same place.  jcf-dump needs them.
8948 save_LIBS="$LIBS"
8949 LIBS=
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8951 $as_echo_n "checking for library containing ldexp... " >&6; }
8952 if test "${ac_cv_search_ldexp+set}" = set; then :
8953   $as_echo_n "(cached) " >&6
8954 else
8955   ac_func_search_save_LIBS=$LIBS
8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h.  */
8958
8959 /* Override any GCC internal prototype to avoid an error.
8960    Use char because int might match the return type of a GCC
8961    builtin and then its argument prototype would still apply.  */
8962 #ifdef __cplusplus
8963 extern "C"
8964 #endif
8965 char ldexp ();
8966 int
8967 main ()
8968 {
8969 return ldexp ();
8970   ;
8971   return 0;
8972 }
8973 _ACEOF
8974 for ac_lib in '' m; do
8975   if test -z "$ac_lib"; then
8976     ac_res="none required"
8977   else
8978     ac_res=-l$ac_lib
8979     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8980   fi
8981   if ac_fn_c_try_link "$LINENO"; then :
8982   ac_cv_search_ldexp=$ac_res
8983 fi
8984 rm -f core conftest.err conftest.$ac_objext \
8985     conftest$ac_exeext
8986   if test "${ac_cv_search_ldexp+set}" = set; then :
8987   break
8988 fi
8989 done
8990 if test "${ac_cv_search_ldexp+set}" = set; then :
8991
8992 else
8993   ac_cv_search_ldexp=no
8994 fi
8995 rm conftest.$ac_ext
8996 LIBS=$ac_func_search_save_LIBS
8997 fi
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8999 $as_echo "$ac_cv_search_ldexp" >&6; }
9000 ac_res=$ac_cv_search_ldexp
9001 if test "$ac_res" != no; then :
9002   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9003
9004 fi
9005
9006 LDEXP_LIB="$LIBS"
9007 LIBS="$save_LIBS"
9008
9009
9010 # Use <inttypes.h> only if it exists,
9011 # doesn't clash with <sys/types.h>, and declares intmax_t.
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9013 $as_echo_n "checking for inttypes.h... " >&6; }
9014 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9015   $as_echo_n "(cached) " >&6
9016 else
9017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018 /* end confdefs.h.  */
9019 #include <sys/types.h>
9020 #include <inttypes.h>
9021 int
9022 main ()
9023 {
9024 intmax_t i = -1;
9025   ;
9026   return 0;
9027 }
9028 _ACEOF
9029 if ac_fn_c_try_compile "$LINENO"; then :
9030   gcc_cv_header_inttypes_h=yes
9031 else
9032   gcc_cv_header_inttypes_h=no
9033 fi
9034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9035 fi
9036
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9038 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9039 if test $gcc_cv_header_inttypes_h = yes; then
9040
9041 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9042
9043 fi
9044
9045
9046
9047 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9048         sysconf strsignal getrusage nl_langinfo \
9049         gettimeofday mbstowcs wcswidth mmap setlocale \
9050         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
9051 do :
9052   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9053 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9054 eval as_val=\$$as_ac_var
9055    if test "x$as_val" = x""yes; then :
9056   cat >>confdefs.h <<_ACEOF
9057 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9058 _ACEOF
9059
9060 fi
9061 done
9062
9063
9064 if test x$ac_cv_func_mbstowcs = xyes; then
9065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9066 $as_echo_n "checking whether mbstowcs works... " >&6; }
9067 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9068   $as_echo_n "(cached) " >&6
9069 else
9070       if test "$cross_compiling" = yes; then :
9071   gcc_cv_func_mbstowcs_works=yes
9072 else
9073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h.  */
9075 #include <stdlib.h>
9076 int main()
9077 {
9078   mbstowcs(0, "", 0);
9079   return 0;
9080 }
9081 _ACEOF
9082 if ac_fn_c_try_run "$LINENO"; then :
9083   gcc_cv_func_mbstowcs_works=yes
9084 else
9085   gcc_cv_func_mbstowcs_works=no
9086 fi
9087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9088   conftest.$ac_objext conftest.beam conftest.$ac_ext
9089 fi
9090
9091 fi
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9093 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9094   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9095
9096 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9097
9098   fi
9099 fi
9100
9101 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9102 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9103
9104 else
9105
9106 cat >>confdefs.h <<_ACEOF
9107 #define ssize_t int
9108 _ACEOF
9109
9110 fi
9111
9112 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9113 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9114
9115 else
9116
9117 cat >>confdefs.h <<_ACEOF
9118 #define caddr_t char *
9119 _ACEOF
9120
9121 fi
9122
9123
9124
9125 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9126 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9127   gcc_header_sys_mman_h=yes
9128 else
9129   gcc_header_sys_mman_h=no
9130 fi
9131
9132 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9133 if test "x$ac_cv_func_mmap" = x""yes; then :
9134   gcc_func_mmap=yes
9135 else
9136   gcc_func_mmap=no
9137 fi
9138
9139 if test "$gcc_header_sys_mman_h" != yes \
9140  || test "$gcc_func_mmap" != yes; then
9141    gcc_cv_func_mmap_file=no
9142    gcc_cv_func_mmap_dev_zero=no
9143    gcc_cv_func_mmap_anon=no
9144 else
9145    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9146 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9147 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9148   $as_echo_n "(cached) " >&6
9149 else
9150   # Add a system to this blacklist if
9151    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9152    # memory area containing the same data that you'd get if you applied
9153    # read() to the same fd.  The only system known to have a problem here
9154    # is VMS, where text files have record structure.
9155    case "$host_os" in
9156      vms* | ultrix*)
9157         gcc_cv_func_mmap_file=no ;;
9158      *)
9159         gcc_cv_func_mmap_file=yes;;
9160    esac
9161 fi
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9163 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9164    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9165 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9166 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9167   $as_echo_n "(cached) " >&6
9168 else
9169   # Add a system to this blacklist if it has mmap() but /dev/zero
9170    # does not exist, or if mmapping /dev/zero does not give anonymous
9171    # zeroed pages with both the following properties:
9172    # 1. If you map N consecutive pages in with one call, and then
9173    #    unmap any subset of those pages, the pages that were not
9174    #    explicitly unmapped remain accessible.
9175    # 2. If you map two adjacent blocks of memory and then unmap them
9176    #    both at once, they must both go away.
9177    # Systems known to be in this category are Windows (all variants),
9178    # VMS, and Darwin.
9179    case "$host_os" in
9180      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9181         gcc_cv_func_mmap_dev_zero=no ;;
9182      *)
9183         gcc_cv_func_mmap_dev_zero=yes;;
9184    esac
9185 fi
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9187 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9188
9189    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9190    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9191 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9192 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9193   $as_echo_n "(cached) " >&6
9194 else
9195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h.  */
9197 #include <sys/types.h>
9198 #include <sys/mman.h>
9199 #include <unistd.h>
9200
9201 #ifndef MAP_ANONYMOUS
9202 #define MAP_ANONYMOUS MAP_ANON
9203 #endif
9204
9205 int
9206 main ()
9207 {
9208 int n = MAP_ANONYMOUS;
9209   ;
9210   return 0;
9211 }
9212 _ACEOF
9213 if ac_fn_c_try_compile "$LINENO"; then :
9214   gcc_cv_decl_map_anon=yes
9215 else
9216   gcc_cv_decl_map_anon=no
9217 fi
9218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9219 fi
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9221 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9222
9223    if test $gcc_cv_decl_map_anon = no; then
9224      gcc_cv_func_mmap_anon=no
9225    else
9226      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9227 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9228 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9229   $as_echo_n "(cached) " >&6
9230 else
9231   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9232    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9233    # doesn't give anonymous zeroed pages with the same properties listed
9234    # above for use of /dev/zero.
9235    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9236    case "$host_os" in
9237      vms* | cygwin* | pe | mingw* | sco* | udk* )
9238         gcc_cv_func_mmap_anon=no ;;
9239      *)
9240         gcc_cv_func_mmap_anon=yes;;
9241    esac
9242 fi
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9244 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9245    fi
9246 fi
9247
9248 if test $gcc_cv_func_mmap_file = yes; then
9249
9250 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9251
9252 fi
9253 if test $gcc_cv_func_mmap_dev_zero = yes; then
9254
9255 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9256
9257 fi
9258 if test $gcc_cv_func_mmap_anon = yes; then
9259
9260 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9261
9262 fi
9263
9264
9265 case "${host}" in
9266 *-*-*vms*)
9267   # Under VMS, vfork works very differently than on Unix. The standard test
9268   # won't work, and it isn't easily adaptable. It makes more sense to
9269   # just force it.
9270   ac_cv_func_vfork_works=yes
9271   ;;
9272 esac
9273 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9274 if test "x$ac_cv_type_pid_t" = x""yes; then :
9275
9276 else
9277
9278 cat >>confdefs.h <<_ACEOF
9279 #define pid_t int
9280 _ACEOF
9281
9282 fi
9283
9284 for ac_header in vfork.h
9285 do :
9286   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9287 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9288   cat >>confdefs.h <<_ACEOF
9289 #define HAVE_VFORK_H 1
9290 _ACEOF
9291
9292 fi
9293 done
9294
9295 for ac_func in fork vfork
9296 do :
9297   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9298 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9299 eval as_val=\$$as_ac_var
9300    if test "x$as_val" = x""yes; then :
9301   cat >>confdefs.h <<_ACEOF
9302 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9303 _ACEOF
9304
9305 fi
9306 done
9307
9308 if test "x$ac_cv_func_fork" = xyes; then
9309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9310 $as_echo_n "checking for working fork... " >&6; }
9311 if test "${ac_cv_func_fork_works+set}" = set; then :
9312   $as_echo_n "(cached) " >&6
9313 else
9314   if test "$cross_compiling" = yes; then :
9315   ac_cv_func_fork_works=cross
9316 else
9317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h.  */
9319 $ac_includes_default
9320 int
9321 main ()
9322 {
9323
9324           /* By Ruediger Kuhlmann. */
9325           return fork () < 0;
9326
9327   ;
9328   return 0;
9329 }
9330 _ACEOF
9331 if ac_fn_c_try_run "$LINENO"; then :
9332   ac_cv_func_fork_works=yes
9333 else
9334   ac_cv_func_fork_works=no
9335 fi
9336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9337   conftest.$ac_objext conftest.beam conftest.$ac_ext
9338 fi
9339
9340 fi
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9342 $as_echo "$ac_cv_func_fork_works" >&6; }
9343
9344 else
9345   ac_cv_func_fork_works=$ac_cv_func_fork
9346 fi
9347 if test "x$ac_cv_func_fork_works" = xcross; then
9348   case $host in
9349     *-*-amigaos* | *-*-msdosdjgpp*)
9350       # Override, as these systems have only a dummy fork() stub
9351       ac_cv_func_fork_works=no
9352       ;;
9353     *)
9354       ac_cv_func_fork_works=yes
9355       ;;
9356   esac
9357   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9358 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9359 fi
9360 ac_cv_func_vfork_works=$ac_cv_func_vfork
9361 if test "x$ac_cv_func_vfork" = xyes; then
9362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9363 $as_echo_n "checking for working vfork... " >&6; }
9364 if test "${ac_cv_func_vfork_works+set}" = set; then :
9365   $as_echo_n "(cached) " >&6
9366 else
9367   if test "$cross_compiling" = yes; then :
9368   ac_cv_func_vfork_works=cross
9369 else
9370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9371 /* end confdefs.h.  */
9372 /* Thanks to Paul Eggert for this test.  */
9373 $ac_includes_default
9374 #include <sys/wait.h>
9375 #ifdef HAVE_VFORK_H
9376 # include <vfork.h>
9377 #endif
9378 /* On some sparc systems, changes by the child to local and incoming
9379    argument registers are propagated back to the parent.  The compiler
9380    is told about this with #include <vfork.h>, but some compilers
9381    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9382    static variable whose address is put into a register that is
9383    clobbered by the vfork.  */
9384 static void
9385 #ifdef __cplusplus
9386 sparc_address_test (int arg)
9387 # else
9388 sparc_address_test (arg) int arg;
9389 #endif
9390 {
9391   static pid_t child;
9392   if (!child) {
9393     child = vfork ();
9394     if (child < 0) {
9395       perror ("vfork");
9396       _exit(2);
9397     }
9398     if (!child) {
9399       arg = getpid();
9400       write(-1, "", 0);
9401       _exit (arg);
9402     }
9403   }
9404 }
9405
9406 int
9407 main ()
9408 {
9409   pid_t parent = getpid ();
9410   pid_t child;
9411
9412   sparc_address_test (0);
9413
9414   child = vfork ();
9415
9416   if (child == 0) {
9417     /* Here is another test for sparc vfork register problems.  This
9418        test uses lots of local variables, at least as many local
9419        variables as main has allocated so far including compiler
9420        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9421        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9422        reuse the register of parent for one of the local variables,
9423        since it will think that parent can't possibly be used any more
9424        in this routine.  Assigning to the local variable will thus
9425        munge parent in the parent process.  */
9426     pid_t
9427       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9428       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9429     /* Convince the compiler that p..p7 are live; otherwise, it might
9430        use the same hardware register for all 8 local variables.  */
9431     if (p != p1 || p != p2 || p != p3 || p != p4
9432         || p != p5 || p != p6 || p != p7)
9433       _exit(1);
9434
9435     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9436        from child file descriptors.  If the child closes a descriptor
9437        before it execs or exits, this munges the parent's descriptor
9438        as well.  Test for this by closing stdout in the child.  */
9439     _exit(close(fileno(stdout)) != 0);
9440   } else {
9441     int status;
9442     struct stat st;
9443
9444     while (wait(&status) != child)
9445       ;
9446     return (
9447          /* Was there some problem with vforking?  */
9448          child < 0
9449
9450          /* Did the child fail?  (This shouldn't happen.)  */
9451          || status
9452
9453          /* Did the vfork/compiler bug occur?  */
9454          || parent != getpid()
9455
9456          /* Did the file descriptor bug occur?  */
9457          || fstat(fileno(stdout), &st) != 0
9458          );
9459   }
9460 }
9461 _ACEOF
9462 if ac_fn_c_try_run "$LINENO"; then :
9463   ac_cv_func_vfork_works=yes
9464 else
9465   ac_cv_func_vfork_works=no
9466 fi
9467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9468   conftest.$ac_objext conftest.beam conftest.$ac_ext
9469 fi
9470
9471 fi
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9473 $as_echo "$ac_cv_func_vfork_works" >&6; }
9474
9475 fi;
9476 if test "x$ac_cv_func_fork_works" = xcross; then
9477   ac_cv_func_vfork_works=$ac_cv_func_vfork
9478   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9479 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9480 fi
9481
9482 if test "x$ac_cv_func_vfork_works" = xyes; then
9483
9484 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9485
9486 else
9487
9488 $as_echo "#define vfork fork" >>confdefs.h
9489
9490 fi
9491 if test "x$ac_cv_func_fork_works" = xyes; then
9492
9493 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9494
9495 fi
9496
9497
9498 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9499 # iconv() prototype.
9500
9501       if test "X$prefix" = "XNONE"; then
9502     acl_final_prefix="$ac_default_prefix"
9503   else
9504     acl_final_prefix="$prefix"
9505   fi
9506   if test "X$exec_prefix" = "XNONE"; then
9507     acl_final_exec_prefix='${prefix}'
9508   else
9509     acl_final_exec_prefix="$exec_prefix"
9510   fi
9511   acl_save_prefix="$prefix"
9512   prefix="$acl_final_prefix"
9513   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9514   prefix="$acl_save_prefix"
9515
9516
9517 # Check whether --with-gnu-ld was given.
9518 if test "${with_gnu_ld+set}" = set; then :
9519   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9520 else
9521   with_gnu_ld=no
9522 fi
9523
9524 # Prepare PATH_SEPARATOR.
9525 # The user is always right.
9526 if test "${PATH_SEPARATOR+set}" != set; then
9527   echo "#! /bin/sh" >conf$$.sh
9528   echo  "exit 0"   >>conf$$.sh
9529   chmod +x conf$$.sh
9530   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9531     PATH_SEPARATOR=';'
9532   else
9533     PATH_SEPARATOR=:
9534   fi
9535   rm -f conf$$.sh
9536 fi
9537 ac_prog=ld
9538 if test "$GCC" = yes; then
9539   # Check if gcc -print-prog-name=ld gives a path.
9540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9541 $as_echo_n "checking for ld used by GCC... " >&6; }
9542   case $host in
9543   *-*-mingw*)
9544     # gcc leaves a trailing carriage return which upsets mingw
9545     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9546   *)
9547     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9548   esac
9549   case $ac_prog in
9550     # Accept absolute paths.
9551     [\\/]* | [A-Za-z]:[\\/]*)
9552       re_direlt='/[^/][^/]*/\.\./'
9553       # Canonicalize the path of ld
9554       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9555       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9556         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9557       done
9558       test -z "$LD" && LD="$ac_prog"
9559       ;;
9560   "")
9561     # If it fails, then pretend we aren't using GCC.
9562     ac_prog=ld
9563     ;;
9564   *)
9565     # If it is relative, then search for the first ld in PATH.
9566     with_gnu_ld=unknown
9567     ;;
9568   esac
9569 elif test "$with_gnu_ld" = yes; then
9570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9571 $as_echo_n "checking for GNU ld... " >&6; }
9572 else
9573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9574 $as_echo_n "checking for non-GNU ld... " >&6; }
9575 fi
9576 if test "${acl_cv_path_LD+set}" = set; then :
9577   $as_echo_n "(cached) " >&6
9578 else
9579   if test -z "$LD"; then
9580   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9581   for ac_dir in $PATH; do
9582     test -z "$ac_dir" && ac_dir=.
9583     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9584       acl_cv_path_LD="$ac_dir/$ac_prog"
9585       # Check to see if the program is GNU ld.  I'd rather use --version,
9586       # but apparently some GNU ld's only accept -v.
9587       # Break only if it was the GNU/non-GNU ld that we prefer.
9588       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9589         test "$with_gnu_ld" != no && break
9590       else
9591         test "$with_gnu_ld" != yes && break
9592       fi
9593     fi
9594   done
9595   IFS="$ac_save_ifs"
9596 else
9597   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9598 fi
9599 fi
9600
9601 LD="$acl_cv_path_LD"
9602 if test -n "$LD"; then
9603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9604 $as_echo "$LD" >&6; }
9605 else
9606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9607 $as_echo "no" >&6; }
9608 fi
9609 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9611 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9612 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9613   $as_echo_n "(cached) " >&6
9614 else
9615   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9616 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9617   acl_cv_prog_gnu_ld=yes
9618 else
9619   acl_cv_prog_gnu_ld=no
9620 fi
9621 fi
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9623 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9624 with_gnu_ld=$acl_cv_prog_gnu_ld
9625
9626
9627
9628                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9629 $as_echo_n "checking for shared library run path origin... " >&6; }
9630 if test "${acl_cv_rpath+set}" = set; then :
9631   $as_echo_n "(cached) " >&6
9632 else
9633
9634     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9635     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9636     . ./conftest.sh
9637     rm -f ./conftest.sh
9638     acl_cv_rpath=done
9639
9640 fi
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9642 $as_echo "$acl_cv_rpath" >&6; }
9643   wl="$acl_cv_wl"
9644   libext="$acl_cv_libext"
9645   shlibext="$acl_cv_shlibext"
9646   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9647   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9648   hardcode_direct="$acl_cv_hardcode_direct"
9649   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9650     # Check whether --enable-rpath was given.
9651 if test "${enable_rpath+set}" = set; then :
9652   enableval=$enable_rpath; :
9653 else
9654   enable_rpath=yes
9655 fi
9656
9657
9658
9659
9660
9661
9662
9663
9664     use_additional=yes
9665
9666   acl_save_prefix="$prefix"
9667   prefix="$acl_final_prefix"
9668   acl_save_exec_prefix="$exec_prefix"
9669   exec_prefix="$acl_final_exec_prefix"
9670
9671     eval additional_includedir=\"$includedir\"
9672     eval additional_libdir=\"$libdir\"
9673
9674   exec_prefix="$acl_save_exec_prefix"
9675   prefix="$acl_save_prefix"
9676
9677
9678 # Check whether --with-libiconv-prefix was given.
9679 if test "${with_libiconv_prefix+set}" = set; then :
9680   withval=$with_libiconv_prefix;
9681     if test "X$withval" = "Xno"; then
9682       use_additional=no
9683     else
9684       if test "X$withval" = "X"; then
9685
9686   acl_save_prefix="$prefix"
9687   prefix="$acl_final_prefix"
9688   acl_save_exec_prefix="$exec_prefix"
9689   exec_prefix="$acl_final_exec_prefix"
9690
9691           eval additional_includedir=\"$includedir\"
9692           eval additional_libdir=\"$libdir\"
9693
9694   exec_prefix="$acl_save_exec_prefix"
9695   prefix="$acl_save_prefix"
9696
9697       else
9698         additional_includedir="$withval/include"
9699         additional_libdir="$withval/lib"
9700       fi
9701     fi
9702
9703 fi
9704
9705       LIBICONV=
9706   LTLIBICONV=
9707   INCICONV=
9708   rpathdirs=
9709   ltrpathdirs=
9710   names_already_handled=
9711   names_next_round='iconv '
9712   while test -n "$names_next_round"; do
9713     names_this_round="$names_next_round"
9714     names_next_round=
9715     for name in $names_this_round; do
9716       already_handled=
9717       for n in $names_already_handled; do
9718         if test "$n" = "$name"; then
9719           already_handled=yes
9720           break
9721         fi
9722       done
9723       if test -z "$already_handled"; then
9724         names_already_handled="$names_already_handled $name"
9725                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9726         eval value=\"\$HAVE_LIB$uppername\"
9727         if test -n "$value"; then
9728           if test "$value" = yes; then
9729             eval value=\"\$LIB$uppername\"
9730             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9731             eval value=\"\$LTLIB$uppername\"
9732             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9733           else
9734                                     :
9735           fi
9736         else
9737                               found_dir=
9738           found_la=
9739           found_so=
9740           found_a=
9741           if test $use_additional = yes; then
9742             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9743               found_dir="$additional_libdir"
9744               found_so="$additional_libdir/lib$name.$shlibext"
9745               if test -f "$additional_libdir/lib$name.la"; then
9746                 found_la="$additional_libdir/lib$name.la"
9747               fi
9748             else
9749               if test -f "$additional_libdir/lib$name.$libext"; then
9750                 found_dir="$additional_libdir"
9751                 found_a="$additional_libdir/lib$name.$libext"
9752                 if test -f "$additional_libdir/lib$name.la"; then
9753                   found_la="$additional_libdir/lib$name.la"
9754                 fi
9755               fi
9756             fi
9757           fi
9758           if test "X$found_dir" = "X"; then
9759             for x in $LDFLAGS $LTLIBICONV; do
9760
9761   acl_save_prefix="$prefix"
9762   prefix="$acl_final_prefix"
9763   acl_save_exec_prefix="$exec_prefix"
9764   exec_prefix="$acl_final_exec_prefix"
9765   eval x=\"$x\"
9766   exec_prefix="$acl_save_exec_prefix"
9767   prefix="$acl_save_prefix"
9768
9769               case "$x" in
9770                 -L*)
9771                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9772                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9773                     found_dir="$dir"
9774                     found_so="$dir/lib$name.$shlibext"
9775                     if test -f "$dir/lib$name.la"; then
9776                       found_la="$dir/lib$name.la"
9777                     fi
9778                   else
9779                     if test -f "$dir/lib$name.$libext"; then
9780                       found_dir="$dir"
9781                       found_a="$dir/lib$name.$libext"
9782                       if test -f "$dir/lib$name.la"; then
9783                         found_la="$dir/lib$name.la"
9784                       fi
9785                     fi
9786                   fi
9787                   ;;
9788               esac
9789               if test "X$found_dir" != "X"; then
9790                 break
9791               fi
9792             done
9793           fi
9794           if test "X$found_dir" != "X"; then
9795                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9796             if test "X$found_so" != "X"; then
9797                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9798                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9799               else
9800                                                                                 haveit=
9801                 for x in $ltrpathdirs; do
9802                   if test "X$x" = "X$found_dir"; then
9803                     haveit=yes
9804                     break
9805                   fi
9806                 done
9807                 if test -z "$haveit"; then
9808                   ltrpathdirs="$ltrpathdirs $found_dir"
9809                 fi
9810                                 if test "$hardcode_direct" = yes; then
9811                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9812                 else
9813                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9814                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9815                                                             haveit=
9816                     for x in $rpathdirs; do
9817                       if test "X$x" = "X$found_dir"; then
9818                         haveit=yes
9819                         break
9820                       fi
9821                     done
9822                     if test -z "$haveit"; then
9823                       rpathdirs="$rpathdirs $found_dir"
9824                     fi
9825                   else
9826                                                                                 haveit=
9827                     for x in $LDFLAGS $LIBICONV; do
9828
9829   acl_save_prefix="$prefix"
9830   prefix="$acl_final_prefix"
9831   acl_save_exec_prefix="$exec_prefix"
9832   exec_prefix="$acl_final_exec_prefix"
9833   eval x=\"$x\"
9834   exec_prefix="$acl_save_exec_prefix"
9835   prefix="$acl_save_prefix"
9836
9837                       if test "X$x" = "X-L$found_dir"; then
9838                         haveit=yes
9839                         break
9840                       fi
9841                     done
9842                     if test -z "$haveit"; then
9843                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9844                     fi
9845                     if test "$hardcode_minus_L" != no; then
9846                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9847                     else
9848                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9849                     fi
9850                   fi
9851                 fi
9852               fi
9853             else
9854               if test "X$found_a" != "X"; then
9855                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9856               else
9857                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9858               fi
9859             fi
9860                         additional_includedir=
9861             case "$found_dir" in
9862               */lib | */lib/)
9863                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9864                 additional_includedir="$basedir/include"
9865                 ;;
9866             esac
9867             if test "X$additional_includedir" != "X"; then
9868                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9869                 haveit=
9870                 if test "X$additional_includedir" = "X/usr/local/include"; then
9871                   if test -n "$GCC"; then
9872                     case $host_os in
9873                       linux*) haveit=yes;;
9874                     esac
9875                   fi
9876                 fi
9877                 if test -z "$haveit"; then
9878                   for x in $CPPFLAGS $INCICONV; do
9879
9880   acl_save_prefix="$prefix"
9881   prefix="$acl_final_prefix"
9882   acl_save_exec_prefix="$exec_prefix"
9883   exec_prefix="$acl_final_exec_prefix"
9884   eval x=\"$x\"
9885   exec_prefix="$acl_save_exec_prefix"
9886   prefix="$acl_save_prefix"
9887
9888                     if test "X$x" = "X-I$additional_includedir"; then
9889                       haveit=yes
9890                       break
9891                     fi
9892                   done
9893                   if test -z "$haveit"; then
9894                     if test -d "$additional_includedir"; then
9895                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9896                     fi
9897                   fi
9898                 fi
9899               fi
9900             fi
9901                         if test -n "$found_la"; then
9902                                                         save_libdir="$libdir"
9903               case "$found_la" in
9904                 */* | *\\*) . "$found_la" ;;
9905                 *) . "./$found_la" ;;
9906               esac
9907               libdir="$save_libdir"
9908                             for dep in $dependency_libs; do
9909                 case "$dep" in
9910                   -L*)
9911                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9912                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9913                       haveit=
9914                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9915                         if test -n "$GCC"; then
9916                           case $host_os in
9917                             linux*) haveit=yes;;
9918                           esac
9919                         fi
9920                       fi
9921                       if test -z "$haveit"; then
9922                         haveit=
9923                         for x in $LDFLAGS $LIBICONV; do
9924
9925   acl_save_prefix="$prefix"
9926   prefix="$acl_final_prefix"
9927   acl_save_exec_prefix="$exec_prefix"
9928   exec_prefix="$acl_final_exec_prefix"
9929   eval x=\"$x\"
9930   exec_prefix="$acl_save_exec_prefix"
9931   prefix="$acl_save_prefix"
9932
9933                           if test "X$x" = "X-L$additional_libdir"; then
9934                             haveit=yes
9935                             break
9936                           fi
9937                         done
9938                         if test -z "$haveit"; then
9939                           if test -d "$additional_libdir"; then
9940                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9941                           fi
9942                         fi
9943                         haveit=
9944                         for x in $LDFLAGS $LTLIBICONV; do
9945
9946   acl_save_prefix="$prefix"
9947   prefix="$acl_final_prefix"
9948   acl_save_exec_prefix="$exec_prefix"
9949   exec_prefix="$acl_final_exec_prefix"
9950   eval x=\"$x\"
9951   exec_prefix="$acl_save_exec_prefix"
9952   prefix="$acl_save_prefix"
9953
9954                           if test "X$x" = "X-L$additional_libdir"; then
9955                             haveit=yes
9956                             break
9957                           fi
9958                         done
9959                         if test -z "$haveit"; then
9960                           if test -d "$additional_libdir"; then
9961                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9962                           fi
9963                         fi
9964                       fi
9965                     fi
9966                     ;;
9967                   -R*)
9968                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9969                     if test "$enable_rpath" != no; then
9970                                                                   haveit=
9971                       for x in $rpathdirs; do
9972                         if test "X$x" = "X$dir"; then
9973                           haveit=yes
9974                           break
9975                         fi
9976                       done
9977                       if test -z "$haveit"; then
9978                         rpathdirs="$rpathdirs $dir"
9979                       fi
9980                                                                   haveit=
9981                       for x in $ltrpathdirs; do
9982                         if test "X$x" = "X$dir"; then
9983                           haveit=yes
9984                           break
9985                         fi
9986                       done
9987                       if test -z "$haveit"; then
9988                         ltrpathdirs="$ltrpathdirs $dir"
9989                       fi
9990                     fi
9991                     ;;
9992                   -l*)
9993                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9994                     ;;
9995                   *.la)
9996                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9997                     ;;
9998                   *)
9999                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10000                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10001                     ;;
10002                 esac
10003               done
10004             fi
10005           else
10006                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10007             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10008           fi
10009         fi
10010       fi
10011     done
10012   done
10013   if test "X$rpathdirs" != "X"; then
10014     if test -n "$hardcode_libdir_separator"; then
10015                         alldirs=
10016       for found_dir in $rpathdirs; do
10017         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10018       done
10019             acl_save_libdir="$libdir"
10020       libdir="$alldirs"
10021       eval flag=\"$hardcode_libdir_flag_spec\"
10022       libdir="$acl_save_libdir"
10023       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10024     else
10025             for found_dir in $rpathdirs; do
10026         acl_save_libdir="$libdir"
10027         libdir="$found_dir"
10028         eval flag=\"$hardcode_libdir_flag_spec\"
10029         libdir="$acl_save_libdir"
10030         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10031       done
10032     fi
10033   fi
10034   if test "X$ltrpathdirs" != "X"; then
10035             for found_dir in $ltrpathdirs; do
10036       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10037     done
10038   fi
10039
10040
10041 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10042   ac_ext=cpp
10043 ac_cpp='$CXXCPP $CPPFLAGS'
10044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10047
10048
10049
10050
10051
10052
10053           am_save_CPPFLAGS="$CPPFLAGS"
10054
10055   for element in $INCICONV; do
10056     haveit=
10057     for x in $CPPFLAGS; do
10058
10059   acl_save_prefix="$prefix"
10060   prefix="$acl_final_prefix"
10061   acl_save_exec_prefix="$exec_prefix"
10062   exec_prefix="$acl_final_exec_prefix"
10063   eval x=\"$x\"
10064   exec_prefix="$acl_save_exec_prefix"
10065   prefix="$acl_save_prefix"
10066
10067       if test "X$x" = "X$element"; then
10068         haveit=yes
10069         break
10070       fi
10071     done
10072     if test -z "$haveit"; then
10073       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10074     fi
10075   done
10076
10077
10078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10079 $as_echo_n "checking for iconv... " >&6; }
10080 if test "${am_cv_func_iconv+set}" = set; then :
10081   $as_echo_n "(cached) " >&6
10082 else
10083
10084     am_cv_func_iconv="no, consider installing GNU libiconv"
10085     am_cv_lib_iconv=no
10086     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087 /* end confdefs.h.  */
10088 #include <stdlib.h>
10089 #include <iconv.h>
10090 int
10091 main ()
10092 {
10093 iconv_t cd = iconv_open("","");
10094        iconv(cd,NULL,NULL,NULL,NULL);
10095        iconv_close(cd);
10096   ;
10097   return 0;
10098 }
10099 _ACEOF
10100 if ac_fn_cxx_try_link "$LINENO"; then :
10101   am_cv_func_iconv=yes
10102 fi
10103 rm -f core conftest.err conftest.$ac_objext \
10104     conftest$ac_exeext conftest.$ac_ext
10105     if test "$am_cv_func_iconv" != yes; then
10106       am_save_LIBS="$LIBS"
10107       LIBS="$LIBS $LIBICONV"
10108       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109 /* end confdefs.h.  */
10110 #include <stdlib.h>
10111 #include <iconv.h>
10112 int
10113 main ()
10114 {
10115 iconv_t cd = iconv_open("","");
10116          iconv(cd,NULL,NULL,NULL,NULL);
10117          iconv_close(cd);
10118   ;
10119   return 0;
10120 }
10121 _ACEOF
10122 if ac_fn_cxx_try_link "$LINENO"; then :
10123   am_cv_lib_iconv=yes
10124         am_cv_func_iconv=yes
10125 fi
10126 rm -f core conftest.err conftest.$ac_objext \
10127     conftest$ac_exeext conftest.$ac_ext
10128       LIBS="$am_save_LIBS"
10129     fi
10130
10131 fi
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10133 $as_echo "$am_cv_func_iconv" >&6; }
10134   if test "$am_cv_func_iconv" = yes; then
10135
10136 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10137
10138   fi
10139   if test "$am_cv_lib_iconv" = yes; then
10140     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10141 $as_echo_n "checking how to link with libiconv... " >&6; }
10142     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10143 $as_echo "$LIBICONV" >&6; }
10144   else
10145             CPPFLAGS="$am_save_CPPFLAGS"
10146     LIBICONV=
10147     LTLIBICONV=
10148   fi
10149
10150
10151
10152   if test "$am_cv_func_iconv" = yes; then
10153     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10154 $as_echo_n "checking for iconv declaration... " >&6; }
10155     if test "${am_cv_proto_iconv+set}" = set; then :
10156   $as_echo_n "(cached) " >&6
10157 else
10158
10159       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10160 /* end confdefs.h.  */
10161
10162 #include <stdlib.h>
10163 #include <iconv.h>
10164 extern
10165 #ifdef __cplusplus
10166 "C"
10167 #endif
10168 #if defined(__STDC__) || defined(__cplusplus)
10169 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10170 #else
10171 size_t iconv();
10172 #endif
10173
10174 int
10175 main ()
10176 {
10177
10178   ;
10179   return 0;
10180 }
10181 _ACEOF
10182 if ac_fn_cxx_try_compile "$LINENO"; then :
10183   am_cv_proto_iconv_arg1=""
10184 else
10185   am_cv_proto_iconv_arg1="const"
10186 fi
10187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10188       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);"
10189 fi
10190
10191     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10192     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10193          }$am_cv_proto_iconv" >&5
10194 $as_echo "${ac_t:-
10195          }$am_cv_proto_iconv" >&6; }
10196
10197 cat >>confdefs.h <<_ACEOF
10198 #define ICONV_CONST $am_cv_proto_iconv_arg1
10199 _ACEOF
10200
10201   fi
10202
10203    ac_ext=c
10204 ac_cpp='$CPP $CPPFLAGS'
10205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10208
10209 else
10210
10211
10212
10213
10214
10215           am_save_CPPFLAGS="$CPPFLAGS"
10216
10217   for element in $INCICONV; do
10218     haveit=
10219     for x in $CPPFLAGS; do
10220
10221   acl_save_prefix="$prefix"
10222   prefix="$acl_final_prefix"
10223   acl_save_exec_prefix="$exec_prefix"
10224   exec_prefix="$acl_final_exec_prefix"
10225   eval x=\"$x\"
10226   exec_prefix="$acl_save_exec_prefix"
10227   prefix="$acl_save_prefix"
10228
10229       if test "X$x" = "X$element"; then
10230         haveit=yes
10231         break
10232       fi
10233     done
10234     if test -z "$haveit"; then
10235       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10236     fi
10237   done
10238
10239
10240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10241 $as_echo_n "checking for iconv... " >&6; }
10242 if test "${am_cv_func_iconv+set}" = set; then :
10243   $as_echo_n "(cached) " >&6
10244 else
10245
10246     am_cv_func_iconv="no, consider installing GNU libiconv"
10247     am_cv_lib_iconv=no
10248     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10249 /* end confdefs.h.  */
10250 #include <stdlib.h>
10251 #include <iconv.h>
10252 int
10253 main ()
10254 {
10255 iconv_t cd = iconv_open("","");
10256        iconv(cd,NULL,NULL,NULL,NULL);
10257        iconv_close(cd);
10258   ;
10259   return 0;
10260 }
10261 _ACEOF
10262 if ac_fn_c_try_link "$LINENO"; then :
10263   am_cv_func_iconv=yes
10264 fi
10265 rm -f core conftest.err conftest.$ac_objext \
10266     conftest$ac_exeext conftest.$ac_ext
10267     if test "$am_cv_func_iconv" != yes; then
10268       am_save_LIBS="$LIBS"
10269       LIBS="$LIBS $LIBICONV"
10270       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10271 /* end confdefs.h.  */
10272 #include <stdlib.h>
10273 #include <iconv.h>
10274 int
10275 main ()
10276 {
10277 iconv_t cd = iconv_open("","");
10278          iconv(cd,NULL,NULL,NULL,NULL);
10279          iconv_close(cd);
10280   ;
10281   return 0;
10282 }
10283 _ACEOF
10284 if ac_fn_c_try_link "$LINENO"; then :
10285   am_cv_lib_iconv=yes
10286         am_cv_func_iconv=yes
10287 fi
10288 rm -f core conftest.err conftest.$ac_objext \
10289     conftest$ac_exeext conftest.$ac_ext
10290       LIBS="$am_save_LIBS"
10291     fi
10292
10293 fi
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10295 $as_echo "$am_cv_func_iconv" >&6; }
10296   if test "$am_cv_func_iconv" = yes; then
10297
10298 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10299
10300   fi
10301   if test "$am_cv_lib_iconv" = yes; then
10302     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10303 $as_echo_n "checking how to link with libiconv... " >&6; }
10304     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10305 $as_echo "$LIBICONV" >&6; }
10306   else
10307             CPPFLAGS="$am_save_CPPFLAGS"
10308     LIBICONV=
10309     LTLIBICONV=
10310   fi
10311
10312
10313
10314   if test "$am_cv_func_iconv" = yes; then
10315     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10316 $as_echo_n "checking for iconv declaration... " >&6; }
10317     if test "${am_cv_proto_iconv+set}" = set; then :
10318   $as_echo_n "(cached) " >&6
10319 else
10320
10321       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322 /* end confdefs.h.  */
10323
10324 #include <stdlib.h>
10325 #include <iconv.h>
10326 extern
10327 #ifdef __cplusplus
10328 "C"
10329 #endif
10330 #if defined(__STDC__) || defined(__cplusplus)
10331 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10332 #else
10333 size_t iconv();
10334 #endif
10335
10336 int
10337 main ()
10338 {
10339
10340   ;
10341   return 0;
10342 }
10343 _ACEOF
10344 if ac_fn_c_try_compile "$LINENO"; then :
10345   am_cv_proto_iconv_arg1=""
10346 else
10347   am_cv_proto_iconv_arg1="const"
10348 fi
10349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10350       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);"
10351 fi
10352
10353     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10354     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10355          }$am_cv_proto_iconv" >&5
10356 $as_echo "${ac_t:-
10357          }$am_cv_proto_iconv" >&6; }
10358
10359 cat >>confdefs.h <<_ACEOF
10360 #define ICONV_CONST $am_cv_proto_iconv_arg1
10361 _ACEOF
10362
10363   fi
10364
10365 fi
10366
10367 # Until we have in-tree GNU iconv:
10368 LIBICONV_DEP=
10369
10370
10371
10372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10373 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10374 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10375   $as_echo_n "(cached) " >&6
10376 else
10377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378 /* end confdefs.h.  */
10379 #include <locale.h>
10380 int
10381 main ()
10382 {
10383 return LC_MESSAGES
10384   ;
10385   return 0;
10386 }
10387 _ACEOF
10388 if ac_fn_c_try_link "$LINENO"; then :
10389   am_cv_val_LC_MESSAGES=yes
10390 else
10391   am_cv_val_LC_MESSAGES=no
10392 fi
10393 rm -f core conftest.err conftest.$ac_objext \
10394     conftest$ac_exeext conftest.$ac_ext
10395 fi
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10397 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10398   if test $am_cv_val_LC_MESSAGES = yes; then
10399
10400 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10401
10402   fi
10403
10404
10405
10406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10407 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10408 if test "${am_cv_langinfo_codeset+set}" = set; then :
10409   $as_echo_n "(cached) " >&6
10410 else
10411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h.  */
10413 #include <langinfo.h>
10414 int
10415 main ()
10416 {
10417 char* cs = nl_langinfo(CODESET);
10418   ;
10419   return 0;
10420 }
10421 _ACEOF
10422 if ac_fn_c_try_link "$LINENO"; then :
10423   am_cv_langinfo_codeset=yes
10424 else
10425   am_cv_langinfo_codeset=no
10426 fi
10427 rm -f core conftest.err conftest.$ac_objext \
10428     conftest$ac_exeext conftest.$ac_ext
10429
10430 fi
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10432 $as_echo "$am_cv_langinfo_codeset" >&6; }
10433   if test $am_cv_langinfo_codeset = yes; then
10434
10435 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10436
10437   fi
10438
10439
10440 # We will need to find libiberty.h and ansidecl.h
10441 saved_CFLAGS="$CFLAGS"
10442 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10443 saved_CXXFLAGS="$CXXFLAGS"
10444 CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include"
10445 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10446         strsignal strstr stpcpy strverscmp \
10447         errno snprintf vsnprintf vasprintf malloc realloc calloc \
10448         free basename getopt clock getpagesize clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
10449 do
10450   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10452 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10453 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10454   $as_echo_n "(cached) " >&6
10455 else
10456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h.  */
10458 #undef $ac_tr_decl
10459 #define $ac_tr_decl 1
10460
10461 #include "ansidecl.h"
10462 #include "system.h"
10463
10464 int
10465 main ()
10466 {
10467 #ifndef $ac_func
10468 char *(*pfn) = (char *(*)) $ac_func ;
10469 #endif
10470   ;
10471   return 0;
10472 }
10473 _ACEOF
10474 if ac_fn_c_try_compile "$LINENO"; then :
10475   eval "gcc_cv_have_decl_$ac_func=yes"
10476 else
10477   eval "gcc_cv_have_decl_$ac_func=no"
10478 fi
10479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10480 fi
10481
10482 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10484 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10485 #define $ac_tr_decl 1
10486 _ACEOF
10487
10488 else
10489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10490 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10491 #define $ac_tr_decl 0
10492 _ACEOF
10493
10494 fi
10495
10496 done
10497
10498
10499 for ac_func in getrlimit setrlimit getrusage
10500 do
10501   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10503 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10504 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10505   $as_echo_n "(cached) " >&6
10506 else
10507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h.  */
10509 #undef $ac_tr_decl
10510 #define $ac_tr_decl 1
10511
10512 #include "ansidecl.h"
10513 #include "system.h"
10514 #ifdef HAVE_SYS_RESOURCE_H
10515 #include <sys/resource.h>
10516 #endif
10517
10518
10519 int
10520 main ()
10521 {
10522 #ifndef $ac_func
10523 char *(*pfn) = (char *(*)) $ac_func ;
10524 #endif
10525   ;
10526   return 0;
10527 }
10528 _ACEOF
10529 if ac_fn_c_try_compile "$LINENO"; then :
10530   eval "gcc_cv_have_decl_$ac_func=yes"
10531 else
10532   eval "gcc_cv_have_decl_$ac_func=no"
10533 fi
10534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10535 fi
10536
10537 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10539 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10540 #define $ac_tr_decl 1
10541 _ACEOF
10542
10543 else
10544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10546 #define $ac_tr_decl 0
10547 _ACEOF
10548
10549 fi
10550
10551 done
10552
10553
10554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555 /* end confdefs.h.  */
10556
10557 #include "ansidecl.h"
10558 #include "system.h"
10559 #ifdef HAVE_SYS_RESOURCE_H
10560 #include <sys/resource.h>
10561 #endif
10562
10563 int
10564 main ()
10565 {
10566 rlim_t l = 0;
10567   ;
10568   return 0;
10569 }
10570 _ACEOF
10571 if ac_fn_c_try_compile "$LINENO"; then :
10572
10573 else
10574
10575 $as_echo "#define rlim_t long" >>confdefs.h
10576
10577 fi
10578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10579
10580 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10581 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
10582 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10583 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10584 for ac_func in ldgetname
10585 do
10586   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10588 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10589 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10590   $as_echo_n "(cached) " >&6
10591 else
10592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10593 /* end confdefs.h.  */
10594 #undef $ac_tr_decl
10595 #define $ac_tr_decl 1
10596
10597 #include "ansidecl.h"
10598 #include "system.h"
10599 #ifdef HAVE_LDFCN_H
10600 #undef FREAD
10601 #undef FWRITE
10602 #include <ldfcn.h>
10603 #endif
10604
10605
10606 int
10607 main ()
10608 {
10609 #ifndef $ac_func
10610 char *(*pfn) = (char *(*)) $ac_func ;
10611 #endif
10612   ;
10613   return 0;
10614 }
10615 _ACEOF
10616 if ac_fn_c_try_compile "$LINENO"; then :
10617   eval "gcc_cv_have_decl_$ac_func=yes"
10618 else
10619   eval "gcc_cv_have_decl_$ac_func=no"
10620 fi
10621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10622 fi
10623
10624 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10626 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10627 #define $ac_tr_decl 1
10628 _ACEOF
10629
10630 else
10631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10632 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10633 #define $ac_tr_decl 0
10634 _ACEOF
10635
10636 fi
10637
10638 done
10639
10640
10641 for ac_func in times
10642 do
10643   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10645 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10646 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10647   $as_echo_n "(cached) " >&6
10648 else
10649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10650 /* end confdefs.h.  */
10651 #undef $ac_tr_decl
10652 #define $ac_tr_decl 1
10653
10654 #include "ansidecl.h"
10655 #include "system.h"
10656 #ifdef HAVE_SYS_TIMES_H
10657 #include <sys/times.h>
10658 #endif
10659
10660
10661 int
10662 main ()
10663 {
10664 #ifndef $ac_func
10665 char *(*pfn) = (char *(*)) $ac_func ;
10666 #endif
10667   ;
10668   return 0;
10669 }
10670 _ACEOF
10671 if ac_fn_c_try_compile "$LINENO"; then :
10672   eval "gcc_cv_have_decl_$ac_func=yes"
10673 else
10674   eval "gcc_cv_have_decl_$ac_func=no"
10675 fi
10676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10677 fi
10678
10679 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10681 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10682 #define $ac_tr_decl 1
10683 _ACEOF
10684
10685 else
10686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10687 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10688 #define $ac_tr_decl 0
10689 _ACEOF
10690
10691 fi
10692
10693 done
10694
10695
10696 for ac_func in sigaltstack
10697 do
10698   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10700 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10701 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10702   $as_echo_n "(cached) " >&6
10703 else
10704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h.  */
10706 #undef $ac_tr_decl
10707 #define $ac_tr_decl 1
10708
10709 #include "ansidecl.h"
10710 #include "system.h"
10711 #include <signal.h>
10712
10713
10714 int
10715 main ()
10716 {
10717 #ifndef $ac_func
10718 char *(*pfn) = (char *(*)) $ac_func ;
10719 #endif
10720   ;
10721   return 0;
10722 }
10723 _ACEOF
10724 if ac_fn_c_try_compile "$LINENO"; then :
10725   eval "gcc_cv_have_decl_$ac_func=yes"
10726 else
10727   eval "gcc_cv_have_decl_$ac_func=no"
10728 fi
10729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10730 fi
10731
10732 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10734 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10735 #define $ac_tr_decl 1
10736 _ACEOF
10737
10738 else
10739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10740 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10741 #define $ac_tr_decl 0
10742 _ACEOF
10743
10744 fi
10745
10746 done
10747
10748
10749 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10750 # prototype.
10751 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10752   ac_ext=cpp
10753 ac_cpp='$CXXCPP $CPPFLAGS'
10754 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10755 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10756 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10757
10758    for ac_func in madvise
10759 do
10760   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10762 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10763 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10764   $as_echo_n "(cached) " >&6
10765 else
10766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h.  */
10768 #undef $ac_tr_decl
10769 #define $ac_tr_decl 1
10770
10771      #include "ansidecl.h"
10772      #include "system.h"
10773
10774
10775 int
10776 main ()
10777 {
10778 #ifndef $ac_func
10779 char *(*pfn) = (char *(*)) $ac_func ;
10780 #endif
10781   ;
10782   return 0;
10783 }
10784 _ACEOF
10785 if ac_fn_cxx_try_compile "$LINENO"; then :
10786   eval "gcc_cv_have_decl_$ac_func=yes"
10787 else
10788   eval "gcc_cv_have_decl_$ac_func=no"
10789 fi
10790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10791 fi
10792
10793 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10795 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10796 #define $ac_tr_decl 1
10797 _ACEOF
10798
10799 else
10800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10801 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10802 #define $ac_tr_decl 0
10803 _ACEOF
10804
10805 fi
10806
10807 done
10808
10809    ac_ext=c
10810 ac_cpp='$CPP $CPPFLAGS'
10811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10814
10815 else
10816   for ac_func in madvise
10817 do
10818   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10820 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10821 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10822   $as_echo_n "(cached) " >&6
10823 else
10824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h.  */
10826 #undef $ac_tr_decl
10827 #define $ac_tr_decl 1
10828
10829      #include "ansidecl.h"
10830      #include "system.h"
10831
10832
10833 int
10834 main ()
10835 {
10836 #ifndef $ac_func
10837 char *(*pfn) = (char *(*)) $ac_func ;
10838 #endif
10839   ;
10840   return 0;
10841 }
10842 _ACEOF
10843 if ac_fn_c_try_compile "$LINENO"; then :
10844   eval "gcc_cv_have_decl_$ac_func=yes"
10845 else
10846   eval "gcc_cv_have_decl_$ac_func=no"
10847 fi
10848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10849 fi
10850
10851 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10853 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10854 #define $ac_tr_decl 1
10855 _ACEOF
10856
10857 else
10858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10859 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10860 #define $ac_tr_decl 0
10861 _ACEOF
10862
10863 fi
10864
10865 done
10866
10867
10868 fi
10869
10870 # More time-related stuff.
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10872 $as_echo_n "checking for struct tms... " >&6; }
10873 if test "${ac_cv_struct_tms+set}" = set; then :
10874   $as_echo_n "(cached) " >&6
10875 else
10876
10877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10878 /* end confdefs.h.  */
10879
10880 #include "ansidecl.h"
10881 #include "system.h"
10882 #ifdef HAVE_SYS_TIMES_H
10883 #include <sys/times.h>
10884 #endif
10885
10886 int
10887 main ()
10888 {
10889 struct tms tms;
10890   ;
10891   return 0;
10892 }
10893 _ACEOF
10894 if ac_fn_c_try_compile "$LINENO"; then :
10895   ac_cv_struct_tms=yes
10896 else
10897   ac_cv_struct_tms=no
10898 fi
10899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10900 fi
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10902 $as_echo "$ac_cv_struct_tms" >&6; }
10903 if test $ac_cv_struct_tms = yes; then
10904
10905 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10906
10907 fi
10908
10909 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10910 # revisit after autoconf 2.50.
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10912 $as_echo_n "checking for clock_t... " >&6; }
10913 if test "${gcc_cv_type_clock_t+set}" = set; then :
10914   $as_echo_n "(cached) " >&6
10915 else
10916
10917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918 /* end confdefs.h.  */
10919
10920 #include "ansidecl.h"
10921 #include "system.h"
10922
10923 int
10924 main ()
10925 {
10926 clock_t x;
10927   ;
10928   return 0;
10929 }
10930 _ACEOF
10931 if ac_fn_c_try_compile "$LINENO"; then :
10932   gcc_cv_type_clock_t=yes
10933 else
10934   gcc_cv_type_clock_t=no
10935 fi
10936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10937 fi
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10939 $as_echo "$gcc_cv_type_clock_t" >&6; }
10940 if test $gcc_cv_type_clock_t = yes; then
10941
10942 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10943
10944 fi
10945
10946 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10947 CFLAGS="$saved_CFLAGS"
10948 CXXFLAGS="$saved_CXXFLAGS"
10949
10950 # Check whether --enable-initfini-array was given.
10951 if test "${enable_initfini_array+set}" = set; then :
10952   enableval=$enable_initfini_array;
10953 else
10954
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10956 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10957 if test "${gcc_cv_initfini_array+set}" = set; then :
10958   $as_echo_n "(cached) " >&6
10959 else
10960     if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10961     if test "$cross_compiling" = yes; then :
10962   gcc_cv_initfini_array=no
10963 else
10964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10965 /* end confdefs.h.  */
10966
10967 #ifndef __ELF__
10968 #error Not an ELF OS
10969 #endif
10970 #ifdef __ia64__
10971 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10972    if it can be used.  */
10973 static int x = -1;
10974 int main (void) { return x; }
10975 int foo (void) { x = 0; }
10976 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10977 #else
10978 extern void abort ();
10979 static int count;
10980
10981 static void
10982 init1005 ()
10983 {
10984   if (count != 0)
10985     abort ();
10986   count = 1005;
10987 }
10988 void (*const init_array1005) ()
10989   __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10990   = { init1005 };
10991 static void
10992 fini1005 ()
10993 {
10994   if (count != 1005)
10995     abort ();
10996 }
10997 void (*const fini_array1005) ()
10998   __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10999   = { fini1005 };
11000
11001 static void
11002 ctor1007 ()
11003 {
11004   if (count != 1005)
11005     abort ();
11006   count = 1007;
11007 }
11008 void (*const ctors1007) ()
11009   __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
11010   = { ctor1007 };
11011 static void
11012 dtor1007 ()
11013 {
11014   if (count != 1007)
11015     abort ();
11016   count = 1005;
11017 }
11018 void (*const dtors1007) ()
11019   __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
11020   = { dtor1007 };
11021
11022 static void
11023 init65530 ()
11024 {
11025   if (count != 1007)
11026     abort ();
11027   count = 65530;
11028 }
11029 void (*const init_array65530) ()
11030   __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
11031   = { init65530 };
11032 static void
11033 fini65530 ()
11034 {
11035   if (count != 65530)
11036     abort ();
11037   count = 1007;
11038 }
11039 void (*const fini_array65530) ()
11040   __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
11041   = { fini65530 };
11042
11043 static void
11044 ctor65535 ()
11045 {
11046   if (count != 65530)
11047     abort ();
11048   count = 65535;
11049 }
11050 void (*const ctors65535) ()
11051   __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
11052   = { ctor65535 };
11053 static void
11054 dtor65535 ()
11055 {
11056   if (count != 65535)
11057     abort ();
11058   count = 65530;
11059 }
11060 void (*const dtors65535) ()
11061   __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
11062   = { dtor65535 };
11063
11064 int
11065 main ()
11066 {
11067   if (count != 65535)
11068     abort ();
11069   return 0;
11070 }
11071 #endif
11072
11073 _ACEOF
11074 if ac_fn_c_try_run "$LINENO"; then :
11075   gcc_cv_initfini_array=yes
11076 else
11077   gcc_cv_initfini_array=no
11078 fi
11079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11080   conftest.$ac_objext conftest.beam conftest.$ac_ext
11081 fi
11082
11083    else
11084      { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
11085 $as_echo_n "checking cross compile... guessing... " >&6; }
11086      gcc_cv_initfini_array=no
11087    fi
11088 fi
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
11090 $as_echo "$gcc_cv_initfini_array" >&6; }
11091   enable_initfini_array=$gcc_cv_initfini_array
11092
11093 fi
11094
11095 if test $enable_initfini_array = yes; then
11096
11097 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
11098
11099 fi
11100
11101 # mkdir takes a single argument on some systems.
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11103 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11104 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11105   $as_echo_n "(cached) " >&6
11106 else
11107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108 /* end confdefs.h.  */
11109
11110 #include <sys/types.h>
11111 #ifdef HAVE_SYS_STAT_H
11112 # include <sys/stat.h>
11113 #endif
11114 #ifdef HAVE_UNISTD_H
11115 # include <unistd.h>
11116 #endif
11117 #ifdef HAVE_DIRECT_H
11118 # include <direct.h>
11119 #endif
11120 int
11121 main ()
11122 {
11123 mkdir ("foo", 0);
11124   ;
11125   return 0;
11126 }
11127 _ACEOF
11128 if ac_fn_c_try_compile "$LINENO"; then :
11129   gcc_cv_mkdir_takes_one_arg=no
11130 else
11131   gcc_cv_mkdir_takes_one_arg=yes
11132 fi
11133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11134 fi
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11136 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11137 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11138
11139 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11140
11141 fi
11142
11143
11144 # File extensions
11145 manext='.1'
11146 objext='.o'
11147
11148
11149
11150 # With Setjmp/Longjmp based exception handling.
11151 # Check whether --enable-sjlj-exceptions was given.
11152 if test "${enable_sjlj_exceptions+set}" = set; then :
11153   enableval=$enable_sjlj_exceptions; case $target in
11154   *-*-hpux10*)
11155     if test $enableval != yes; then
11156       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11157 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11158       enableval=yes
11159     fi
11160     ;;
11161 esac
11162 force_sjlj_exceptions=yes
11163 else
11164   case $target in
11165   *-*-hpux10*)
11166     force_sjlj_exceptions=yes
11167     enableval=yes
11168     ;;
11169   *)
11170     force_sjlj_exceptions=no
11171     ;;
11172 esac
11173 fi
11174
11175 if test $force_sjlj_exceptions = yes; then
11176   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11177
11178 cat >>confdefs.h <<_ACEOF
11179 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11180 _ACEOF
11181
11182 fi
11183
11184 # --------------------------------------------------------
11185 # Build, host, and target specific configuration fragments
11186 # --------------------------------------------------------
11187
11188 # Collect build-machine-specific information.
11189 . ${srcdir}/config.build
11190
11191 # Collect host-machine-specific information.
11192 . ${srcdir}/config.host
11193
11194 target_gtfiles=
11195
11196 # Collect target-machine-specific information.
11197 . ${srcdir}/config.gcc
11198
11199 extra_objs="${host_extra_objs} ${extra_objs}"
11200 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11201
11202 # Default the target-machine variables that were not explicitly set.
11203 if test x"$tm_file" = x
11204 then tm_file=$cpu_type/$cpu_type.h; fi
11205
11206 if test x"$extra_headers" = x
11207 then extra_headers=; fi
11208
11209 if test x$md_file = x
11210 then md_file=$cpu_type/$cpu_type.md; fi
11211
11212 if test x$out_file = x
11213 then out_file=$cpu_type/$cpu_type.c; fi
11214
11215 if test x"$tmake_file" = x
11216 then tmake_file=$cpu_type/t-$cpu_type
11217 fi
11218
11219 if test x"$dwarf2" = xyes
11220 then tm_file="$tm_file tm-dwarf2.h"
11221 fi
11222
11223 # Say what files are being used for the output code and MD file.
11224 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11225 echo "Using \`$srcdir/config/$md_file' as machine description file."
11226
11227 # If any of the xm_file variables contain nonexistent files, warn
11228 # about them and drop them.
11229
11230 bx=
11231 for x in $build_xm_file; do
11232   if    test -f $srcdir/config/$x
11233   then      bx="$bx $x"
11234   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11235 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11236   fi
11237 done
11238 build_xm_file="$bx"
11239
11240 hx=
11241 for x in $host_xm_file; do
11242   if    test -f $srcdir/config/$x
11243   then      hx="$hx $x"
11244   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11245 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11246   fi
11247 done
11248 host_xm_file="$hx"
11249
11250 tx=
11251 for x in $xm_file; do
11252   if    test -f $srcdir/config/$x
11253   then      tx="$tx $x"
11254   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11255 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11256   fi
11257 done
11258 xm_file="$tx"
11259
11260 count=a
11261 for f in $tm_file; do
11262         count=${count}x
11263 done
11264 if test $count = ax; then
11265         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11266 else
11267         echo "Using the following target machine macro files:"
11268         for f in $tm_file; do
11269                 echo "  $srcdir/config/$f"
11270         done
11271 fi
11272
11273 if test x$need_64bit_hwint = xyes; then
11274
11275 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11276
11277 fi
11278
11279 if test x$use_long_long_for_widest_fast_int = xyes; then
11280
11281 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11282
11283 fi
11284
11285 count=a
11286 for f in $host_xm_file; do
11287         count=${count}x
11288 done
11289 if test $count = a; then
11290         :
11291 elif test $count = ax; then
11292         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11293 else
11294         echo "Using the following host machine macro files:"
11295         for f in $host_xm_file; do
11296                 echo "  $srcdir/config/$f"
11297         done
11298 fi
11299 echo "Using ${out_host_hook_obj} for host machine hooks."
11300
11301 if test "$host_xm_file" != "$build_xm_file"; then
11302         count=a
11303         for f in $build_xm_file; do
11304                 count=${count}x
11305         done
11306         if test $count = a; then
11307                 :
11308         elif test $count = ax; then
11309                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11310         else
11311                 echo "Using the following build machine macro files:"
11312                 for f in $build_xm_file; do
11313                         echo "  $srcdir/config/$f"
11314                 done
11315         fi
11316 fi
11317
11318 if test -n "$configured_native_system_header_dir"; then
11319   native_system_header_dir=$configured_native_system_header_dir
11320 fi
11321 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11322
11323
11324 case ${host} in
11325   powerpc*-*-darwin*)
11326     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11327 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11328 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11329   $as_echo_n "(cached) " >&6
11330 else
11331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11332 /* end confdefs.h.  */
11333
11334 #include <sys/cdefs.h>
11335 #include <sys/signal.h>
11336 #include <ucontext.h>
11337 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11338
11339 _ACEOF
11340 if ac_fn_c_try_compile "$LINENO"; then :
11341   gcc_cv_mcontext_underscores=no
11342 else
11343   gcc_cv_mcontext_underscores=yes
11344 fi
11345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11346 fi
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11348 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11349       if test $gcc_cv_mcontext_underscores = yes; then
11350
11351 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11352
11353       fi
11354     ;;
11355 esac
11356
11357 # ---------
11358 # Threading
11359 # ---------
11360
11361 # Check if a valid thread package
11362 case ${enable_threads} in
11363   "" | no)
11364     # No threads
11365     target_thread_file='single'
11366     ;;
11367   yes)
11368     # default
11369     target_thread_file='single'
11370     ;;
11371   aix | dce | lynx | mipssde | posix | rtems | \
11372   single | tpf | vxworks | win32)
11373     target_thread_file=${enable_threads}
11374     ;;
11375   *)
11376     echo "${enable_threads} is an unknown thread package" 1>&2
11377     exit 1
11378     ;;
11379 esac
11380
11381 if test x${thread_file} = x; then
11382   # No thread file set by target-specific clauses in config.gcc,
11383   # so use file chosen by default logic above
11384   thread_file=${target_thread_file}
11385 fi
11386
11387 # --------
11388 # UNSORTED
11389 # --------
11390
11391 use_cxa_atexit=no
11392 if test x$enable___cxa_atexit = xyes || \
11393    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11394   if test x$host = x$target; then
11395     case $host in
11396       # mingw32 doesn't have __cxa_atexit but uses atexit registration
11397       # keyed to flag_use_cxa_atexit
11398       *-*-mingw32*)
11399         use_cxa_atexit=yes
11400         ;;
11401       *)
11402         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11403 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11404   use_cxa_atexit=yes
11405 else
11406   echo "__cxa_atexit can't be enabled on this target"
11407 fi
11408
11409         ;;
11410     esac
11411   else
11412     # We can't check for __cxa_atexit when building a cross, so assume
11413     # it is available
11414     use_cxa_atexit=yes
11415   fi
11416   if test x$use_cxa_atexit = xyes; then
11417
11418 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11419
11420   fi
11421 fi
11422
11423 # Look for a file containing extra machine modes.
11424 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11425   extra_modes_file='$(srcdir)'/config/${extra_modes}
11426
11427
11428 cat >>confdefs.h <<_ACEOF
11429 #define EXTRA_MODES_FILE "config/$extra_modes"
11430 _ACEOF
11431
11432 fi
11433
11434 # Convert extra_options into a form suitable for Makefile use.
11435 extra_opt_files=
11436 all_opt_files=
11437 for f in $extra_options; do
11438   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11439   all_opt_files="$all_opt_files $srcdir/config/$f"
11440 done
11441
11442
11443 # auto-host.h is the file containing items generated by autoconf and is
11444 # the first file included by config.h.
11445 # If host=build, it is correct to have bconfig include auto-host.h
11446 # as well.  If host!=build, we are in error and need to do more
11447 # work to find out the build config parameters.
11448 if test x$host = x$build
11449 then
11450         build_auto=auto-host.h
11451 else
11452         # We create a subdir, then run autoconf in the subdir.
11453         # To prevent recursion we set host and build for the new
11454         # invocation of configure to the build for this invocation
11455         # of configure.
11456         tempdir=build.$$
11457         rm -rf $tempdir
11458         mkdir $tempdir
11459         cd $tempdir
11460         case ${srcdir} in
11461         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11462         *) realsrcdir=../${srcdir};;
11463         esac
11464         saved_CFLAGS="${CFLAGS}"
11465         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11466         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11467         ${realsrcdir}/configure \
11468                 --enable-languages=${enable_languages-all} \
11469                 --target=$target_alias --host=$build_alias --build=$build_alias
11470         CFLAGS="${saved_CFLAGS}"
11471
11472         # We just finished tests for the build machine, so rename
11473         # the file auto-build.h in the gcc directory.
11474         mv auto-host.h ../auto-build.h
11475         cd ..
11476         rm -rf $tempdir
11477         build_auto=auto-build.h
11478 fi
11479
11480
11481 tm_file="${tm_file} defaults.h"
11482 tm_p_file="${tm_p_file} tm-preds.h"
11483 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11484 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11485 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11486 # put this back in temporarily.
11487 xm_file="auto-host.h ansidecl.h ${xm_file}"
11488
11489 # --------
11490 # UNSORTED
11491 # --------
11492
11493 # Compile in configure arguments.
11494 if test -f configargs.h ; then
11495         # Being re-configured.
11496         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11497         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11498 else
11499         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11500 fi
11501
11502 # Double all backslashes and backslash all quotes to turn
11503 # gcc_config_arguments into a C string.
11504 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11505 $gcc_config_arguments
11506 EOF
11507 gcc_config_arguments_str=`cat conftest.out`
11508 rm -f conftest.out
11509
11510 cat > configargs.h <<EOF
11511 /* Generated automatically. */
11512 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11513 static const char thread_model[] = "$thread_file";
11514
11515 static const struct {
11516   const char *name, *value;
11517 } configure_default_options[] = $configure_default_options;
11518 EOF
11519
11520 gcc_BASEVER=`cat $srcdir/BASE-VER`
11521 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11522 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11523 if test -f $srcdir/REVISION ; then
11524         gcc_REVISION=`cat $srcdir/REVISION`
11525 else
11526         gcc_REVISION=""
11527 fi
11528 cat > plugin-version.h <<EOF
11529 #include "configargs.h"
11530
11531 #define GCCPLUGIN_VERSION_MAJOR   `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11532 #define GCCPLUGIN_VERSION_MINOR   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11533 #define GCCPLUGIN_VERSION_PATCHLEVEL   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11534 #define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11535
11536 static char basever[] = "$gcc_BASEVER";
11537 static char datestamp[] = "$gcc_DATESTAMP";
11538 static char devphase[] = "$gcc_DEVPHASE";
11539 static char revision[] = "$gcc_REVISION";
11540
11541 /* FIXME plugins: We should make the version information more precise.
11542    One way to do is to add a checksum. */
11543
11544 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11545                                                 devphase, revision,
11546                                                 configuration_arguments};
11547 EOF
11548
11549 # Internationalization
11550 # If we haven't got the data from the intl directory,
11551 # assume NLS is disabled.
11552 USE_NLS=no
11553 LIBINTL=
11554 LIBINTL_DEP=
11555 INCINTL=
11556 XGETTEXT=
11557 GMSGFMT=
11558 POSUB=
11559
11560 if test -f  ../intl/config.intl; then
11561   .  ../intl/config.intl
11562 fi
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11564 $as_echo_n "checking whether NLS is requested... " >&6; }
11565 if test x"$USE_NLS" != xyes; then
11566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11567 $as_echo "no" >&6; }
11568 else
11569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11570 $as_echo "yes" >&6; }
11571
11572 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11573
11574
11575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11576 $as_echo_n "checking for catalogs to be installed... " >&6; }
11577   # Look for .po and .gmo files in the source directory.
11578   CATALOGS=
11579   XLINGUAS=
11580   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11581     # If there aren't any .gmo files the shell will give us the
11582     # literal string "../path/to/srcdir/po/*.gmo" which has to be
11583     # weeded out.
11584     case "$cat" in *\**)
11585       continue;;
11586     esac
11587     # The quadruple backslash is collapsed to a double backslash
11588     # by the backticks, then collapsed again by the double quotes,
11589     # leaving us with one backslash in the sed expression (right
11590     # before the dot that mustn't act as a wildcard).
11591     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11592     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11593     # The user is allowed to set LINGUAS to a list of languages to
11594     # install catalogs for.  If it's empty that means "all of them."
11595     if test "x$LINGUAS" = x; then
11596       CATALOGS="$CATALOGS $cat"
11597       XLINGUAS="$XLINGUAS $lang"
11598     else
11599       case "$LINGUAS" in *$lang*)
11600         CATALOGS="$CATALOGS $cat"
11601         XLINGUAS="$XLINGUAS $lang"
11602         ;;
11603       esac
11604     fi
11605   done
11606   LINGUAS="$XLINGUAS"
11607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11608 $as_echo "$LINGUAS" >&6; }
11609
11610
11611     DATADIRNAME=share
11612
11613   INSTOBJEXT=.mo
11614
11615   GENCAT=gencat
11616
11617   CATOBJEXT=.gmo
11618
11619 fi
11620
11621 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11622 # -liconv on the link line twice.
11623 case "$LIBINTL" in *$LIBICONV*)
11624         LIBICONV= ;;
11625 esac
11626
11627 # Check whether --enable-secureplt was given.
11628 if test "${enable_secureplt+set}" = set; then :
11629   enableval=$enable_secureplt;
11630 fi
11631
11632
11633 # Check whether --enable-leading-mingw64-underscores was given.
11634 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11635   enableval=$enable_leading_mingw64_underscores;
11636 fi
11637
11638 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
11639
11640 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11641
11642 fi
11643
11644 # Check whether --enable-cld was given.
11645 if test "${enable_cld+set}" = set; then :
11646   enableval=$enable_cld;
11647 else
11648   enable_cld=no
11649 fi
11650
11651
11652 # Check whether --enable-frame-pointer was given.
11653 if test "${enable_frame_pointer+set}" = set; then :
11654   enableval=$enable_frame_pointer;
11655 else
11656
11657 case $target_os in
11658 linux* | darwin[8912]*)
11659   # Enable -fomit-frame-pointer by default for Linux and Darwin with
11660   # DWARF2.
11661   enable_frame_pointer=no
11662   ;;
11663 *)
11664   enable_frame_pointer=yes
11665   ;;
11666 esac
11667
11668 fi
11669
11670
11671 # Windows32 Registry support for specifying GCC installation paths.
11672 # Check whether --enable-win32-registry was given.
11673 if test "${enable_win32_registry+set}" = set; then :
11674   enableval=$enable_win32_registry;
11675 fi
11676
11677
11678 case $host_os in
11679   win32 | pe | cygwin* | mingw32* | uwin*)
11680     if test "x$enable_win32_registry" != xno; then
11681       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11682 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11683 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11684   $as_echo_n "(cached) " >&6
11685 else
11686   ac_func_search_save_LIBS=$LIBS
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h.  */
11689
11690 /* Override any GCC internal prototype to avoid an error.
11691    Use char because int might match the return type of a GCC
11692    builtin and then its argument prototype would still apply.  */
11693 #ifdef __cplusplus
11694 extern "C"
11695 #endif
11696 char RegOpenKeyExA ();
11697 int
11698 main ()
11699 {
11700 return RegOpenKeyExA ();
11701   ;
11702   return 0;
11703 }
11704 _ACEOF
11705 for ac_lib in '' advapi32; do
11706   if test -z "$ac_lib"; then
11707     ac_res="none required"
11708   else
11709     ac_res=-l$ac_lib
11710     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11711   fi
11712   if ac_fn_c_try_link "$LINENO"; then :
11713   ac_cv_search_RegOpenKeyExA=$ac_res
11714 fi
11715 rm -f core conftest.err conftest.$ac_objext \
11716     conftest$ac_exeext
11717   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11718   break
11719 fi
11720 done
11721 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11722
11723 else
11724   ac_cv_search_RegOpenKeyExA=no
11725 fi
11726 rm conftest.$ac_ext
11727 LIBS=$ac_func_search_save_LIBS
11728 fi
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11730 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11731 ac_res=$ac_cv_search_RegOpenKeyExA
11732 if test "$ac_res" != no; then :
11733   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11734
11735 else
11736   enable_win32_registry=no
11737 fi
11738
11739     fi
11740
11741     if test "x$enable_win32_registry" != xno; then
11742
11743 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11744
11745
11746       if test "x$enable_win32_registry" != xyes \
11747          && test "x$enable_win32_registry" != x; then
11748
11749 cat >>confdefs.h <<_ACEOF
11750 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11751 _ACEOF
11752
11753       fi
11754     fi
11755   ;;
11756 esac
11757
11758 # Get an absolute path to the GCC top-level source directory
11759 holddir=`${PWDCMD-pwd}`
11760 cd $srcdir
11761 topdir=`${PWDCMD-pwd}`
11762 cd $holddir
11763
11764 # Conditionalize the makefile for this host machine.
11765 xmake_file=
11766 for f in ${host_xmake_file}
11767 do
11768         if test -f ${srcdir}/config/$f
11769         then
11770                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11771         fi
11772 done
11773
11774 # Conditionalize the makefile for this target machine.
11775 tmake_file_=
11776 for f in ${tmake_file}
11777 do
11778         if test -f ${srcdir}/config/$f
11779         then
11780                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11781         fi
11782 done
11783 tmake_file="${tmake_file_}"
11784
11785 out_object_file=`basename $out_file .c`.o
11786 common_out_object_file=`basename $common_out_file .c`.o
11787
11788 tm_file_list="options.h"
11789 tm_include_list="options.h insn-constants.h"
11790 for f in $tm_file; do
11791   case $f in
11792     ./* )
11793        f=`echo $f | sed 's/^..//'`
11794        tm_file_list="${tm_file_list} $f"
11795        tm_include_list="${tm_include_list} $f"
11796        ;;
11797     defaults.h )
11798        tm_file_list="${tm_file_list} \$(srcdir)/$f"
11799        tm_include_list="${tm_include_list} $f"
11800        ;;
11801     * )
11802        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11803        tm_include_list="${tm_include_list} config/$f"
11804        ;;
11805   esac
11806 done
11807
11808 tm_p_file_list=
11809 tm_p_include_list=
11810 for f in $tm_p_file; do
11811   case $f in
11812     tm-preds.h )
11813        tm_p_file_list="${tm_p_file_list} $f"
11814        tm_p_include_list="${tm_p_include_list} $f"
11815        ;;
11816     * )
11817        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11818        tm_p_include_list="${tm_p_include_list} config/$f"
11819   esac
11820 done
11821
11822 xm_file_list=
11823 xm_include_list=
11824 for f in $xm_file; do
11825   case $f in
11826     ansidecl.h )
11827        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11828        xm_include_list="${xm_include_list} $f"
11829        ;;
11830     auto-host.h )
11831        xm_file_list="${xm_file_list} $f"
11832        xm_include_list="${xm_include_list} $f"
11833        ;;
11834     * )
11835        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11836        xm_include_list="${xm_include_list} config/$f"
11837        ;;
11838   esac
11839 done
11840
11841 host_xm_file_list=
11842 host_xm_include_list=
11843 for f in $host_xm_file; do
11844   case $f in
11845     ansidecl.h )
11846        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11847        host_xm_include_list="${host_xm_include_list} $f"
11848        ;;
11849     auto-host.h )
11850        host_xm_file_list="${host_xm_file_list} $f"
11851        host_xm_include_list="${host_xm_include_list} $f"
11852        ;;
11853     * )
11854        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11855        host_xm_include_list="${host_xm_include_list} config/$f"
11856        ;;
11857   esac
11858 done
11859
11860 build_xm_file_list=
11861 for f in $build_xm_file; do
11862   case $f in
11863     ansidecl.h )
11864        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11865        build_xm_include_list="${build_xm_include_list} $f"
11866        ;;
11867     auto-build.h | auto-host.h )
11868        build_xm_file_list="${build_xm_file_list} $f"
11869        build_xm_include_list="${build_xm_include_list} $f"
11870        ;;
11871     * )
11872        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11873        build_xm_include_list="${build_xm_include_list} config/$f"
11874        ;;
11875   esac
11876 done
11877
11878 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11879 # cross-compiler which does not use the native headers and libraries.
11880 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11881 CROSS=
11882 ALL=all.internal
11883 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11884
11885 if test "x$with_build_sysroot" != x; then
11886   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11887 else
11888   # This value is used, even on a native system, because
11889   # CROSS_SYSTEM_HEADER_DIR is just
11890   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11891   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11892 fi
11893
11894 if test x$host != x$target
11895 then
11896         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11897         ALL=all.cross
11898         SYSTEM_HEADER_DIR=$build_system_header_dir
11899         case "$host","$target" in
11900         # Darwin crosses can use the host system's libraries and headers,
11901         # because of the fat library support.  Of course, it must be the
11902         # same version of Darwin on both sides.  Allow the user to
11903         # just say --target=foo-darwin without a version number to mean
11904         # "the version on this system".
11905             *-*-darwin*,*-*-darwin*)
11906                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11907                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11908                 if test $hostos = $targetos -o $targetos = darwin ; then
11909                     CROSS=
11910                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11911                     with_headers=yes
11912                 fi
11913                 ;;
11914
11915             i?86-*-*,x86_64-*-* \
11916             | powerpc*-*-*,powerpc64*-*-*)
11917                 CROSS="$CROSS -DNATIVE_CROSS" ;;
11918         esac
11919
11920         case $target in
11921                 *-*-mingw*)
11922                         if test "x$with_headers" = x; then
11923                                 with_headers=yes
11924                         fi
11925                         ;;
11926                 *)
11927                         ;;
11928         esac
11929 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11930         SYSTEM_HEADER_DIR=$build_system_header_dir
11931 fi
11932
11933 # If this is a cross-compiler that does not
11934 # have its own set of headers then define
11935 # inhibit_libc
11936
11937 # If this is using newlib, without having the headers available now,
11938 # then define inhibit_libc in LIBGCC2_CFLAGS.
11939 # This prevents libgcc2 from containing any code which requires libc
11940 # support.
11941 : ${inhibit_libc=false}
11942 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11943        test x$with_newlib = xyes ; } &&
11944      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11945        inhibit_libc=true
11946 fi
11947
11948
11949 # When building gcc with a cross-compiler, we need to adjust things so
11950 # that the generator programs are still built with the native compiler.
11951 # Also, we cannot run fixincludes.
11952
11953 # These are the normal (build=host) settings:
11954 CC_FOR_BUILD='$(CC)'
11955 BUILD_CFLAGS='$(ALL_CFLAGS)'
11956 BUILD_LDFLAGS='$(LDFLAGS)'
11957 STMP_FIXINC=stmp-fixinc
11958
11959 # And these apply if build != host, or we are generating coverage data
11960 if test x$build != x$host || test "x$coverage_flags" != x
11961 then
11962     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11963     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11964 fi
11965
11966 # Expand extra_headers to include complete path.
11967 # This substitutes for lots of t-* files.
11968 extra_headers_list=
11969 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11970 for file in ${extra_headers} ; do
11971   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11972 done
11973
11974 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11975 if test x"$use_gcc_tgmath" = xyes
11976 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11977 fi
11978
11979 # Define collect2 in Makefile.
11980 case $host_can_use_collect2 in
11981   no) collect2= ;;
11982   *) collect2='collect2$(exeext)' ;;
11983 esac
11984
11985
11986 # Add a definition of USE_COLLECT2 if system wants one.
11987 case $use_collect2 in
11988   no) use_collect2= ;;
11989   "") ;;
11990   *)
11991     host_xm_defines="${host_xm_defines} USE_COLLECT2"
11992     xm_defines="${xm_defines} USE_COLLECT2"
11993     case $host_can_use_collect2 in
11994       no)
11995         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11996         ;;
11997     esac
11998     ;;
11999 esac
12000
12001
12002 cat >>confdefs.h <<_ACEOF
12003 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12004 _ACEOF
12005
12006
12007 # ---------------------------
12008 # Assembler & linker features
12009 # ---------------------------
12010
12011 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12012 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12013 # However when ld-new is first executed from the build tree, libtool will
12014 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12015 # to the build tree.  While doing this we need to use the previous-stage
12016 # linker, or we have an infinite loop.  The presence of a shell script as
12017 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12018 # the gcc/collect-ld script.  So we need to know how libtool works, or
12019 # exec-tool will fail.
12020
12021
12022 case `pwd` in
12023   *\ * | *\     *)
12024     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12025 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12026 esac
12027
12028
12029
12030 macro_version='2.2.7a'
12031 macro_revision='1.3134'
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045 ltmain="$ac_aux_dir/ltmain.sh"
12046
12047 # Backslashify metacharacters that are still active within
12048 # double-quoted strings.
12049 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12050
12051 # Same as above, but do not quote variable references.
12052 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12053
12054 # Sed substitution to delay expansion of an escaped shell variable in a
12055 # double_quote_subst'ed string.
12056 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12057
12058 # Sed substitution to delay expansion of an escaped single quote.
12059 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12060
12061 # Sed substitution to avoid accidental globbing in evaled expressions
12062 no_glob_subst='s/\*/\\\*/g'
12063
12064 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12065 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12066 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12067
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12069 $as_echo_n "checking how to print strings... " >&6; }
12070 # Test print first, because it will be a builtin if present.
12071 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12072    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12073   ECHO='print -r --'
12074 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12075   ECHO='printf %s\n'
12076 else
12077   # Use this function as a fallback that always works.
12078   func_fallback_echo ()
12079   {
12080     eval 'cat <<_LTECHO_EOF
12081 $1
12082 _LTECHO_EOF'
12083   }
12084   ECHO='func_fallback_echo'
12085 fi
12086
12087 # func_echo_all arg...
12088 # Invoke $ECHO with all args, space-separated.
12089 func_echo_all ()
12090 {
12091     $ECHO ""
12092 }
12093
12094 case "$ECHO" in
12095   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12096 $as_echo "printf" >&6; } ;;
12097   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12098 $as_echo "print -r" >&6; } ;;
12099   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12100 $as_echo "cat" >&6; } ;;
12101 esac
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12117 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12118 if test "${ac_cv_path_SED+set}" = set; then :
12119   $as_echo_n "(cached) " >&6
12120 else
12121             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12122      for ac_i in 1 2 3 4 5 6 7; do
12123        ac_script="$ac_script$as_nl$ac_script"
12124      done
12125      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12126      { ac_script=; unset ac_script;}
12127      if test -z "$SED"; then
12128   ac_path_SED_found=false
12129   # Loop through the user's path and test for each of PROGNAME-LIST
12130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131 for as_dir in $PATH
12132 do
12133   IFS=$as_save_IFS
12134   test -z "$as_dir" && as_dir=.
12135     for ac_prog in sed gsed; do
12136     for ac_exec_ext in '' $ac_executable_extensions; do
12137       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12138       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12139 # Check for GNU ac_path_SED and select it if it is found.
12140   # Check for GNU $ac_path_SED
12141 case `"$ac_path_SED" --version 2>&1` in
12142 *GNU*)
12143   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12144 *)
12145   ac_count=0
12146   $as_echo_n 0123456789 >"conftest.in"
12147   while :
12148   do
12149     cat "conftest.in" "conftest.in" >"conftest.tmp"
12150     mv "conftest.tmp" "conftest.in"
12151     cp "conftest.in" "conftest.nl"
12152     $as_echo '' >> "conftest.nl"
12153     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12154     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12155     as_fn_arith $ac_count + 1 && ac_count=$as_val
12156     if test $ac_count -gt ${ac_path_SED_max-0}; then
12157       # Best one so far, save it but keep looking for a better one
12158       ac_cv_path_SED="$ac_path_SED"
12159       ac_path_SED_max=$ac_count
12160     fi
12161     # 10*(2^10) chars as input seems more than enough
12162     test $ac_count -gt 10 && break
12163   done
12164   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12165 esac
12166
12167       $ac_path_SED_found && break 3
12168     done
12169   done
12170   done
12171 IFS=$as_save_IFS
12172   if test -z "$ac_cv_path_SED"; then
12173     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12174   fi
12175 else
12176   ac_cv_path_SED=$SED
12177 fi
12178
12179 fi
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12181 $as_echo "$ac_cv_path_SED" >&6; }
12182  SED="$ac_cv_path_SED"
12183   rm -f conftest.sed
12184
12185 test -z "$SED" && SED=sed
12186 Xsed="$SED -e 1s/^X//"
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12199 $as_echo_n "checking for fgrep... " >&6; }
12200 if test "${ac_cv_path_FGREP+set}" = set; then :
12201   $as_echo_n "(cached) " >&6
12202 else
12203   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12204    then ac_cv_path_FGREP="$GREP -F"
12205    else
12206      if test -z "$FGREP"; then
12207   ac_path_FGREP_found=false
12208   # Loop through the user's path and test for each of PROGNAME-LIST
12209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12210 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12211 do
12212   IFS=$as_save_IFS
12213   test -z "$as_dir" && as_dir=.
12214     for ac_prog in fgrep; do
12215     for ac_exec_ext in '' $ac_executable_extensions; do
12216       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12217       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12218 # Check for GNU ac_path_FGREP and select it if it is found.
12219   # Check for GNU $ac_path_FGREP
12220 case `"$ac_path_FGREP" --version 2>&1` in
12221 *GNU*)
12222   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12223 *)
12224   ac_count=0
12225   $as_echo_n 0123456789 >"conftest.in"
12226   while :
12227   do
12228     cat "conftest.in" "conftest.in" >"conftest.tmp"
12229     mv "conftest.tmp" "conftest.in"
12230     cp "conftest.in" "conftest.nl"
12231     $as_echo 'FGREP' >> "conftest.nl"
12232     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12233     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12234     as_fn_arith $ac_count + 1 && ac_count=$as_val
12235     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12236       # Best one so far, save it but keep looking for a better one
12237       ac_cv_path_FGREP="$ac_path_FGREP"
12238       ac_path_FGREP_max=$ac_count
12239     fi
12240     # 10*(2^10) chars as input seems more than enough
12241     test $ac_count -gt 10 && break
12242   done
12243   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12244 esac
12245
12246       $ac_path_FGREP_found && break 3
12247     done
12248   done
12249   done
12250 IFS=$as_save_IFS
12251   if test -z "$ac_cv_path_FGREP"; then
12252     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12253   fi
12254 else
12255   ac_cv_path_FGREP=$FGREP
12256 fi
12257
12258    fi
12259 fi
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12261 $as_echo "$ac_cv_path_FGREP" >&6; }
12262  FGREP="$ac_cv_path_FGREP"
12263
12264
12265 test -z "$GREP" && GREP=grep
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285 # Check whether --with-gnu-ld was given.
12286 if test "${with_gnu_ld+set}" = set; then :
12287   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12288 else
12289   with_gnu_ld=no
12290 fi
12291
12292 ac_prog=ld
12293 if test "$GCC" = yes; then
12294   # Check if gcc -print-prog-name=ld gives a path.
12295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12296 $as_echo_n "checking for ld used by $CC... " >&6; }
12297   case $host in
12298   *-*-mingw*)
12299     # gcc leaves a trailing carriage return which upsets mingw
12300     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12301   *)
12302     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12303   esac
12304   case $ac_prog in
12305     # Accept absolute paths.
12306     [\\/]* | ?:[\\/]*)
12307       re_direlt='/[^/][^/]*/\.\./'
12308       # Canonicalize the pathname of ld
12309       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12310       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12311         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12312       done
12313       test -z "$LD" && LD="$ac_prog"
12314       ;;
12315   "")
12316     # If it fails, then pretend we aren't using GCC.
12317     ac_prog=ld
12318     ;;
12319   *)
12320     # If it is relative, then search for the first ld in PATH.
12321     with_gnu_ld=unknown
12322     ;;
12323   esac
12324 elif test "$with_gnu_ld" = yes; then
12325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12326 $as_echo_n "checking for GNU ld... " >&6; }
12327 else
12328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12329 $as_echo_n "checking for non-GNU ld... " >&6; }
12330 fi
12331 if test "${lt_cv_path_LD+set}" = set; then :
12332   $as_echo_n "(cached) " >&6
12333 else
12334   if test -z "$LD"; then
12335   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12336   for ac_dir in $PATH; do
12337     IFS="$lt_save_ifs"
12338     test -z "$ac_dir" && ac_dir=.
12339     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12340       lt_cv_path_LD="$ac_dir/$ac_prog"
12341       # Check to see if the program is GNU ld.  I'd rather use --version,
12342       # but apparently some variants of GNU ld only accept -v.
12343       # Break only if it was the GNU/non-GNU ld that we prefer.
12344       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12345       *GNU* | *'with BFD'*)
12346         test "$with_gnu_ld" != no && break
12347         ;;
12348       *)
12349         test "$with_gnu_ld" != yes && break
12350         ;;
12351       esac
12352     fi
12353   done
12354   IFS="$lt_save_ifs"
12355 else
12356   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12357 fi
12358 fi
12359
12360 LD="$lt_cv_path_LD"
12361 if test -n "$LD"; then
12362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12363 $as_echo "$LD" >&6; }
12364 else
12365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12366 $as_echo "no" >&6; }
12367 fi
12368 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12370 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12371 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12372   $as_echo_n "(cached) " >&6
12373 else
12374   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12375 case `$LD -v 2>&1 </dev/null` in
12376 *GNU* | *'with BFD'*)
12377   lt_cv_prog_gnu_ld=yes
12378   ;;
12379 *)
12380   lt_cv_prog_gnu_ld=no
12381   ;;
12382 esac
12383 fi
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12385 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12386 with_gnu_ld=$lt_cv_prog_gnu_ld
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12397 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12398 if test "${lt_cv_path_NM+set}" = set; then :
12399   $as_echo_n "(cached) " >&6
12400 else
12401   if test -n "$NM"; then
12402   # Let the user override the test.
12403   lt_cv_path_NM="$NM"
12404 else
12405   lt_nm_to_check="${ac_tool_prefix}nm"
12406   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12407     lt_nm_to_check="$lt_nm_to_check nm"
12408   fi
12409   for lt_tmp_nm in $lt_nm_to_check; do
12410     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12411     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12412       IFS="$lt_save_ifs"
12413       test -z "$ac_dir" && ac_dir=.
12414       tmp_nm="$ac_dir/$lt_tmp_nm"
12415       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12416         # Check to see if the nm accepts a BSD-compat flag.
12417         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12418         #   nm: unknown option "B" ignored
12419         # Tru64's nm complains that /dev/null is an invalid object file
12420         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12421         */dev/null* | *'Invalid file or object type'*)
12422           lt_cv_path_NM="$tmp_nm -B"
12423           break
12424           ;;
12425         *)
12426           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12427           */dev/null*)
12428             lt_cv_path_NM="$tmp_nm -p"
12429             break
12430             ;;
12431           *)
12432             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12433             continue # so that we can try to find one that supports BSD flags
12434             ;;
12435           esac
12436           ;;
12437         esac
12438       fi
12439     done
12440     IFS="$lt_save_ifs"
12441   done
12442   : ${lt_cv_path_NM=no}
12443 fi
12444 fi
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12446 $as_echo "$lt_cv_path_NM" >&6; }
12447 if test "$lt_cv_path_NM" != "no"; then
12448   NM="$lt_cv_path_NM"
12449 else
12450   # Didn't find any BSD compatible name lister, look for dumpbin.
12451   if test -n "$DUMPBIN"; then :
12452     # Let the user override the test.
12453   else
12454     if test -n "$ac_tool_prefix"; then
12455   for ac_prog in dumpbin "link -dump"
12456   do
12457     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12458 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12460 $as_echo_n "checking for $ac_word... " >&6; }
12461 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12462   $as_echo_n "(cached) " >&6
12463 else
12464   if test -n "$DUMPBIN"; then
12465   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12466 else
12467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12468 for as_dir in $PATH
12469 do
12470   IFS=$as_save_IFS
12471   test -z "$as_dir" && as_dir=.
12472     for ac_exec_ext in '' $ac_executable_extensions; do
12473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12474     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12476     break 2
12477   fi
12478 done
12479   done
12480 IFS=$as_save_IFS
12481
12482 fi
12483 fi
12484 DUMPBIN=$ac_cv_prog_DUMPBIN
12485 if test -n "$DUMPBIN"; then
12486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12487 $as_echo "$DUMPBIN" >&6; }
12488 else
12489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12490 $as_echo "no" >&6; }
12491 fi
12492
12493
12494     test -n "$DUMPBIN" && break
12495   done
12496 fi
12497 if test -z "$DUMPBIN"; then
12498   ac_ct_DUMPBIN=$DUMPBIN
12499   for ac_prog in dumpbin "link -dump"
12500 do
12501   # Extract the first word of "$ac_prog", so it can be a program name with args.
12502 set dummy $ac_prog; ac_word=$2
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12504 $as_echo_n "checking for $ac_word... " >&6; }
12505 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12506   $as_echo_n "(cached) " >&6
12507 else
12508   if test -n "$ac_ct_DUMPBIN"; then
12509   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12510 else
12511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12512 for as_dir in $PATH
12513 do
12514   IFS=$as_save_IFS
12515   test -z "$as_dir" && as_dir=.
12516     for ac_exec_ext in '' $ac_executable_extensions; do
12517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12518     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12520     break 2
12521   fi
12522 done
12523   done
12524 IFS=$as_save_IFS
12525
12526 fi
12527 fi
12528 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12529 if test -n "$ac_ct_DUMPBIN"; then
12530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12531 $as_echo "$ac_ct_DUMPBIN" >&6; }
12532 else
12533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534 $as_echo "no" >&6; }
12535 fi
12536
12537
12538   test -n "$ac_ct_DUMPBIN" && break
12539 done
12540
12541   if test "x$ac_ct_DUMPBIN" = x; then
12542     DUMPBIN=":"
12543   else
12544     case $cross_compiling:$ac_tool_warned in
12545 yes:)
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12548 ac_tool_warned=yes ;;
12549 esac
12550     DUMPBIN=$ac_ct_DUMPBIN
12551   fi
12552 fi
12553
12554     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12555     *COFF*)
12556       DUMPBIN="$DUMPBIN -symbols"
12557       ;;
12558     *)
12559       DUMPBIN=:
12560       ;;
12561     esac
12562   fi
12563
12564   if test "$DUMPBIN" != ":"; then
12565     NM="$DUMPBIN"
12566   fi
12567 fi
12568 test -z "$NM" && NM=nm
12569
12570
12571
12572
12573
12574
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12576 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12577 if test "${lt_cv_nm_interface+set}" = set; then :
12578   $as_echo_n "(cached) " >&6
12579 else
12580   lt_cv_nm_interface="BSD nm"
12581   echo "int some_variable = 0;" > conftest.$ac_ext
12582   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12583   (eval "$ac_compile" 2>conftest.err)
12584   cat conftest.err >&5
12585   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12586   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12587   cat conftest.err >&5
12588   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12589   cat conftest.out >&5
12590   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12591     lt_cv_nm_interface="MS dumpbin"
12592   fi
12593   rm -f conftest*
12594 fi
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12596 $as_echo "$lt_cv_nm_interface" >&6; }
12597
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12599 $as_echo_n "checking whether ln -s works... " >&6; }
12600 LN_S=$as_ln_s
12601 if test "$LN_S" = "ln -s"; then
12602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12603 $as_echo "yes" >&6; }
12604 else
12605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12606 $as_echo "no, using $LN_S" >&6; }
12607 fi
12608
12609 # find the maximum length of command line arguments
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12611 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12612 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12613   $as_echo_n "(cached) " >&6
12614 else
12615     i=0
12616   teststring="ABCD"
12617
12618   case $build_os in
12619   msdosdjgpp*)
12620     # On DJGPP, this test can blow up pretty badly due to problems in libc
12621     # (any single argument exceeding 2000 bytes causes a buffer overrun
12622     # during glob expansion).  Even if it were fixed, the result of this
12623     # check would be larger than it should be.
12624     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12625     ;;
12626
12627   gnu*)
12628     # Under GNU Hurd, this test is not required because there is
12629     # no limit to the length of command line arguments.
12630     # Libtool will interpret -1 as no limit whatsoever
12631     lt_cv_sys_max_cmd_len=-1;
12632     ;;
12633
12634   cygwin* | mingw* | cegcc*)
12635     # On Win9x/ME, this test blows up -- it succeeds, but takes
12636     # about 5 minutes as the teststring grows exponentially.
12637     # Worse, since 9x/ME are not pre-emptively multitasking,
12638     # you end up with a "frozen" computer, even though with patience
12639     # the test eventually succeeds (with a max line length of 256k).
12640     # Instead, let's just punt: use the minimum linelength reported by
12641     # all of the supported platforms: 8192 (on NT/2K/XP).
12642     lt_cv_sys_max_cmd_len=8192;
12643     ;;
12644
12645   mint*)
12646     # On MiNT this can take a long time and run out of memory.
12647     lt_cv_sys_max_cmd_len=8192;
12648     ;;
12649
12650   amigaos*)
12651     # On AmigaOS with pdksh, this test takes hours, literally.
12652     # So we just punt and use a minimum line length of 8192.
12653     lt_cv_sys_max_cmd_len=8192;
12654     ;;
12655
12656   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12657     # This has been around since 386BSD, at least.  Likely further.
12658     if test -x /sbin/sysctl; then
12659       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12660     elif test -x /usr/sbin/sysctl; then
12661       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12662     else
12663       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12664     fi
12665     # And add a safety zone
12666     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12667     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12668     ;;
12669
12670   interix*)
12671     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12672     lt_cv_sys_max_cmd_len=196608
12673     ;;
12674
12675   osf*)
12676     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12677     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12678     # nice to cause kernel panics so lets avoid the loop below.
12679     # First set a reasonable default.
12680     lt_cv_sys_max_cmd_len=16384
12681     #
12682     if test -x /sbin/sysconfig; then
12683       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12684         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12685       esac
12686     fi
12687     ;;
12688   sco3.2v5*)
12689     lt_cv_sys_max_cmd_len=102400
12690     ;;
12691   sysv5* | sco5v6* | sysv4.2uw2*)
12692     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12693     if test -n "$kargmax"; then
12694       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
12695     else
12696       lt_cv_sys_max_cmd_len=32768
12697     fi
12698     ;;
12699   *)
12700     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12701     if test -n "$lt_cv_sys_max_cmd_len"; then
12702       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12703       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12704     else
12705       # Make teststring a little bigger before we do anything with it.
12706       # a 1K string should be a reasonable start.
12707       for i in 1 2 3 4 5 6 7 8 ; do
12708         teststring=$teststring$teststring
12709       done
12710       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12711       # If test is not a shell built-in, we'll probably end up computing a
12712       # maximum length that is only half of the actual maximum length, but
12713       # we can't tell.
12714       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12715                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12716               test $i != 17 # 1/2 MB should be enough
12717       do
12718         i=`expr $i + 1`
12719         teststring=$teststring$teststring
12720       done
12721       # Only check the string length outside the loop.
12722       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12723       teststring=
12724       # Add a significant safety factor because C++ compilers can tack on
12725       # massive amounts of additional arguments before passing them to the
12726       # linker.  It appears as though 1/2 is a usable value.
12727       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12728     fi
12729     ;;
12730   esac
12731
12732 fi
12733
12734 if test -n $lt_cv_sys_max_cmd_len ; then
12735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12736 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12737 else
12738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12739 $as_echo "none" >&6; }
12740 fi
12741 max_cmd_len=$lt_cv_sys_max_cmd_len
12742
12743
12744
12745
12746
12747
12748 : ${CP="cp -f"}
12749 : ${MV="mv -f"}
12750 : ${RM="rm -f"}
12751
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12753 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12754 # Try some XSI features
12755 xsi_shell=no
12756 ( _lt_dummy="a/b/c"
12757   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12758       = c,a/b,, \
12759     && eval 'test $(( 1 + 1 )) -eq 2 \
12760     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12761   && xsi_shell=yes
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12763 $as_echo "$xsi_shell" >&6; }
12764
12765
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12767 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12768 lt_shell_append=no
12769 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12770     >/dev/null 2>&1 \
12771   && lt_shell_append=yes
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12773 $as_echo "$lt_shell_append" >&6; }
12774
12775
12776 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12777   lt_unset=unset
12778 else
12779   lt_unset=false
12780 fi
12781
12782
12783
12784
12785
12786 # test EBCDIC or ASCII
12787 case `echo X|tr X '\101'` in
12788  A) # ASCII based system
12789     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12790   lt_SP2NL='tr \040 \012'
12791   lt_NL2SP='tr \015\012 \040\040'
12792   ;;
12793  *) # EBCDIC based system
12794   lt_SP2NL='tr \100 \n'
12795   lt_NL2SP='tr \r\n \100\100'
12796   ;;
12797 esac
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12808 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12809 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12810   $as_echo_n "(cached) " >&6
12811 else
12812   lt_cv_ld_reload_flag='-r'
12813 fi
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12815 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12816 reload_flag=$lt_cv_ld_reload_flag
12817 case $reload_flag in
12818 "" | " "*) ;;
12819 *) reload_flag=" $reload_flag" ;;
12820 esac
12821 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12822 case $host_os in
12823   darwin*)
12824     if test "$GCC" = yes; then
12825       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12826     else
12827       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12828     fi
12829     ;;
12830 esac
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840 if test -n "$ac_tool_prefix"; then
12841   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12842 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12844 $as_echo_n "checking for $ac_word... " >&6; }
12845 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12846   $as_echo_n "(cached) " >&6
12847 else
12848   if test -n "$OBJDUMP"; then
12849   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12850 else
12851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12852 for as_dir in $PATH
12853 do
12854   IFS=$as_save_IFS
12855   test -z "$as_dir" && as_dir=.
12856     for ac_exec_ext in '' $ac_executable_extensions; do
12857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12858     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12860     break 2
12861   fi
12862 done
12863   done
12864 IFS=$as_save_IFS
12865
12866 fi
12867 fi
12868 OBJDUMP=$ac_cv_prog_OBJDUMP
12869 if test -n "$OBJDUMP"; then
12870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12871 $as_echo "$OBJDUMP" >&6; }
12872 else
12873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874 $as_echo "no" >&6; }
12875 fi
12876
12877
12878 fi
12879 if test -z "$ac_cv_prog_OBJDUMP"; then
12880   ac_ct_OBJDUMP=$OBJDUMP
12881   # Extract the first word of "objdump", so it can be a program name with args.
12882 set dummy objdump; ac_word=$2
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12884 $as_echo_n "checking for $ac_word... " >&6; }
12885 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12886   $as_echo_n "(cached) " >&6
12887 else
12888   if test -n "$ac_ct_OBJDUMP"; then
12889   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12890 else
12891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12892 for as_dir in $PATH
12893 do
12894   IFS=$as_save_IFS
12895   test -z "$as_dir" && as_dir=.
12896     for ac_exec_ext in '' $ac_executable_extensions; do
12897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12898     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12900     break 2
12901   fi
12902 done
12903   done
12904 IFS=$as_save_IFS
12905
12906 fi
12907 fi
12908 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12909 if test -n "$ac_ct_OBJDUMP"; then
12910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12911 $as_echo "$ac_ct_OBJDUMP" >&6; }
12912 else
12913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12914 $as_echo "no" >&6; }
12915 fi
12916
12917   if test "x$ac_ct_OBJDUMP" = x; then
12918     OBJDUMP="false"
12919   else
12920     case $cross_compiling:$ac_tool_warned in
12921 yes:)
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12924 ac_tool_warned=yes ;;
12925 esac
12926     OBJDUMP=$ac_ct_OBJDUMP
12927   fi
12928 else
12929   OBJDUMP="$ac_cv_prog_OBJDUMP"
12930 fi
12931
12932 test -z "$OBJDUMP" && OBJDUMP=objdump
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12943 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12944 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12945   $as_echo_n "(cached) " >&6
12946 else
12947   lt_cv_file_magic_cmd='$MAGIC_CMD'
12948 lt_cv_file_magic_test_file=
12949 lt_cv_deplibs_check_method='unknown'
12950 # Need to set the preceding variable on all platforms that support
12951 # interlibrary dependencies.
12952 # 'none' -- dependencies not supported.
12953 # `unknown' -- same as none, but documents that we really don't know.
12954 # 'pass_all' -- all dependencies passed with no checks.
12955 # 'test_compile' -- check by making test program.
12956 # 'file_magic [[regex]]' -- check by looking for files in library path
12957 # which responds to the $file_magic_cmd with a given extended regex.
12958 # If you have `file' or equivalent on your system and you're not sure
12959 # whether `pass_all' will *always* work, you probably want this one.
12960
12961 case $host_os in
12962 aix[4-9]*)
12963   lt_cv_deplibs_check_method=pass_all
12964   ;;
12965
12966 beos*)
12967   lt_cv_deplibs_check_method=pass_all
12968   ;;
12969
12970 bsdi[45]*)
12971   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12972   lt_cv_file_magic_cmd='/usr/bin/file -L'
12973   lt_cv_file_magic_test_file=/shlib/libc.so
12974   ;;
12975
12976 cygwin*)
12977   # func_win32_libid is a shell function defined in ltmain.sh
12978   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12979   lt_cv_file_magic_cmd='func_win32_libid'
12980   ;;
12981
12982 mingw* | pw32*)
12983   # Base MSYS/MinGW do not provide the 'file' command needed by
12984   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12985   # unless we find 'file', for example because we are cross-compiling.
12986   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12987   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12988     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12989     lt_cv_file_magic_cmd='func_win32_libid'
12990   else
12991     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12992     lt_cv_file_magic_cmd='$OBJDUMP -f'
12993   fi
12994   ;;
12995
12996 cegcc*)
12997   # use the weaker test based on 'objdump'. See mingw*.
12998   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12999   lt_cv_file_magic_cmd='$OBJDUMP -f'
13000   ;;
13001
13002 darwin* | rhapsody*)
13003   lt_cv_deplibs_check_method=pass_all
13004   ;;
13005
13006 freebsd* | dragonfly*)
13007   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13008     case $host_cpu in
13009     i*86 )
13010       # Not sure whether the presence of OpenBSD here was a mistake.
13011       # Let's accept both of them until this is cleared up.
13012       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13013       lt_cv_file_magic_cmd=/usr/bin/file
13014       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13015       ;;
13016     esac
13017   else
13018     lt_cv_deplibs_check_method=pass_all
13019   fi
13020   ;;
13021
13022 gnu*)
13023   lt_cv_deplibs_check_method=pass_all
13024   ;;
13025
13026 haiku*)
13027   lt_cv_deplibs_check_method=pass_all
13028   ;;
13029
13030 hpux10.20* | hpux11*)
13031   lt_cv_file_magic_cmd=/usr/bin/file
13032   case $host_cpu in
13033   ia64*)
13034     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13035     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13036     ;;
13037   hppa*64*)
13038     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]'
13039     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13040     ;;
13041   *)
13042     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13043     lt_cv_file_magic_test_file=/usr/lib/libc.sl
13044     ;;
13045   esac
13046   ;;
13047
13048 interix[3-9]*)
13049   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13050   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13051   ;;
13052
13053 irix5* | irix6* | nonstopux*)
13054   case $LD in
13055   *-32|*"-32 ") libmagic=32-bit;;
13056   *-n32|*"-n32 ") libmagic=N32;;
13057   *-64|*"-64 ") libmagic=64-bit;;
13058   *) libmagic=never-match;;
13059   esac
13060   lt_cv_deplibs_check_method=pass_all
13061   ;;
13062
13063 # This must be Linux ELF.
13064 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13065   lt_cv_deplibs_check_method=pass_all
13066   ;;
13067
13068 netbsd*)
13069   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13070     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13071   else
13072     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13073   fi
13074   ;;
13075
13076 newos6*)
13077   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13078   lt_cv_file_magic_cmd=/usr/bin/file
13079   lt_cv_file_magic_test_file=/usr/lib/libnls.so
13080   ;;
13081
13082 *nto* | *qnx*)
13083   lt_cv_deplibs_check_method=pass_all
13084   ;;
13085
13086 openbsd*)
13087   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13088     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13089   else
13090     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13091   fi
13092   ;;
13093
13094 osf3* | osf4* | osf5*)
13095   lt_cv_deplibs_check_method=pass_all
13096   ;;
13097
13098 rdos*)
13099   lt_cv_deplibs_check_method=pass_all
13100   ;;
13101
13102 solaris*)
13103   lt_cv_deplibs_check_method=pass_all
13104   ;;
13105
13106 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13107   lt_cv_deplibs_check_method=pass_all
13108   ;;
13109
13110 sysv4 | sysv4.3*)
13111   case $host_vendor in
13112   motorola)
13113     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]'
13114     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13115     ;;
13116   ncr)
13117     lt_cv_deplibs_check_method=pass_all
13118     ;;
13119   sequent)
13120     lt_cv_file_magic_cmd='/bin/file'
13121     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13122     ;;
13123   sni)
13124     lt_cv_file_magic_cmd='/bin/file'
13125     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13126     lt_cv_file_magic_test_file=/lib/libc.so
13127     ;;
13128   siemens)
13129     lt_cv_deplibs_check_method=pass_all
13130     ;;
13131   pc)
13132     lt_cv_deplibs_check_method=pass_all
13133     ;;
13134   esac
13135   ;;
13136
13137 tpf*)
13138   lt_cv_deplibs_check_method=pass_all
13139   ;;
13140 esac
13141
13142 fi
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13144 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13145 file_magic_cmd=$lt_cv_file_magic_cmd
13146 deplibs_check_method=$lt_cv_deplibs_check_method
13147 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160 if test -n "$ac_tool_prefix"; then
13161   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13162 set dummy ${ac_tool_prefix}ar; ac_word=$2
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13164 $as_echo_n "checking for $ac_word... " >&6; }
13165 if test "${ac_cv_prog_AR+set}" = set; then :
13166   $as_echo_n "(cached) " >&6
13167 else
13168   if test -n "$AR"; then
13169   ac_cv_prog_AR="$AR" # Let the user override the test.
13170 else
13171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13172 for as_dir in $PATH
13173 do
13174   IFS=$as_save_IFS
13175   test -z "$as_dir" && as_dir=.
13176     for ac_exec_ext in '' $ac_executable_extensions; do
13177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13178     ac_cv_prog_AR="${ac_tool_prefix}ar"
13179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13180     break 2
13181   fi
13182 done
13183   done
13184 IFS=$as_save_IFS
13185
13186 fi
13187 fi
13188 AR=$ac_cv_prog_AR
13189 if test -n "$AR"; then
13190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13191 $as_echo "$AR" >&6; }
13192 else
13193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13194 $as_echo "no" >&6; }
13195 fi
13196
13197
13198 fi
13199 if test -z "$ac_cv_prog_AR"; then
13200   ac_ct_AR=$AR
13201   # Extract the first word of "ar", so it can be a program name with args.
13202 set dummy ar; ac_word=$2
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13204 $as_echo_n "checking for $ac_word... " >&6; }
13205 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13206   $as_echo_n "(cached) " >&6
13207 else
13208   if test -n "$ac_ct_AR"; then
13209   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13210 else
13211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13212 for as_dir in $PATH
13213 do
13214   IFS=$as_save_IFS
13215   test -z "$as_dir" && as_dir=.
13216     for ac_exec_ext in '' $ac_executable_extensions; do
13217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13218     ac_cv_prog_ac_ct_AR="ar"
13219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13220     break 2
13221   fi
13222 done
13223   done
13224 IFS=$as_save_IFS
13225
13226 fi
13227 fi
13228 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13229 if test -n "$ac_ct_AR"; then
13230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13231 $as_echo "$ac_ct_AR" >&6; }
13232 else
13233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13234 $as_echo "no" >&6; }
13235 fi
13236
13237   if test "x$ac_ct_AR" = x; then
13238     AR="false"
13239   else
13240     case $cross_compiling:$ac_tool_warned in
13241 yes:)
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13244 ac_tool_warned=yes ;;
13245 esac
13246     AR=$ac_ct_AR
13247   fi
13248 else
13249   AR="$ac_cv_prog_AR"
13250 fi
13251
13252 test -z "$AR" && AR=ar
13253 test -z "$AR_FLAGS" && AR_FLAGS=cru
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265 if test -n "$ac_tool_prefix"; then
13266   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13267 set dummy ${ac_tool_prefix}strip; ac_word=$2
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13269 $as_echo_n "checking for $ac_word... " >&6; }
13270 if test "${ac_cv_prog_STRIP+set}" = set; then :
13271   $as_echo_n "(cached) " >&6
13272 else
13273   if test -n "$STRIP"; then
13274   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13275 else
13276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13277 for as_dir in $PATH
13278 do
13279   IFS=$as_save_IFS
13280   test -z "$as_dir" && as_dir=.
13281     for ac_exec_ext in '' $ac_executable_extensions; do
13282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13283     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13285     break 2
13286   fi
13287 done
13288   done
13289 IFS=$as_save_IFS
13290
13291 fi
13292 fi
13293 STRIP=$ac_cv_prog_STRIP
13294 if test -n "$STRIP"; then
13295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13296 $as_echo "$STRIP" >&6; }
13297 else
13298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13299 $as_echo "no" >&6; }
13300 fi
13301
13302
13303 fi
13304 if test -z "$ac_cv_prog_STRIP"; then
13305   ac_ct_STRIP=$STRIP
13306   # Extract the first word of "strip", so it can be a program name with args.
13307 set dummy strip; ac_word=$2
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13309 $as_echo_n "checking for $ac_word... " >&6; }
13310 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13311   $as_echo_n "(cached) " >&6
13312 else
13313   if test -n "$ac_ct_STRIP"; then
13314   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13315 else
13316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13317 for as_dir in $PATH
13318 do
13319   IFS=$as_save_IFS
13320   test -z "$as_dir" && as_dir=.
13321     for ac_exec_ext in '' $ac_executable_extensions; do
13322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13323     ac_cv_prog_ac_ct_STRIP="strip"
13324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13325     break 2
13326   fi
13327 done
13328   done
13329 IFS=$as_save_IFS
13330
13331 fi
13332 fi
13333 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13334 if test -n "$ac_ct_STRIP"; then
13335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13336 $as_echo "$ac_ct_STRIP" >&6; }
13337 else
13338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13339 $as_echo "no" >&6; }
13340 fi
13341
13342   if test "x$ac_ct_STRIP" = x; then
13343     STRIP=":"
13344   else
13345     case $cross_compiling:$ac_tool_warned in
13346 yes:)
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13349 ac_tool_warned=yes ;;
13350 esac
13351     STRIP=$ac_ct_STRIP
13352   fi
13353 else
13354   STRIP="$ac_cv_prog_STRIP"
13355 fi
13356
13357 test -z "$STRIP" && STRIP=:
13358
13359
13360
13361
13362
13363
13364 if test -n "$ac_tool_prefix"; then
13365   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13366 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13368 $as_echo_n "checking for $ac_word... " >&6; }
13369 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13370   $as_echo_n "(cached) " >&6
13371 else
13372   if test -n "$RANLIB"; then
13373   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13374 else
13375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13376 for as_dir in $PATH
13377 do
13378   IFS=$as_save_IFS
13379   test -z "$as_dir" && as_dir=.
13380     for ac_exec_ext in '' $ac_executable_extensions; do
13381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13382     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13384     break 2
13385   fi
13386 done
13387   done
13388 IFS=$as_save_IFS
13389
13390 fi
13391 fi
13392 RANLIB=$ac_cv_prog_RANLIB
13393 if test -n "$RANLIB"; then
13394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13395 $as_echo "$RANLIB" >&6; }
13396 else
13397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13398 $as_echo "no" >&6; }
13399 fi
13400
13401
13402 fi
13403 if test -z "$ac_cv_prog_RANLIB"; then
13404   ac_ct_RANLIB=$RANLIB
13405   # Extract the first word of "ranlib", so it can be a program name with args.
13406 set dummy ranlib; ac_word=$2
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13408 $as_echo_n "checking for $ac_word... " >&6; }
13409 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13410   $as_echo_n "(cached) " >&6
13411 else
13412   if test -n "$ac_ct_RANLIB"; then
13413   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13414 else
13415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13416 for as_dir in $PATH
13417 do
13418   IFS=$as_save_IFS
13419   test -z "$as_dir" && as_dir=.
13420     for ac_exec_ext in '' $ac_executable_extensions; do
13421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13422     ac_cv_prog_ac_ct_RANLIB="ranlib"
13423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13424     break 2
13425   fi
13426 done
13427   done
13428 IFS=$as_save_IFS
13429
13430 fi
13431 fi
13432 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13433 if test -n "$ac_ct_RANLIB"; then
13434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13435 $as_echo "$ac_ct_RANLIB" >&6; }
13436 else
13437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13438 $as_echo "no" >&6; }
13439 fi
13440
13441   if test "x$ac_ct_RANLIB" = x; then
13442     RANLIB=":"
13443   else
13444     case $cross_compiling:$ac_tool_warned in
13445 yes:)
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13448 ac_tool_warned=yes ;;
13449 esac
13450     RANLIB=$ac_ct_RANLIB
13451   fi
13452 else
13453   RANLIB="$ac_cv_prog_RANLIB"
13454 fi
13455
13456 test -z "$RANLIB" && RANLIB=:
13457
13458
13459
13460
13461
13462
13463 # Determine commands to create old-style static archives.
13464 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13465 old_postinstall_cmds='chmod 644 $oldlib'
13466 old_postuninstall_cmds=
13467
13468 if test -n "$RANLIB"; then
13469   case $host_os in
13470   openbsd*)
13471     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13472     ;;
13473   *)
13474     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13475     ;;
13476   esac
13477   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13478 fi
13479
13480 case $host_os in
13481   darwin*)
13482     lock_old_archive_extraction=yes ;;
13483   *)
13484     lock_old_archive_extraction=no ;;
13485 esac
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525 # If no C compiler was specified, use CC.
13526 LTCC=${LTCC-"$CC"}
13527
13528 # If no C compiler flags were specified, use CFLAGS.
13529 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13530
13531 # Allow CC to be a program name with arguments.
13532 compiler=$CC
13533
13534
13535 # Check for command to grab the raw symbol name followed by C symbol from nm.
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13537 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13538 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13539   $as_echo_n "(cached) " >&6
13540 else
13541
13542 # These are sane defaults that work on at least a few old systems.
13543 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13544
13545 # Character class describing NM global symbol codes.
13546 symcode='[BCDEGRST]'
13547
13548 # Regexp to match symbols that can be accessed directly from C.
13549 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13550
13551 # Define system-specific variables.
13552 case $host_os in
13553 aix*)
13554   symcode='[BCDT]'
13555   ;;
13556 cygwin* | mingw* | pw32* | cegcc*)
13557   symcode='[ABCDGISTW]'
13558   ;;
13559 hpux*)
13560   if test "$host_cpu" = ia64; then
13561     symcode='[ABCDEGRST]'
13562   fi
13563   ;;
13564 irix* | nonstopux*)
13565   symcode='[BCDEGRST]'
13566   ;;
13567 osf*)
13568   symcode='[BCDEGQRST]'
13569   ;;
13570 solaris*)
13571   symcode='[BDRT]'
13572   ;;
13573 sco3.2v5*)
13574   symcode='[DT]'
13575   ;;
13576 sysv4.2uw2*)
13577   symcode='[DT]'
13578   ;;
13579 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13580   symcode='[ABDT]'
13581   ;;
13582 sysv4)
13583   symcode='[DFNSTU]'
13584   ;;
13585 esac
13586
13587 # If we're using GNU nm, then use its standard symbol codes.
13588 case `$NM -V 2>&1` in
13589 *GNU* | *'with BFD'*)
13590   symcode='[ABCDGIRSTW]' ;;
13591 esac
13592
13593 # Transform an extracted symbol line into a proper C declaration.
13594 # Some systems (esp. on ia64) link data and code symbols differently,
13595 # so use this general approach.
13596 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13597
13598 # Transform an extracted symbol line into symbol name and symbol address
13599 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13600 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'"
13601
13602 # Handle CRLF in mingw tool chain
13603 opt_cr=
13604 case $build_os in
13605 mingw*)
13606   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13607   ;;
13608 esac
13609
13610 # Try without a prefix underscore, then with it.
13611 for ac_symprfx in "" "_"; do
13612
13613   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13614   symxfrm="\\1 $ac_symprfx\\2 \\2"
13615
13616   # Write the raw and C identifiers.
13617   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13618     # Fake it for dumpbin and say T for any non-static function
13619     # and D for any global variable.
13620     # Also find C++ and __fastcall symbols from MSVC++,
13621     # which start with @ or ?.
13622     lt_cv_sys_global_symbol_pipe="$AWK '"\
13623 "     {last_section=section; section=\$ 3};"\
13624 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13625 "     \$ 0!~/External *\|/{next};"\
13626 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13627 "     {if(hide[section]) next};"\
13628 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13629 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13630 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13631 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13632 "     ' prfx=^$ac_symprfx"
13633   else
13634     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13635   fi
13636
13637   # Check to see that the pipe works correctly.
13638   pipe_works=no
13639
13640   rm -f conftest*
13641   cat > conftest.$ac_ext <<_LT_EOF
13642 #ifdef __cplusplus
13643 extern "C" {
13644 #endif
13645 char nm_test_var;
13646 void nm_test_func(void);
13647 void nm_test_func(void){}
13648 #ifdef __cplusplus
13649 }
13650 #endif
13651 int main(){nm_test_var='a';nm_test_func();return(0);}
13652 _LT_EOF
13653
13654   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13655   (eval $ac_compile) 2>&5
13656   ac_status=$?
13657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13658   test $ac_status = 0; }; then
13659     # Now try to grab the symbols.
13660     nlist=conftest.nm
13661     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13662   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13663   ac_status=$?
13664   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13665   test $ac_status = 0; } && test -s "$nlist"; then
13666       # Try sorting and uniquifying the output.
13667       if sort "$nlist" | uniq > "$nlist"T; then
13668         mv -f "$nlist"T "$nlist"
13669       else
13670         rm -f "$nlist"T
13671       fi
13672
13673       # Make sure that we snagged all the symbols we need.
13674       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13675         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13676           cat <<_LT_EOF > conftest.$ac_ext
13677 #ifdef __cplusplus
13678 extern "C" {
13679 #endif
13680
13681 _LT_EOF
13682           # Now generate the symbol file.
13683           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13684
13685           cat <<_LT_EOF >> conftest.$ac_ext
13686
13687 /* The mapping between symbol names and symbols.  */
13688 const struct {
13689   const char *name;
13690   void       *address;
13691 }
13692 lt__PROGRAM__LTX_preloaded_symbols[] =
13693 {
13694   { "@PROGRAM@", (void *) 0 },
13695 _LT_EOF
13696           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13697           cat <<\_LT_EOF >> conftest.$ac_ext
13698   {0, (void *) 0}
13699 };
13700
13701 /* This works around a problem in FreeBSD linker */
13702 #ifdef FREEBSD_WORKAROUND
13703 static const void *lt_preloaded_setup() {
13704   return lt__PROGRAM__LTX_preloaded_symbols;
13705 }
13706 #endif
13707
13708 #ifdef __cplusplus
13709 }
13710 #endif
13711 _LT_EOF
13712           # Now try linking the two files.
13713           mv conftest.$ac_objext conftstm.$ac_objext
13714           lt_save_LIBS="$LIBS"
13715           lt_save_CFLAGS="$CFLAGS"
13716           LIBS="conftstm.$ac_objext"
13717           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13718           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13719   (eval $ac_link) 2>&5
13720   ac_status=$?
13721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13722   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13723             pipe_works=yes
13724           fi
13725           LIBS="$lt_save_LIBS"
13726           CFLAGS="$lt_save_CFLAGS"
13727         else
13728           echo "cannot find nm_test_func in $nlist" >&5
13729         fi
13730       else
13731         echo "cannot find nm_test_var in $nlist" >&5
13732       fi
13733     else
13734       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13735     fi
13736   else
13737     echo "$progname: failed program was:" >&5
13738     cat conftest.$ac_ext >&5
13739   fi
13740   rm -rf conftest* conftst*
13741
13742   # Do not use the global_symbol_pipe unless it works.
13743   if test "$pipe_works" = yes; then
13744     break
13745   else
13746     lt_cv_sys_global_symbol_pipe=
13747   fi
13748 done
13749
13750 fi
13751
13752 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13753   lt_cv_sys_global_symbol_to_cdecl=
13754 fi
13755 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13757 $as_echo "failed" >&6; }
13758 else
13759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13760 $as_echo "ok" >&6; }
13761 fi
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784 # Check whether --enable-libtool-lock was given.
13785 if test "${enable_libtool_lock+set}" = set; then :
13786   enableval=$enable_libtool_lock;
13787 fi
13788
13789 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13790
13791 # Some flags need to be propagated to the compiler or linker for good
13792 # libtool support.
13793 case $host in
13794 ia64-*-hpux*)
13795   # Find out which ABI we are using.
13796   echo 'int i;' > conftest.$ac_ext
13797   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13798   (eval $ac_compile) 2>&5
13799   ac_status=$?
13800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13801   test $ac_status = 0; }; then
13802     case `/usr/bin/file conftest.$ac_objext` in
13803       *ELF-32*)
13804         HPUX_IA64_MODE="32"
13805         ;;
13806       *ELF-64*)
13807         HPUX_IA64_MODE="64"
13808         ;;
13809     esac
13810   fi
13811   rm -rf conftest*
13812   ;;
13813 *-*-irix6*)
13814   # Find out which ABI we are using.
13815   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13816   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13817   (eval $ac_compile) 2>&5
13818   ac_status=$?
13819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13820   test $ac_status = 0; }; then
13821     if test "$lt_cv_prog_gnu_ld" = yes; then
13822       case `/usr/bin/file conftest.$ac_objext` in
13823         *32-bit*)
13824           LD="${LD-ld} -melf32bsmip"
13825           ;;
13826         *N32*)
13827           LD="${LD-ld} -melf32bmipn32"
13828           ;;
13829         *64-bit*)
13830           LD="${LD-ld} -melf64bmip"
13831         ;;
13832       esac
13833     else
13834       case `/usr/bin/file conftest.$ac_objext` in
13835         *32-bit*)
13836           LD="${LD-ld} -32"
13837           ;;
13838         *N32*)
13839           LD="${LD-ld} -n32"
13840           ;;
13841         *64-bit*)
13842           LD="${LD-ld} -64"
13843           ;;
13844       esac
13845     fi
13846   fi
13847   rm -rf conftest*
13848   ;;
13849
13850 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13851 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13852   # Find out which ABI we are using.
13853   echo 'int i;' > conftest.$ac_ext
13854   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13855   (eval $ac_compile) 2>&5
13856   ac_status=$?
13857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13858   test $ac_status = 0; }; then
13859     case `/usr/bin/file conftest.o` in
13860       *32-bit*)
13861         case $host in
13862           x86_64-*kfreebsd*-gnu)
13863             LD="${LD-ld} -m elf_i386_fbsd"
13864             ;;
13865           x86_64-*linux*)
13866             LD="${LD-ld} -m elf_i386"
13867             ;;
13868           ppc64-*linux*|powerpc64-*linux*)
13869             LD="${LD-ld} -m elf32ppclinux"
13870             ;;
13871           s390x-*linux*)
13872             LD="${LD-ld} -m elf_s390"
13873             ;;
13874           sparc64-*linux*)
13875             LD="${LD-ld} -m elf32_sparc"
13876             ;;
13877         esac
13878         ;;
13879       *64-bit*)
13880         case $host in
13881           x86_64-*kfreebsd*-gnu)
13882             LD="${LD-ld} -m elf_x86_64_fbsd"
13883             ;;
13884           x86_64-*linux*)
13885             LD="${LD-ld} -m elf_x86_64"
13886             ;;
13887           ppc*-*linux*|powerpc*-*linux*)
13888             LD="${LD-ld} -m elf64ppc"
13889             ;;
13890           s390*-*linux*|s390*-*tpf*)
13891             LD="${LD-ld} -m elf64_s390"
13892             ;;
13893           sparc*-*linux*)
13894             LD="${LD-ld} -m elf64_sparc"
13895             ;;
13896         esac
13897         ;;
13898     esac
13899   fi
13900   rm -rf conftest*
13901   ;;
13902
13903 *-*-sco3.2v5*)
13904   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13905   SAVE_CFLAGS="$CFLAGS"
13906   CFLAGS="$CFLAGS -belf"
13907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13908 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13909 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13910   $as_echo_n "(cached) " >&6
13911 else
13912   ac_ext=c
13913 ac_cpp='$CPP $CPPFLAGS'
13914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13917
13918      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13919 /* end confdefs.h.  */
13920
13921 int
13922 main ()
13923 {
13924
13925   ;
13926   return 0;
13927 }
13928 _ACEOF
13929 if ac_fn_c_try_link "$LINENO"; then :
13930   lt_cv_cc_needs_belf=yes
13931 else
13932   lt_cv_cc_needs_belf=no
13933 fi
13934 rm -f core conftest.err conftest.$ac_objext \
13935     conftest$ac_exeext conftest.$ac_ext
13936      ac_ext=c
13937 ac_cpp='$CPP $CPPFLAGS'
13938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13941
13942 fi
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13944 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13945   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13946     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13947     CFLAGS="$SAVE_CFLAGS"
13948   fi
13949   ;;
13950 sparc*-*solaris*)
13951   # Find out which ABI we are using.
13952   echo 'int i;' > conftest.$ac_ext
13953   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13954   (eval $ac_compile) 2>&5
13955   ac_status=$?
13956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13957   test $ac_status = 0; }; then
13958     case `/usr/bin/file conftest.o` in
13959     *64-bit*)
13960       case $lt_cv_prog_gnu_ld in
13961       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13962       *)
13963         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13964           LD="${LD-ld} -64"
13965         fi
13966         ;;
13967       esac
13968       ;;
13969     esac
13970   fi
13971   rm -rf conftest*
13972   ;;
13973 esac
13974
13975 need_locks="$enable_libtool_lock"
13976
13977
13978   case $host_os in
13979     rhapsody* | darwin*)
13980     if test -n "$ac_tool_prefix"; then
13981   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13982 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13984 $as_echo_n "checking for $ac_word... " >&6; }
13985 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13986   $as_echo_n "(cached) " >&6
13987 else
13988   if test -n "$DSYMUTIL"; then
13989   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13990 else
13991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13992 for as_dir in $PATH
13993 do
13994   IFS=$as_save_IFS
13995   test -z "$as_dir" && as_dir=.
13996     for ac_exec_ext in '' $ac_executable_extensions; do
13997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13998     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14000     break 2
14001   fi
14002 done
14003   done
14004 IFS=$as_save_IFS
14005
14006 fi
14007 fi
14008 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14009 if test -n "$DSYMUTIL"; then
14010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14011 $as_echo "$DSYMUTIL" >&6; }
14012 else
14013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14014 $as_echo "no" >&6; }
14015 fi
14016
14017
14018 fi
14019 if test -z "$ac_cv_prog_DSYMUTIL"; then
14020   ac_ct_DSYMUTIL=$DSYMUTIL
14021   # Extract the first word of "dsymutil", so it can be a program name with args.
14022 set dummy dsymutil; ac_word=$2
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14024 $as_echo_n "checking for $ac_word... " >&6; }
14025 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14026   $as_echo_n "(cached) " >&6
14027 else
14028   if test -n "$ac_ct_DSYMUTIL"; then
14029   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14030 else
14031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14032 for as_dir in $PATH
14033 do
14034   IFS=$as_save_IFS
14035   test -z "$as_dir" && as_dir=.
14036     for ac_exec_ext in '' $ac_executable_extensions; do
14037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14038     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14040     break 2
14041   fi
14042 done
14043   done
14044 IFS=$as_save_IFS
14045
14046 fi
14047 fi
14048 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14049 if test -n "$ac_ct_DSYMUTIL"; then
14050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14051 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14052 else
14053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14054 $as_echo "no" >&6; }
14055 fi
14056
14057   if test "x$ac_ct_DSYMUTIL" = x; then
14058     DSYMUTIL=":"
14059   else
14060     case $cross_compiling:$ac_tool_warned in
14061 yes:)
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14064 ac_tool_warned=yes ;;
14065 esac
14066     DSYMUTIL=$ac_ct_DSYMUTIL
14067   fi
14068 else
14069   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14070 fi
14071
14072     if test -n "$ac_tool_prefix"; then
14073   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14074 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14076 $as_echo_n "checking for $ac_word... " >&6; }
14077 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14078   $as_echo_n "(cached) " >&6
14079 else
14080   if test -n "$NMEDIT"; then
14081   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14082 else
14083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14084 for as_dir in $PATH
14085 do
14086   IFS=$as_save_IFS
14087   test -z "$as_dir" && as_dir=.
14088     for ac_exec_ext in '' $ac_executable_extensions; do
14089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14090     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14092     break 2
14093   fi
14094 done
14095   done
14096 IFS=$as_save_IFS
14097
14098 fi
14099 fi
14100 NMEDIT=$ac_cv_prog_NMEDIT
14101 if test -n "$NMEDIT"; then
14102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14103 $as_echo "$NMEDIT" >&6; }
14104 else
14105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14106 $as_echo "no" >&6; }
14107 fi
14108
14109
14110 fi
14111 if test -z "$ac_cv_prog_NMEDIT"; then
14112   ac_ct_NMEDIT=$NMEDIT
14113   # Extract the first word of "nmedit", so it can be a program name with args.
14114 set dummy nmedit; ac_word=$2
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14116 $as_echo_n "checking for $ac_word... " >&6; }
14117 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14118   $as_echo_n "(cached) " >&6
14119 else
14120   if test -n "$ac_ct_NMEDIT"; then
14121   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14122 else
14123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14124 for as_dir in $PATH
14125 do
14126   IFS=$as_save_IFS
14127   test -z "$as_dir" && as_dir=.
14128     for ac_exec_ext in '' $ac_executable_extensions; do
14129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14130     ac_cv_prog_ac_ct_NMEDIT="nmedit"
14131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14132     break 2
14133   fi
14134 done
14135   done
14136 IFS=$as_save_IFS
14137
14138 fi
14139 fi
14140 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14141 if test -n "$ac_ct_NMEDIT"; then
14142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14143 $as_echo "$ac_ct_NMEDIT" >&6; }
14144 else
14145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14146 $as_echo "no" >&6; }
14147 fi
14148
14149   if test "x$ac_ct_NMEDIT" = x; then
14150     NMEDIT=":"
14151   else
14152     case $cross_compiling:$ac_tool_warned in
14153 yes:)
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14156 ac_tool_warned=yes ;;
14157 esac
14158     NMEDIT=$ac_ct_NMEDIT
14159   fi
14160 else
14161   NMEDIT="$ac_cv_prog_NMEDIT"
14162 fi
14163
14164     if test -n "$ac_tool_prefix"; then
14165   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14166 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14168 $as_echo_n "checking for $ac_word... " >&6; }
14169 if test "${ac_cv_prog_LIPO+set}" = set; then :
14170   $as_echo_n "(cached) " >&6
14171 else
14172   if test -n "$LIPO"; then
14173   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14174 else
14175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14176 for as_dir in $PATH
14177 do
14178   IFS=$as_save_IFS
14179   test -z "$as_dir" && as_dir=.
14180     for ac_exec_ext in '' $ac_executable_extensions; do
14181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14182     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14184     break 2
14185   fi
14186 done
14187   done
14188 IFS=$as_save_IFS
14189
14190 fi
14191 fi
14192 LIPO=$ac_cv_prog_LIPO
14193 if test -n "$LIPO"; then
14194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14195 $as_echo "$LIPO" >&6; }
14196 else
14197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14198 $as_echo "no" >&6; }
14199 fi
14200
14201
14202 fi
14203 if test -z "$ac_cv_prog_LIPO"; then
14204   ac_ct_LIPO=$LIPO
14205   # Extract the first word of "lipo", so it can be a program name with args.
14206 set dummy lipo; ac_word=$2
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14208 $as_echo_n "checking for $ac_word... " >&6; }
14209 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14210   $as_echo_n "(cached) " >&6
14211 else
14212   if test -n "$ac_ct_LIPO"; then
14213   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14214 else
14215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14216 for as_dir in $PATH
14217 do
14218   IFS=$as_save_IFS
14219   test -z "$as_dir" && as_dir=.
14220     for ac_exec_ext in '' $ac_executable_extensions; do
14221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14222     ac_cv_prog_ac_ct_LIPO="lipo"
14223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14224     break 2
14225   fi
14226 done
14227   done
14228 IFS=$as_save_IFS
14229
14230 fi
14231 fi
14232 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14233 if test -n "$ac_ct_LIPO"; then
14234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14235 $as_echo "$ac_ct_LIPO" >&6; }
14236 else
14237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14238 $as_echo "no" >&6; }
14239 fi
14240
14241   if test "x$ac_ct_LIPO" = x; then
14242     LIPO=":"
14243   else
14244     case $cross_compiling:$ac_tool_warned in
14245 yes:)
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14248 ac_tool_warned=yes ;;
14249 esac
14250     LIPO=$ac_ct_LIPO
14251   fi
14252 else
14253   LIPO="$ac_cv_prog_LIPO"
14254 fi
14255
14256     if test -n "$ac_tool_prefix"; then
14257   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14258 set dummy ${ac_tool_prefix}otool; ac_word=$2
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14260 $as_echo_n "checking for $ac_word... " >&6; }
14261 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14262   $as_echo_n "(cached) " >&6
14263 else
14264   if test -n "$OTOOL"; then
14265   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14266 else
14267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14268 for as_dir in $PATH
14269 do
14270   IFS=$as_save_IFS
14271   test -z "$as_dir" && as_dir=.
14272     for ac_exec_ext in '' $ac_executable_extensions; do
14273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14274     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14276     break 2
14277   fi
14278 done
14279   done
14280 IFS=$as_save_IFS
14281
14282 fi
14283 fi
14284 OTOOL=$ac_cv_prog_OTOOL
14285 if test -n "$OTOOL"; then
14286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14287 $as_echo "$OTOOL" >&6; }
14288 else
14289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14290 $as_echo "no" >&6; }
14291 fi
14292
14293
14294 fi
14295 if test -z "$ac_cv_prog_OTOOL"; then
14296   ac_ct_OTOOL=$OTOOL
14297   # Extract the first word of "otool", so it can be a program name with args.
14298 set dummy otool; ac_word=$2
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14300 $as_echo_n "checking for $ac_word... " >&6; }
14301 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14302   $as_echo_n "(cached) " >&6
14303 else
14304   if test -n "$ac_ct_OTOOL"; then
14305   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14306 else
14307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14308 for as_dir in $PATH
14309 do
14310   IFS=$as_save_IFS
14311   test -z "$as_dir" && as_dir=.
14312     for ac_exec_ext in '' $ac_executable_extensions; do
14313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14314     ac_cv_prog_ac_ct_OTOOL="otool"
14315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14316     break 2
14317   fi
14318 done
14319   done
14320 IFS=$as_save_IFS
14321
14322 fi
14323 fi
14324 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14325 if test -n "$ac_ct_OTOOL"; then
14326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14327 $as_echo "$ac_ct_OTOOL" >&6; }
14328 else
14329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14330 $as_echo "no" >&6; }
14331 fi
14332
14333   if test "x$ac_ct_OTOOL" = x; then
14334     OTOOL=":"
14335   else
14336     case $cross_compiling:$ac_tool_warned in
14337 yes:)
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14340 ac_tool_warned=yes ;;
14341 esac
14342     OTOOL=$ac_ct_OTOOL
14343   fi
14344 else
14345   OTOOL="$ac_cv_prog_OTOOL"
14346 fi
14347
14348     if test -n "$ac_tool_prefix"; then
14349   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14350 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14352 $as_echo_n "checking for $ac_word... " >&6; }
14353 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14354   $as_echo_n "(cached) " >&6
14355 else
14356   if test -n "$OTOOL64"; then
14357   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14358 else
14359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14360 for as_dir in $PATH
14361 do
14362   IFS=$as_save_IFS
14363   test -z "$as_dir" && as_dir=.
14364     for ac_exec_ext in '' $ac_executable_extensions; do
14365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14366     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14368     break 2
14369   fi
14370 done
14371   done
14372 IFS=$as_save_IFS
14373
14374 fi
14375 fi
14376 OTOOL64=$ac_cv_prog_OTOOL64
14377 if test -n "$OTOOL64"; then
14378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14379 $as_echo "$OTOOL64" >&6; }
14380 else
14381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14382 $as_echo "no" >&6; }
14383 fi
14384
14385
14386 fi
14387 if test -z "$ac_cv_prog_OTOOL64"; then
14388   ac_ct_OTOOL64=$OTOOL64
14389   # Extract the first word of "otool64", so it can be a program name with args.
14390 set dummy otool64; ac_word=$2
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14392 $as_echo_n "checking for $ac_word... " >&6; }
14393 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14394   $as_echo_n "(cached) " >&6
14395 else
14396   if test -n "$ac_ct_OTOOL64"; then
14397   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14398 else
14399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14400 for as_dir in $PATH
14401 do
14402   IFS=$as_save_IFS
14403   test -z "$as_dir" && as_dir=.
14404     for ac_exec_ext in '' $ac_executable_extensions; do
14405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14406     ac_cv_prog_ac_ct_OTOOL64="otool64"
14407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14408     break 2
14409   fi
14410 done
14411   done
14412 IFS=$as_save_IFS
14413
14414 fi
14415 fi
14416 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14417 if test -n "$ac_ct_OTOOL64"; then
14418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14419 $as_echo "$ac_ct_OTOOL64" >&6; }
14420 else
14421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14422 $as_echo "no" >&6; }
14423 fi
14424
14425   if test "x$ac_ct_OTOOL64" = x; then
14426     OTOOL64=":"
14427   else
14428     case $cross_compiling:$ac_tool_warned in
14429 yes:)
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14432 ac_tool_warned=yes ;;
14433 esac
14434     OTOOL64=$ac_ct_OTOOL64
14435   fi
14436 else
14437   OTOOL64="$ac_cv_prog_OTOOL64"
14438 fi
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14467 $as_echo_n "checking for -single_module linker flag... " >&6; }
14468 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14469   $as_echo_n "(cached) " >&6
14470 else
14471   lt_cv_apple_cc_single_mod=no
14472       if test -z "${LT_MULTI_MODULE}"; then
14473         # By default we will add the -single_module flag. You can override
14474         # by either setting the environment variable LT_MULTI_MODULE
14475         # non-empty at configure time, or by adding -multi_module to the
14476         # link flags.
14477         rm -rf libconftest.dylib*
14478         echo "int foo(void){return 1;}" > conftest.c
14479         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14480 -dynamiclib -Wl,-single_module conftest.c" >&5
14481         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14482           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14483         _lt_result=$?
14484         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14485           lt_cv_apple_cc_single_mod=yes
14486         else
14487           cat conftest.err >&5
14488         fi
14489         rm -rf libconftest.dylib*
14490         rm -f conftest.*
14491       fi
14492 fi
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14494 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14495     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14496 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14497 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14498   $as_echo_n "(cached) " >&6
14499 else
14500   lt_cv_ld_exported_symbols_list=no
14501       save_LDFLAGS=$LDFLAGS
14502       echo "_main" > conftest.sym
14503       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14504       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14505 /* end confdefs.h.  */
14506
14507 int
14508 main ()
14509 {
14510
14511   ;
14512   return 0;
14513 }
14514 _ACEOF
14515 if ac_fn_c_try_link "$LINENO"; then :
14516   lt_cv_ld_exported_symbols_list=yes
14517 else
14518   lt_cv_ld_exported_symbols_list=no
14519 fi
14520 rm -f core conftest.err conftest.$ac_objext \
14521     conftest$ac_exeext conftest.$ac_ext
14522         LDFLAGS="$save_LDFLAGS"
14523
14524 fi
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14526 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14527     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14528 $as_echo_n "checking for -force_load linker flag... " >&6; }
14529 if test "${lt_cv_ld_force_load+set}" = set; then :
14530   $as_echo_n "(cached) " >&6
14531 else
14532   lt_cv_ld_force_load=no
14533       cat > conftest.c << _LT_EOF
14534 int forced_loaded() { return 2;}
14535 _LT_EOF
14536       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14537       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14538       echo "$AR cru libconftest.a conftest.o" >&5
14539       $AR cru libconftest.a conftest.o 2>&5
14540       cat > conftest.c << _LT_EOF
14541 int main() { return 0;}
14542 _LT_EOF
14543       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14544       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14545       _lt_result=$?
14546       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14547         lt_cv_ld_force_load=yes
14548       else
14549         cat conftest.err >&5
14550       fi
14551         rm -f conftest.err libconftest.a conftest conftest.c
14552         rm -rf conftest.dSYM
14553
14554 fi
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14556 $as_echo "$lt_cv_ld_force_load" >&6; }
14557     case $host_os in
14558     rhapsody* | darwin1.[012])
14559       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14560     darwin1.*)
14561       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14562     darwin*) # darwin 5.x on
14563       # if running on 10.5 or later, the deployment target defaults
14564       # to the OS version, if on x86, and 10.4, the deployment
14565       # target defaults to 10.4. Don't you love it?
14566       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14567         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14568           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14569         10.[012]*)
14570           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14571         10.*)
14572           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14573       esac
14574     ;;
14575   esac
14576     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14577       _lt_dar_single_mod='$single_module'
14578     fi
14579     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14580       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14581     else
14582       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14583     fi
14584     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14585       _lt_dsymutil='~$DSYMUTIL $lib || :'
14586     else
14587       _lt_dsymutil=
14588     fi
14589     ;;
14590   esac
14591
14592 for ac_header in dlfcn.h
14593 do :
14594   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14595 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14596   cat >>confdefs.h <<_ACEOF
14597 #define HAVE_DLFCN_H 1
14598 _ACEOF
14599
14600 fi
14601 done
14602
14603
14604
14605
14606
14607 # Set options
14608
14609
14610
14611         enable_dlopen=no
14612
14613
14614   enable_win32_dll=no
14615
14616
14617             # Check whether --enable-shared was given.
14618 if test "${enable_shared+set}" = set; then :
14619   enableval=$enable_shared; p=${PACKAGE-default}
14620     case $enableval in
14621     yes) enable_shared=yes ;;
14622     no) enable_shared=no ;;
14623     *)
14624       enable_shared=no
14625       # Look at the argument we got.  We use all the common list separators.
14626       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14627       for pkg in $enableval; do
14628         IFS="$lt_save_ifs"
14629         if test "X$pkg" = "X$p"; then
14630           enable_shared=yes
14631         fi
14632       done
14633       IFS="$lt_save_ifs"
14634       ;;
14635     esac
14636 else
14637   enable_shared=yes
14638 fi
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648   # Check whether --enable-static was given.
14649 if test "${enable_static+set}" = set; then :
14650   enableval=$enable_static; p=${PACKAGE-default}
14651     case $enableval in
14652     yes) enable_static=yes ;;
14653     no) enable_static=no ;;
14654     *)
14655      enable_static=no
14656       # Look at the argument we got.  We use all the common list separators.
14657       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14658       for pkg in $enableval; do
14659         IFS="$lt_save_ifs"
14660         if test "X$pkg" = "X$p"; then
14661           enable_static=yes
14662         fi
14663       done
14664       IFS="$lt_save_ifs"
14665       ;;
14666     esac
14667 else
14668   enable_static=yes
14669 fi
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680 # Check whether --with-pic was given.
14681 if test "${with_pic+set}" = set; then :
14682   withval=$with_pic; pic_mode="$withval"
14683 else
14684   pic_mode=default
14685 fi
14686
14687
14688 test -z "$pic_mode" && pic_mode=default
14689
14690
14691
14692
14693
14694
14695
14696   # Check whether --enable-fast-install was given.
14697 if test "${enable_fast_install+set}" = set; then :
14698   enableval=$enable_fast_install; p=${PACKAGE-default}
14699     case $enableval in
14700     yes) enable_fast_install=yes ;;
14701     no) enable_fast_install=no ;;
14702     *)
14703       enable_fast_install=no
14704       # Look at the argument we got.  We use all the common list separators.
14705       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14706       for pkg in $enableval; do
14707         IFS="$lt_save_ifs"
14708         if test "X$pkg" = "X$p"; then
14709           enable_fast_install=yes
14710         fi
14711       done
14712       IFS="$lt_save_ifs"
14713       ;;
14714     esac
14715 else
14716   enable_fast_install=yes
14717 fi
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729 # This can be used to rebuild libtool when needed
14730 LIBTOOL_DEPS="$ltmain"
14731
14732 # Always use our own libtool.
14733 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760 test -z "$LN_S" && LN_S="ln -s"
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775 if test -n "${ZSH_VERSION+set}" ; then
14776    setopt NO_GLOB_SUBST
14777 fi
14778
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14780 $as_echo_n "checking for objdir... " >&6; }
14781 if test "${lt_cv_objdir+set}" = set; then :
14782   $as_echo_n "(cached) " >&6
14783 else
14784   rm -f .libs 2>/dev/null
14785 mkdir .libs 2>/dev/null
14786 if test -d .libs; then
14787   lt_cv_objdir=.libs
14788 else
14789   # MS-DOS does not allow filenames that begin with a dot.
14790   lt_cv_objdir=_libs
14791 fi
14792 rmdir .libs 2>/dev/null
14793 fi
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14795 $as_echo "$lt_cv_objdir" >&6; }
14796 objdir=$lt_cv_objdir
14797
14798
14799
14800
14801
14802 cat >>confdefs.h <<_ACEOF
14803 #define LT_OBJDIR "$lt_cv_objdir/"
14804 _ACEOF
14805
14806
14807
14808
14809 case $host_os in
14810 aix3*)
14811   # AIX sometimes has problems with the GCC collect2 program.  For some
14812   # reason, if we set the COLLECT_NAMES environment variable, the problems
14813   # vanish in a puff of smoke.
14814   if test "X${COLLECT_NAMES+set}" != Xset; then
14815     COLLECT_NAMES=
14816     export COLLECT_NAMES
14817   fi
14818   ;;
14819 esac
14820
14821 # Global variables:
14822 ofile=libtool
14823 can_build_shared=yes
14824
14825 # All known linkers require a `.a' archive for static linking (except MSVC,
14826 # which needs '.lib').
14827 libext=a
14828
14829 with_gnu_ld="$lt_cv_prog_gnu_ld"
14830
14831 old_CC="$CC"
14832 old_CFLAGS="$CFLAGS"
14833
14834 # Set sane defaults for various variables
14835 test -z "$CC" && CC=cc
14836 test -z "$LTCC" && LTCC=$CC
14837 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14838 test -z "$LD" && LD=ld
14839 test -z "$ac_objext" && ac_objext=o
14840
14841 for cc_temp in $compiler""; do
14842   case $cc_temp in
14843     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14844     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14845     \-*) ;;
14846     *) break;;
14847   esac
14848 done
14849 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14850
14851
14852 # Only perform the check for file, if the check method requires it
14853 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14854 case $deplibs_check_method in
14855 file_magic*)
14856   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14857     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14858 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14859 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14860   $as_echo_n "(cached) " >&6
14861 else
14862   case $MAGIC_CMD in
14863 [\\/*] |  ?:[\\/]*)
14864   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14865   ;;
14866 *)
14867   lt_save_MAGIC_CMD="$MAGIC_CMD"
14868   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14869   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14870   for ac_dir in $ac_dummy; do
14871     IFS="$lt_save_ifs"
14872     test -z "$ac_dir" && ac_dir=.
14873     if test -f $ac_dir/${ac_tool_prefix}file; then
14874       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14875       if test -n "$file_magic_test_file"; then
14876         case $deplibs_check_method in
14877         "file_magic "*)
14878           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14879           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14880           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14881             $EGREP "$file_magic_regex" > /dev/null; then
14882             :
14883           else
14884             cat <<_LT_EOF 1>&2
14885
14886 *** Warning: the command libtool uses to detect shared libraries,
14887 *** $file_magic_cmd, produces output that libtool cannot recognize.
14888 *** The result is that libtool may fail to recognize shared libraries
14889 *** as such.  This will affect the creation of libtool libraries that
14890 *** depend on shared libraries, but programs linked with such libtool
14891 *** libraries will work regardless of this problem.  Nevertheless, you
14892 *** may want to report the problem to your system manager and/or to
14893 *** bug-libtool@gnu.org
14894
14895 _LT_EOF
14896           fi ;;
14897         esac
14898       fi
14899       break
14900     fi
14901   done
14902   IFS="$lt_save_ifs"
14903   MAGIC_CMD="$lt_save_MAGIC_CMD"
14904   ;;
14905 esac
14906 fi
14907
14908 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14909 if test -n "$MAGIC_CMD"; then
14910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14911 $as_echo "$MAGIC_CMD" >&6; }
14912 else
14913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14914 $as_echo "no" >&6; }
14915 fi
14916
14917
14918
14919
14920
14921 if test -z "$lt_cv_path_MAGIC_CMD"; then
14922   if test -n "$ac_tool_prefix"; then
14923     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14924 $as_echo_n "checking for file... " >&6; }
14925 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14926   $as_echo_n "(cached) " >&6
14927 else
14928   case $MAGIC_CMD in
14929 [\\/*] |  ?:[\\/]*)
14930   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14931   ;;
14932 *)
14933   lt_save_MAGIC_CMD="$MAGIC_CMD"
14934   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14935   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14936   for ac_dir in $ac_dummy; do
14937     IFS="$lt_save_ifs"
14938     test -z "$ac_dir" && ac_dir=.
14939     if test -f $ac_dir/file; then
14940       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14941       if test -n "$file_magic_test_file"; then
14942         case $deplibs_check_method in
14943         "file_magic "*)
14944           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14945           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14946           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14947             $EGREP "$file_magic_regex" > /dev/null; then
14948             :
14949           else
14950             cat <<_LT_EOF 1>&2
14951
14952 *** Warning: the command libtool uses to detect shared libraries,
14953 *** $file_magic_cmd, produces output that libtool cannot recognize.
14954 *** The result is that libtool may fail to recognize shared libraries
14955 *** as such.  This will affect the creation of libtool libraries that
14956 *** depend on shared libraries, but programs linked with such libtool
14957 *** libraries will work regardless of this problem.  Nevertheless, you
14958 *** may want to report the problem to your system manager and/or to
14959 *** bug-libtool@gnu.org
14960
14961 _LT_EOF
14962           fi ;;
14963         esac
14964       fi
14965       break
14966     fi
14967   done
14968   IFS="$lt_save_ifs"
14969   MAGIC_CMD="$lt_save_MAGIC_CMD"
14970   ;;
14971 esac
14972 fi
14973
14974 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14975 if test -n "$MAGIC_CMD"; then
14976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14977 $as_echo "$MAGIC_CMD" >&6; }
14978 else
14979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14980 $as_echo "no" >&6; }
14981 fi
14982
14983
14984   else
14985     MAGIC_CMD=:
14986   fi
14987 fi
14988
14989   fi
14990   ;;
14991 esac
14992
14993 # Use C for the default configuration in the libtool script
14994
14995 lt_save_CC="$CC"
14996 ac_ext=c
14997 ac_cpp='$CPP $CPPFLAGS'
14998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15001
15002
15003 # Source file extension for C test sources.
15004 ac_ext=c
15005
15006 # Object file extension for compiled C test sources.
15007 objext=o
15008 objext=$objext
15009
15010 # Code to be used in simple compile tests
15011 lt_simple_compile_test_code="int some_variable = 0;"
15012
15013 # Code to be used in simple link tests
15014 lt_simple_link_test_code='int main(){return(0);}'
15015
15016
15017
15018
15019
15020
15021
15022 # If no C compiler was specified, use CC.
15023 LTCC=${LTCC-"$CC"}
15024
15025 # If no C compiler flags were specified, use CFLAGS.
15026 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15027
15028 # Allow CC to be a program name with arguments.
15029 compiler=$CC
15030
15031 # Save the default compiler, since it gets overwritten when the other
15032 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15033 compiler_DEFAULT=$CC
15034
15035 # save warnings/boilerplate of simple test code
15036 ac_outfile=conftest.$ac_objext
15037 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15038 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15039 _lt_compiler_boilerplate=`cat conftest.err`
15040 $RM conftest*
15041
15042 ac_outfile=conftest.$ac_objext
15043 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15044 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15045 _lt_linker_boilerplate=`cat conftest.err`
15046 $RM -r conftest*
15047
15048
15049 ## CAVEAT EMPTOR:
15050 ## There is no encapsulation within the following macros, do not change
15051 ## the running order or otherwise move them around unless you know exactly
15052 ## what you are doing...
15053 if test -n "$compiler"; then
15054
15055 lt_prog_compiler_no_builtin_flag=
15056
15057 if test "$GCC" = yes; then
15058   case $cc_basename in
15059   nvcc*)
15060     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15061   *)
15062     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15063   esac
15064
15065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15066 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15067 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15068   $as_echo_n "(cached) " >&6
15069 else
15070   lt_cv_prog_compiler_rtti_exceptions=no
15071    ac_outfile=conftest.$ac_objext
15072    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15073    lt_compiler_flag="-fno-rtti -fno-exceptions"
15074    # Insert the option either (1) after the last *FLAGS variable, or
15075    # (2) before a word containing "conftest.", or (3) at the end.
15076    # Note that $ac_compile itself does not contain backslashes and begins
15077    # with a dollar sign (not a hyphen), so the echo should work correctly.
15078    # The option is referenced via a variable to avoid confusing sed.
15079    lt_compile=`echo "$ac_compile" | $SED \
15080    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15081    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15082    -e 's:$: $lt_compiler_flag:'`
15083    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15084    (eval "$lt_compile" 2>conftest.err)
15085    ac_status=$?
15086    cat conftest.err >&5
15087    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088    if (exit $ac_status) && test -s "$ac_outfile"; then
15089      # The compiler can only warn and ignore the option if not recognized
15090      # So say no if there are warnings other than the usual output.
15091      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15092      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15093      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15094        lt_cv_prog_compiler_rtti_exceptions=yes
15095      fi
15096    fi
15097    $RM conftest*
15098
15099 fi
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15101 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15102
15103 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15104     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15105 else
15106     :
15107 fi
15108
15109 fi
15110
15111
15112
15113
15114
15115
15116   lt_prog_compiler_wl=
15117 lt_prog_compiler_pic=
15118 lt_prog_compiler_static=
15119
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15121 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15122
15123   if test "$GCC" = yes; then
15124     lt_prog_compiler_wl='-Wl,'
15125     lt_prog_compiler_static='-static'
15126
15127     case $host_os in
15128       aix*)
15129       # All AIX code is PIC.
15130       if test "$host_cpu" = ia64; then
15131         # AIX 5 now supports IA64 processor
15132         lt_prog_compiler_static='-Bstatic'
15133       fi
15134       ;;
15135
15136     amigaos*)
15137       case $host_cpu in
15138       powerpc)
15139             # see comment about AmigaOS4 .so support
15140             lt_prog_compiler_pic='-fPIC'
15141         ;;
15142       m68k)
15143             # FIXME: we need at least 68020 code to build shared libraries, but
15144             # adding the `-m68020' flag to GCC prevents building anything better,
15145             # like `-m68040'.
15146             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15147         ;;
15148       esac
15149       ;;
15150
15151     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15152       # PIC is the default for these OSes.
15153       ;;
15154
15155     mingw* | cygwin* | pw32* | os2* | cegcc*)
15156       # This hack is so that the source file can tell whether it is being
15157       # built for inclusion in a dll (and should export symbols for example).
15158       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15159       # (--disable-auto-import) libraries
15160       lt_prog_compiler_pic='-DDLL_EXPORT'
15161       ;;
15162
15163     darwin* | rhapsody*)
15164       # PIC is the default on this platform
15165       # Common symbols not allowed in MH_DYLIB files
15166       lt_prog_compiler_pic='-fno-common'
15167       ;;
15168
15169     haiku*)
15170       # PIC is the default for Haiku.
15171       # The "-static" flag exists, but is broken.
15172       lt_prog_compiler_static=
15173       ;;
15174
15175     hpux*)
15176       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15177       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15178       # sets the default TLS model and affects inlining.
15179       case $host_cpu in
15180       hppa*64*)
15181         # +Z the default
15182         ;;
15183       *)
15184         lt_prog_compiler_pic='-fPIC'
15185         ;;
15186       esac
15187       ;;
15188
15189     interix[3-9]*)
15190       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15191       # Instead, we relocate shared libraries at runtime.
15192       ;;
15193
15194     msdosdjgpp*)
15195       # Just because we use GCC doesn't mean we suddenly get shared libraries
15196       # on systems that don't support them.
15197       lt_prog_compiler_can_build_shared=no
15198       enable_shared=no
15199       ;;
15200
15201     *nto* | *qnx*)
15202       # QNX uses GNU C++, but need to define -shared option too, otherwise
15203       # it will coredump.
15204       lt_prog_compiler_pic='-fPIC -shared'
15205       ;;
15206
15207     sysv4*MP*)
15208       if test -d /usr/nec; then
15209         lt_prog_compiler_pic=-Kconform_pic
15210       fi
15211       ;;
15212
15213     *)
15214       lt_prog_compiler_pic='-fPIC'
15215       ;;
15216     esac
15217
15218     case $cc_basename in
15219     nvcc*) # Cuda Compiler Driver 2.2
15220       lt_prog_compiler_wl='-Xlinker '
15221       lt_prog_compiler_pic='-Xcompiler -fPIC'
15222       ;;
15223     esac
15224   else
15225     # PORTME Check for flag to pass linker flags through the system compiler.
15226     case $host_os in
15227     aix*)
15228       lt_prog_compiler_wl='-Wl,'
15229       if test "$host_cpu" = ia64; then
15230         # AIX 5 now supports IA64 processor
15231         lt_prog_compiler_static='-Bstatic'
15232       else
15233         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15234       fi
15235       ;;
15236
15237     mingw* | cygwin* | pw32* | os2* | cegcc*)
15238       # This hack is so that the source file can tell whether it is being
15239       # built for inclusion in a dll (and should export symbols for example).
15240       lt_prog_compiler_pic='-DDLL_EXPORT'
15241       ;;
15242
15243     hpux9* | hpux10* | hpux11*)
15244       lt_prog_compiler_wl='-Wl,'
15245       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15246       # not for PA HP-UX.
15247       case $host_cpu in
15248       hppa*64*|ia64*)
15249         # +Z the default
15250         ;;
15251       *)
15252         lt_prog_compiler_pic='+Z'
15253         ;;
15254       esac
15255       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15256       lt_prog_compiler_static='${wl}-a ${wl}archive'
15257       ;;
15258
15259     irix5* | irix6* | nonstopux*)
15260       lt_prog_compiler_wl='-Wl,'
15261       # PIC (with -KPIC) is the default.
15262       lt_prog_compiler_static='-non_shared'
15263       ;;
15264
15265     linux* | k*bsd*-gnu | kopensolaris*-gnu)
15266       case $cc_basename in
15267       # old Intel for x86_64 which still supported -KPIC.
15268       ecc*)
15269         lt_prog_compiler_wl='-Wl,'
15270         lt_prog_compiler_pic='-KPIC'
15271         lt_prog_compiler_static='-static'
15272         ;;
15273       # icc used to be incompatible with GCC.
15274       # ICC 10 doesn't accept -KPIC any more.
15275       icc* | ifort*)
15276         lt_prog_compiler_wl='-Wl,'
15277         lt_prog_compiler_pic='-fPIC'
15278         lt_prog_compiler_static='-static'
15279         ;;
15280       # Lahey Fortran 8.1.
15281       lf95*)
15282         lt_prog_compiler_wl='-Wl,'
15283         lt_prog_compiler_pic='--shared'
15284         lt_prog_compiler_static='--static'
15285         ;;
15286       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15287         # Portland Group compilers (*not* the Pentium gcc compiler,
15288         # which looks to be a dead project)
15289         lt_prog_compiler_wl='-Wl,'
15290         lt_prog_compiler_pic='-fpic'
15291         lt_prog_compiler_static='-Bstatic'
15292         ;;
15293       ccc*)
15294         lt_prog_compiler_wl='-Wl,'
15295         # All Alpha code is PIC.
15296         lt_prog_compiler_static='-non_shared'
15297         ;;
15298       xl* | bgxl* | bgf* | mpixl*)
15299         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15300         lt_prog_compiler_wl='-Wl,'
15301         lt_prog_compiler_pic='-qpic'
15302         lt_prog_compiler_static='-qstaticlink'
15303         ;;
15304       *)
15305         case `$CC -V 2>&1 | sed 5q` in
15306         *Sun\ F* | *Sun*Fortran*)
15307           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15308           lt_prog_compiler_pic='-KPIC'
15309           lt_prog_compiler_static='-Bstatic'
15310           lt_prog_compiler_wl=''
15311           ;;
15312         *Sun\ C*)
15313           # Sun C 5.9
15314           lt_prog_compiler_pic='-KPIC'
15315           lt_prog_compiler_static='-Bstatic'
15316           lt_prog_compiler_wl='-Wl,'
15317           ;;
15318         esac
15319         ;;
15320       esac
15321       ;;
15322
15323     newsos6)
15324       lt_prog_compiler_pic='-KPIC'
15325       lt_prog_compiler_static='-Bstatic'
15326       ;;
15327
15328     *nto* | *qnx*)
15329       # QNX uses GNU C++, but need to define -shared option too, otherwise
15330       # it will coredump.
15331       lt_prog_compiler_pic='-fPIC -shared'
15332       ;;
15333
15334     osf3* | osf4* | osf5*)
15335       lt_prog_compiler_wl='-Wl,'
15336       # All OSF/1 code is PIC.
15337       lt_prog_compiler_static='-non_shared'
15338       ;;
15339
15340     rdos*)
15341       lt_prog_compiler_static='-non_shared'
15342       ;;
15343
15344     solaris*)
15345       lt_prog_compiler_pic='-KPIC'
15346       lt_prog_compiler_static='-Bstatic'
15347       case $cc_basename in
15348       f77* | f90* | f95*)
15349         lt_prog_compiler_wl='-Qoption ld ';;
15350       *)
15351         lt_prog_compiler_wl='-Wl,';;
15352       esac
15353       ;;
15354
15355     sunos4*)
15356       lt_prog_compiler_wl='-Qoption ld '
15357       lt_prog_compiler_pic='-PIC'
15358       lt_prog_compiler_static='-Bstatic'
15359       ;;
15360
15361     sysv4 | sysv4.2uw2* | sysv4.3*)
15362       lt_prog_compiler_wl='-Wl,'
15363       lt_prog_compiler_pic='-KPIC'
15364       lt_prog_compiler_static='-Bstatic'
15365       ;;
15366
15367     sysv4*MP*)
15368       if test -d /usr/nec ;then
15369         lt_prog_compiler_pic='-Kconform_pic'
15370         lt_prog_compiler_static='-Bstatic'
15371       fi
15372       ;;
15373
15374     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15375       lt_prog_compiler_wl='-Wl,'
15376       lt_prog_compiler_pic='-KPIC'
15377       lt_prog_compiler_static='-Bstatic'
15378       ;;
15379
15380     unicos*)
15381       lt_prog_compiler_wl='-Wl,'
15382       lt_prog_compiler_can_build_shared=no
15383       ;;
15384
15385     uts4*)
15386       lt_prog_compiler_pic='-pic'
15387       lt_prog_compiler_static='-Bstatic'
15388       ;;
15389
15390     *)
15391       lt_prog_compiler_can_build_shared=no
15392       ;;
15393     esac
15394   fi
15395
15396 case $host_os in
15397   # For platforms which do not support PIC, -DPIC is meaningless:
15398   *djgpp*)
15399     lt_prog_compiler_pic=
15400     ;;
15401   *)
15402     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15403     ;;
15404 esac
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15406 $as_echo "$lt_prog_compiler_pic" >&6; }
15407
15408
15409
15410
15411
15412
15413 #
15414 # Check to make sure the PIC flag actually works.
15415 #
15416 if test -n "$lt_prog_compiler_pic"; then
15417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15418 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15419 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15420   $as_echo_n "(cached) " >&6
15421 else
15422   lt_cv_prog_compiler_pic_works=no
15423    ac_outfile=conftest.$ac_objext
15424    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15425    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15426    # Insert the option either (1) after the last *FLAGS variable, or
15427    # (2) before a word containing "conftest.", or (3) at the end.
15428    # Note that $ac_compile itself does not contain backslashes and begins
15429    # with a dollar sign (not a hyphen), so the echo should work correctly.
15430    # The option is referenced via a variable to avoid confusing sed.
15431    lt_compile=`echo "$ac_compile" | $SED \
15432    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15433    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15434    -e 's:$: $lt_compiler_flag:'`
15435    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15436    (eval "$lt_compile" 2>conftest.err)
15437    ac_status=$?
15438    cat conftest.err >&5
15439    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440    if (exit $ac_status) && test -s "$ac_outfile"; then
15441      # The compiler can only warn and ignore the option if not recognized
15442      # So say no if there are warnings other than the usual output.
15443      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15444      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15445      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15446        lt_cv_prog_compiler_pic_works=yes
15447      fi
15448    fi
15449    $RM conftest*
15450
15451 fi
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15453 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15454
15455 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15456     case $lt_prog_compiler_pic in
15457      "" | " "*) ;;
15458      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15459      esac
15460 else
15461     lt_prog_compiler_pic=
15462      lt_prog_compiler_can_build_shared=no
15463 fi
15464
15465 fi
15466
15467
15468
15469
15470
15471
15472 #
15473 # Check to make sure the static flag actually works.
15474 #
15475 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15477 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15478 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15479   $as_echo_n "(cached) " >&6
15480 else
15481   lt_cv_prog_compiler_static_works=no
15482    save_LDFLAGS="$LDFLAGS"
15483    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15484    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15485    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15486      # The linker can only warn and ignore the option if not recognized
15487      # So say no if there are warnings
15488      if test -s conftest.err; then
15489        # Append any errors to the config.log.
15490        cat conftest.err 1>&5
15491        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15492        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15493        if diff conftest.exp conftest.er2 >/dev/null; then
15494          lt_cv_prog_compiler_static_works=yes
15495        fi
15496      else
15497        lt_cv_prog_compiler_static_works=yes
15498      fi
15499    fi
15500    $RM -r conftest*
15501    LDFLAGS="$save_LDFLAGS"
15502
15503 fi
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15505 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15506
15507 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15508     :
15509 else
15510     lt_prog_compiler_static=
15511 fi
15512
15513
15514
15515
15516
15517
15518
15519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15520 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15521 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15522   $as_echo_n "(cached) " >&6
15523 else
15524   lt_cv_prog_compiler_c_o=no
15525    $RM -r conftest 2>/dev/null
15526    mkdir conftest
15527    cd conftest
15528    mkdir out
15529    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15530
15531    lt_compiler_flag="-o out/conftest2.$ac_objext"
15532    # Insert the option either (1) after the last *FLAGS variable, or
15533    # (2) before a word containing "conftest.", or (3) at the end.
15534    # Note that $ac_compile itself does not contain backslashes and begins
15535    # with a dollar sign (not a hyphen), so the echo should work correctly.
15536    lt_compile=`echo "$ac_compile" | $SED \
15537    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15538    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15539    -e 's:$: $lt_compiler_flag:'`
15540    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15541    (eval "$lt_compile" 2>out/conftest.err)
15542    ac_status=$?
15543    cat out/conftest.err >&5
15544    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15546    then
15547      # The compiler can only warn and ignore the option if not recognized
15548      # So say no if there are warnings
15549      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15550      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15551      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15552        lt_cv_prog_compiler_c_o=yes
15553      fi
15554    fi
15555    chmod u+w . 2>&5
15556    $RM conftest*
15557    # SGI C++ compiler will create directory out/ii_files/ for
15558    # template instantiation
15559    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15560    $RM out/* && rmdir out
15561    cd ..
15562    $RM -r conftest
15563    $RM conftest*
15564
15565 fi
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15567 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15568
15569
15570
15571
15572
15573
15574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15575 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15576 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15577   $as_echo_n "(cached) " >&6
15578 else
15579   lt_cv_prog_compiler_c_o=no
15580    $RM -r conftest 2>/dev/null
15581    mkdir conftest
15582    cd conftest
15583    mkdir out
15584    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15585
15586    lt_compiler_flag="-o out/conftest2.$ac_objext"
15587    # Insert the option either (1) after the last *FLAGS variable, or
15588    # (2) before a word containing "conftest.", or (3) at the end.
15589    # Note that $ac_compile itself does not contain backslashes and begins
15590    # with a dollar sign (not a hyphen), so the echo should work correctly.
15591    lt_compile=`echo "$ac_compile" | $SED \
15592    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15593    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15594    -e 's:$: $lt_compiler_flag:'`
15595    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15596    (eval "$lt_compile" 2>out/conftest.err)
15597    ac_status=$?
15598    cat out/conftest.err >&5
15599    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15601    then
15602      # The compiler can only warn and ignore the option if not recognized
15603      # So say no if there are warnings
15604      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15605      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15606      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15607        lt_cv_prog_compiler_c_o=yes
15608      fi
15609    fi
15610    chmod u+w . 2>&5
15611    $RM conftest*
15612    # SGI C++ compiler will create directory out/ii_files/ for
15613    # template instantiation
15614    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15615    $RM out/* && rmdir out
15616    cd ..
15617    $RM -r conftest
15618    $RM conftest*
15619
15620 fi
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15622 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15623
15624
15625
15626
15627 hard_links="nottested"
15628 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15629   # do not overwrite the value of need_locks provided by the user
15630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15631 $as_echo_n "checking if we can lock with hard links... " >&6; }
15632   hard_links=yes
15633   $RM conftest*
15634   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15635   touch conftest.a
15636   ln conftest.a conftest.b 2>&5 || hard_links=no
15637   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15639 $as_echo "$hard_links" >&6; }
15640   if test "$hard_links" = no; then
15641     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15642 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15643     need_locks=warn
15644   fi
15645 else
15646   need_locks=no
15647 fi
15648
15649
15650
15651
15652
15653
15654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15655 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15656
15657   runpath_var=
15658   allow_undefined_flag=
15659   always_export_symbols=no
15660   archive_cmds=
15661   archive_expsym_cmds=
15662   compiler_needs_object=no
15663   enable_shared_with_static_runtimes=no
15664   export_dynamic_flag_spec=
15665   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15666   hardcode_automatic=no
15667   hardcode_direct=no
15668   hardcode_direct_absolute=no
15669   hardcode_libdir_flag_spec=
15670   hardcode_libdir_flag_spec_ld=
15671   hardcode_libdir_separator=
15672   hardcode_minus_L=no
15673   hardcode_shlibpath_var=unsupported
15674   inherit_rpath=no
15675   link_all_deplibs=unknown
15676   module_cmds=
15677   module_expsym_cmds=
15678   old_archive_from_new_cmds=
15679   old_archive_from_expsyms_cmds=
15680   thread_safe_flag_spec=
15681   whole_archive_flag_spec=
15682   # include_expsyms should be a list of space-separated symbols to be *always*
15683   # included in the symbol list
15684   include_expsyms=
15685   # exclude_expsyms can be an extended regexp of symbols to exclude
15686   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15687   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15688   # as well as any symbol that contains `d'.
15689   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15690   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15691   # platforms (ab)use it in PIC code, but their linkers get confused if
15692   # the symbol is explicitly referenced.  Since portable code cannot
15693   # rely on this symbol name, it's probably fine to never include it in
15694   # preloaded symbol tables.
15695   # Exclude shared library initialization/finalization symbols.
15696   extract_expsyms_cmds=
15697
15698   case $host_os in
15699   cygwin* | mingw* | pw32* | cegcc*)
15700     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15701     # When not using gcc, we currently assume that we are using
15702     # Microsoft Visual C++.
15703     if test "$GCC" != yes; then
15704       with_gnu_ld=no
15705     fi
15706     ;;
15707   interix*)
15708     # we just hope/assume this is gcc and not c89 (= MSVC++)
15709     with_gnu_ld=yes
15710     ;;
15711   openbsd*)
15712     with_gnu_ld=no
15713     ;;
15714   esac
15715
15716   ld_shlibs=yes
15717
15718   # On some targets, GNU ld is compatible enough with the native linker
15719   # that we're better off using the native interface for both.
15720   lt_use_gnu_ld_interface=no
15721   if test "$with_gnu_ld" = yes; then
15722     case $host_os in
15723       aix*)
15724         # The AIX port of GNU ld has always aspired to compatibility
15725         # with the native linker.  However, as the warning in the GNU ld
15726         # block says, versions before 2.19.5* couldn't really create working
15727         # shared libraries, regardless of the interface used.
15728         case `$LD -v 2>&1` in
15729           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15730           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15731           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15732           *)
15733             lt_use_gnu_ld_interface=yes
15734             ;;
15735         esac
15736         ;;
15737       *)
15738         lt_use_gnu_ld_interface=yes
15739         ;;
15740     esac
15741   fi
15742
15743   if test "$lt_use_gnu_ld_interface" = yes; then
15744     # If archive_cmds runs LD, not CC, wlarc should be empty
15745     wlarc='${wl}'
15746
15747     # Set some defaults for GNU ld with shared library support. These
15748     # are reset later if shared libraries are not supported. Putting them
15749     # here allows them to be overridden if necessary.
15750     runpath_var=LD_RUN_PATH
15751     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15752     export_dynamic_flag_spec='${wl}--export-dynamic'
15753     # ancient GNU ld didn't support --whole-archive et. al.
15754     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15755       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15756     else
15757       whole_archive_flag_spec=
15758     fi
15759     supports_anon_versioning=no
15760     case `$LD -v 2>&1` in
15761       *GNU\ gold*) supports_anon_versioning=yes ;;
15762       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15763       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15764       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15765       *\ 2.11.*) ;; # other 2.11 versions
15766       *) supports_anon_versioning=yes ;;
15767     esac
15768
15769     # See if GNU ld supports shared libraries.
15770     case $host_os in
15771     aix[3-9]*)
15772       # On AIX/PPC, the GNU linker is very broken
15773       if test "$host_cpu" != ia64; then
15774         ld_shlibs=no
15775         cat <<_LT_EOF 1>&2
15776
15777 *** Warning: the GNU linker, at least up to release 2.19, is reported
15778 *** to be unable to reliably create shared libraries on AIX.
15779 *** Therefore, libtool is disabling shared libraries support.  If you
15780 *** really care for shared libraries, you may want to install binutils
15781 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15782 *** You will then need to restart the configuration process.
15783
15784 _LT_EOF
15785       fi
15786       ;;
15787
15788     amigaos*)
15789       case $host_cpu in
15790       powerpc)
15791             # see comment about AmigaOS4 .so support
15792             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15793             archive_expsym_cmds=''
15794         ;;
15795       m68k)
15796             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)'
15797             hardcode_libdir_flag_spec='-L$libdir'
15798             hardcode_minus_L=yes
15799         ;;
15800       esac
15801       ;;
15802
15803     beos*)
15804       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15805         allow_undefined_flag=unsupported
15806         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15807         # support --undefined.  This deserves some investigation.  FIXME
15808         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15809       else
15810         ld_shlibs=no
15811       fi
15812       ;;
15813
15814     cygwin* | mingw* | pw32* | cegcc*)
15815       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15816       # as there is no search path for DLLs.
15817       hardcode_libdir_flag_spec='-L$libdir'
15818       export_dynamic_flag_spec='${wl}--export-all-symbols'
15819       allow_undefined_flag=unsupported
15820       always_export_symbols=no
15821       enable_shared_with_static_runtimes=yes
15822       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15823
15824       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15825         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15826         # If the export-symbols file already is a .def file (1st line
15827         # is EXPORTS), use it as is; otherwise, prepend...
15828         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15829           cp $export_symbols $output_objdir/$soname.def;
15830         else
15831           echo EXPORTS > $output_objdir/$soname.def;
15832           cat $export_symbols >> $output_objdir/$soname.def;
15833         fi~
15834         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15835       else
15836         ld_shlibs=no
15837       fi
15838       ;;
15839
15840     haiku*)
15841       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15842       link_all_deplibs=yes
15843       ;;
15844
15845     interix[3-9]*)
15846       hardcode_direct=no
15847       hardcode_shlibpath_var=no
15848       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15849       export_dynamic_flag_spec='${wl}-E'
15850       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15851       # Instead, shared libraries are loaded at an image base (0x10000000 by
15852       # default) and relocated if they conflict, which is a slow very memory
15853       # consuming and fragmenting process.  To avoid this, we pick a random,
15854       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15855       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15856       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15857       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'
15858       ;;
15859
15860     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15861       tmp_diet=no
15862       if test "$host_os" = linux-dietlibc; then
15863         case $cc_basename in
15864           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15865         esac
15866       fi
15867       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15868          && test "$tmp_diet" = no
15869       then
15870         tmp_addflag=
15871         tmp_sharedflag='-shared'
15872         case $cc_basename,$host_cpu in
15873         pgcc*)                          # Portland Group C compiler
15874           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'
15875           tmp_addflag=' $pic_flag'
15876           ;;
15877         pgf77* | pgf90* | pgf95* | pgfortran*)
15878                                         # Portland Group f77 and f90 compilers
15879           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'
15880           tmp_addflag=' $pic_flag -Mnomain' ;;
15881         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15882           tmp_addflag=' -i_dynamic' ;;
15883         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15884           tmp_addflag=' -i_dynamic -nofor_main' ;;
15885         ifc* | ifort*)                  # Intel Fortran compiler
15886           tmp_addflag=' -nofor_main' ;;
15887         lf95*)                          # Lahey Fortran 8.1
15888           whole_archive_flag_spec=
15889           tmp_sharedflag='--shared' ;;
15890         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15891           tmp_sharedflag='-qmkshrobj'
15892           tmp_addflag= ;;
15893         nvcc*)  # Cuda Compiler Driver 2.2
15894           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'
15895           compiler_needs_object=yes
15896           ;;
15897         esac
15898         case `$CC -V 2>&1 | sed 5q` in
15899         *Sun\ C*)                       # Sun C 5.9
15900           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'
15901           compiler_needs_object=yes
15902           tmp_sharedflag='-G' ;;
15903         *Sun\ F*)                       # Sun Fortran 8.3
15904           tmp_sharedflag='-G' ;;
15905         esac
15906         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15907
15908         if test "x$supports_anon_versioning" = xyes; then
15909           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15910             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15911             echo "local: *; };" >> $output_objdir/$libname.ver~
15912             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15913         fi
15914
15915         case $cc_basename in
15916         xlf* | bgf* | bgxlf* | mpixlf*)
15917           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15918           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15919           hardcode_libdir_flag_spec=
15920           hardcode_libdir_flag_spec_ld='-rpath $libdir'
15921           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15922           if test "x$supports_anon_versioning" = xyes; then
15923             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15924               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15925               echo "local: *; };" >> $output_objdir/$libname.ver~
15926               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15927           fi
15928           ;;
15929         esac
15930       else
15931         ld_shlibs=no
15932       fi
15933       ;;
15934
15935     netbsd*)
15936       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15937         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15938         wlarc=
15939       else
15940         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15941         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15942       fi
15943       ;;
15944
15945     solaris*)
15946       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15947         ld_shlibs=no
15948         cat <<_LT_EOF 1>&2
15949
15950 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15951 *** create shared libraries on Solaris systems.  Therefore, libtool
15952 *** is disabling shared libraries support.  We urge you to upgrade GNU
15953 *** binutils to release 2.9.1 or newer.  Another option is to modify
15954 *** your PATH or compiler configuration so that the native linker is
15955 *** used, and then restart.
15956
15957 _LT_EOF
15958       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15959         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15960         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15961       else
15962         ld_shlibs=no
15963       fi
15964       ;;
15965
15966     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15967       case `$LD -v 2>&1` in
15968         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15969         ld_shlibs=no
15970         cat <<_LT_EOF 1>&2
15971
15972 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15973 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15974 *** is disabling shared libraries support.  We urge you to upgrade GNU
15975 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15976 *** your PATH or compiler configuration so that the native linker is
15977 *** used, and then restart.
15978
15979 _LT_EOF
15980         ;;
15981         *)
15982           # For security reasons, it is highly recommended that you always
15983           # use absolute paths for naming shared libraries, and exclude the
15984           # DT_RUNPATH tag from executables and libraries.  But doing so
15985           # requires that you compile everything twice, which is a pain.
15986           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15987             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15988             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15989             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15990           else
15991             ld_shlibs=no
15992           fi
15993         ;;
15994       esac
15995       ;;
15996
15997     sunos4*)
15998       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15999       wlarc=
16000       hardcode_direct=yes
16001       hardcode_shlibpath_var=no
16002       ;;
16003
16004     *)
16005       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16006         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16007         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16008       else
16009         ld_shlibs=no
16010       fi
16011       ;;
16012     esac
16013
16014     if test "$ld_shlibs" = no; then
16015       runpath_var=
16016       hardcode_libdir_flag_spec=
16017       export_dynamic_flag_spec=
16018       whole_archive_flag_spec=
16019     fi
16020   else
16021     # PORTME fill in a description of your system's linker (not GNU ld)
16022     case $host_os in
16023     aix3*)
16024       allow_undefined_flag=unsupported
16025       always_export_symbols=yes
16026       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'
16027       # Note: this linker hardcodes the directories in LIBPATH if there
16028       # are no directories specified by -L.
16029       hardcode_minus_L=yes
16030       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16031         # Neither direct hardcoding nor static linking is supported with a
16032         # broken collect2.
16033         hardcode_direct=unsupported
16034       fi
16035       ;;
16036
16037     aix[4-9]*)
16038       if test "$host_cpu" = ia64; then
16039         # On IA64, the linker does run time linking by default, so we don't
16040         # have to do anything special.
16041         aix_use_runtimelinking=no
16042         exp_sym_flag='-Bexport'
16043         no_entry_flag=""
16044       else
16045         # If we're using GNU nm, then we don't want the "-C" option.
16046         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16047         # Also, AIX nm treats weak defined symbols like other global
16048         # defined symbols, whereas GNU nm marks them as "W".
16049         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16050           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'
16051         else
16052           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'
16053         fi
16054         aix_use_runtimelinking=no
16055
16056         # Test if we are trying to use run time linking or normal
16057         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16058         # need to do runtime linking.
16059         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16060           for ld_flag in $LDFLAGS; do
16061           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16062             aix_use_runtimelinking=yes
16063             break
16064           fi
16065           done
16066           ;;
16067         esac
16068
16069         exp_sym_flag='-bexport'
16070         no_entry_flag='-bnoentry'
16071       fi
16072
16073       # When large executables or shared objects are built, AIX ld can
16074       # have problems creating the table of contents.  If linking a library
16075       # or program results in "error TOC overflow" add -mminimal-toc to
16076       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16077       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16078
16079       archive_cmds=''
16080       hardcode_direct=yes
16081       hardcode_direct_absolute=yes
16082       hardcode_libdir_separator=':'
16083       link_all_deplibs=yes
16084       file_list_spec='${wl}-f,'
16085
16086       if test "$GCC" = yes; then
16087         case $host_os in aix4.[012]|aix4.[012].*)
16088         # We only want to do this on AIX 4.2 and lower, the check
16089         # below for broken collect2 doesn't work under 4.3+
16090           collect2name=`${CC} -print-prog-name=collect2`
16091           if test -f "$collect2name" &&
16092            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16093           then
16094           # We have reworked collect2
16095           :
16096           else
16097           # We have old collect2
16098           hardcode_direct=unsupported
16099           # It fails to find uninstalled libraries when the uninstalled
16100           # path is not listed in the libpath.  Setting hardcode_minus_L
16101           # to unsupported forces relinking
16102           hardcode_minus_L=yes
16103           hardcode_libdir_flag_spec='-L$libdir'
16104           hardcode_libdir_separator=
16105           fi
16106           ;;
16107         esac
16108         shared_flag='-shared'
16109         if test "$aix_use_runtimelinking" = yes; then
16110           shared_flag="$shared_flag "'${wl}-G'
16111         fi
16112       else
16113         # not using gcc
16114         if test "$host_cpu" = ia64; then
16115         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16116         # chokes on -Wl,-G. The following line is correct:
16117           shared_flag='-G'
16118         else
16119           if test "$aix_use_runtimelinking" = yes; then
16120             shared_flag='${wl}-G'
16121           else
16122             shared_flag='${wl}-bM:SRE'
16123           fi
16124         fi
16125       fi
16126
16127       export_dynamic_flag_spec='${wl}-bexpall'
16128       # It seems that -bexpall does not export symbols beginning with
16129       # underscore (_), so it is better to generate a list of symbols to export.
16130       always_export_symbols=yes
16131       if test "$aix_use_runtimelinking" = yes; then
16132         # Warning - without using the other runtime loading flags (-brtl),
16133         # -berok will link without error, but may produce a broken library.
16134         allow_undefined_flag='-berok'
16135         # Determine the default libpath from the value encoded in an
16136         # empty executable.
16137         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16138 /* end confdefs.h.  */
16139
16140 int
16141 main ()
16142 {
16143
16144   ;
16145   return 0;
16146 }
16147 _ACEOF
16148 if ac_fn_c_try_link "$LINENO"; then :
16149
16150 lt_aix_libpath_sed='
16151     /Import File Strings/,/^$/ {
16152         /^0/ {
16153             s/^0  *\(.*\)$/\1/
16154             p
16155         }
16156     }'
16157 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16158 # Check for a 64-bit object if we didn't find anything.
16159 if test -z "$aix_libpath"; then
16160   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16161 fi
16162 fi
16163 rm -f core conftest.err conftest.$ac_objext \
16164     conftest$ac_exeext conftest.$ac_ext
16165 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16166
16167         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16168         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"
16169       else
16170         if test "$host_cpu" = ia64; then
16171           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16172           allow_undefined_flag="-z nodefs"
16173           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"
16174         else
16175          # Determine the default libpath from the value encoded in an
16176          # empty executable.
16177          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178 /* end confdefs.h.  */
16179
16180 int
16181 main ()
16182 {
16183
16184   ;
16185   return 0;
16186 }
16187 _ACEOF
16188 if ac_fn_c_try_link "$LINENO"; then :
16189
16190 lt_aix_libpath_sed='
16191     /Import File Strings/,/^$/ {
16192         /^0/ {
16193             s/^0  *\(.*\)$/\1/
16194             p
16195         }
16196     }'
16197 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16198 # Check for a 64-bit object if we didn't find anything.
16199 if test -z "$aix_libpath"; then
16200   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16201 fi
16202 fi
16203 rm -f core conftest.err conftest.$ac_objext \
16204     conftest$ac_exeext conftest.$ac_ext
16205 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16206
16207          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16208           # Warning - without using the other run time loading flags,
16209           # -berok will link without error, but may produce a broken library.
16210           no_undefined_flag=' ${wl}-bernotok'
16211           allow_undefined_flag=' ${wl}-berok'
16212           if test "$with_gnu_ld" = yes; then
16213             # We only use this code for GNU lds that support --whole-archive.
16214             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16215           else
16216             # Exported symbols can be pulled into shared objects from archives
16217             whole_archive_flag_spec='$convenience'
16218           fi
16219           archive_cmds_need_lc=yes
16220           # This is similar to how AIX traditionally builds its shared libraries.
16221           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'
16222         fi
16223       fi
16224       ;;
16225
16226     amigaos*)
16227       case $host_cpu in
16228       powerpc)
16229             # see comment about AmigaOS4 .so support
16230             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16231             archive_expsym_cmds=''
16232         ;;
16233       m68k)
16234             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)'
16235             hardcode_libdir_flag_spec='-L$libdir'
16236             hardcode_minus_L=yes
16237         ;;
16238       esac
16239       ;;
16240
16241     bsdi[45]*)
16242       export_dynamic_flag_spec=-rdynamic
16243       ;;
16244
16245     cygwin* | mingw* | pw32* | cegcc*)
16246       # When not using gcc, we currently assume that we are using
16247       # Microsoft Visual C++.
16248       # hardcode_libdir_flag_spec is actually meaningless, as there is
16249       # no search path for DLLs.
16250       hardcode_libdir_flag_spec=' '
16251       allow_undefined_flag=unsupported
16252       # Tell ltmain to make .lib files, not .a files.
16253       libext=lib
16254       # Tell ltmain to make .dll files, not .so files.
16255       shrext_cmds=".dll"
16256       # FIXME: Setting linknames here is a bad hack.
16257       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16258       # The linker will automatically build a .lib file if we build a DLL.
16259       old_archive_from_new_cmds='true'
16260       # FIXME: Should let the user specify the lib program.
16261       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16262       fix_srcfile_path='`cygpath -w "$srcfile"`'
16263       enable_shared_with_static_runtimes=yes
16264       ;;
16265
16266     darwin* | rhapsody*)
16267
16268
16269   archive_cmds_need_lc=no
16270   hardcode_direct=no
16271   hardcode_automatic=yes
16272   hardcode_shlibpath_var=unsupported
16273   if test "$lt_cv_ld_force_load" = "yes"; then
16274     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\"`'
16275   else
16276     whole_archive_flag_spec=''
16277   fi
16278   link_all_deplibs=yes
16279   allow_undefined_flag="$_lt_dar_allow_undefined"
16280   case $cc_basename in
16281      ifort*) _lt_dar_can_shared=yes ;;
16282      *) _lt_dar_can_shared=$GCC ;;
16283   esac
16284   if test "$_lt_dar_can_shared" = "yes"; then
16285     output_verbose_link_cmd=func_echo_all
16286     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16287     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16288     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}"
16289     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}"
16290
16291   else
16292   ld_shlibs=no
16293   fi
16294
16295       ;;
16296
16297     dgux*)
16298       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16299       hardcode_libdir_flag_spec='-L$libdir'
16300       hardcode_shlibpath_var=no
16301       ;;
16302
16303     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16304     # support.  Future versions do this automatically, but an explicit c++rt0.o
16305     # does not break anything, and helps significantly (at the cost of a little
16306     # extra space).
16307     freebsd2.2*)
16308       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16309       hardcode_libdir_flag_spec='-R$libdir'
16310       hardcode_direct=yes
16311       hardcode_shlibpath_var=no
16312       ;;
16313
16314     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16315     freebsd2.*)
16316       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16317       hardcode_direct=yes
16318       hardcode_minus_L=yes
16319       hardcode_shlibpath_var=no
16320       ;;
16321
16322     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16323     freebsd* | dragonfly*)
16324       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16325       hardcode_libdir_flag_spec='-R$libdir'
16326       hardcode_direct=yes
16327       hardcode_shlibpath_var=no
16328       ;;
16329
16330     hpux9*)
16331       if test "$GCC" = yes; then
16332         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'
16333       else
16334         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'
16335       fi
16336       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16337       hardcode_libdir_separator=:
16338       hardcode_direct=yes
16339
16340       # hardcode_minus_L: Not really in the search PATH,
16341       # but as the default location of the library.
16342       hardcode_minus_L=yes
16343       export_dynamic_flag_spec='${wl}-E'
16344       ;;
16345
16346     hpux10*)
16347       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16348         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16349       else
16350         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16351       fi
16352       if test "$with_gnu_ld" = no; then
16353         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16354         hardcode_libdir_flag_spec_ld='+b $libdir'
16355         hardcode_libdir_separator=:
16356         hardcode_direct=yes
16357         hardcode_direct_absolute=yes
16358         export_dynamic_flag_spec='${wl}-E'
16359         # hardcode_minus_L: Not really in the search PATH,
16360         # but as the default location of the library.
16361         hardcode_minus_L=yes
16362       fi
16363       ;;
16364
16365     hpux11*)
16366       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16367         case $host_cpu in
16368         hppa*64*)
16369           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16370           ;;
16371         ia64*)
16372           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16373           ;;
16374         *)
16375           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16376           ;;
16377         esac
16378       else
16379         case $host_cpu in
16380         hppa*64*)
16381           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16382           ;;
16383         ia64*)
16384           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16385           ;;
16386         *)
16387
16388           # Older versions of the 11.00 compiler do not understand -b yet
16389           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16390           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16391 $as_echo_n "checking if $CC understands -b... " >&6; }
16392 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16393   $as_echo_n "(cached) " >&6
16394 else
16395   lt_cv_prog_compiler__b=no
16396    save_LDFLAGS="$LDFLAGS"
16397    LDFLAGS="$LDFLAGS -b"
16398    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16399    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16400      # The linker can only warn and ignore the option if not recognized
16401      # So say no if there are warnings
16402      if test -s conftest.err; then
16403        # Append any errors to the config.log.
16404        cat conftest.err 1>&5
16405        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16406        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16407        if diff conftest.exp conftest.er2 >/dev/null; then
16408          lt_cv_prog_compiler__b=yes
16409        fi
16410      else
16411        lt_cv_prog_compiler__b=yes
16412      fi
16413    fi
16414    $RM -r conftest*
16415    LDFLAGS="$save_LDFLAGS"
16416
16417 fi
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16419 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16420
16421 if test x"$lt_cv_prog_compiler__b" = xyes; then
16422     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16423 else
16424     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16425 fi
16426
16427           ;;
16428         esac
16429       fi
16430       if test "$with_gnu_ld" = no; then
16431         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16432         hardcode_libdir_separator=:
16433
16434         case $host_cpu in
16435         hppa*64*|ia64*)
16436           hardcode_direct=no
16437           hardcode_shlibpath_var=no
16438           ;;
16439         *)
16440           hardcode_direct=yes
16441           hardcode_direct_absolute=yes
16442           export_dynamic_flag_spec='${wl}-E'
16443
16444           # hardcode_minus_L: Not really in the search PATH,
16445           # but as the default location of the library.
16446           hardcode_minus_L=yes
16447           ;;
16448         esac
16449       fi
16450       ;;
16451
16452     irix5* | irix6* | nonstopux*)
16453       if test "$GCC" = yes; then
16454         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'
16455         # Try to use the -exported_symbol ld option, if it does not
16456         # work, assume that -exports_file does not work either and
16457         # implicitly export all symbols.
16458         save_LDFLAGS="$LDFLAGS"
16459         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16460         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16461 /* end confdefs.h.  */
16462 int foo(void) {}
16463 _ACEOF
16464 if ac_fn_c_try_link "$LINENO"; then :
16465   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'
16466
16467 fi
16468 rm -f core conftest.err conftest.$ac_objext \
16469     conftest$ac_exeext conftest.$ac_ext
16470         LDFLAGS="$save_LDFLAGS"
16471       else
16472         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'
16473         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'
16474       fi
16475       archive_cmds_need_lc='no'
16476       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16477       hardcode_libdir_separator=:
16478       inherit_rpath=yes
16479       link_all_deplibs=yes
16480       ;;
16481
16482     netbsd*)
16483       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16484         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16485       else
16486         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16487       fi
16488       hardcode_libdir_flag_spec='-R$libdir'
16489       hardcode_direct=yes
16490       hardcode_shlibpath_var=no
16491       ;;
16492
16493     newsos6)
16494       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16495       hardcode_direct=yes
16496       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16497       hardcode_libdir_separator=:
16498       hardcode_shlibpath_var=no
16499       ;;
16500
16501     *nto* | *qnx*)
16502       ;;
16503
16504     openbsd*)
16505       if test -f /usr/libexec/ld.so; then
16506         hardcode_direct=yes
16507         hardcode_shlibpath_var=no
16508         hardcode_direct_absolute=yes
16509         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16510           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16511           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16512           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16513           export_dynamic_flag_spec='${wl}-E'
16514         else
16515           case $host_os in
16516            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16517              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16518              hardcode_libdir_flag_spec='-R$libdir'
16519              ;;
16520            *)
16521              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16522              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16523              ;;
16524           esac
16525         fi
16526       else
16527         ld_shlibs=no
16528       fi
16529       ;;
16530
16531     os2*)
16532       hardcode_libdir_flag_spec='-L$libdir'
16533       hardcode_minus_L=yes
16534       allow_undefined_flag=unsupported
16535       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'
16536       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16537       ;;
16538
16539     osf3*)
16540       if test "$GCC" = yes; then
16541         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16542         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'
16543       else
16544         allow_undefined_flag=' -expect_unresolved \*'
16545         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'
16546       fi
16547       archive_cmds_need_lc='no'
16548       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16549       hardcode_libdir_separator=:
16550       ;;
16551
16552     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16553       if test "$GCC" = yes; then
16554         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16555         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'
16556         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16557       else
16558         allow_undefined_flag=' -expect_unresolved \*'
16559         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'
16560         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~
16561         $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'
16562
16563         # Both c and cxx compiler support -rpath directly
16564         hardcode_libdir_flag_spec='-rpath $libdir'
16565       fi
16566       archive_cmds_need_lc='no'
16567       hardcode_libdir_separator=:
16568       ;;
16569
16570     solaris*)
16571       no_undefined_flag=' -z defs'
16572       if test "$GCC" = yes; then
16573         wlarc='${wl}'
16574         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16575         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16576           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16577       else
16578         case `$CC -V 2>&1` in
16579         *"Compilers 5.0"*)
16580           wlarc=''
16581           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16582           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16583           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16584           ;;
16585         *)
16586           wlarc='${wl}'
16587           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16588           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16589           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16590           ;;
16591         esac
16592       fi
16593       hardcode_libdir_flag_spec='-R$libdir'
16594       hardcode_shlibpath_var=no
16595       case $host_os in
16596       solaris2.[0-5] | solaris2.[0-5].*) ;;
16597       *)
16598         # The compiler driver will combine and reorder linker options,
16599         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16600         # but is careful enough not to reorder.
16601         # Supported since Solaris 2.6 (maybe 2.5.1?)
16602         if test "$GCC" = yes; then
16603           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16604         else
16605           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16606         fi
16607         ;;
16608       esac
16609       link_all_deplibs=yes
16610       ;;
16611
16612     sunos4*)
16613       if test "x$host_vendor" = xsequent; then
16614         # Use $CC to link under sequent, because it throws in some extra .o
16615         # files that make .init and .fini sections work.
16616         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16617       else
16618         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16619       fi
16620       hardcode_libdir_flag_spec='-L$libdir'
16621       hardcode_direct=yes
16622       hardcode_minus_L=yes
16623       hardcode_shlibpath_var=no
16624       ;;
16625
16626     sysv4)
16627       case $host_vendor in
16628         sni)
16629           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16630           hardcode_direct=yes # is this really true???
16631         ;;
16632         siemens)
16633           ## LD is ld it makes a PLAMLIB
16634           ## CC just makes a GrossModule.
16635           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16636           reload_cmds='$CC -r -o $output$reload_objs'
16637           hardcode_direct=no
16638         ;;
16639         motorola)
16640           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16641           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16642         ;;
16643       esac
16644       runpath_var='LD_RUN_PATH'
16645       hardcode_shlibpath_var=no
16646       ;;
16647
16648     sysv4.3*)
16649       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16650       hardcode_shlibpath_var=no
16651       export_dynamic_flag_spec='-Bexport'
16652       ;;
16653
16654     sysv4*MP*)
16655       if test -d /usr/nec; then
16656         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16657         hardcode_shlibpath_var=no
16658         runpath_var=LD_RUN_PATH
16659         hardcode_runpath_var=yes
16660         ld_shlibs=yes
16661       fi
16662       ;;
16663
16664     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16665       no_undefined_flag='${wl}-z,text'
16666       archive_cmds_need_lc=no
16667       hardcode_shlibpath_var=no
16668       runpath_var='LD_RUN_PATH'
16669
16670       if test "$GCC" = yes; then
16671         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16672         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16673       else
16674         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16675         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16676       fi
16677       ;;
16678
16679     sysv5* | sco3.2v5* | sco5v6*)
16680       # Note: We can NOT use -z defs as we might desire, because we do not
16681       # link with -lc, and that would cause any symbols used from libc to
16682       # always be unresolved, which means just about no library would
16683       # ever link correctly.  If we're not using GNU ld we use -z text
16684       # though, which does catch some bad symbols but isn't as heavy-handed
16685       # as -z defs.
16686       no_undefined_flag='${wl}-z,text'
16687       allow_undefined_flag='${wl}-z,nodefs'
16688       archive_cmds_need_lc=no
16689       hardcode_shlibpath_var=no
16690       hardcode_libdir_flag_spec='${wl}-R,$libdir'
16691       hardcode_libdir_separator=':'
16692       link_all_deplibs=yes
16693       export_dynamic_flag_spec='${wl}-Bexport'
16694       runpath_var='LD_RUN_PATH'
16695
16696       if test "$GCC" = yes; then
16697         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16698         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16699       else
16700         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16701         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16702       fi
16703       ;;
16704
16705     uts4*)
16706       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16707       hardcode_libdir_flag_spec='-L$libdir'
16708       hardcode_shlibpath_var=no
16709       ;;
16710
16711     *)
16712       ld_shlibs=no
16713       ;;
16714     esac
16715
16716     if test x$host_vendor = xsni; then
16717       case $host in
16718       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16719         export_dynamic_flag_spec='${wl}-Blargedynsym'
16720         ;;
16721       esac
16722     fi
16723   fi
16724
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16726 $as_echo "$ld_shlibs" >&6; }
16727 test "$ld_shlibs" = no && can_build_shared=no
16728
16729 with_gnu_ld=$with_gnu_ld
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745 #
16746 # Do we need to explicitly link libc?
16747 #
16748 case "x$archive_cmds_need_lc" in
16749 x|xyes)
16750   # Assume -lc should be added
16751   archive_cmds_need_lc=yes
16752
16753   if test "$enable_shared" = yes && test "$GCC" = yes; then
16754     case $archive_cmds in
16755     *'~'*)
16756       # FIXME: we may have to deal with multi-command sequences.
16757       ;;
16758     '$CC '*)
16759       # Test whether the compiler implicitly links with -lc since on some
16760       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16761       # to ld, don't add -lc before -lgcc.
16762       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16763 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16764 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16765   $as_echo_n "(cached) " >&6
16766 else
16767   $RM conftest*
16768         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16769
16770         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16771   (eval $ac_compile) 2>&5
16772   ac_status=$?
16773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16774   test $ac_status = 0; } 2>conftest.err; then
16775           soname=conftest
16776           lib=conftest
16777           libobjs=conftest.$ac_objext
16778           deplibs=
16779           wl=$lt_prog_compiler_wl
16780           pic_flag=$lt_prog_compiler_pic
16781           compiler_flags=-v
16782           linker_flags=-v
16783           verstring=
16784           output_objdir=.
16785           libname=conftest
16786           lt_save_allow_undefined_flag=$allow_undefined_flag
16787           allow_undefined_flag=
16788           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16789   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16790   ac_status=$?
16791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16792   test $ac_status = 0; }
16793           then
16794             lt_cv_archive_cmds_need_lc=no
16795           else
16796             lt_cv_archive_cmds_need_lc=yes
16797           fi
16798           allow_undefined_flag=$lt_save_allow_undefined_flag
16799         else
16800           cat conftest.err 1>&5
16801         fi
16802         $RM conftest*
16803
16804 fi
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16806 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16807       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16808       ;;
16809     esac
16810   fi
16811   ;;
16812 esac
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16971 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16972
16973 if test "$GCC" = yes; then
16974   case $host_os in
16975     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16976     *) lt_awk_arg="/^libraries:/" ;;
16977   esac
16978   case $host_os in
16979     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16980     *) lt_sed_strip_eq="s,=/,/,g" ;;
16981   esac
16982   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16983   case $lt_search_path_spec in
16984   *\;*)
16985     # if the path contains ";" then we assume it to be the separator
16986     # otherwise default to the standard path separator (i.e. ":") - it is
16987     # assumed that no part of a normal pathname contains ";" but that should
16988     # okay in the real world where ";" in dirpaths is itself problematic.
16989     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16990     ;;
16991   *)
16992     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16993     ;;
16994   esac
16995   # Ok, now we have the path, separated by spaces, we can step through it
16996   # and add multilib dir if necessary.
16997   lt_tmp_lt_search_path_spec=
16998   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16999   for lt_sys_path in $lt_search_path_spec; do
17000     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17001       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17002     else
17003       test -d "$lt_sys_path" && \
17004         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17005     fi
17006   done
17007   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17008 BEGIN {RS=" "; FS="/|\n";} {
17009   lt_foo="";
17010   lt_count=0;
17011   for (lt_i = NF; lt_i > 0; lt_i--) {
17012     if ($lt_i != "" && $lt_i != ".") {
17013       if ($lt_i == "..") {
17014         lt_count++;
17015       } else {
17016         if (lt_count == 0) {
17017           lt_foo="/" $lt_i lt_foo;
17018         } else {
17019           lt_count--;
17020         }
17021       }
17022     }
17023   }
17024   if (lt_foo != "") { lt_freq[lt_foo]++; }
17025   if (lt_freq[lt_foo] == 1) { print lt_foo; }
17026 }'`
17027   # AWK program above erroneously prepends '/' to C:/dos/paths
17028   # for these hosts.
17029   case $host_os in
17030     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17031       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17032   esac
17033   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17034 else
17035   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17036 fi
17037 library_names_spec=
17038 libname_spec='lib$name'
17039 soname_spec=
17040 shrext_cmds=".so"
17041 postinstall_cmds=
17042 postuninstall_cmds=
17043 finish_cmds=
17044 finish_eval=
17045 shlibpath_var=
17046 shlibpath_overrides_runpath=unknown
17047 version_type=none
17048 dynamic_linker="$host_os ld.so"
17049 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17050 need_lib_prefix=unknown
17051 hardcode_into_libs=no
17052
17053 # when you set need_version to no, make sure it does not cause -set_version
17054 # flags to be left without arguments
17055 need_version=unknown
17056
17057 case $host_os in
17058 aix3*)
17059   version_type=linux
17060   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17061   shlibpath_var=LIBPATH
17062
17063   # AIX 3 has no versioning support, so we append a major version to the name.
17064   soname_spec='${libname}${release}${shared_ext}$major'
17065   ;;
17066
17067 aix[4-9]*)
17068   version_type=linux
17069   need_lib_prefix=no
17070   need_version=no
17071   hardcode_into_libs=yes
17072   if test "$host_cpu" = ia64; then
17073     # AIX 5 supports IA64
17074     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17075     shlibpath_var=LD_LIBRARY_PATH
17076   else
17077     # With GCC up to 2.95.x, collect2 would create an import file
17078     # for dependence libraries.  The import file would start with
17079     # the line `#! .'.  This would cause the generated library to
17080     # depend on `.', always an invalid library.  This was fixed in
17081     # development snapshots of GCC prior to 3.0.
17082     case $host_os in
17083       aix4 | aix4.[01] | aix4.[01].*)
17084       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17085            echo ' yes '
17086            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17087         :
17088       else
17089         can_build_shared=no
17090       fi
17091       ;;
17092     esac
17093     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17094     # soname into executable. Probably we can add versioning support to
17095     # collect2, so additional links can be useful in future.
17096     if test "$aix_use_runtimelinking" = yes; then
17097       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17098       # instead of lib<name>.a to let people know that these are not
17099       # typical AIX shared libraries.
17100       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17101     else
17102       # We preserve .a as extension for shared libraries through AIX4.2
17103       # and later when we are not doing run time linking.
17104       library_names_spec='${libname}${release}.a $libname.a'
17105       soname_spec='${libname}${release}${shared_ext}$major'
17106     fi
17107     shlibpath_var=LIBPATH
17108   fi
17109   ;;
17110
17111 amigaos*)
17112   case $host_cpu in
17113   powerpc)
17114     # Since July 2007 AmigaOS4 officially supports .so libraries.
17115     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17116     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17117     ;;
17118   m68k)
17119     library_names_spec='$libname.ixlibrary $libname.a'
17120     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17121     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'
17122     ;;
17123   esac
17124   ;;
17125
17126 beos*)
17127   library_names_spec='${libname}${shared_ext}'
17128   dynamic_linker="$host_os ld.so"
17129   shlibpath_var=LIBRARY_PATH
17130   ;;
17131
17132 bsdi[45]*)
17133   version_type=linux
17134   need_version=no
17135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17136   soname_spec='${libname}${release}${shared_ext}$major'
17137   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17138   shlibpath_var=LD_LIBRARY_PATH
17139   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17140   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17141   # the default ld.so.conf also contains /usr/contrib/lib and
17142   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17143   # libtool to hard-code these into programs
17144   ;;
17145
17146 cygwin* | mingw* | pw32* | cegcc*)
17147   version_type=windows
17148   shrext_cmds=".dll"
17149   need_version=no
17150   need_lib_prefix=no
17151
17152   case $GCC,$host_os in
17153   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17154     library_names_spec='$libname.dll.a'
17155     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17156     postinstall_cmds='base_file=`basename \${file}`~
17157       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17158       dldir=$destdir/`dirname \$dlpath`~
17159       test -d \$dldir || mkdir -p \$dldir~
17160       $install_prog $dir/$dlname \$dldir/$dlname~
17161       chmod a+x \$dldir/$dlname~
17162       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17163         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17164       fi'
17165     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17166       dlpath=$dir/\$dldll~
17167        $RM \$dlpath'
17168     shlibpath_overrides_runpath=yes
17169
17170     case $host_os in
17171     cygwin*)
17172       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17173       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17174
17175       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17176       ;;
17177     mingw* | cegcc*)
17178       # MinGW DLLs use traditional 'lib' prefix
17179       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17180       ;;
17181     pw32*)
17182       # pw32 DLLs use 'pw' prefix rather than 'lib'
17183       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17184       ;;
17185     esac
17186     ;;
17187
17188   *)
17189     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17190     ;;
17191   esac
17192   dynamic_linker='Win32 ld.exe'
17193   # FIXME: first we should search . and the directory the executable is in
17194   shlibpath_var=PATH
17195   ;;
17196
17197 darwin* | rhapsody*)
17198   dynamic_linker="$host_os dyld"
17199   version_type=darwin
17200   need_lib_prefix=no
17201   need_version=no
17202   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17203   soname_spec='${libname}${release}${major}$shared_ext'
17204   shlibpath_overrides_runpath=yes
17205   shlibpath_var=DYLD_LIBRARY_PATH
17206   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17207
17208   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17209   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17210   ;;
17211
17212 dgux*)
17213   version_type=linux
17214   need_lib_prefix=no
17215   need_version=no
17216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17217   soname_spec='${libname}${release}${shared_ext}$major'
17218   shlibpath_var=LD_LIBRARY_PATH
17219   ;;
17220
17221 freebsd* | dragonfly*)
17222   # DragonFly does not have aout.  When/if they implement a new
17223   # versioning mechanism, adjust this.
17224   if test -x /usr/bin/objformat; then
17225     objformat=`/usr/bin/objformat`
17226   else
17227     case $host_os in
17228     freebsd[23].*) objformat=aout ;;
17229     *) objformat=elf ;;
17230     esac
17231   fi
17232   version_type=freebsd-$objformat
17233   case $version_type in
17234     freebsd-elf*)
17235       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17236       need_version=no
17237       need_lib_prefix=no
17238       ;;
17239     freebsd-*)
17240       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17241       need_version=yes
17242       ;;
17243   esac
17244   shlibpath_var=LD_LIBRARY_PATH
17245   case $host_os in
17246   freebsd2.*)
17247     shlibpath_overrides_runpath=yes
17248     ;;
17249   freebsd3.[01]* | freebsdelf3.[01]*)
17250     shlibpath_overrides_runpath=yes
17251     hardcode_into_libs=yes
17252     ;;
17253   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17254   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17255     shlibpath_overrides_runpath=no
17256     hardcode_into_libs=yes
17257     ;;
17258   *) # from 4.6 on, and DragonFly
17259     shlibpath_overrides_runpath=yes
17260     hardcode_into_libs=yes
17261     ;;
17262   esac
17263   ;;
17264
17265 gnu*)
17266   version_type=linux
17267   need_lib_prefix=no
17268   need_version=no
17269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17270   soname_spec='${libname}${release}${shared_ext}$major'
17271   shlibpath_var=LD_LIBRARY_PATH
17272   hardcode_into_libs=yes
17273   ;;
17274
17275 haiku*)
17276   version_type=linux
17277   need_lib_prefix=no
17278   need_version=no
17279   dynamic_linker="$host_os runtime_loader"
17280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17281   soname_spec='${libname}${release}${shared_ext}$major'
17282   shlibpath_var=LIBRARY_PATH
17283   shlibpath_overrides_runpath=yes
17284   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17285   hardcode_into_libs=yes
17286   ;;
17287
17288 hpux9* | hpux10* | hpux11*)
17289   # Give a soname corresponding to the major version so that dld.sl refuses to
17290   # link against other versions.
17291   version_type=sunos
17292   need_lib_prefix=no
17293   need_version=no
17294   case $host_cpu in
17295   ia64*)
17296     shrext_cmds='.so'
17297     hardcode_into_libs=yes
17298     dynamic_linker="$host_os dld.so"
17299     shlibpath_var=LD_LIBRARY_PATH
17300     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17301     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17302     soname_spec='${libname}${release}${shared_ext}$major'
17303     if test "X$HPUX_IA64_MODE" = X32; then
17304       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17305     else
17306       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17307     fi
17308     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17309     ;;
17310   hppa*64*)
17311     shrext_cmds='.sl'
17312     hardcode_into_libs=yes
17313     dynamic_linker="$host_os dld.sl"
17314     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17315     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17316     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17317     soname_spec='${libname}${release}${shared_ext}$major'
17318     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17319     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17320     ;;
17321   *)
17322     shrext_cmds='.sl'
17323     dynamic_linker="$host_os dld.sl"
17324     shlibpath_var=SHLIB_PATH
17325     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17326     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17327     soname_spec='${libname}${release}${shared_ext}$major'
17328     ;;
17329   esac
17330   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17331   postinstall_cmds='chmod 555 $lib'
17332   # or fails outright, so override atomically:
17333   install_override_mode=555
17334   ;;
17335
17336 interix[3-9]*)
17337   version_type=linux
17338   need_lib_prefix=no
17339   need_version=no
17340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17341   soname_spec='${libname}${release}${shared_ext}$major'
17342   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17343   shlibpath_var=LD_LIBRARY_PATH
17344   shlibpath_overrides_runpath=no
17345   hardcode_into_libs=yes
17346   ;;
17347
17348 irix5* | irix6* | nonstopux*)
17349   case $host_os in
17350     nonstopux*) version_type=nonstopux ;;
17351     *)
17352         if test "$lt_cv_prog_gnu_ld" = yes; then
17353                 version_type=linux
17354         else
17355                 version_type=irix
17356         fi ;;
17357   esac
17358   need_lib_prefix=no
17359   need_version=no
17360   soname_spec='${libname}${release}${shared_ext}$major'
17361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17362   case $host_os in
17363   irix5* | nonstopux*)
17364     libsuff= shlibsuff=
17365     ;;
17366   *)
17367     case $LD in # libtool.m4 will add one of these switches to LD
17368     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17369       libsuff= shlibsuff= libmagic=32-bit;;
17370     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17371       libsuff=32 shlibsuff=N32 libmagic=N32;;
17372     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17373       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17374     *) libsuff= shlibsuff= libmagic=never-match;;
17375     esac
17376     ;;
17377   esac
17378   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17379   shlibpath_overrides_runpath=no
17380   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17381   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17382   hardcode_into_libs=yes
17383   ;;
17384
17385 # No shared lib support for Linux oldld, aout, or coff.
17386 linux*oldld* | linux*aout* | linux*coff*)
17387   dynamic_linker=no
17388   ;;
17389
17390 # This must be Linux ELF.
17391 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17392   version_type=linux
17393   need_lib_prefix=no
17394   need_version=no
17395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17396   soname_spec='${libname}${release}${shared_ext}$major'
17397   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17398   shlibpath_var=LD_LIBRARY_PATH
17399   shlibpath_overrides_runpath=no
17400
17401   # Some binutils ld are patched to set DT_RUNPATH
17402   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17403   $as_echo_n "(cached) " >&6
17404 else
17405   lt_cv_shlibpath_overrides_runpath=no
17406     save_LDFLAGS=$LDFLAGS
17407     save_libdir=$libdir
17408     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17409          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17410     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17411 /* end confdefs.h.  */
17412
17413 int
17414 main ()
17415 {
17416
17417   ;
17418   return 0;
17419 }
17420 _ACEOF
17421 if ac_fn_c_try_link "$LINENO"; then :
17422   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17423   lt_cv_shlibpath_overrides_runpath=yes
17424 fi
17425 fi
17426 rm -f core conftest.err conftest.$ac_objext \
17427     conftest$ac_exeext conftest.$ac_ext
17428     LDFLAGS=$save_LDFLAGS
17429     libdir=$save_libdir
17430
17431 fi
17432
17433   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17434
17435   # This implies no fast_install, which is unacceptable.
17436   # Some rework will be needed to allow for fast_install
17437   # before this can be enabled.
17438   hardcode_into_libs=yes
17439
17440   # Append ld.so.conf contents to the search path
17441   if test -f /etc/ld.so.conf; then
17442     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' ' '`
17443     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17444   fi
17445
17446   # We used to test for /lib/ld.so.1 and disable shared libraries on
17447   # powerpc, because MkLinux only supported shared libraries with the
17448   # GNU dynamic linker.  Since this was broken with cross compilers,
17449   # most powerpc-linux boxes support dynamic linking these days and
17450   # people can always --disable-shared, the test was removed, and we
17451   # assume the GNU/Linux dynamic linker is in use.
17452   dynamic_linker='GNU/Linux ld.so'
17453   ;;
17454
17455 netbsd*)
17456   version_type=sunos
17457   need_lib_prefix=no
17458   need_version=no
17459   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17460     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17461     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17462     dynamic_linker='NetBSD (a.out) ld.so'
17463   else
17464     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17465     soname_spec='${libname}${release}${shared_ext}$major'
17466     dynamic_linker='NetBSD ld.elf_so'
17467   fi
17468   shlibpath_var=LD_LIBRARY_PATH
17469   shlibpath_overrides_runpath=yes
17470   hardcode_into_libs=yes
17471   ;;
17472
17473 newsos6)
17474   version_type=linux
17475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17476   shlibpath_var=LD_LIBRARY_PATH
17477   shlibpath_overrides_runpath=yes
17478   ;;
17479
17480 *nto* | *qnx*)
17481   version_type=qnx
17482   need_lib_prefix=no
17483   need_version=no
17484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17485   soname_spec='${libname}${release}${shared_ext}$major'
17486   shlibpath_var=LD_LIBRARY_PATH
17487   shlibpath_overrides_runpath=no
17488   hardcode_into_libs=yes
17489   dynamic_linker='ldqnx.so'
17490   ;;
17491
17492 openbsd*)
17493   version_type=sunos
17494   sys_lib_dlsearch_path_spec="/usr/lib"
17495   need_lib_prefix=no
17496   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17497   case $host_os in
17498     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17499     *)                          need_version=no  ;;
17500   esac
17501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17502   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17503   shlibpath_var=LD_LIBRARY_PATH
17504   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17505     case $host_os in
17506       openbsd2.[89] | openbsd2.[89].*)
17507         shlibpath_overrides_runpath=no
17508         ;;
17509       *)
17510         shlibpath_overrides_runpath=yes
17511         ;;
17512       esac
17513   else
17514     shlibpath_overrides_runpath=yes
17515   fi
17516   ;;
17517
17518 os2*)
17519   libname_spec='$name'
17520   shrext_cmds=".dll"
17521   need_lib_prefix=no
17522   library_names_spec='$libname${shared_ext} $libname.a'
17523   dynamic_linker='OS/2 ld.exe'
17524   shlibpath_var=LIBPATH
17525   ;;
17526
17527 osf3* | osf4* | osf5*)
17528   version_type=osf
17529   need_lib_prefix=no
17530   need_version=no
17531   soname_spec='${libname}${release}${shared_ext}$major'
17532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17533   shlibpath_var=LD_LIBRARY_PATH
17534   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17535   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17536   ;;
17537
17538 rdos*)
17539   dynamic_linker=no
17540   ;;
17541
17542 solaris*)
17543   version_type=linux
17544   need_lib_prefix=no
17545   need_version=no
17546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17547   soname_spec='${libname}${release}${shared_ext}$major'
17548   shlibpath_var=LD_LIBRARY_PATH
17549   shlibpath_overrides_runpath=yes
17550   hardcode_into_libs=yes
17551   # ldd complains unless libraries are executable
17552   postinstall_cmds='chmod +x $lib'
17553   ;;
17554
17555 sunos4*)
17556   version_type=sunos
17557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17558   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17559   shlibpath_var=LD_LIBRARY_PATH
17560   shlibpath_overrides_runpath=yes
17561   if test "$with_gnu_ld" = yes; then
17562     need_lib_prefix=no
17563   fi
17564   need_version=yes
17565   ;;
17566
17567 sysv4 | sysv4.3*)
17568   version_type=linux
17569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17570   soname_spec='${libname}${release}${shared_ext}$major'
17571   shlibpath_var=LD_LIBRARY_PATH
17572   case $host_vendor in
17573     sni)
17574       shlibpath_overrides_runpath=no
17575       need_lib_prefix=no
17576       runpath_var=LD_RUN_PATH
17577       ;;
17578     siemens)
17579       need_lib_prefix=no
17580       ;;
17581     motorola)
17582       need_lib_prefix=no
17583       need_version=no
17584       shlibpath_overrides_runpath=no
17585       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17586       ;;
17587   esac
17588   ;;
17589
17590 sysv4*MP*)
17591   if test -d /usr/nec ;then
17592     version_type=linux
17593     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17594     soname_spec='$libname${shared_ext}.$major'
17595     shlibpath_var=LD_LIBRARY_PATH
17596   fi
17597   ;;
17598
17599 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17600   version_type=freebsd-elf
17601   need_lib_prefix=no
17602   need_version=no
17603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17604   soname_spec='${libname}${release}${shared_ext}$major'
17605   shlibpath_var=LD_LIBRARY_PATH
17606   shlibpath_overrides_runpath=yes
17607   hardcode_into_libs=yes
17608   if test "$with_gnu_ld" = yes; then
17609     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17610   else
17611     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17612     case $host_os in
17613       sco3.2v5*)
17614         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17615         ;;
17616     esac
17617   fi
17618   sys_lib_dlsearch_path_spec='/usr/lib'
17619   ;;
17620
17621 tpf*)
17622   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17623   version_type=linux
17624   need_lib_prefix=no
17625   need_version=no
17626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17627   shlibpath_var=LD_LIBRARY_PATH
17628   shlibpath_overrides_runpath=no
17629   hardcode_into_libs=yes
17630   ;;
17631
17632 uts4*)
17633   version_type=linux
17634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17635   soname_spec='${libname}${release}${shared_ext}$major'
17636   shlibpath_var=LD_LIBRARY_PATH
17637   ;;
17638
17639 *)
17640   dynamic_linker=no
17641   ;;
17642 esac
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17644 $as_echo "$dynamic_linker" >&6; }
17645 test "$dynamic_linker" = no && can_build_shared=no
17646
17647 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17648 if test "$GCC" = yes; then
17649   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17650 fi
17651
17652 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17653   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17654 fi
17655 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17656   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17657 fi
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17751 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17752 hardcode_action=
17753 if test -n "$hardcode_libdir_flag_spec" ||
17754    test -n "$runpath_var" ||
17755    test "X$hardcode_automatic" = "Xyes" ; then
17756
17757   # We can hardcode non-existent directories.
17758   if test "$hardcode_direct" != no &&
17759      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17760      # have to relink, otherwise we might link with an installed library
17761      # when we should be linking with a yet-to-be-installed one
17762      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17763      test "$hardcode_minus_L" != no; then
17764     # Linking always hardcodes the temporary library directory.
17765     hardcode_action=relink
17766   else
17767     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17768     hardcode_action=immediate
17769   fi
17770 else
17771   # We cannot hardcode anything, or else we can only hardcode existing
17772   # directories.
17773   hardcode_action=unsupported
17774 fi
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17776 $as_echo "$hardcode_action" >&6; }
17777
17778 if test "$hardcode_action" = relink ||
17779    test "$inherit_rpath" = yes; then
17780   # Fast installation is not supported
17781   enable_fast_install=no
17782 elif test "$shlibpath_overrides_runpath" = yes ||
17783      test "$enable_shared" = no; then
17784   # Fast installation is not necessary
17785   enable_fast_install=needless
17786 fi
17787
17788
17789
17790
17791
17792
17793   if test "x$enable_dlopen" != xyes; then
17794   enable_dlopen=unknown
17795   enable_dlopen_self=unknown
17796   enable_dlopen_self_static=unknown
17797 else
17798   lt_cv_dlopen=no
17799   lt_cv_dlopen_libs=
17800
17801   case $host_os in
17802   beos*)
17803     lt_cv_dlopen="load_add_on"
17804     lt_cv_dlopen_libs=
17805     lt_cv_dlopen_self=yes
17806     ;;
17807
17808   mingw* | pw32* | cegcc*)
17809     lt_cv_dlopen="LoadLibrary"
17810     lt_cv_dlopen_libs=
17811     ;;
17812
17813   cygwin*)
17814     lt_cv_dlopen="dlopen"
17815     lt_cv_dlopen_libs=
17816     ;;
17817
17818   darwin*)
17819   # if libdl is installed we need to link against it
17820     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17821 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17822 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17823   $as_echo_n "(cached) " >&6
17824 else
17825   ac_check_lib_save_LIBS=$LIBS
17826 LIBS="-ldl  $LIBS"
17827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17828 /* end confdefs.h.  */
17829
17830 /* Override any GCC internal prototype to avoid an error.
17831    Use char because int might match the return type of a GCC
17832    builtin and then its argument prototype would still apply.  */
17833 #ifdef __cplusplus
17834 extern "C"
17835 #endif
17836 char dlopen ();
17837 int
17838 main ()
17839 {
17840 return dlopen ();
17841   ;
17842   return 0;
17843 }
17844 _ACEOF
17845 if ac_fn_c_try_link "$LINENO"; then :
17846   ac_cv_lib_dl_dlopen=yes
17847 else
17848   ac_cv_lib_dl_dlopen=no
17849 fi
17850 rm -f core conftest.err conftest.$ac_objext \
17851     conftest$ac_exeext conftest.$ac_ext
17852 LIBS=$ac_check_lib_save_LIBS
17853 fi
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17855 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17856 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17857   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17858 else
17859
17860     lt_cv_dlopen="dyld"
17861     lt_cv_dlopen_libs=
17862     lt_cv_dlopen_self=yes
17863
17864 fi
17865
17866     ;;
17867
17868   *)
17869     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17870 if test "x$ac_cv_func_shl_load" = x""yes; then :
17871   lt_cv_dlopen="shl_load"
17872 else
17873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17874 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17875 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17876   $as_echo_n "(cached) " >&6
17877 else
17878   ac_check_lib_save_LIBS=$LIBS
17879 LIBS="-ldld  $LIBS"
17880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17881 /* end confdefs.h.  */
17882
17883 /* Override any GCC internal prototype to avoid an error.
17884    Use char because int might match the return type of a GCC
17885    builtin and then its argument prototype would still apply.  */
17886 #ifdef __cplusplus
17887 extern "C"
17888 #endif
17889 char shl_load ();
17890 int
17891 main ()
17892 {
17893 return shl_load ();
17894   ;
17895   return 0;
17896 }
17897 _ACEOF
17898 if ac_fn_c_try_link "$LINENO"; then :
17899   ac_cv_lib_dld_shl_load=yes
17900 else
17901   ac_cv_lib_dld_shl_load=no
17902 fi
17903 rm -f core conftest.err conftest.$ac_objext \
17904     conftest$ac_exeext conftest.$ac_ext
17905 LIBS=$ac_check_lib_save_LIBS
17906 fi
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17908 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17909 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17910   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17911 else
17912   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17913 if test "x$ac_cv_func_dlopen" = x""yes; then :
17914   lt_cv_dlopen="dlopen"
17915 else
17916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17917 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17918 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17919   $as_echo_n "(cached) " >&6
17920 else
17921   ac_check_lib_save_LIBS=$LIBS
17922 LIBS="-ldl  $LIBS"
17923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17924 /* end confdefs.h.  */
17925
17926 /* Override any GCC internal prototype to avoid an error.
17927    Use char because int might match the return type of a GCC
17928    builtin and then its argument prototype would still apply.  */
17929 #ifdef __cplusplus
17930 extern "C"
17931 #endif
17932 char dlopen ();
17933 int
17934 main ()
17935 {
17936 return dlopen ();
17937   ;
17938   return 0;
17939 }
17940 _ACEOF
17941 if ac_fn_c_try_link "$LINENO"; then :
17942   ac_cv_lib_dl_dlopen=yes
17943 else
17944   ac_cv_lib_dl_dlopen=no
17945 fi
17946 rm -f core conftest.err conftest.$ac_objext \
17947     conftest$ac_exeext conftest.$ac_ext
17948 LIBS=$ac_check_lib_save_LIBS
17949 fi
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17951 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17952 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17953   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17954 else
17955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17956 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17957 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17958   $as_echo_n "(cached) " >&6
17959 else
17960   ac_check_lib_save_LIBS=$LIBS
17961 LIBS="-lsvld  $LIBS"
17962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17963 /* end confdefs.h.  */
17964
17965 /* Override any GCC internal prototype to avoid an error.
17966    Use char because int might match the return type of a GCC
17967    builtin and then its argument prototype would still apply.  */
17968 #ifdef __cplusplus
17969 extern "C"
17970 #endif
17971 char dlopen ();
17972 int
17973 main ()
17974 {
17975 return dlopen ();
17976   ;
17977   return 0;
17978 }
17979 _ACEOF
17980 if ac_fn_c_try_link "$LINENO"; then :
17981   ac_cv_lib_svld_dlopen=yes
17982 else
17983   ac_cv_lib_svld_dlopen=no
17984 fi
17985 rm -f core conftest.err conftest.$ac_objext \
17986     conftest$ac_exeext conftest.$ac_ext
17987 LIBS=$ac_check_lib_save_LIBS
17988 fi
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17990 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17991 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17992   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17993 else
17994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17995 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17996 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17997   $as_echo_n "(cached) " >&6
17998 else
17999   ac_check_lib_save_LIBS=$LIBS
18000 LIBS="-ldld  $LIBS"
18001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18002 /* end confdefs.h.  */
18003
18004 /* Override any GCC internal prototype to avoid an error.
18005    Use char because int might match the return type of a GCC
18006    builtin and then its argument prototype would still apply.  */
18007 #ifdef __cplusplus
18008 extern "C"
18009 #endif
18010 char dld_link ();
18011 int
18012 main ()
18013 {
18014 return dld_link ();
18015   ;
18016   return 0;
18017 }
18018 _ACEOF
18019 if ac_fn_c_try_link "$LINENO"; then :
18020   ac_cv_lib_dld_dld_link=yes
18021 else
18022   ac_cv_lib_dld_dld_link=no
18023 fi
18024 rm -f core conftest.err conftest.$ac_objext \
18025     conftest$ac_exeext conftest.$ac_ext
18026 LIBS=$ac_check_lib_save_LIBS
18027 fi
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18029 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18030 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18031   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18032 fi
18033
18034
18035 fi
18036
18037
18038 fi
18039
18040
18041 fi
18042
18043
18044 fi
18045
18046
18047 fi
18048
18049     ;;
18050   esac
18051
18052   if test "x$lt_cv_dlopen" != xno; then
18053     enable_dlopen=yes
18054   else
18055     enable_dlopen=no
18056   fi
18057
18058   case $lt_cv_dlopen in
18059   dlopen)
18060     save_CPPFLAGS="$CPPFLAGS"
18061     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18062
18063     save_LDFLAGS="$LDFLAGS"
18064     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18065
18066     save_LIBS="$LIBS"
18067     LIBS="$lt_cv_dlopen_libs $LIBS"
18068
18069     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18070 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18071 if test "${lt_cv_dlopen_self+set}" = set; then :
18072   $as_echo_n "(cached) " >&6
18073 else
18074           if test "$cross_compiling" = yes; then :
18075   lt_cv_dlopen_self=cross
18076 else
18077   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18078   lt_status=$lt_dlunknown
18079   cat > conftest.$ac_ext <<_LT_EOF
18080 #line 18080 "configure"
18081 #include "confdefs.h"
18082
18083 #if HAVE_DLFCN_H
18084 #include <dlfcn.h>
18085 #endif
18086
18087 #include <stdio.h>
18088
18089 #ifdef RTLD_GLOBAL
18090 #  define LT_DLGLOBAL           RTLD_GLOBAL
18091 #else
18092 #  ifdef DL_GLOBAL
18093 #    define LT_DLGLOBAL         DL_GLOBAL
18094 #  else
18095 #    define LT_DLGLOBAL         0
18096 #  endif
18097 #endif
18098
18099 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18100    find out it does not work in some platform. */
18101 #ifndef LT_DLLAZY_OR_NOW
18102 #  ifdef RTLD_LAZY
18103 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18104 #  else
18105 #    ifdef DL_LAZY
18106 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18107 #    else
18108 #      ifdef RTLD_NOW
18109 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18110 #      else
18111 #        ifdef DL_NOW
18112 #          define LT_DLLAZY_OR_NOW      DL_NOW
18113 #        else
18114 #          define LT_DLLAZY_OR_NOW      0
18115 #        endif
18116 #      endif
18117 #    endif
18118 #  endif
18119 #endif
18120
18121 /* When -fvisbility=hidden is used, assume the code has been annotated
18122    correspondingly for the symbols needed.  */
18123 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18124 void fnord () __attribute__((visibility("default")));
18125 #endif
18126
18127 void fnord () { int i=42; }
18128 int main ()
18129 {
18130   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18131   int status = $lt_dlunknown;
18132
18133   if (self)
18134     {
18135       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18136       else
18137         {
18138           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18139           else puts (dlerror ());
18140         }
18141       /* dlclose (self); */
18142     }
18143   else
18144     puts (dlerror ());
18145
18146   return status;
18147 }
18148 _LT_EOF
18149   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18150   (eval $ac_link) 2>&5
18151   ac_status=$?
18152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18153   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18154     (./conftest; exit; ) >&5 2>/dev/null
18155     lt_status=$?
18156     case x$lt_status in
18157       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18158       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18159       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18160     esac
18161   else :
18162     # compilation failed
18163     lt_cv_dlopen_self=no
18164   fi
18165 fi
18166 rm -fr conftest*
18167
18168
18169 fi
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18171 $as_echo "$lt_cv_dlopen_self" >&6; }
18172
18173     if test "x$lt_cv_dlopen_self" = xyes; then
18174       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18175       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18176 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18177 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18178   $as_echo_n "(cached) " >&6
18179 else
18180           if test "$cross_compiling" = yes; then :
18181   lt_cv_dlopen_self_static=cross
18182 else
18183   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18184   lt_status=$lt_dlunknown
18185   cat > conftest.$ac_ext <<_LT_EOF
18186 #line 18186 "configure"
18187 #include "confdefs.h"
18188
18189 #if HAVE_DLFCN_H
18190 #include <dlfcn.h>
18191 #endif
18192
18193 #include <stdio.h>
18194
18195 #ifdef RTLD_GLOBAL
18196 #  define LT_DLGLOBAL           RTLD_GLOBAL
18197 #else
18198 #  ifdef DL_GLOBAL
18199 #    define LT_DLGLOBAL         DL_GLOBAL
18200 #  else
18201 #    define LT_DLGLOBAL         0
18202 #  endif
18203 #endif
18204
18205 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18206    find out it does not work in some platform. */
18207 #ifndef LT_DLLAZY_OR_NOW
18208 #  ifdef RTLD_LAZY
18209 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18210 #  else
18211 #    ifdef DL_LAZY
18212 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18213 #    else
18214 #      ifdef RTLD_NOW
18215 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18216 #      else
18217 #        ifdef DL_NOW
18218 #          define LT_DLLAZY_OR_NOW      DL_NOW
18219 #        else
18220 #          define LT_DLLAZY_OR_NOW      0
18221 #        endif
18222 #      endif
18223 #    endif
18224 #  endif
18225 #endif
18226
18227 /* When -fvisbility=hidden is used, assume the code has been annotated
18228    correspondingly for the symbols needed.  */
18229 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18230 void fnord () __attribute__((visibility("default")));
18231 #endif
18232
18233 void fnord () { int i=42; }
18234 int main ()
18235 {
18236   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18237   int status = $lt_dlunknown;
18238
18239   if (self)
18240     {
18241       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18242       else
18243         {
18244           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18245           else puts (dlerror ());
18246         }
18247       /* dlclose (self); */
18248     }
18249   else
18250     puts (dlerror ());
18251
18252   return status;
18253 }
18254 _LT_EOF
18255   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18256   (eval $ac_link) 2>&5
18257   ac_status=$?
18258   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18259   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18260     (./conftest; exit; ) >&5 2>/dev/null
18261     lt_status=$?
18262     case x$lt_status in
18263       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18264       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18265       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18266     esac
18267   else :
18268     # compilation failed
18269     lt_cv_dlopen_self_static=no
18270   fi
18271 fi
18272 rm -fr conftest*
18273
18274
18275 fi
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18277 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18278     fi
18279
18280     CPPFLAGS="$save_CPPFLAGS"
18281     LDFLAGS="$save_LDFLAGS"
18282     LIBS="$save_LIBS"
18283     ;;
18284   esac
18285
18286   case $lt_cv_dlopen_self in
18287   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18288   *) enable_dlopen_self=unknown ;;
18289   esac
18290
18291   case $lt_cv_dlopen_self_static in
18292   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18293   *) enable_dlopen_self_static=unknown ;;
18294   esac
18295 fi
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313 striplib=
18314 old_striplib=
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18316 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18317 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18318   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18319   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18321 $as_echo "yes" >&6; }
18322 else
18323 # FIXME - insert some real tests, host_os isn't really good enough
18324   case $host_os in
18325   darwin*)
18326     if test -n "$STRIP" ; then
18327       striplib="$STRIP -x"
18328       old_striplib="$STRIP -S"
18329       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18330 $as_echo "yes" >&6; }
18331     else
18332       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18333 $as_echo "no" >&6; }
18334     fi
18335     ;;
18336   *)
18337     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18338 $as_echo "no" >&6; }
18339     ;;
18340   esac
18341 fi
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354   # Report which library types will actually be built
18355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18356 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18358 $as_echo "$can_build_shared" >&6; }
18359
18360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18361 $as_echo_n "checking whether to build shared libraries... " >&6; }
18362   test "$can_build_shared" = "no" && enable_shared=no
18363
18364   # On AIX, shared libraries and static libraries use the same namespace, and
18365   # are all built from PIC.
18366   case $host_os in
18367   aix3*)
18368     test "$enable_shared" = yes && enable_static=no
18369     if test -n "$RANLIB"; then
18370       archive_cmds="$archive_cmds~\$RANLIB \$lib"
18371       postinstall_cmds='$RANLIB $lib'
18372     fi
18373     ;;
18374
18375   aix[4-9]*)
18376     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18377       test "$enable_shared" = yes && enable_static=no
18378     fi
18379     ;;
18380   esac
18381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18382 $as_echo "$enable_shared" >&6; }
18383
18384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18385 $as_echo_n "checking whether to build static libraries... " >&6; }
18386   # Make sure either enable_shared or enable_static is yes.
18387   test "$enable_shared" = yes || enable_static=yes
18388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18389 $as_echo "$enable_static" >&6; }
18390
18391
18392
18393
18394 fi
18395 ac_ext=c
18396 ac_cpp='$CPP $CPPFLAGS'
18397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18400
18401 CC="$lt_save_CC"
18402
18403       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18404     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18405     (test "X$CXX" != "Xg++"))) ; then
18406   ac_ext=cpp
18407 ac_cpp='$CXXCPP $CPPFLAGS'
18408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18412 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18413 if test -z "$CXXCPP"; then
18414   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18415   $as_echo_n "(cached) " >&6
18416 else
18417       # Double quotes because CXXCPP needs to be expanded
18418     for CXXCPP in "$CXX -E" "/lib/cpp"
18419     do
18420       ac_preproc_ok=false
18421 for ac_cxx_preproc_warn_flag in '' yes
18422 do
18423   # Use a header file that comes with gcc, so configuring glibc
18424   # with a fresh cross-compiler works.
18425   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18426   # <limits.h> exists even on freestanding compilers.
18427   # On the NeXT, cc -E runs the code through the compiler's parser,
18428   # not just through cpp. "Syntax error" is here to catch this case.
18429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18430 /* end confdefs.h.  */
18431 #ifdef __STDC__
18432 # include <limits.h>
18433 #else
18434 # include <assert.h>
18435 #endif
18436                      Syntax error
18437 _ACEOF
18438 if ac_fn_cxx_try_cpp "$LINENO"; then :
18439
18440 else
18441   # Broken: fails on valid input.
18442 continue
18443 fi
18444 rm -f conftest.err conftest.$ac_ext
18445
18446   # OK, works on sane cases.  Now check whether nonexistent headers
18447   # can be detected and how.
18448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18449 /* end confdefs.h.  */
18450 #include <ac_nonexistent.h>
18451 _ACEOF
18452 if ac_fn_cxx_try_cpp "$LINENO"; then :
18453   # Broken: success on invalid input.
18454 continue
18455 else
18456   # Passes both tests.
18457 ac_preproc_ok=:
18458 break
18459 fi
18460 rm -f conftest.err conftest.$ac_ext
18461
18462 done
18463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18464 rm -f conftest.err conftest.$ac_ext
18465 if $ac_preproc_ok; then :
18466   break
18467 fi
18468
18469     done
18470     ac_cv_prog_CXXCPP=$CXXCPP
18471
18472 fi
18473   CXXCPP=$ac_cv_prog_CXXCPP
18474 else
18475   ac_cv_prog_CXXCPP=$CXXCPP
18476 fi
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18478 $as_echo "$CXXCPP" >&6; }
18479 ac_preproc_ok=false
18480 for ac_cxx_preproc_warn_flag in '' yes
18481 do
18482   # Use a header file that comes with gcc, so configuring glibc
18483   # with a fresh cross-compiler works.
18484   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18485   # <limits.h> exists even on freestanding compilers.
18486   # On the NeXT, cc -E runs the code through the compiler's parser,
18487   # not just through cpp. "Syntax error" is here to catch this case.
18488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18489 /* end confdefs.h.  */
18490 #ifdef __STDC__
18491 # include <limits.h>
18492 #else
18493 # include <assert.h>
18494 #endif
18495                      Syntax error
18496 _ACEOF
18497 if ac_fn_cxx_try_cpp "$LINENO"; then :
18498
18499 else
18500   # Broken: fails on valid input.
18501 continue
18502 fi
18503 rm -f conftest.err conftest.$ac_ext
18504
18505   # OK, works on sane cases.  Now check whether nonexistent headers
18506   # can be detected and how.
18507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18508 /* end confdefs.h.  */
18509 #include <ac_nonexistent.h>
18510 _ACEOF
18511 if ac_fn_cxx_try_cpp "$LINENO"; then :
18512   # Broken: success on invalid input.
18513 continue
18514 else
18515   # Passes both tests.
18516 ac_preproc_ok=:
18517 break
18518 fi
18519 rm -f conftest.err conftest.$ac_ext
18520
18521 done
18522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18523 rm -f conftest.err conftest.$ac_ext
18524 if $ac_preproc_ok; then :
18525
18526 else
18527   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18529 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18530 See \`config.log' for more details." "$LINENO" 5; }
18531 fi
18532
18533 ac_ext=c
18534 ac_cpp='$CPP $CPPFLAGS'
18535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18538
18539 else
18540   _lt_caught_CXX_error=yes
18541 fi
18542
18543 ac_ext=cpp
18544 ac_cpp='$CXXCPP $CPPFLAGS'
18545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18548
18549 archive_cmds_need_lc_CXX=no
18550 allow_undefined_flag_CXX=
18551 always_export_symbols_CXX=no
18552 archive_expsym_cmds_CXX=
18553 compiler_needs_object_CXX=no
18554 export_dynamic_flag_spec_CXX=
18555 hardcode_direct_CXX=no
18556 hardcode_direct_absolute_CXX=no
18557 hardcode_libdir_flag_spec_CXX=
18558 hardcode_libdir_flag_spec_ld_CXX=
18559 hardcode_libdir_separator_CXX=
18560 hardcode_minus_L_CXX=no
18561 hardcode_shlibpath_var_CXX=unsupported
18562 hardcode_automatic_CXX=no
18563 inherit_rpath_CXX=no
18564 module_cmds_CXX=
18565 module_expsym_cmds_CXX=
18566 link_all_deplibs_CXX=unknown
18567 old_archive_cmds_CXX=$old_archive_cmds
18568 reload_flag_CXX=$reload_flag
18569 reload_cmds_CXX=$reload_cmds
18570 no_undefined_flag_CXX=
18571 whole_archive_flag_spec_CXX=
18572 enable_shared_with_static_runtimes_CXX=no
18573
18574 # Source file extension for C++ test sources.
18575 ac_ext=cpp
18576
18577 # Object file extension for compiled C++ test sources.
18578 objext=o
18579 objext_CXX=$objext
18580
18581 # No sense in running all these tests if we already determined that
18582 # the CXX compiler isn't working.  Some variables (like enable_shared)
18583 # are currently assumed to apply to all compilers on this platform,
18584 # and will be corrupted by setting them based on a non-working compiler.
18585 if test "$_lt_caught_CXX_error" != yes; then
18586   # Code to be used in simple compile tests
18587   lt_simple_compile_test_code="int some_variable = 0;"
18588
18589   # Code to be used in simple link tests
18590   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18591
18592   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18593
18594
18595
18596
18597
18598
18599 # If no C compiler was specified, use CC.
18600 LTCC=${LTCC-"$CC"}
18601
18602 # If no C compiler flags were specified, use CFLAGS.
18603 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18604
18605 # Allow CC to be a program name with arguments.
18606 compiler=$CC
18607
18608
18609   # save warnings/boilerplate of simple test code
18610   ac_outfile=conftest.$ac_objext
18611 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18612 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18613 _lt_compiler_boilerplate=`cat conftest.err`
18614 $RM conftest*
18615
18616   ac_outfile=conftest.$ac_objext
18617 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18618 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18619 _lt_linker_boilerplate=`cat conftest.err`
18620 $RM -r conftest*
18621
18622
18623   # Allow CC to be a program name with arguments.
18624   lt_save_CC=$CC
18625   lt_save_LD=$LD
18626   lt_save_GCC=$GCC
18627   GCC=$GXX
18628   lt_save_with_gnu_ld=$with_gnu_ld
18629   lt_save_path_LD=$lt_cv_path_LD
18630   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18631     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18632   else
18633     $as_unset lt_cv_prog_gnu_ld
18634   fi
18635   if test -n "${lt_cv_path_LDCXX+set}"; then
18636     lt_cv_path_LD=$lt_cv_path_LDCXX
18637   else
18638     $as_unset lt_cv_path_LD
18639   fi
18640   test -z "${LDCXX+set}" || LD=$LDCXX
18641   CC=${CXX-"c++"}
18642   compiler=$CC
18643   compiler_CXX=$CC
18644   for cc_temp in $compiler""; do
18645   case $cc_temp in
18646     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18647     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18648     \-*) ;;
18649     *) break;;
18650   esac
18651 done
18652 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18653
18654
18655   if test -n "$compiler"; then
18656     # We don't want -fno-exception when compiling C++ code, so set the
18657     # no_builtin_flag separately
18658     if test "$GXX" = yes; then
18659       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18660     else
18661       lt_prog_compiler_no_builtin_flag_CXX=
18662     fi
18663
18664     if test "$GXX" = yes; then
18665       # Set up default GNU C++ configuration
18666
18667
18668
18669 # Check whether --with-gnu-ld was given.
18670 if test "${with_gnu_ld+set}" = set; then :
18671   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18672 else
18673   with_gnu_ld=no
18674 fi
18675
18676 ac_prog=ld
18677 if test "$GCC" = yes; then
18678   # Check if gcc -print-prog-name=ld gives a path.
18679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18680 $as_echo_n "checking for ld used by $CC... " >&6; }
18681   case $host in
18682   *-*-mingw*)
18683     # gcc leaves a trailing carriage return which upsets mingw
18684     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18685   *)
18686     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18687   esac
18688   case $ac_prog in
18689     # Accept absolute paths.
18690     [\\/]* | ?:[\\/]*)
18691       re_direlt='/[^/][^/]*/\.\./'
18692       # Canonicalize the pathname of ld
18693       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18694       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18695         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18696       done
18697       test -z "$LD" && LD="$ac_prog"
18698       ;;
18699   "")
18700     # If it fails, then pretend we aren't using GCC.
18701     ac_prog=ld
18702     ;;
18703   *)
18704     # If it is relative, then search for the first ld in PATH.
18705     with_gnu_ld=unknown
18706     ;;
18707   esac
18708 elif test "$with_gnu_ld" = yes; then
18709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18710 $as_echo_n "checking for GNU ld... " >&6; }
18711 else
18712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18713 $as_echo_n "checking for non-GNU ld... " >&6; }
18714 fi
18715 if test "${lt_cv_path_LD+set}" = set; then :
18716   $as_echo_n "(cached) " >&6
18717 else
18718   if test -z "$LD"; then
18719   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18720   for ac_dir in $PATH; do
18721     IFS="$lt_save_ifs"
18722     test -z "$ac_dir" && ac_dir=.
18723     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18724       lt_cv_path_LD="$ac_dir/$ac_prog"
18725       # Check to see if the program is GNU ld.  I'd rather use --version,
18726       # but apparently some variants of GNU ld only accept -v.
18727       # Break only if it was the GNU/non-GNU ld that we prefer.
18728       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18729       *GNU* | *'with BFD'*)
18730         test "$with_gnu_ld" != no && break
18731         ;;
18732       *)
18733         test "$with_gnu_ld" != yes && break
18734         ;;
18735       esac
18736     fi
18737   done
18738   IFS="$lt_save_ifs"
18739 else
18740   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18741 fi
18742 fi
18743
18744 LD="$lt_cv_path_LD"
18745 if test -n "$LD"; then
18746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18747 $as_echo "$LD" >&6; }
18748 else
18749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18750 $as_echo "no" >&6; }
18751 fi
18752 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18754 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18755 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18756   $as_echo_n "(cached) " >&6
18757 else
18758   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18759 case `$LD -v 2>&1 </dev/null` in
18760 *GNU* | *'with BFD'*)
18761   lt_cv_prog_gnu_ld=yes
18762   ;;
18763 *)
18764   lt_cv_prog_gnu_ld=no
18765   ;;
18766 esac
18767 fi
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18769 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18770 with_gnu_ld=$lt_cv_prog_gnu_ld
18771
18772
18773
18774
18775
18776
18777
18778       # Check if GNU C++ uses GNU ld as the underlying linker, since the
18779       # archiving commands below assume that GNU ld is being used.
18780       if test "$with_gnu_ld" = yes; then
18781         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18782         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'
18783
18784         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18785         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18786
18787         # If archive_cmds runs LD, not CC, wlarc should be empty
18788         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18789         #     investigate it a little bit more. (MM)
18790         wlarc='${wl}'
18791
18792         # ancient GNU ld didn't support --whole-archive et. al.
18793         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18794           $GREP 'no-whole-archive' > /dev/null; then
18795           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18796         else
18797           whole_archive_flag_spec_CXX=
18798         fi
18799       else
18800         with_gnu_ld=no
18801         wlarc=
18802
18803         # A generic and very simple default shared library creation
18804         # command for GNU C++ for the case where it uses the native
18805         # linker, instead of GNU ld.  If possible, this setting should
18806         # overridden to take advantage of the native linker features on
18807         # the platform it is being used on.
18808         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18809       fi
18810
18811       # Commands to make compiler produce verbose output that lists
18812       # what "hidden" libraries, object files and flags are used when
18813       # linking a shared library.
18814       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18815
18816     else
18817       GXX=no
18818       with_gnu_ld=no
18819       wlarc=
18820     fi
18821
18822     # PORTME: fill in a description of your system's C++ link characteristics
18823     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18824 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18825     ld_shlibs_CXX=yes
18826     case $host_os in
18827       aix3*)
18828         # FIXME: insert proper C++ library support
18829         ld_shlibs_CXX=no
18830         ;;
18831       aix[4-9]*)
18832         if test "$host_cpu" = ia64; then
18833           # On IA64, the linker does run time linking by default, so we don't
18834           # have to do anything special.
18835           aix_use_runtimelinking=no
18836           exp_sym_flag='-Bexport'
18837           no_entry_flag=""
18838         else
18839           aix_use_runtimelinking=no
18840
18841           # Test if we are trying to use run time linking or normal
18842           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18843           # need to do runtime linking.
18844           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18845             for ld_flag in $LDFLAGS; do
18846               case $ld_flag in
18847               *-brtl*)
18848                 aix_use_runtimelinking=yes
18849                 break
18850                 ;;
18851               esac
18852             done
18853             ;;
18854           esac
18855
18856           exp_sym_flag='-bexport'
18857           no_entry_flag='-bnoentry'
18858         fi
18859
18860         # When large executables or shared objects are built, AIX ld can
18861         # have problems creating the table of contents.  If linking a library
18862         # or program results in "error TOC overflow" add -mminimal-toc to
18863         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18864         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18865
18866         archive_cmds_CXX=''
18867         hardcode_direct_CXX=yes
18868         hardcode_direct_absolute_CXX=yes
18869         hardcode_libdir_separator_CXX=':'
18870         link_all_deplibs_CXX=yes
18871         file_list_spec_CXX='${wl}-f,'
18872
18873         if test "$GXX" = yes; then
18874           case $host_os in aix4.[012]|aix4.[012].*)
18875           # We only want to do this on AIX 4.2 and lower, the check
18876           # below for broken collect2 doesn't work under 4.3+
18877           collect2name=`${CC} -print-prog-name=collect2`
18878           if test -f "$collect2name" &&
18879              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18880           then
18881             # We have reworked collect2
18882             :
18883           else
18884             # We have old collect2
18885             hardcode_direct_CXX=unsupported
18886             # It fails to find uninstalled libraries when the uninstalled
18887             # path is not listed in the libpath.  Setting hardcode_minus_L
18888             # to unsupported forces relinking
18889             hardcode_minus_L_CXX=yes
18890             hardcode_libdir_flag_spec_CXX='-L$libdir'
18891             hardcode_libdir_separator_CXX=
18892           fi
18893           esac
18894           shared_flag='-shared'
18895           if test "$aix_use_runtimelinking" = yes; then
18896             shared_flag="$shared_flag "'${wl}-G'
18897           fi
18898         else
18899           # not using gcc
18900           if test "$host_cpu" = ia64; then
18901           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18902           # chokes on -Wl,-G. The following line is correct:
18903           shared_flag='-G'
18904           else
18905             if test "$aix_use_runtimelinking" = yes; then
18906               shared_flag='${wl}-G'
18907             else
18908               shared_flag='${wl}-bM:SRE'
18909             fi
18910           fi
18911         fi
18912
18913         export_dynamic_flag_spec_CXX='${wl}-bexpall'
18914         # It seems that -bexpall does not export symbols beginning with
18915         # underscore (_), so it is better to generate a list of symbols to
18916         # export.
18917         always_export_symbols_CXX=yes
18918         if test "$aix_use_runtimelinking" = yes; then
18919           # Warning - without using the other runtime loading flags (-brtl),
18920           # -berok will link without error, but may produce a broken library.
18921           allow_undefined_flag_CXX='-berok'
18922           # Determine the default libpath from the value encoded in an empty
18923           # executable.
18924           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18925 /* end confdefs.h.  */
18926
18927 int
18928 main ()
18929 {
18930
18931   ;
18932   return 0;
18933 }
18934 _ACEOF
18935 if ac_fn_cxx_try_link "$LINENO"; then :
18936
18937 lt_aix_libpath_sed='
18938     /Import File Strings/,/^$/ {
18939         /^0/ {
18940             s/^0  *\(.*\)$/\1/
18941             p
18942         }
18943     }'
18944 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18945 # Check for a 64-bit object if we didn't find anything.
18946 if test -z "$aix_libpath"; then
18947   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18948 fi
18949 fi
18950 rm -f core conftest.err conftest.$ac_objext \
18951     conftest$ac_exeext conftest.$ac_ext
18952 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18953
18954           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18955
18956           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"
18957         else
18958           if test "$host_cpu" = ia64; then
18959             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18960             allow_undefined_flag_CXX="-z nodefs"
18961             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"
18962           else
18963             # Determine the default libpath from the value encoded in an
18964             # empty executable.
18965             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18966 /* end confdefs.h.  */
18967
18968 int
18969 main ()
18970 {
18971
18972   ;
18973   return 0;
18974 }
18975 _ACEOF
18976 if ac_fn_cxx_try_link "$LINENO"; then :
18977
18978 lt_aix_libpath_sed='
18979     /Import File Strings/,/^$/ {
18980         /^0/ {
18981             s/^0  *\(.*\)$/\1/
18982             p
18983         }
18984     }'
18985 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18986 # Check for a 64-bit object if we didn't find anything.
18987 if test -z "$aix_libpath"; then
18988   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18989 fi
18990 fi
18991 rm -f core conftest.err conftest.$ac_objext \
18992     conftest$ac_exeext conftest.$ac_ext
18993 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18994
18995             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18996             # Warning - without using the other run time loading flags,
18997             # -berok will link without error, but may produce a broken library.
18998             no_undefined_flag_CXX=' ${wl}-bernotok'
18999             allow_undefined_flag_CXX=' ${wl}-berok'
19000             if test "$with_gnu_ld" = yes; then
19001               # We only use this code for GNU lds that support --whole-archive.
19002               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19003             else
19004               # Exported symbols can be pulled into shared objects from archives
19005               whole_archive_flag_spec_CXX='$convenience'
19006             fi
19007             archive_cmds_need_lc_CXX=yes
19008             # This is similar to how AIX traditionally builds its shared
19009             # libraries.
19010             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'
19011           fi
19012         fi
19013         ;;
19014
19015       beos*)
19016         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19017           allow_undefined_flag_CXX=unsupported
19018           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19019           # support --undefined.  This deserves some investigation.  FIXME
19020           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19021         else
19022           ld_shlibs_CXX=no
19023         fi
19024         ;;
19025
19026       chorus*)
19027         case $cc_basename in
19028           *)
19029           # FIXME: insert proper C++ library support
19030           ld_shlibs_CXX=no
19031           ;;
19032         esac
19033         ;;
19034
19035       cygwin* | mingw* | pw32* | cegcc*)
19036         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19037         # as there is no search path for DLLs.
19038         hardcode_libdir_flag_spec_CXX='-L$libdir'
19039         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
19040         allow_undefined_flag_CXX=unsupported
19041         always_export_symbols_CXX=no
19042         enable_shared_with_static_runtimes_CXX=yes
19043
19044         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19045           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'
19046           # If the export-symbols file already is a .def file (1st line
19047           # is EXPORTS), use it as is; otherwise, prepend...
19048           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19049             cp $export_symbols $output_objdir/$soname.def;
19050           else
19051             echo EXPORTS > $output_objdir/$soname.def;
19052             cat $export_symbols >> $output_objdir/$soname.def;
19053           fi~
19054           $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'
19055         else
19056           ld_shlibs_CXX=no
19057         fi
19058         ;;
19059       darwin* | rhapsody*)
19060
19061
19062   archive_cmds_need_lc_CXX=no
19063   hardcode_direct_CXX=no
19064   hardcode_automatic_CXX=yes
19065   hardcode_shlibpath_var_CXX=unsupported
19066   if test "$lt_cv_ld_force_load" = "yes"; then
19067     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\"`'
19068   else
19069     whole_archive_flag_spec_CXX=''
19070   fi
19071   link_all_deplibs_CXX=yes
19072   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19073   case $cc_basename in
19074      ifort*) _lt_dar_can_shared=yes ;;
19075      *) _lt_dar_can_shared=$GCC ;;
19076   esac
19077   if test "$_lt_dar_can_shared" = "yes"; then
19078     output_verbose_link_cmd=func_echo_all
19079     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}"
19080     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19081     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}"
19082     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}"
19083        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19084       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}"
19085       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}"
19086     fi
19087
19088   else
19089   ld_shlibs_CXX=no
19090   fi
19091
19092         ;;
19093
19094       dgux*)
19095         case $cc_basename in
19096           ec++*)
19097             # FIXME: insert proper C++ library support
19098             ld_shlibs_CXX=no
19099             ;;
19100           ghcx*)
19101             # Green Hills C++ Compiler
19102             # FIXME: insert proper C++ library support
19103             ld_shlibs_CXX=no
19104             ;;
19105           *)
19106             # FIXME: insert proper C++ library support
19107             ld_shlibs_CXX=no
19108             ;;
19109         esac
19110         ;;
19111
19112       freebsd2.*)
19113         # C++ shared libraries reported to be fairly broken before
19114         # switch to ELF
19115         ld_shlibs_CXX=no
19116         ;;
19117
19118       freebsd-elf*)
19119         archive_cmds_need_lc_CXX=no
19120         ;;
19121
19122       freebsd* | dragonfly*)
19123         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19124         # conventions
19125         ld_shlibs_CXX=yes
19126         ;;
19127
19128       gnu*)
19129         ;;
19130
19131       haiku*)
19132         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19133         link_all_deplibs_CXX=yes
19134         ;;
19135
19136       hpux9*)
19137         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19138         hardcode_libdir_separator_CXX=:
19139         export_dynamic_flag_spec_CXX='${wl}-E'
19140         hardcode_direct_CXX=yes
19141         hardcode_minus_L_CXX=yes # Not in the search PATH,
19142                                              # but as the default
19143                                              # location of the library.
19144
19145         case $cc_basename in
19146           CC*)
19147             # FIXME: insert proper C++ library support
19148             ld_shlibs_CXX=no
19149             ;;
19150           aCC*)
19151             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'
19152             # Commands to make compiler produce verbose output that lists
19153             # what "hidden" libraries, object files and flags are used when
19154             # linking a shared library.
19155             #
19156             # There doesn't appear to be a way to prevent this compiler from
19157             # explicitly linking system object files so we need to strip them
19158             # from the output so that they don't get included in the library
19159             # dependencies.
19160             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"'
19161             ;;
19162           *)
19163             if test "$GXX" = yes; then
19164               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'
19165             else
19166               # FIXME: insert proper C++ library support
19167               ld_shlibs_CXX=no
19168             fi
19169             ;;
19170         esac
19171         ;;
19172
19173       hpux10*|hpux11*)
19174         if test $with_gnu_ld = no; then
19175           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19176           hardcode_libdir_separator_CXX=:
19177
19178           case $host_cpu in
19179             hppa*64*|ia64*)
19180               ;;
19181             *)
19182               export_dynamic_flag_spec_CXX='${wl}-E'
19183               ;;
19184           esac
19185         fi
19186         case $host_cpu in
19187           hppa*64*|ia64*)
19188             hardcode_direct_CXX=no
19189             hardcode_shlibpath_var_CXX=no
19190             ;;
19191           *)
19192             hardcode_direct_CXX=yes
19193             hardcode_direct_absolute_CXX=yes
19194             hardcode_minus_L_CXX=yes # Not in the search PATH,
19195                                                  # but as the default
19196                                                  # location of the library.
19197             ;;
19198         esac
19199
19200         case $cc_basename in
19201           CC*)
19202             # FIXME: insert proper C++ library support
19203             ld_shlibs_CXX=no
19204             ;;
19205           aCC*)
19206             case $host_cpu in
19207               hppa*64*)
19208                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19209                 ;;
19210               ia64*)
19211                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19212                 ;;
19213               *)
19214                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19215                 ;;
19216             esac
19217             # Commands to make compiler produce verbose output that lists
19218             # what "hidden" libraries, object files and flags are used when
19219             # linking a shared library.
19220             #
19221             # There doesn't appear to be a way to prevent this compiler from
19222             # explicitly linking system object files so we need to strip them
19223             # from the output so that they don't get included in the library
19224             # dependencies.
19225             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"'
19226             ;;
19227           *)
19228             if test "$GXX" = yes; then
19229               if test $with_gnu_ld = no; then
19230                 case $host_cpu in
19231                   hppa*64*)
19232                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19233                     ;;
19234                   ia64*)
19235                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19236                     ;;
19237                   *)
19238                     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'
19239                     ;;
19240                 esac
19241               fi
19242             else
19243               # FIXME: insert proper C++ library support
19244               ld_shlibs_CXX=no
19245             fi
19246             ;;
19247         esac
19248         ;;
19249
19250       interix[3-9]*)
19251         hardcode_direct_CXX=no
19252         hardcode_shlibpath_var_CXX=no
19253         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19254         export_dynamic_flag_spec_CXX='${wl}-E'
19255         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19256         # Instead, shared libraries are loaded at an image base (0x10000000 by
19257         # default) and relocated if they conflict, which is a slow very memory
19258         # consuming and fragmenting process.  To avoid this, we pick a random,
19259         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19260         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19261         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'
19262         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'
19263         ;;
19264       irix5* | irix6*)
19265         case $cc_basename in
19266           CC*)
19267             # SGI C++
19268             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'
19269
19270             # Archives containing C++ object files must be created using
19271             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19272             # necessary to make sure instantiated templates are included
19273             # in the archive.
19274             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19275             ;;
19276           *)
19277             if test "$GXX" = yes; then
19278               if test "$with_gnu_ld" = no; then
19279                 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'
19280               else
19281                 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'
19282               fi
19283             fi
19284             link_all_deplibs_CXX=yes
19285             ;;
19286         esac
19287         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19288         hardcode_libdir_separator_CXX=:
19289         inherit_rpath_CXX=yes
19290         ;;
19291
19292       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19293         case $cc_basename in
19294           KCC*)
19295             # Kuck and Associates, Inc. (KAI) C++ Compiler
19296
19297             # KCC will only create a shared library if the output file
19298             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19299             # to its proper name (with version) after linking.
19300             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'
19301             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'
19302             # Commands to make compiler produce verbose output that lists
19303             # what "hidden" libraries, object files and flags are used when
19304             # linking a shared library.
19305             #
19306             # There doesn't appear to be a way to prevent this compiler from
19307             # explicitly linking system object files so we need to strip them
19308             # from the output so that they don't get included in the library
19309             # dependencies.
19310             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"'
19311
19312             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19313             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19314
19315             # Archives containing C++ object files must be created using
19316             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19317             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19318             ;;
19319           icpc* | ecpc* )
19320             # Intel C++
19321             with_gnu_ld=yes
19322             # version 8.0 and above of icpc choke on multiply defined symbols
19323             # if we add $predep_objects and $postdep_objects, however 7.1 and
19324             # earlier do not add the objects themselves.
19325             case `$CC -V 2>&1` in
19326               *"Version 7."*)
19327                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19328                 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'
19329                 ;;
19330               *)  # Version 8.0 or newer
19331                 tmp_idyn=
19332                 case $host_cpu in
19333                   ia64*) tmp_idyn=' -i_dynamic';;
19334                 esac
19335                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19336                 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'
19337                 ;;
19338             esac
19339             archive_cmds_need_lc_CXX=no
19340             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19341             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19342             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19343             ;;
19344           pgCC* | pgcpp*)
19345             # Portland Group C++ compiler
19346             case `$CC -V` in
19347             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19348               prelink_cmds_CXX='tpldir=Template.dir~
19349                 rm -rf $tpldir~
19350                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19351                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19352               old_archive_cmds_CXX='tpldir=Template.dir~
19353                 rm -rf $tpldir~
19354                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19355                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19356                 $RANLIB $oldlib'
19357               archive_cmds_CXX='tpldir=Template.dir~
19358                 rm -rf $tpldir~
19359                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19360                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19361               archive_expsym_cmds_CXX='tpldir=Template.dir~
19362                 rm -rf $tpldir~
19363                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19364                 $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'
19365               ;;
19366             *) # Version 6 and above use weak symbols
19367               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19368               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'
19369               ;;
19370             esac
19371
19372             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19373             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19374             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'
19375             ;;
19376           cxx*)
19377             # Compaq C++
19378             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19379             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'
19380
19381             runpath_var=LD_RUN_PATH
19382             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19383             hardcode_libdir_separator_CXX=:
19384
19385             # Commands to make compiler produce verbose output that lists
19386             # what "hidden" libraries, object files and flags are used when
19387             # linking a shared library.
19388             #
19389             # There doesn't appear to be a way to prevent this compiler from
19390             # explicitly linking system object files so we need to strip them
19391             # from the output so that they don't get included in the library
19392             # dependencies.
19393             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'
19394             ;;
19395           xl* | mpixl* | bgxl*)
19396             # IBM XL 8.0 on PPC, with GNU ld
19397             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19398             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19399             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19400             if test "x$supports_anon_versioning" = xyes; then
19401               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19402                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19403                 echo "local: *; };" >> $output_objdir/$libname.ver~
19404                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19405             fi
19406             ;;
19407           *)
19408             case `$CC -V 2>&1 | sed 5q` in
19409             *Sun\ C*)
19410               # Sun C++ 5.9
19411               no_undefined_flag_CXX=' -zdefs'
19412               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19413               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'
19414               hardcode_libdir_flag_spec_CXX='-R$libdir'
19415               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'
19416               compiler_needs_object_CXX=yes
19417
19418               # Not sure whether something based on
19419               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19420               # would be better.
19421               output_verbose_link_cmd='func_echo_all'
19422
19423               # Archives containing C++ object files must be created using
19424               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19425               # necessary to make sure instantiated templates are included
19426               # in the archive.
19427               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19428               ;;
19429             esac
19430             ;;
19431         esac
19432         ;;
19433
19434       lynxos*)
19435         # FIXME: insert proper C++ library support
19436         ld_shlibs_CXX=no
19437         ;;
19438
19439       m88k*)
19440         # FIXME: insert proper C++ library support
19441         ld_shlibs_CXX=no
19442         ;;
19443
19444       mvs*)
19445         case $cc_basename in
19446           cxx*)
19447             # FIXME: insert proper C++ library support
19448             ld_shlibs_CXX=no
19449             ;;
19450           *)
19451             # FIXME: insert proper C++ library support
19452             ld_shlibs_CXX=no
19453             ;;
19454         esac
19455         ;;
19456
19457       netbsd*)
19458         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19459           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19460           wlarc=
19461           hardcode_libdir_flag_spec_CXX='-R$libdir'
19462           hardcode_direct_CXX=yes
19463           hardcode_shlibpath_var_CXX=no
19464         fi
19465         # Workaround some broken pre-1.5 toolchains
19466         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19467         ;;
19468
19469       *nto* | *qnx*)
19470         ld_shlibs_CXX=yes
19471         ;;
19472
19473       openbsd2*)
19474         # C++ shared libraries are fairly broken
19475         ld_shlibs_CXX=no
19476         ;;
19477
19478       openbsd*)
19479         if test -f /usr/libexec/ld.so; then
19480           hardcode_direct_CXX=yes
19481           hardcode_shlibpath_var_CXX=no
19482           hardcode_direct_absolute_CXX=yes
19483           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19484           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19485           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19486             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19487             export_dynamic_flag_spec_CXX='${wl}-E'
19488             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19489           fi
19490           output_verbose_link_cmd=func_echo_all
19491         else
19492           ld_shlibs_CXX=no
19493         fi
19494         ;;
19495
19496       osf3* | osf4* | osf5*)
19497         case $cc_basename in
19498           KCC*)
19499             # Kuck and Associates, Inc. (KAI) C++ Compiler
19500
19501             # KCC will only create a shared library if the output file
19502             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19503             # to its proper name (with version) after linking.
19504             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'
19505
19506             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19507             hardcode_libdir_separator_CXX=:
19508
19509             # Archives containing C++ object files must be created using
19510             # the KAI C++ compiler.
19511             case $host in
19512               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19513               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19514             esac
19515             ;;
19516           RCC*)
19517             # Rational C++ 2.4.1
19518             # FIXME: insert proper C++ library support
19519             ld_shlibs_CXX=no
19520             ;;
19521           cxx*)
19522             case $host in
19523               osf3*)
19524                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19525                 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'
19526                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19527                 ;;
19528               *)
19529                 allow_undefined_flag_CXX=' -expect_unresolved \*'
19530                 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'
19531                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19532                   echo "-hidden">> $lib.exp~
19533                   $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~
19534                   $RM $lib.exp'
19535                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19536                 ;;
19537             esac
19538
19539             hardcode_libdir_separator_CXX=:
19540
19541             # Commands to make compiler produce verbose output that lists
19542             # what "hidden" libraries, object files and flags are used when
19543             # linking a shared library.
19544             #
19545             # There doesn't appear to be a way to prevent this compiler from
19546             # explicitly linking system object files so we need to strip them
19547             # from the output so that they don't get included in the library
19548             # dependencies.
19549             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"'
19550             ;;
19551           *)
19552             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19553               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19554               case $host in
19555                 osf3*)
19556                   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'
19557                   ;;
19558                 *)
19559                   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'
19560                   ;;
19561               esac
19562
19563               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19564               hardcode_libdir_separator_CXX=:
19565
19566               # Commands to make compiler produce verbose output that lists
19567               # what "hidden" libraries, object files and flags are used when
19568               # linking a shared library.
19569               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19570
19571             else
19572               # FIXME: insert proper C++ library support
19573               ld_shlibs_CXX=no
19574             fi
19575             ;;
19576         esac
19577         ;;
19578
19579       psos*)
19580         # FIXME: insert proper C++ library support
19581         ld_shlibs_CXX=no
19582         ;;
19583
19584       sunos4*)
19585         case $cc_basename in
19586           CC*)
19587             # Sun C++ 4.x
19588             # FIXME: insert proper C++ library support
19589             ld_shlibs_CXX=no
19590             ;;
19591           lcc*)
19592             # Lucid
19593             # FIXME: insert proper C++ library support
19594             ld_shlibs_CXX=no
19595             ;;
19596           *)
19597             # FIXME: insert proper C++ library support
19598             ld_shlibs_CXX=no
19599             ;;
19600         esac
19601         ;;
19602
19603       solaris*)
19604         case $cc_basename in
19605           CC*)
19606             # Sun C++ 4.2, 5.x and Centerline C++
19607             archive_cmds_need_lc_CXX=yes
19608             no_undefined_flag_CXX=' -zdefs'
19609             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19610             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19611               $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'
19612
19613             hardcode_libdir_flag_spec_CXX='-R$libdir'
19614             hardcode_shlibpath_var_CXX=no
19615             case $host_os in
19616               solaris2.[0-5] | solaris2.[0-5].*) ;;
19617               *)
19618                 # The compiler driver will combine and reorder linker options,
19619                 # but understands `-z linker_flag'.
19620                 # Supported since Solaris 2.6 (maybe 2.5.1?)
19621                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19622                 ;;
19623             esac
19624             link_all_deplibs_CXX=yes
19625
19626             output_verbose_link_cmd='func_echo_all'
19627
19628             # Archives containing C++ object files must be created using
19629             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19630             # necessary to make sure instantiated templates are included
19631             # in the archive.
19632             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19633             ;;
19634           gcx*)
19635             # Green Hills C++ Compiler
19636             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19637
19638             # The C++ compiler must be used to create the archive.
19639             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19640             ;;
19641           *)
19642             # GNU C++ compiler with Solaris linker
19643             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19644               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19645               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19646                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19647                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19648                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19649
19650                 # Commands to make compiler produce verbose output that lists
19651                 # what "hidden" libraries, object files and flags are used when
19652                 # linking a shared library.
19653                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19654               else
19655                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19656                 # platform.
19657                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19658                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19659                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19660
19661                 # Commands to make compiler produce verbose output that lists
19662                 # what "hidden" libraries, object files and flags are used when
19663                 # linking a shared library.
19664                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19665               fi
19666
19667               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19668               case $host_os in
19669                 solaris2.[0-5] | solaris2.[0-5].*) ;;
19670                 *)
19671                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19672                   ;;
19673               esac
19674             fi
19675             ;;
19676         esac
19677         ;;
19678
19679     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19680       no_undefined_flag_CXX='${wl}-z,text'
19681       archive_cmds_need_lc_CXX=no
19682       hardcode_shlibpath_var_CXX=no
19683       runpath_var='LD_RUN_PATH'
19684
19685       case $cc_basename in
19686         CC*)
19687           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19688           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19689           ;;
19690         *)
19691           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19692           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19693           ;;
19694       esac
19695       ;;
19696
19697       sysv5* | sco3.2v5* | sco5v6*)
19698         # Note: We can NOT use -z defs as we might desire, because we do not
19699         # link with -lc, and that would cause any symbols used from libc to
19700         # always be unresolved, which means just about no library would
19701         # ever link correctly.  If we're not using GNU ld we use -z text
19702         # though, which does catch some bad symbols but isn't as heavy-handed
19703         # as -z defs.
19704         no_undefined_flag_CXX='${wl}-z,text'
19705         allow_undefined_flag_CXX='${wl}-z,nodefs'
19706         archive_cmds_need_lc_CXX=no
19707         hardcode_shlibpath_var_CXX=no
19708         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19709         hardcode_libdir_separator_CXX=':'
19710         link_all_deplibs_CXX=yes
19711         export_dynamic_flag_spec_CXX='${wl}-Bexport'
19712         runpath_var='LD_RUN_PATH'
19713
19714         case $cc_basename in
19715           CC*)
19716             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19717             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19718             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19719               '"$old_archive_cmds_CXX"
19720             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19721               '"$reload_cmds_CXX"
19722             ;;
19723           *)
19724             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19725             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19726             ;;
19727         esac
19728       ;;
19729
19730       tandem*)
19731         case $cc_basename in
19732           NCC*)
19733             # NonStop-UX NCC 3.20
19734             # FIXME: insert proper C++ library support
19735             ld_shlibs_CXX=no
19736             ;;
19737           *)
19738             # FIXME: insert proper C++ library support
19739             ld_shlibs_CXX=no
19740             ;;
19741         esac
19742         ;;
19743
19744       vxworks*)
19745         # FIXME: insert proper C++ library support
19746         ld_shlibs_CXX=no
19747         ;;
19748
19749       *)
19750         # FIXME: insert proper C++ library support
19751         ld_shlibs_CXX=no
19752         ;;
19753     esac
19754
19755     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19756 $as_echo "$ld_shlibs_CXX" >&6; }
19757     test "$ld_shlibs_CXX" = no && can_build_shared=no
19758
19759     GCC_CXX="$GXX"
19760     LD_CXX="$LD"
19761
19762     ## CAVEAT EMPTOR:
19763     ## There is no encapsulation within the following macros, do not change
19764     ## the running order or otherwise move them around unless you know exactly
19765     ## what you are doing...
19766     # Dependencies to place before and after the object being linked:
19767 predep_objects_CXX=
19768 postdep_objects_CXX=
19769 predeps_CXX=
19770 postdeps_CXX=
19771 compiler_lib_search_path_CXX=
19772
19773 cat > conftest.$ac_ext <<_LT_EOF
19774 class Foo
19775 {
19776 public:
19777   Foo (void) { a = 0; }
19778 private:
19779   int a;
19780 };
19781 _LT_EOF
19782
19783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19784   (eval $ac_compile) 2>&5
19785   ac_status=$?
19786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19787   test $ac_status = 0; }; then
19788   # Parse the compiler output and extract the necessary
19789   # objects, libraries and library flags.
19790
19791   # Sentinel used to keep track of whether or not we are before
19792   # the conftest object file.
19793   pre_test_object_deps_done=no
19794
19795   for p in `eval "$output_verbose_link_cmd"`; do
19796     case $p in
19797
19798     -L* | -R* | -l*)
19799        # Some compilers place space between "-{L,R}" and the path.
19800        # Remove the space.
19801        if test $p = "-L" ||
19802           test $p = "-R"; then
19803          prev=$p
19804          continue
19805        else
19806          prev=
19807        fi
19808
19809        if test "$pre_test_object_deps_done" = no; then
19810          case $p in
19811          -L* | -R*)
19812            # Internal compiler library paths should come after those
19813            # provided the user.  The postdeps already come after the
19814            # user supplied libs so there is no need to process them.
19815            if test -z "$compiler_lib_search_path_CXX"; then
19816              compiler_lib_search_path_CXX="${prev}${p}"
19817            else
19818              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19819            fi
19820            ;;
19821          # The "-l" case would never come before the object being
19822          # linked, so don't bother handling this case.
19823          esac
19824        else
19825          if test -z "$postdeps_CXX"; then
19826            postdeps_CXX="${prev}${p}"
19827          else
19828            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19829          fi
19830        fi
19831        ;;
19832
19833     *.$objext)
19834        # This assumes that the test object file only shows up
19835        # once in the compiler output.
19836        if test "$p" = "conftest.$objext"; then
19837          pre_test_object_deps_done=yes
19838          continue
19839        fi
19840
19841        if test "$pre_test_object_deps_done" = no; then
19842          if test -z "$predep_objects_CXX"; then
19843            predep_objects_CXX="$p"
19844          else
19845            predep_objects_CXX="$predep_objects_CXX $p"
19846          fi
19847        else
19848          if test -z "$postdep_objects_CXX"; then
19849            postdep_objects_CXX="$p"
19850          else
19851            postdep_objects_CXX="$postdep_objects_CXX $p"
19852          fi
19853        fi
19854        ;;
19855
19856     *) ;; # Ignore the rest.
19857
19858     esac
19859   done
19860
19861   # Clean up.
19862   rm -f a.out a.exe
19863 else
19864   echo "libtool.m4: error: problem compiling CXX test program"
19865 fi
19866
19867 $RM -f confest.$objext
19868
19869 # PORTME: override above test on systems where it is broken
19870 case $host_os in
19871 interix[3-9]*)
19872   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19873   # hack all around it, let's just trust "g++" to DTRT.
19874   predep_objects_CXX=
19875   postdep_objects_CXX=
19876   postdeps_CXX=
19877   ;;
19878
19879 linux*)
19880   case `$CC -V 2>&1 | sed 5q` in
19881   *Sun\ C*)
19882     # Sun C++ 5.9
19883
19884     # The more standards-conforming stlport4 library is
19885     # incompatible with the Cstd library. Avoid specifying
19886     # it if it's in CXXFLAGS. Ignore libCrun as
19887     # -library=stlport4 depends on it.
19888     case " $CXX $CXXFLAGS " in
19889     *" -library=stlport4 "*)
19890       solaris_use_stlport4=yes
19891       ;;
19892     esac
19893
19894     if test "$solaris_use_stlport4" != yes; then
19895       postdeps_CXX='-library=Cstd -library=Crun'
19896     fi
19897     ;;
19898   esac
19899   ;;
19900
19901 solaris*)
19902   case $cc_basename in
19903   CC*)
19904     # The more standards-conforming stlport4 library is
19905     # incompatible with the Cstd library. Avoid specifying
19906     # it if it's in CXXFLAGS. Ignore libCrun as
19907     # -library=stlport4 depends on it.
19908     case " $CXX $CXXFLAGS " in
19909     *" -library=stlport4 "*)
19910       solaris_use_stlport4=yes
19911       ;;
19912     esac
19913
19914     # Adding this requires a known-good setup of shared libraries for
19915     # Sun compiler versions before 5.6, else PIC objects from an old
19916     # archive will be linked into the output, leading to subtle bugs.
19917     if test "$solaris_use_stlport4" != yes; then
19918       postdeps_CXX='-library=Cstd -library=Crun'
19919     fi
19920     ;;
19921   esac
19922   ;;
19923 esac
19924
19925
19926 case " $postdeps_CXX " in
19927 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19928 esac
19929  compiler_lib_search_dirs_CXX=
19930 if test -n "${compiler_lib_search_path_CXX}"; then
19931  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19932 fi
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964     lt_prog_compiler_wl_CXX=
19965 lt_prog_compiler_pic_CXX=
19966 lt_prog_compiler_static_CXX=
19967
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19969 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19970
19971   # C++ specific cases for pic, static, wl, etc.
19972   if test "$GXX" = yes; then
19973     lt_prog_compiler_wl_CXX='-Wl,'
19974     lt_prog_compiler_static_CXX='-static'
19975
19976     case $host_os in
19977     aix*)
19978       # All AIX code is PIC.
19979       if test "$host_cpu" = ia64; then
19980         # AIX 5 now supports IA64 processor
19981         lt_prog_compiler_static_CXX='-Bstatic'
19982       fi
19983       ;;
19984
19985     amigaos*)
19986       case $host_cpu in
19987       powerpc)
19988             # see comment about AmigaOS4 .so support
19989             lt_prog_compiler_pic_CXX='-fPIC'
19990         ;;
19991       m68k)
19992             # FIXME: we need at least 68020 code to build shared libraries, but
19993             # adding the `-m68020' flag to GCC prevents building anything better,
19994             # like `-m68040'.
19995             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19996         ;;
19997       esac
19998       ;;
19999
20000     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20001       # PIC is the default for these OSes.
20002       ;;
20003     mingw* | cygwin* | os2* | pw32* | cegcc*)
20004       # This hack is so that the source file can tell whether it is being
20005       # built for inclusion in a dll (and should export symbols for example).
20006       # Although the cygwin gcc ignores -fPIC, still need this for old-style
20007       # (--disable-auto-import) libraries
20008       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20009       ;;
20010     darwin* | rhapsody*)
20011       # PIC is the default on this platform
20012       # Common symbols not allowed in MH_DYLIB files
20013       lt_prog_compiler_pic_CXX='-fno-common'
20014       ;;
20015     *djgpp*)
20016       # DJGPP does not support shared libraries at all
20017       lt_prog_compiler_pic_CXX=
20018       ;;
20019     haiku*)
20020       # PIC is the default for Haiku.
20021       # The "-static" flag exists, but is broken.
20022       lt_prog_compiler_static_CXX=
20023       ;;
20024     interix[3-9]*)
20025       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20026       # Instead, we relocate shared libraries at runtime.
20027       ;;
20028     sysv4*MP*)
20029       if test -d /usr/nec; then
20030         lt_prog_compiler_pic_CXX=-Kconform_pic
20031       fi
20032       ;;
20033     hpux*)
20034       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20035       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
20036       # sets the default TLS model and affects inlining.
20037       case $host_cpu in
20038       hppa*64*)
20039         ;;
20040       *)
20041         lt_prog_compiler_pic_CXX='-fPIC'
20042         ;;
20043       esac
20044       ;;
20045     *qnx* | *nto*)
20046       # QNX uses GNU C++, but need to define -shared option too, otherwise
20047       # it will coredump.
20048       lt_prog_compiler_pic_CXX='-fPIC -shared'
20049       ;;
20050     *)
20051       lt_prog_compiler_pic_CXX='-fPIC'
20052       ;;
20053     esac
20054   else
20055     case $host_os in
20056       aix[4-9]*)
20057         # All AIX code is PIC.
20058         if test "$host_cpu" = ia64; then
20059           # AIX 5 now supports IA64 processor
20060           lt_prog_compiler_static_CXX='-Bstatic'
20061         else
20062           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20063         fi
20064         ;;
20065       chorus*)
20066         case $cc_basename in
20067         cxch68*)
20068           # Green Hills C++ Compiler
20069           # _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"
20070           ;;
20071         esac
20072         ;;
20073       dgux*)
20074         case $cc_basename in
20075           ec++*)
20076             lt_prog_compiler_pic_CXX='-KPIC'
20077             ;;
20078           ghcx*)
20079             # Green Hills C++ Compiler
20080             lt_prog_compiler_pic_CXX='-pic'
20081             ;;
20082           *)
20083             ;;
20084         esac
20085         ;;
20086       freebsd* | dragonfly*)
20087         # FreeBSD uses GNU C++
20088         ;;
20089       hpux9* | hpux10* | hpux11*)
20090         case $cc_basename in
20091           CC*)
20092             lt_prog_compiler_wl_CXX='-Wl,'
20093             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20094             if test "$host_cpu" != ia64; then
20095               lt_prog_compiler_pic_CXX='+Z'
20096             fi
20097             ;;
20098           aCC*)
20099             lt_prog_compiler_wl_CXX='-Wl,'
20100             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20101             case $host_cpu in
20102             hppa*64*|ia64*)
20103               # +Z the default
20104               ;;
20105             *)
20106               lt_prog_compiler_pic_CXX='+Z'
20107               ;;
20108             esac
20109             ;;
20110           *)
20111             ;;
20112         esac
20113         ;;
20114       interix*)
20115         # This is c89, which is MS Visual C++ (no shared libs)
20116         # Anyone wants to do a port?
20117         ;;
20118       irix5* | irix6* | nonstopux*)
20119         case $cc_basename in
20120           CC*)
20121             lt_prog_compiler_wl_CXX='-Wl,'
20122             lt_prog_compiler_static_CXX='-non_shared'
20123             # CC pic flag -KPIC is the default.
20124             ;;
20125           *)
20126             ;;
20127         esac
20128         ;;
20129       linux* | k*bsd*-gnu | kopensolaris*-gnu)
20130         case $cc_basename in
20131           KCC*)
20132             # KAI C++ Compiler
20133             lt_prog_compiler_wl_CXX='--backend -Wl,'
20134             lt_prog_compiler_pic_CXX='-fPIC'
20135             ;;
20136           ecpc* )
20137             # old Intel C++ for x86_64 which still supported -KPIC.
20138             lt_prog_compiler_wl_CXX='-Wl,'
20139             lt_prog_compiler_pic_CXX='-KPIC'
20140             lt_prog_compiler_static_CXX='-static'
20141             ;;
20142           icpc* )
20143             # Intel C++, used to be incompatible with GCC.
20144             # ICC 10 doesn't accept -KPIC any more.
20145             lt_prog_compiler_wl_CXX='-Wl,'
20146             lt_prog_compiler_pic_CXX='-fPIC'
20147             lt_prog_compiler_static_CXX='-static'
20148             ;;
20149           pgCC* | pgcpp*)
20150             # Portland Group C++ compiler
20151             lt_prog_compiler_wl_CXX='-Wl,'
20152             lt_prog_compiler_pic_CXX='-fpic'
20153             lt_prog_compiler_static_CXX='-Bstatic'
20154             ;;
20155           cxx*)
20156             # Compaq C++
20157             # Make sure the PIC flag is empty.  It appears that all Alpha
20158             # Linux and Compaq Tru64 Unix objects are PIC.
20159             lt_prog_compiler_pic_CXX=
20160             lt_prog_compiler_static_CXX='-non_shared'
20161             ;;
20162           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20163             # IBM XL 8.0, 9.0 on PPC and BlueGene
20164             lt_prog_compiler_wl_CXX='-Wl,'
20165             lt_prog_compiler_pic_CXX='-qpic'
20166             lt_prog_compiler_static_CXX='-qstaticlink'
20167             ;;
20168           *)
20169             case `$CC -V 2>&1 | sed 5q` in
20170             *Sun\ C*)
20171               # Sun C++ 5.9
20172               lt_prog_compiler_pic_CXX='-KPIC'
20173               lt_prog_compiler_static_CXX='-Bstatic'
20174               lt_prog_compiler_wl_CXX='-Qoption ld '
20175               ;;
20176             esac
20177             ;;
20178         esac
20179         ;;
20180       lynxos*)
20181         ;;
20182       m88k*)
20183         ;;
20184       mvs*)
20185         case $cc_basename in
20186           cxx*)
20187             lt_prog_compiler_pic_CXX='-W c,exportall'
20188             ;;
20189           *)
20190             ;;
20191         esac
20192         ;;
20193       netbsd*)
20194         ;;
20195       *qnx* | *nto*)
20196         # QNX uses GNU C++, but need to define -shared option too, otherwise
20197         # it will coredump.
20198         lt_prog_compiler_pic_CXX='-fPIC -shared'
20199         ;;
20200       osf3* | osf4* | osf5*)
20201         case $cc_basename in
20202           KCC*)
20203             lt_prog_compiler_wl_CXX='--backend -Wl,'
20204             ;;
20205           RCC*)
20206             # Rational C++ 2.4.1
20207             lt_prog_compiler_pic_CXX='-pic'
20208             ;;
20209           cxx*)
20210             # Digital/Compaq C++
20211             lt_prog_compiler_wl_CXX='-Wl,'
20212             # Make sure the PIC flag is empty.  It appears that all Alpha
20213             # Linux and Compaq Tru64 Unix objects are PIC.
20214             lt_prog_compiler_pic_CXX=
20215             lt_prog_compiler_static_CXX='-non_shared'
20216             ;;
20217           *)
20218             ;;
20219         esac
20220         ;;
20221       psos*)
20222         ;;
20223       solaris*)
20224         case $cc_basename in
20225           CC*)
20226             # Sun C++ 4.2, 5.x and Centerline C++
20227             lt_prog_compiler_pic_CXX='-KPIC'
20228             lt_prog_compiler_static_CXX='-Bstatic'
20229             lt_prog_compiler_wl_CXX='-Qoption ld '
20230             ;;
20231           gcx*)
20232             # Green Hills C++ Compiler
20233             lt_prog_compiler_pic_CXX='-PIC'
20234             ;;
20235           *)
20236             ;;
20237         esac
20238         ;;
20239       sunos4*)
20240         case $cc_basename in
20241           CC*)
20242             # Sun C++ 4.x
20243             lt_prog_compiler_pic_CXX='-pic'
20244             lt_prog_compiler_static_CXX='-Bstatic'
20245             ;;
20246           lcc*)
20247             # Lucid
20248             lt_prog_compiler_pic_CXX='-pic'
20249             ;;
20250           *)
20251             ;;
20252         esac
20253         ;;
20254       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20255         case $cc_basename in
20256           CC*)
20257             lt_prog_compiler_wl_CXX='-Wl,'
20258             lt_prog_compiler_pic_CXX='-KPIC'
20259             lt_prog_compiler_static_CXX='-Bstatic'
20260             ;;
20261         esac
20262         ;;
20263       tandem*)
20264         case $cc_basename in
20265           NCC*)
20266             # NonStop-UX NCC 3.20
20267             lt_prog_compiler_pic_CXX='-KPIC'
20268             ;;
20269           *)
20270             ;;
20271         esac
20272         ;;
20273       vxworks*)
20274         ;;
20275       *)
20276         lt_prog_compiler_can_build_shared_CXX=no
20277         ;;
20278     esac
20279   fi
20280
20281 case $host_os in
20282   # For platforms which do not support PIC, -DPIC is meaningless:
20283   *djgpp*)
20284     lt_prog_compiler_pic_CXX=
20285     ;;
20286   *)
20287     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20288     ;;
20289 esac
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20291 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20292
20293
20294
20295 #
20296 # Check to make sure the PIC flag actually works.
20297 #
20298 if test -n "$lt_prog_compiler_pic_CXX"; then
20299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20300 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20301 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20302   $as_echo_n "(cached) " >&6
20303 else
20304   lt_cv_prog_compiler_pic_works_CXX=no
20305    ac_outfile=conftest.$ac_objext
20306    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20307    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20308    # Insert the option either (1) after the last *FLAGS variable, or
20309    # (2) before a word containing "conftest.", or (3) at the end.
20310    # Note that $ac_compile itself does not contain backslashes and begins
20311    # with a dollar sign (not a hyphen), so the echo should work correctly.
20312    # The option is referenced via a variable to avoid confusing sed.
20313    lt_compile=`echo "$ac_compile" | $SED \
20314    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20315    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20316    -e 's:$: $lt_compiler_flag:'`
20317    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20318    (eval "$lt_compile" 2>conftest.err)
20319    ac_status=$?
20320    cat conftest.err >&5
20321    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322    if (exit $ac_status) && test -s "$ac_outfile"; then
20323      # The compiler can only warn and ignore the option if not recognized
20324      # So say no if there are warnings other than the usual output.
20325      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20326      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20327      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20328        lt_cv_prog_compiler_pic_works_CXX=yes
20329      fi
20330    fi
20331    $RM conftest*
20332
20333 fi
20334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20335 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20336
20337 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20338     case $lt_prog_compiler_pic_CXX in
20339      "" | " "*) ;;
20340      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20341      esac
20342 else
20343     lt_prog_compiler_pic_CXX=
20344      lt_prog_compiler_can_build_shared_CXX=no
20345 fi
20346
20347 fi
20348
20349
20350
20351 #
20352 # Check to make sure the static flag actually works.
20353 #
20354 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20356 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20357 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20358   $as_echo_n "(cached) " >&6
20359 else
20360   lt_cv_prog_compiler_static_works_CXX=no
20361    save_LDFLAGS="$LDFLAGS"
20362    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20363    echo "$lt_simple_link_test_code" > conftest.$ac_ext
20364    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20365      # The linker can only warn and ignore the option if not recognized
20366      # So say no if there are warnings
20367      if test -s conftest.err; then
20368        # Append any errors to the config.log.
20369        cat conftest.err 1>&5
20370        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20371        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20372        if diff conftest.exp conftest.er2 >/dev/null; then
20373          lt_cv_prog_compiler_static_works_CXX=yes
20374        fi
20375      else
20376        lt_cv_prog_compiler_static_works_CXX=yes
20377      fi
20378    fi
20379    $RM -r conftest*
20380    LDFLAGS="$save_LDFLAGS"
20381
20382 fi
20383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20384 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20385
20386 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20387     :
20388 else
20389     lt_prog_compiler_static_CXX=
20390 fi
20391
20392
20393
20394
20395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20396 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20397 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20398   $as_echo_n "(cached) " >&6
20399 else
20400   lt_cv_prog_compiler_c_o_CXX=no
20401    $RM -r conftest 2>/dev/null
20402    mkdir conftest
20403    cd conftest
20404    mkdir out
20405    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20406
20407    lt_compiler_flag="-o out/conftest2.$ac_objext"
20408    # Insert the option either (1) after the last *FLAGS variable, or
20409    # (2) before a word containing "conftest.", or (3) at the end.
20410    # Note that $ac_compile itself does not contain backslashes and begins
20411    # with a dollar sign (not a hyphen), so the echo should work correctly.
20412    lt_compile=`echo "$ac_compile" | $SED \
20413    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20414    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20415    -e 's:$: $lt_compiler_flag:'`
20416    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20417    (eval "$lt_compile" 2>out/conftest.err)
20418    ac_status=$?
20419    cat out/conftest.err >&5
20420    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20422    then
20423      # The compiler can only warn and ignore the option if not recognized
20424      # So say no if there are warnings
20425      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20426      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20427      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20428        lt_cv_prog_compiler_c_o_CXX=yes
20429      fi
20430    fi
20431    chmod u+w . 2>&5
20432    $RM conftest*
20433    # SGI C++ compiler will create directory out/ii_files/ for
20434    # template instantiation
20435    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20436    $RM out/* && rmdir out
20437    cd ..
20438    $RM -r conftest
20439    $RM conftest*
20440
20441 fi
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20443 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20444
20445
20446
20447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20448 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20449 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20450   $as_echo_n "(cached) " >&6
20451 else
20452   lt_cv_prog_compiler_c_o_CXX=no
20453    $RM -r conftest 2>/dev/null
20454    mkdir conftest
20455    cd conftest
20456    mkdir out
20457    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20458
20459    lt_compiler_flag="-o out/conftest2.$ac_objext"
20460    # Insert the option either (1) after the last *FLAGS variable, or
20461    # (2) before a word containing "conftest.", or (3) at the end.
20462    # Note that $ac_compile itself does not contain backslashes and begins
20463    # with a dollar sign (not a hyphen), so the echo should work correctly.
20464    lt_compile=`echo "$ac_compile" | $SED \
20465    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20466    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20467    -e 's:$: $lt_compiler_flag:'`
20468    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20469    (eval "$lt_compile" 2>out/conftest.err)
20470    ac_status=$?
20471    cat out/conftest.err >&5
20472    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20474    then
20475      # The compiler can only warn and ignore the option if not recognized
20476      # So say no if there are warnings
20477      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20478      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20479      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20480        lt_cv_prog_compiler_c_o_CXX=yes
20481      fi
20482    fi
20483    chmod u+w . 2>&5
20484    $RM conftest*
20485    # SGI C++ compiler will create directory out/ii_files/ for
20486    # template instantiation
20487    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20488    $RM out/* && rmdir out
20489    cd ..
20490    $RM -r conftest
20491    $RM conftest*
20492
20493 fi
20494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20495 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20496
20497
20498
20499
20500 hard_links="nottested"
20501 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20502   # do not overwrite the value of need_locks provided by the user
20503   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20504 $as_echo_n "checking if we can lock with hard links... " >&6; }
20505   hard_links=yes
20506   $RM conftest*
20507   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20508   touch conftest.a
20509   ln conftest.a conftest.b 2>&5 || hard_links=no
20510   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20512 $as_echo "$hard_links" >&6; }
20513   if test "$hard_links" = no; then
20514     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20515 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20516     need_locks=warn
20517   fi
20518 else
20519   need_locks=no
20520 fi
20521
20522
20523
20524     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20525 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20526
20527   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20528   case $host_os in
20529   aix[4-9]*)
20530     # If we're using GNU nm, then we don't want the "-C" option.
20531     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20532     # Also, AIX nm treats weak defined symbols like other global defined
20533     # symbols, whereas GNU nm marks them as "W".
20534     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20535       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'
20536     else
20537       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'
20538     fi
20539     ;;
20540   pw32*)
20541     export_symbols_cmds_CXX="$ltdll_cmds"
20542   ;;
20543   cygwin* | mingw* | cegcc*)
20544     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'
20545   ;;
20546   *)
20547     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20548   ;;
20549   esac
20550   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20551
20552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20553 $as_echo "$ld_shlibs_CXX" >&6; }
20554 test "$ld_shlibs_CXX" = no && can_build_shared=no
20555
20556 with_gnu_ld_CXX=$with_gnu_ld
20557
20558
20559
20560
20561
20562
20563 #
20564 # Do we need to explicitly link libc?
20565 #
20566 case "x$archive_cmds_need_lc_CXX" in
20567 x|xyes)
20568   # Assume -lc should be added
20569   archive_cmds_need_lc_CXX=yes
20570
20571   if test "$enable_shared" = yes && test "$GCC" = yes; then
20572     case $archive_cmds_CXX in
20573     *'~'*)
20574       # FIXME: we may have to deal with multi-command sequences.
20575       ;;
20576     '$CC '*)
20577       # Test whether the compiler implicitly links with -lc since on some
20578       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20579       # to ld, don't add -lc before -lgcc.
20580       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20581 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20582 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20583   $as_echo_n "(cached) " >&6
20584 else
20585   $RM conftest*
20586         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20587
20588         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20589   (eval $ac_compile) 2>&5
20590   ac_status=$?
20591   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20592   test $ac_status = 0; } 2>conftest.err; then
20593           soname=conftest
20594           lib=conftest
20595           libobjs=conftest.$ac_objext
20596           deplibs=
20597           wl=$lt_prog_compiler_wl_CXX
20598           pic_flag=$lt_prog_compiler_pic_CXX
20599           compiler_flags=-v
20600           linker_flags=-v
20601           verstring=
20602           output_objdir=.
20603           libname=conftest
20604           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20605           allow_undefined_flag_CXX=
20606           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20607   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20608   ac_status=$?
20609   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20610   test $ac_status = 0; }
20611           then
20612             lt_cv_archive_cmds_need_lc_CXX=no
20613           else
20614             lt_cv_archive_cmds_need_lc_CXX=yes
20615           fi
20616           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20617         else
20618           cat conftest.err 1>&5
20619         fi
20620         $RM conftest*
20621
20622 fi
20623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20624 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20625       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20626       ;;
20627     esac
20628   fi
20629   ;;
20630 esac
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20696 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20697
20698 library_names_spec=
20699 libname_spec='lib$name'
20700 soname_spec=
20701 shrext_cmds=".so"
20702 postinstall_cmds=
20703 postuninstall_cmds=
20704 finish_cmds=
20705 finish_eval=
20706 shlibpath_var=
20707 shlibpath_overrides_runpath=unknown
20708 version_type=none
20709 dynamic_linker="$host_os ld.so"
20710 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20711 need_lib_prefix=unknown
20712 hardcode_into_libs=no
20713
20714 # when you set need_version to no, make sure it does not cause -set_version
20715 # flags to be left without arguments
20716 need_version=unknown
20717
20718 case $host_os in
20719 aix3*)
20720   version_type=linux
20721   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20722   shlibpath_var=LIBPATH
20723
20724   # AIX 3 has no versioning support, so we append a major version to the name.
20725   soname_spec='${libname}${release}${shared_ext}$major'
20726   ;;
20727
20728 aix[4-9]*)
20729   version_type=linux
20730   need_lib_prefix=no
20731   need_version=no
20732   hardcode_into_libs=yes
20733   if test "$host_cpu" = ia64; then
20734     # AIX 5 supports IA64
20735     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20736     shlibpath_var=LD_LIBRARY_PATH
20737   else
20738     # With GCC up to 2.95.x, collect2 would create an import file
20739     # for dependence libraries.  The import file would start with
20740     # the line `#! .'.  This would cause the generated library to
20741     # depend on `.', always an invalid library.  This was fixed in
20742     # development snapshots of GCC prior to 3.0.
20743     case $host_os in
20744       aix4 | aix4.[01] | aix4.[01].*)
20745       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20746            echo ' yes '
20747            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20748         :
20749       else
20750         can_build_shared=no
20751       fi
20752       ;;
20753     esac
20754     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20755     # soname into executable. Probably we can add versioning support to
20756     # collect2, so additional links can be useful in future.
20757     if test "$aix_use_runtimelinking" = yes; then
20758       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20759       # instead of lib<name>.a to let people know that these are not
20760       # typical AIX shared libraries.
20761       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20762     else
20763       # We preserve .a as extension for shared libraries through AIX4.2
20764       # and later when we are not doing run time linking.
20765       library_names_spec='${libname}${release}.a $libname.a'
20766       soname_spec='${libname}${release}${shared_ext}$major'
20767     fi
20768     shlibpath_var=LIBPATH
20769   fi
20770   ;;
20771
20772 amigaos*)
20773   case $host_cpu in
20774   powerpc)
20775     # Since July 2007 AmigaOS4 officially supports .so libraries.
20776     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20777     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20778     ;;
20779   m68k)
20780     library_names_spec='$libname.ixlibrary $libname.a'
20781     # Create ${libname}_ixlibrary.a entries in /sys/libs.
20782     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'
20783     ;;
20784   esac
20785   ;;
20786
20787 beos*)
20788   library_names_spec='${libname}${shared_ext}'
20789   dynamic_linker="$host_os ld.so"
20790   shlibpath_var=LIBRARY_PATH
20791   ;;
20792
20793 bsdi[45]*)
20794   version_type=linux
20795   need_version=no
20796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20797   soname_spec='${libname}${release}${shared_ext}$major'
20798   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20799   shlibpath_var=LD_LIBRARY_PATH
20800   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20801   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20802   # the default ld.so.conf also contains /usr/contrib/lib and
20803   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20804   # libtool to hard-code these into programs
20805   ;;
20806
20807 cygwin* | mingw* | pw32* | cegcc*)
20808   version_type=windows
20809   shrext_cmds=".dll"
20810   need_version=no
20811   need_lib_prefix=no
20812
20813   case $GCC,$host_os in
20814   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20815     library_names_spec='$libname.dll.a'
20816     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20817     postinstall_cmds='base_file=`basename \${file}`~
20818       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20819       dldir=$destdir/`dirname \$dlpath`~
20820       test -d \$dldir || mkdir -p \$dldir~
20821       $install_prog $dir/$dlname \$dldir/$dlname~
20822       chmod a+x \$dldir/$dlname~
20823       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20824         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20825       fi'
20826     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20827       dlpath=$dir/\$dldll~
20828        $RM \$dlpath'
20829     shlibpath_overrides_runpath=yes
20830
20831     case $host_os in
20832     cygwin*)
20833       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20834       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20835
20836       ;;
20837     mingw* | cegcc*)
20838       # MinGW DLLs use traditional 'lib' prefix
20839       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20840       ;;
20841     pw32*)
20842       # pw32 DLLs use 'pw' prefix rather than 'lib'
20843       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20844       ;;
20845     esac
20846     ;;
20847
20848   *)
20849     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20850     ;;
20851   esac
20852   dynamic_linker='Win32 ld.exe'
20853   # FIXME: first we should search . and the directory the executable is in
20854   shlibpath_var=PATH
20855   ;;
20856
20857 darwin* | rhapsody*)
20858   dynamic_linker="$host_os dyld"
20859   version_type=darwin
20860   need_lib_prefix=no
20861   need_version=no
20862   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20863   soname_spec='${libname}${release}${major}$shared_ext'
20864   shlibpath_overrides_runpath=yes
20865   shlibpath_var=DYLD_LIBRARY_PATH
20866   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20867
20868   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20869   ;;
20870
20871 dgux*)
20872   version_type=linux
20873   need_lib_prefix=no
20874   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
20878   ;;
20879
20880 freebsd* | dragonfly*)
20881   # DragonFly does not have aout.  When/if they implement a new
20882   # versioning mechanism, adjust this.
20883   if test -x /usr/bin/objformat; then
20884     objformat=`/usr/bin/objformat`
20885   else
20886     case $host_os in
20887     freebsd[23].*) objformat=aout ;;
20888     *) objformat=elf ;;
20889     esac
20890   fi
20891   version_type=freebsd-$objformat
20892   case $version_type in
20893     freebsd-elf*)
20894       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20895       need_version=no
20896       need_lib_prefix=no
20897       ;;
20898     freebsd-*)
20899       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20900       need_version=yes
20901       ;;
20902   esac
20903   shlibpath_var=LD_LIBRARY_PATH
20904   case $host_os in
20905   freebsd2.*)
20906     shlibpath_overrides_runpath=yes
20907     ;;
20908   freebsd3.[01]* | freebsdelf3.[01]*)
20909     shlibpath_overrides_runpath=yes
20910     hardcode_into_libs=yes
20911     ;;
20912   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20913   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20914     shlibpath_overrides_runpath=no
20915     hardcode_into_libs=yes
20916     ;;
20917   *) # from 4.6 on, and DragonFly
20918     shlibpath_overrides_runpath=yes
20919     hardcode_into_libs=yes
20920     ;;
20921   esac
20922   ;;
20923
20924 gnu*)
20925   version_type=linux
20926   need_lib_prefix=no
20927   need_version=no
20928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20929   soname_spec='${libname}${release}${shared_ext}$major'
20930   shlibpath_var=LD_LIBRARY_PATH
20931   hardcode_into_libs=yes
20932   ;;
20933
20934 haiku*)
20935   version_type=linux
20936   need_lib_prefix=no
20937   need_version=no
20938   dynamic_linker="$host_os runtime_loader"
20939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20940   soname_spec='${libname}${release}${shared_ext}$major'
20941   shlibpath_var=LIBRARY_PATH
20942   shlibpath_overrides_runpath=yes
20943   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20944   hardcode_into_libs=yes
20945   ;;
20946
20947 hpux9* | hpux10* | hpux11*)
20948   # Give a soname corresponding to the major version so that dld.sl refuses to
20949   # link against other versions.
20950   version_type=sunos
20951   need_lib_prefix=no
20952   need_version=no
20953   case $host_cpu in
20954   ia64*)
20955     shrext_cmds='.so'
20956     hardcode_into_libs=yes
20957     dynamic_linker="$host_os dld.so"
20958     shlibpath_var=LD_LIBRARY_PATH
20959     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20960     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20961     soname_spec='${libname}${release}${shared_ext}$major'
20962     if test "X$HPUX_IA64_MODE" = X32; then
20963       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20964     else
20965       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20966     fi
20967     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20968     ;;
20969   hppa*64*)
20970     shrext_cmds='.sl'
20971     hardcode_into_libs=yes
20972     dynamic_linker="$host_os dld.sl"
20973     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20974     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20975     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20976     soname_spec='${libname}${release}${shared_ext}$major'
20977     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20978     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20979     ;;
20980   *)
20981     shrext_cmds='.sl'
20982     dynamic_linker="$host_os dld.sl"
20983     shlibpath_var=SHLIB_PATH
20984     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20985     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20986     soname_spec='${libname}${release}${shared_ext}$major'
20987     ;;
20988   esac
20989   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20990   postinstall_cmds='chmod 555 $lib'
20991   # or fails outright, so override atomically:
20992   install_override_mode=555
20993   ;;
20994
20995 interix[3-9]*)
20996   version_type=linux
20997   need_lib_prefix=no
20998   need_version=no
20999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21000   soname_spec='${libname}${release}${shared_ext}$major'
21001   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21002   shlibpath_var=LD_LIBRARY_PATH
21003   shlibpath_overrides_runpath=no
21004   hardcode_into_libs=yes
21005   ;;
21006
21007 irix5* | irix6* | nonstopux*)
21008   case $host_os in
21009     nonstopux*) version_type=nonstopux ;;
21010     *)
21011         if test "$lt_cv_prog_gnu_ld" = yes; then
21012                 version_type=linux
21013         else
21014                 version_type=irix
21015         fi ;;
21016   esac
21017   need_lib_prefix=no
21018   need_version=no
21019   soname_spec='${libname}${release}${shared_ext}$major'
21020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21021   case $host_os in
21022   irix5* | nonstopux*)
21023     libsuff= shlibsuff=
21024     ;;
21025   *)
21026     case $LD in # libtool.m4 will add one of these switches to LD
21027     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21028       libsuff= shlibsuff= libmagic=32-bit;;
21029     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21030       libsuff=32 shlibsuff=N32 libmagic=N32;;
21031     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21032       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21033     *) libsuff= shlibsuff= libmagic=never-match;;
21034     esac
21035     ;;
21036   esac
21037   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21038   shlibpath_overrides_runpath=no
21039   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21040   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21041   hardcode_into_libs=yes
21042   ;;
21043
21044 # No shared lib support for Linux oldld, aout, or coff.
21045 linux*oldld* | linux*aout* | linux*coff*)
21046   dynamic_linker=no
21047   ;;
21048
21049 # This must be Linux ELF.
21050 linux* | k*bsd*-gnu | kopensolaris*-gnu)
21051   version_type=linux
21052   need_lib_prefix=no
21053   need_version=no
21054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21055   soname_spec='${libname}${release}${shared_ext}$major'
21056   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21057   shlibpath_var=LD_LIBRARY_PATH
21058   shlibpath_overrides_runpath=no
21059
21060   # Some binutils ld are patched to set DT_RUNPATH
21061   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21062   $as_echo_n "(cached) " >&6
21063 else
21064   lt_cv_shlibpath_overrides_runpath=no
21065     save_LDFLAGS=$LDFLAGS
21066     save_libdir=$libdir
21067     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21068          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21069     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21070 /* end confdefs.h.  */
21071
21072 int
21073 main ()
21074 {
21075
21076   ;
21077   return 0;
21078 }
21079 _ACEOF
21080 if ac_fn_cxx_try_link "$LINENO"; then :
21081   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21082   lt_cv_shlibpath_overrides_runpath=yes
21083 fi
21084 fi
21085 rm -f core conftest.err conftest.$ac_objext \
21086     conftest$ac_exeext conftest.$ac_ext
21087     LDFLAGS=$save_LDFLAGS
21088     libdir=$save_libdir
21089
21090 fi
21091
21092   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21093
21094   # This implies no fast_install, which is unacceptable.
21095   # Some rework will be needed to allow for fast_install
21096   # before this can be enabled.
21097   hardcode_into_libs=yes
21098
21099   # Append ld.so.conf contents to the search path
21100   if test -f /etc/ld.so.conf; then
21101     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' ' '`
21102     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21103   fi
21104
21105   # We used to test for /lib/ld.so.1 and disable shared libraries on
21106   # powerpc, because MkLinux only supported shared libraries with the
21107   # GNU dynamic linker.  Since this was broken with cross compilers,
21108   # most powerpc-linux boxes support dynamic linking these days and
21109   # people can always --disable-shared, the test was removed, and we
21110   # assume the GNU/Linux dynamic linker is in use.
21111   dynamic_linker='GNU/Linux ld.so'
21112   ;;
21113
21114 netbsd*)
21115   version_type=sunos
21116   need_lib_prefix=no
21117   need_version=no
21118   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21119     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21120     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21121     dynamic_linker='NetBSD (a.out) ld.so'
21122   else
21123     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21124     soname_spec='${libname}${release}${shared_ext}$major'
21125     dynamic_linker='NetBSD ld.elf_so'
21126   fi
21127   shlibpath_var=LD_LIBRARY_PATH
21128   shlibpath_overrides_runpath=yes
21129   hardcode_into_libs=yes
21130   ;;
21131
21132 newsos6)
21133   version_type=linux
21134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21135   shlibpath_var=LD_LIBRARY_PATH
21136   shlibpath_overrides_runpath=yes
21137   ;;
21138
21139 *nto* | *qnx*)
21140   version_type=qnx
21141   need_lib_prefix=no
21142   need_version=no
21143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21144   soname_spec='${libname}${release}${shared_ext}$major'
21145   shlibpath_var=LD_LIBRARY_PATH
21146   shlibpath_overrides_runpath=no
21147   hardcode_into_libs=yes
21148   dynamic_linker='ldqnx.so'
21149   ;;
21150
21151 openbsd*)
21152   version_type=sunos
21153   sys_lib_dlsearch_path_spec="/usr/lib"
21154   need_lib_prefix=no
21155   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21156   case $host_os in
21157     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
21158     *)                          need_version=no  ;;
21159   esac
21160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21161   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21162   shlibpath_var=LD_LIBRARY_PATH
21163   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21164     case $host_os in
21165       openbsd2.[89] | openbsd2.[89].*)
21166         shlibpath_overrides_runpath=no
21167         ;;
21168       *)
21169         shlibpath_overrides_runpath=yes
21170         ;;
21171       esac
21172   else
21173     shlibpath_overrides_runpath=yes
21174   fi
21175   ;;
21176
21177 os2*)
21178   libname_spec='$name'
21179   shrext_cmds=".dll"
21180   need_lib_prefix=no
21181   library_names_spec='$libname${shared_ext} $libname.a'
21182   dynamic_linker='OS/2 ld.exe'
21183   shlibpath_var=LIBPATH
21184   ;;
21185
21186 osf3* | osf4* | osf5*)
21187   version_type=osf
21188   need_lib_prefix=no
21189   need_version=no
21190   soname_spec='${libname}${release}${shared_ext}$major'
21191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21192   shlibpath_var=LD_LIBRARY_PATH
21193   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21194   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21195   ;;
21196
21197 rdos*)
21198   dynamic_linker=no
21199   ;;
21200
21201 solaris*)
21202   version_type=linux
21203   need_lib_prefix=no
21204   need_version=no
21205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21206   soname_spec='${libname}${release}${shared_ext}$major'
21207   shlibpath_var=LD_LIBRARY_PATH
21208   shlibpath_overrides_runpath=yes
21209   hardcode_into_libs=yes
21210   # ldd complains unless libraries are executable
21211   postinstall_cmds='chmod +x $lib'
21212   ;;
21213
21214 sunos4*)
21215   version_type=sunos
21216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21217   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21218   shlibpath_var=LD_LIBRARY_PATH
21219   shlibpath_overrides_runpath=yes
21220   if test "$with_gnu_ld" = yes; then
21221     need_lib_prefix=no
21222   fi
21223   need_version=yes
21224   ;;
21225
21226 sysv4 | sysv4.3*)
21227   version_type=linux
21228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21229   soname_spec='${libname}${release}${shared_ext}$major'
21230   shlibpath_var=LD_LIBRARY_PATH
21231   case $host_vendor in
21232     sni)
21233       shlibpath_overrides_runpath=no
21234       need_lib_prefix=no
21235       runpath_var=LD_RUN_PATH
21236       ;;
21237     siemens)
21238       need_lib_prefix=no
21239       ;;
21240     motorola)
21241       need_lib_prefix=no
21242       need_version=no
21243       shlibpath_overrides_runpath=no
21244       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21245       ;;
21246   esac
21247   ;;
21248
21249 sysv4*MP*)
21250   if test -d /usr/nec ;then
21251     version_type=linux
21252     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21253     soname_spec='$libname${shared_ext}.$major'
21254     shlibpath_var=LD_LIBRARY_PATH
21255   fi
21256   ;;
21257
21258 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21259   version_type=freebsd-elf
21260   need_lib_prefix=no
21261   need_version=no
21262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21263   soname_spec='${libname}${release}${shared_ext}$major'
21264   shlibpath_var=LD_LIBRARY_PATH
21265   shlibpath_overrides_runpath=yes
21266   hardcode_into_libs=yes
21267   if test "$with_gnu_ld" = yes; then
21268     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21269   else
21270     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21271     case $host_os in
21272       sco3.2v5*)
21273         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21274         ;;
21275     esac
21276   fi
21277   sys_lib_dlsearch_path_spec='/usr/lib'
21278   ;;
21279
21280 tpf*)
21281   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21282   version_type=linux
21283   need_lib_prefix=no
21284   need_version=no
21285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21286   shlibpath_var=LD_LIBRARY_PATH
21287   shlibpath_overrides_runpath=no
21288   hardcode_into_libs=yes
21289   ;;
21290
21291 uts4*)
21292   version_type=linux
21293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21294   soname_spec='${libname}${release}${shared_ext}$major'
21295   shlibpath_var=LD_LIBRARY_PATH
21296   ;;
21297
21298 *)
21299   dynamic_linker=no
21300   ;;
21301 esac
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21303 $as_echo "$dynamic_linker" >&6; }
21304 test "$dynamic_linker" = no && can_build_shared=no
21305
21306 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21307 if test "$GCC" = yes; then
21308   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21309 fi
21310
21311 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21312   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21313 fi
21314 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21315   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21316 fi
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21356 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21357 hardcode_action_CXX=
21358 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21359    test -n "$runpath_var_CXX" ||
21360    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21361
21362   # We can hardcode non-existent directories.
21363   if test "$hardcode_direct_CXX" != no &&
21364      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21365      # have to relink, otherwise we might link with an installed library
21366      # when we should be linking with a yet-to-be-installed one
21367      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21368      test "$hardcode_minus_L_CXX" != no; then
21369     # Linking always hardcodes the temporary library directory.
21370     hardcode_action_CXX=relink
21371   else
21372     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21373     hardcode_action_CXX=immediate
21374   fi
21375 else
21376   # We cannot hardcode anything, or else we can only hardcode existing
21377   # directories.
21378   hardcode_action_CXX=unsupported
21379 fi
21380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21381 $as_echo "$hardcode_action_CXX" >&6; }
21382
21383 if test "$hardcode_action_CXX" = relink ||
21384    test "$inherit_rpath_CXX" = yes; then
21385   # Fast installation is not supported
21386   enable_fast_install=no
21387 elif test "$shlibpath_overrides_runpath" = yes ||
21388      test "$enable_shared" = no; then
21389   # Fast installation is not necessary
21390   enable_fast_install=needless
21391 fi
21392
21393
21394
21395
21396
21397
21398
21399   fi # test -n "$compiler"
21400
21401   CC=$lt_save_CC
21402   LDCXX=$LD
21403   LD=$lt_save_LD
21404   GCC=$lt_save_GCC
21405   with_gnu_ld=$lt_save_with_gnu_ld
21406   lt_cv_path_LDCXX=$lt_cv_path_LD
21407   lt_cv_path_LD=$lt_save_path_LD
21408   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21409   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21410 fi # test "$_lt_caught_CXX_error" != yes
21411
21412 ac_ext=c
21413 ac_cpp='$CPP $CPPFLAGS'
21414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432
21433 # Only expand once:
21434
21435
21436
21437
21438
21439 # Identify the assembler which will work hand-in-glove with the newly
21440 # built GCC, so that we can examine its features.  This is the assembler
21441 # which will be driven by the driver program.
21442 #
21443 # If build != host, and we aren't building gas in-tree, we identify a
21444 # build->target assembler and hope that it will have the same features
21445 # as the host->target assembler we'll be using.
21446 gcc_cv_gas_major_version=
21447 gcc_cv_gas_minor_version=
21448 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21449
21450 if test "${gcc_cv_as+set}" = set; then :
21451
21452 else
21453
21454 if test -x "$DEFAULT_ASSEMBLER"; then
21455         gcc_cv_as="$DEFAULT_ASSEMBLER"
21456 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21457      && test -f ../gas/Makefile \
21458      && test x$build = x$host; then
21459         gcc_cv_as=../gas/as-new$build_exeext
21460 elif test -x as$build_exeext; then
21461         # Build using assembler in the current directory.
21462         gcc_cv_as=./as$build_exeext
21463 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21464         gcc_cv_as="$AS_FOR_TARGET"
21465 else
21466         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21467 set dummy $AS_FOR_TARGET; ac_word=$2
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21469 $as_echo_n "checking for $ac_word... " >&6; }
21470 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21471   $as_echo_n "(cached) " >&6
21472 else
21473   case $gcc_cv_as in
21474   [\\/]* | ?:[\\/]*)
21475   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21476   ;;
21477   *)
21478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21479 for as_dir in $PATH
21480 do
21481   IFS=$as_save_IFS
21482   test -z "$as_dir" && as_dir=.
21483     for ac_exec_ext in '' $ac_executable_extensions; do
21484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21485     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21487     break 2
21488   fi
21489 done
21490   done
21491 IFS=$as_save_IFS
21492
21493   ;;
21494 esac
21495 fi
21496 gcc_cv_as=$ac_cv_path_gcc_cv_as
21497 if test -n "$gcc_cv_as"; then
21498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21499 $as_echo "$gcc_cv_as" >&6; }
21500 else
21501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21502 $as_echo "no" >&6; }
21503 fi
21504
21505
21506 fi
21507 fi
21508
21509 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21510
21511 case "$ORIGINAL_AS_FOR_TARGET" in
21512   ./as | ./as$build_exeext) ;;
21513   *) ac_config_files="$ac_config_files as:exec-tool.in"
21514  ;;
21515 esac
21516
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21518 $as_echo_n "checking what assembler to use... " >&6; }
21519 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21520   # Single tree build which includes gas.  We want to prefer it
21521   # over whatever linker top-level may have detected, since
21522   # we'll use what we're building after installation anyway.
21523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21524 $as_echo "newly built gas" >&6; }
21525   in_tree_gas=yes
21526   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21527 for f in $gcc_cv_as_bfd_srcdir/configure \
21528          $gcc_cv_as_gas_srcdir/configure \
21529          $gcc_cv_as_gas_srcdir/configure.in \
21530          $gcc_cv_as_gas_srcdir/Makefile.in ; do
21531   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21532   if test x$gcc_cv_gas_version != x; then
21533     break
21534   fi
21535 done
21536 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21537 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21538 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21539 case $gcc_cv_gas_patch_version in
21540   "") gcc_cv_gas_patch_version="0" ;;
21541 esac
21542 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21543                             + $gcc_cv_gas_minor_version \) \* 1000 \
21544                             + $gcc_cv_gas_patch_version`
21545
21546   in_tree_gas_is_elf=no
21547   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21548      || (grep 'obj_format = multi' ../gas/Makefile \
21549          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21550   then
21551     in_tree_gas_is_elf=yes
21552   fi
21553 else
21554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21555 $as_echo "$gcc_cv_as" >&6; }
21556   in_tree_gas=no
21557 fi
21558
21559 # Identify the linker which will work hand-in-glove with the newly
21560 # built GCC, so that we can examine its features.  This is the linker
21561 # which will be driven by the driver program.
21562 #
21563 # If build != host, and we aren't building gas in-tree, we identify a
21564 # build->target linker and hope that it will have the same features
21565 # as the host->target linker we'll be using.
21566 gcc_cv_gld_major_version=
21567 gcc_cv_gld_minor_version=
21568 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21569 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21570
21571 if test "${gcc_cv_ld+set}" = set; then :
21572
21573 else
21574
21575 if test -x "$DEFAULT_LINKER"; then
21576         gcc_cv_ld="$DEFAULT_LINKER"
21577 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21578      && test -f ../ld/Makefile \
21579      && test x$build = x$host; then
21580         gcc_cv_ld=../ld/ld-new$build_exeext
21581 elif test -x collect-ld$build_exeext; then
21582         # Build using linker in the current directory.
21583         gcc_cv_ld=./collect-ld$build_exeext
21584 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21585         gcc_cv_ld="$LD_FOR_TARGET"
21586 else
21587         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21588 set dummy $LD_FOR_TARGET; ac_word=$2
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21590 $as_echo_n "checking for $ac_word... " >&6; }
21591 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21592   $as_echo_n "(cached) " >&6
21593 else
21594   case $gcc_cv_ld in
21595   [\\/]* | ?:[\\/]*)
21596   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21597   ;;
21598   *)
21599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21600 for as_dir in $PATH
21601 do
21602   IFS=$as_save_IFS
21603   test -z "$as_dir" && as_dir=.
21604     for ac_exec_ext in '' $ac_executable_extensions; do
21605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21606     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21608     break 2
21609   fi
21610 done
21611   done
21612 IFS=$as_save_IFS
21613
21614   ;;
21615 esac
21616 fi
21617 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21618 if test -n "$gcc_cv_ld"; then
21619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21620 $as_echo "$gcc_cv_ld" >&6; }
21621 else
21622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21623 $as_echo "no" >&6; }
21624 fi
21625
21626
21627 fi
21628 fi
21629
21630 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21631 PLUGIN_LD=`basename $gcc_cv_ld`
21632
21633 # Check whether --with-plugin-ld was given.
21634 if test "${with_plugin_ld+set}" = set; then :
21635   withval=$with_plugin_ld; if test x"$withval" != x; then
21636    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21637    PLUGIN_LD="$withval"
21638  fi
21639 fi
21640
21641
21642
21643 cat >>confdefs.h <<_ACEOF
21644 #define PLUGIN_LD "$PLUGIN_LD"
21645 _ACEOF
21646
21647
21648 # Check to see if we are using gold instead of ld
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21650 $as_echo_n "checking whether we are using gold... " >&6; }
21651 ld_is_gold=no
21652 if test x$gcc_cv_ld != x; then
21653   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21654      | grep "GNU gold" > /dev/null; then
21655     ld_is_gold=yes
21656   fi
21657 fi
21658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21659 $as_echo "$ld_is_gold" >&6; }
21660
21661 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21662
21663 case "$ORIGINAL_LD_FOR_TARGET" in
21664   ./collect-ld | ./collect-ld$build_exeext) ;;
21665   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21666  ;;
21667 esac
21668
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21670 $as_echo_n "checking what linker to use... " >&6; }
21671 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21672    || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21673         # Single tree build which includes ld.  We want to prefer it
21674         # over whatever linker top-level may have detected, since
21675         # we'll use what we're building after installation anyway.
21676         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21677 $as_echo "newly built ld" >&6; }
21678         in_tree_ld=yes
21679         in_tree_ld_is_elf=no
21680         if (grep 'EMUL = .*elf' ../ld/Makefile \
21681             || grep 'EMUL = .*linux' ../ld/Makefile \
21682             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21683           in_tree_ld_is_elf=yes
21684         elif test "$ld_is_gold" = yes; then
21685           in_tree_ld_is_elf=yes
21686         fi
21687         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
21688         do
21689                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21690                 if test x$gcc_cv_gld_version != x; then
21691                         break
21692                 fi
21693         done
21694         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21695         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21696 else
21697         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21698 $as_echo "$gcc_cv_ld" >&6; }
21699         in_tree_ld=no
21700 fi
21701
21702 # Figure out what nm we will be using.
21703 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21704 if test "${gcc_cv_nm+set}" = set; then :
21705
21706 else
21707
21708 if test -f $gcc_cv_binutils_srcdir/configure.in \
21709      && test -f ../binutils/Makefile \
21710      && test x$build = x$host; then
21711         gcc_cv_nm=../binutils/nm-new$build_exeext
21712 elif test -x nm$build_exeext; then
21713         gcc_cv_nm=./nm$build_exeext
21714 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21715         gcc_cv_nm="$NM_FOR_TARGET"
21716 else
21717         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21718 set dummy $NM_FOR_TARGET; ac_word=$2
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21720 $as_echo_n "checking for $ac_word... " >&6; }
21721 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21722   $as_echo_n "(cached) " >&6
21723 else
21724   case $gcc_cv_nm in
21725   [\\/]* | ?:[\\/]*)
21726   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21727   ;;
21728   *)
21729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21730 for as_dir in $PATH
21731 do
21732   IFS=$as_save_IFS
21733   test -z "$as_dir" && as_dir=.
21734     for ac_exec_ext in '' $ac_executable_extensions; do
21735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21736     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21738     break 2
21739   fi
21740 done
21741   done
21742 IFS=$as_save_IFS
21743
21744   ;;
21745 esac
21746 fi
21747 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21748 if test -n "$gcc_cv_nm"; then
21749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21750 $as_echo "$gcc_cv_nm" >&6; }
21751 else
21752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21753 $as_echo "no" >&6; }
21754 fi
21755
21756
21757 fi
21758 fi
21759
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21761 $as_echo_n "checking what nm to use... " >&6; }
21762 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21763         # Single tree build which includes binutils.
21764         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21765 $as_echo "newly built nm" >&6; }
21766         in_tree_nm=yes
21767 else
21768         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21769 $as_echo "$gcc_cv_nm" >&6; }
21770         in_tree_nm=no
21771 fi
21772
21773 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21774
21775 case "$ORIGINAL_NM_FOR_TARGET" in
21776   ./nm | ./nm$build_exeext) ;;
21777   *) ac_config_files="$ac_config_files nm:exec-tool.in"
21778  ;;
21779 esac
21780
21781
21782 # Figure out what objdump we will be using.
21783 if test "${gcc_cv_objdump+set}" = set; then :
21784
21785 else
21786
21787 if test -f $gcc_cv_binutils_srcdir/configure.in \
21788      && test -f ../binutils/Makefile \
21789      && test x$build = x$host; then
21790         # Single tree build which includes binutils.
21791         gcc_cv_objdump=../binutils/objdump$build_exeext
21792 elif test -x objdump$build_exeext; then
21793         gcc_cv_objdump=./objdump$build_exeext
21794 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21795         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21796 else
21797         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21798 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21800 $as_echo_n "checking for $ac_word... " >&6; }
21801 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21802   $as_echo_n "(cached) " >&6
21803 else
21804   case $gcc_cv_objdump in
21805   [\\/]* | ?:[\\/]*)
21806   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21807   ;;
21808   *)
21809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21810 for as_dir in $PATH
21811 do
21812   IFS=$as_save_IFS
21813   test -z "$as_dir" && as_dir=.
21814     for ac_exec_ext in '' $ac_executable_extensions; do
21815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21816     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21818     break 2
21819   fi
21820 done
21821   done
21822 IFS=$as_save_IFS
21823
21824   ;;
21825 esac
21826 fi
21827 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21828 if test -n "$gcc_cv_objdump"; then
21829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21830 $as_echo "$gcc_cv_objdump" >&6; }
21831 else
21832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21833 $as_echo "no" >&6; }
21834 fi
21835
21836
21837 fi
21838 fi
21839
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21841 $as_echo_n "checking what objdump to use... " >&6; }
21842 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21843         # Single tree build which includes binutils.
21844         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21845 $as_echo "newly built objdump" >&6; }
21846 elif test x$gcc_cv_objdump = x; then
21847         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21848 $as_echo "not found" >&6; }
21849 else
21850         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21851 $as_echo "$gcc_cv_objdump" >&6; }
21852 fi
21853
21854 # Figure out what readelf we will be using.
21855 if test "${gcc_cv_readelf+set}" = set; then :
21856
21857 else
21858
21859 if test -f $gcc_cv_binutils_srcdir/configure.in \
21860      && test -f ../binutils/Makefile \
21861      && test x$build = x$host; then
21862         # Single tree build which includes binutils.
21863         gcc_cv_readelf=../binutils/readelf$build_exeext
21864 elif test -x readelf$build_exeext; then
21865         gcc_cv_readelf=./readelf$build_exeext
21866 else
21867         # Extract the first word of "readelf", so it can be a program name with args.
21868 set dummy readelf; ac_word=$2
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21870 $as_echo_n "checking for $ac_word... " >&6; }
21871 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21872   $as_echo_n "(cached) " >&6
21873 else
21874   case $gcc_cv_readelf in
21875   [\\/]* | ?:[\\/]*)
21876   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21877   ;;
21878   *)
21879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21880 for as_dir in $PATH
21881 do
21882   IFS=$as_save_IFS
21883   test -z "$as_dir" && as_dir=.
21884     for ac_exec_ext in '' $ac_executable_extensions; do
21885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21886     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21888     break 2
21889   fi
21890 done
21891   done
21892 IFS=$as_save_IFS
21893
21894   ;;
21895 esac
21896 fi
21897 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21898 if test -n "$gcc_cv_readelf"; then
21899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21900 $as_echo "$gcc_cv_readelf" >&6; }
21901 else
21902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21903 $as_echo "no" >&6; }
21904 fi
21905
21906
21907 fi
21908 fi
21909
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21911 $as_echo_n "checking what readelf to use... " >&6; }
21912 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21913         # Single tree build which includes binutils.
21914         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21915 $as_echo "newly built readelf" >&6; }
21916 elif test x$gcc_cv_readelf = x; then
21917         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21918 $as_echo "not found" >&6; }
21919 else
21920         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21921 $as_echo "$gcc_cv_readelf" >&6; }
21922 fi
21923
21924 # Figure out what assembler alignment features are present.
21925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21926 $as_echo_n "checking assembler flags... " >&6; }
21927 if test "${gcc_cv_as_flags+set}" = set; then :
21928   $as_echo_n "(cached) " >&6
21929 else
21930    case "$target" in
21931   i[34567]86-*-linux*)
21932         gcc_cv_as_flags="--32"
21933     ;;
21934   powerpc*-*-darwin*)
21935         gcc_cv_as_flags="-arch ppc"
21936     ;;
21937   *)
21938     gcc_cv_as_flags=" "
21939     ;;
21940   esac
21941 fi
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21943 $as_echo "$gcc_cv_as_flags" >&6; }
21944
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21946 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21947 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21948   $as_echo_n "(cached) " >&6
21949 else
21950   gcc_cv_as_balign_and_p2align=no
21951     if test $in_tree_gas = yes; then
21952     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21953   then gcc_cv_as_balign_and_p2align=yes
21954 fi
21955   elif test x$gcc_cv_as != x; then
21956     $as_echo '.balign 4
21957 .p2align 2' > conftest.s
21958     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21959   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21960   (eval $ac_try) 2>&5
21961   ac_status=$?
21962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21963   test $ac_status = 0; }; }
21964     then
21965         gcc_cv_as_balign_and_p2align=yes
21966     else
21967       echo "configure: failed program was" >&5
21968       cat conftest.s >&5
21969     fi
21970     rm -f conftest.o conftest.s
21971   fi
21972 fi
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21974 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21975 if test $gcc_cv_as_balign_and_p2align = yes; then
21976
21977 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21978
21979 fi
21980
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21982 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21983 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21984   $as_echo_n "(cached) " >&6
21985 else
21986   gcc_cv_as_max_skip_p2align=no
21987     if test $in_tree_gas = yes; then
21988     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21989   then gcc_cv_as_max_skip_p2align=yes
21990 fi
21991   elif test x$gcc_cv_as != x; then
21992     $as_echo '.p2align 4,,7' > conftest.s
21993     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21994   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21995   (eval $ac_try) 2>&5
21996   ac_status=$?
21997   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21998   test $ac_status = 0; }; }
21999     then
22000         gcc_cv_as_max_skip_p2align=yes
22001     else
22002       echo "configure: failed program was" >&5
22003       cat conftest.s >&5
22004     fi
22005     rm -f conftest.o conftest.s
22006   fi
22007 fi
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22009 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22010 if test $gcc_cv_as_max_skip_p2align = yes; then
22011
22012 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22013
22014 fi
22015
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22017 $as_echo_n "checking assembler for .literal16... " >&6; }
22018 if test "${gcc_cv_as_literal16+set}" = set; then :
22019   $as_echo_n "(cached) " >&6
22020 else
22021   gcc_cv_as_literal16=no
22022     if test $in_tree_gas = yes; then
22023     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22024   then gcc_cv_as_literal16=yes
22025 fi
22026   elif test x$gcc_cv_as != x; then
22027     $as_echo '.literal16' > conftest.s
22028     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22029   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22030   (eval $ac_try) 2>&5
22031   ac_status=$?
22032   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22033   test $ac_status = 0; }; }
22034     then
22035         gcc_cv_as_literal16=yes
22036     else
22037       echo "configure: failed program was" >&5
22038       cat conftest.s >&5
22039     fi
22040     rm -f conftest.o conftest.s
22041   fi
22042 fi
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22044 $as_echo "$gcc_cv_as_literal16" >&6; }
22045 if test $gcc_cv_as_literal16 = yes; then
22046
22047 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22048
22049 fi
22050
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22052 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22053 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22054   $as_echo_n "(cached) " >&6
22055 else
22056   gcc_cv_as_subsection_m1=no
22057     if test $in_tree_gas = yes; then
22058     if test $in_tree_gas_is_elf = yes \
22059   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22060   then gcc_cv_as_subsection_m1=yes
22061 fi
22062   elif test x$gcc_cv_as != x; then
22063     $as_echo 'conftest_label1: .word 0
22064 .subsection -1
22065 conftest_label2: .word 0
22066 .previous' > conftest.s
22067     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22068   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22069   (eval $ac_try) 2>&5
22070   ac_status=$?
22071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22072   test $ac_status = 0; }; }
22073     then
22074         if test x$gcc_cv_nm != x; then
22075     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
22076     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
22077     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
22078     then :
22079     else gcc_cv_as_subsection_m1=yes
22080     fi
22081     rm -f conftest.nm1 conftest.nm2
22082   fi
22083     else
22084       echo "configure: failed program was" >&5
22085       cat conftest.s >&5
22086     fi
22087     rm -f conftest.o conftest.s
22088   fi
22089 fi
22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22091 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22092 if test $gcc_cv_as_subsection_m1 = yes; then
22093
22094 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22095
22096 fi
22097
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22099 $as_echo_n "checking assembler for .weak... " >&6; }
22100 if test "${gcc_cv_as_weak+set}" = set; then :
22101   $as_echo_n "(cached) " >&6
22102 else
22103   gcc_cv_as_weak=no
22104     if test $in_tree_gas = yes; then
22105     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22106   then gcc_cv_as_weak=yes
22107 fi
22108   elif test x$gcc_cv_as != x; then
22109     $as_echo '  .weak foobar' > conftest.s
22110     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22111   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22112   (eval $ac_try) 2>&5
22113   ac_status=$?
22114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22115   test $ac_status = 0; }; }
22116     then
22117         gcc_cv_as_weak=yes
22118     else
22119       echo "configure: failed program was" >&5
22120       cat conftest.s >&5
22121     fi
22122     rm -f conftest.o conftest.s
22123   fi
22124 fi
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22126 $as_echo "$gcc_cv_as_weak" >&6; }
22127 if test $gcc_cv_as_weak = yes; then
22128
22129 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22130
22131 fi
22132
22133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22134 $as_echo_n "checking assembler for .weakref... " >&6; }
22135 if test "${gcc_cv_as_weakref+set}" = set; then :
22136   $as_echo_n "(cached) " >&6
22137 else
22138   gcc_cv_as_weakref=no
22139     if test $in_tree_gas = yes; then
22140     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22141   then gcc_cv_as_weakref=yes
22142 fi
22143   elif test x$gcc_cv_as != x; then
22144     $as_echo '  .weakref foobar, barfnot' > conftest.s
22145     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22146   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22147   (eval $ac_try) 2>&5
22148   ac_status=$?
22149   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22150   test $ac_status = 0; }; }
22151     then
22152         gcc_cv_as_weakref=yes
22153     else
22154       echo "configure: failed program was" >&5
22155       cat conftest.s >&5
22156     fi
22157     rm -f conftest.o conftest.s
22158   fi
22159 fi
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22161 $as_echo "$gcc_cv_as_weakref" >&6; }
22162 if test $gcc_cv_as_weakref = yes; then
22163
22164 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22165
22166 fi
22167
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22169 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22170 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22171   $as_echo_n "(cached) " >&6
22172 else
22173   gcc_cv_as_nsubspa_comdat=no
22174     if test $in_tree_gas = yes; then
22175     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22176   then gcc_cv_as_nsubspa_comdat=yes
22177 fi
22178   elif test x$gcc_cv_as != x; then
22179     $as_echo '  .SPACE $TEXT$
22180         .NSUBSPA $CODE$,COMDAT' > conftest.s
22181     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22182   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22183   (eval $ac_try) 2>&5
22184   ac_status=$?
22185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22186   test $ac_status = 0; }; }
22187     then
22188         gcc_cv_as_nsubspa_comdat=yes
22189     else
22190       echo "configure: failed program was" >&5
22191       cat conftest.s >&5
22192     fi
22193     rm -f conftest.o conftest.s
22194   fi
22195 fi
22196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22197 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22198 if test $gcc_cv_as_nsubspa_comdat = yes; then
22199
22200 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22201
22202 fi
22203
22204 # .hidden needs to be supported in both the assembler and the linker,
22205 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22206 # This is irritatingly difficult to feature test for; we have to check the
22207 # date string after the version number.  If we've got an in-tree
22208 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22209 # to be safe.
22210 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22212 $as_echo_n "checking assembler for .hidden... " >&6; }
22213 if test "${gcc_cv_as_hidden+set}" = set; then :
22214   $as_echo_n "(cached) " >&6
22215 else
22216   gcc_cv_as_hidden=no
22217     if test $in_tree_gas = yes; then
22218     if test $in_tree_gas_is_elf = yes \
22219   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22220   then gcc_cv_as_hidden=yes
22221 fi
22222   elif test x$gcc_cv_as != x; then
22223     $as_echo '  .hidden foobar
22224 foobar:' > conftest.s
22225     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22226   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22227   (eval $ac_try) 2>&5
22228   ac_status=$?
22229   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22230   test $ac_status = 0; }; }
22231     then
22232
22233 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22234 # STV_HIDDEN, so disable .hidden support if so.
22235 case "${target}" in
22236   i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22237     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22238       cat > conftest.s <<EOF
22239 .globl hidden
22240         .hidden hidden
22241 hidden:
22242 .globl default
22243         .set    default,hidden
22244 EOF
22245       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22246         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22247         grep '\.hidden default' > /dev/null; then
22248         gcc_cv_as_hidden=no
22249       else
22250         gcc_cv_as_hidden=yes
22251       fi
22252     else
22253       # Assume bug is present if objdump is missing.
22254       gcc_cv_as_hidden=no
22255     fi
22256     ;;
22257   *)
22258     gcc_cv_as_hidden=yes
22259     ;;
22260 esac
22261     else
22262       echo "configure: failed program was" >&5
22263       cat conftest.s >&5
22264     fi
22265     rm -f conftest.o conftest.s
22266   fi
22267 fi
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22269 $as_echo "$gcc_cv_as_hidden" >&6; }
22270
22271 case "${target}" in
22272   *-*-darwin*)
22273     # Darwin as has some visibility support, though with a different syntax.
22274     gcc_cv_as_hidden=yes
22275     ;;
22276 esac
22277
22278 # gnu_indirect_function type is an extension proposed at
22279 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22280 # selection of function implementation
22281 # Check whether --enable-gnu-indirect-function was given.
22282 if test "${enable_gnu_indirect_function+set}" = set; then :
22283   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22284     yes | no) ;;
22285     *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22286 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22287   esac
22288 else
22289   enable_gnu_indirect_function="$default_gnu_indirect_function"
22290 fi
22291
22292 if test x$enable_gnu_indirect_function = xyes; then
22293
22294 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22295
22296 fi
22297
22298 if test $in_tree_ld != yes ; then
22299   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22300   if echo "$ld_ver" | grep GNU > /dev/null; then
22301     if test x"$ld_is_gold" = xyes; then
22302       # GNU gold --version looks like this:
22303       #
22304       # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22305       #
22306       # We extract the binutils version which is more familiar and specific
22307       # than the gold version.
22308       ld_vers=`echo $ld_ver | sed -n \
22309           -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22310     else
22311       # GNU ld --version looks like this:
22312       #
22313       # GNU ld (GNU Binutils) 2.21.51.20110225
22314       ld_vers=`echo $ld_ver | sed -n \
22315           -e 's,^.*[     ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22316     fi
22317     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'`
22318     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22319     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22320     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22321   else
22322     case "${target}" in
22323       *-*-solaris2*)
22324         #
22325         # Solaris 2 ld -V output looks like this for a regular version:
22326         #
22327         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22328         #
22329         # but test versions add stuff at the end:
22330         #
22331         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22332         #
22333         ld_ver=`$gcc_cv_ld -V 2>&1`
22334         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22335           ld_vers=`echo $ld_ver | sed -n \
22336             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22337           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22338           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22339         fi
22340         ;;
22341     esac
22342   fi
22343 fi
22344
22345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22346 $as_echo_n "checking linker for .hidden support... " >&6; }
22347 if test "${gcc_cv_ld_hidden+set}" = set; then :
22348   $as_echo_n "(cached) " >&6
22349 else
22350   if test $in_tree_ld = yes ; then
22351   gcc_cv_ld_hidden=no
22352   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 \
22353      && test $in_tree_ld_is_elf = yes; then
22354      gcc_cv_ld_hidden=yes
22355   fi
22356 else
22357   gcc_cv_ld_hidden=yes
22358   if test x"$ld_is_gold" = xyes; then
22359     :
22360   elif echo "$ld_ver" | grep GNU > /dev/null; then
22361     if test 0"$ld_date" -lt 20020404; then
22362       if test -n "$ld_date"; then
22363         # If there was date string, but was earlier than 2002-04-04, fail
22364         gcc_cv_ld_hidden=no
22365       elif test -z "$ld_vers"; then
22366         # If there was no date string nor ld version number, something is wrong
22367         gcc_cv_ld_hidden=no
22368       else
22369         test -z "$ld_vers_patch" && ld_vers_patch=0
22370         if test "$ld_vers_major" -lt 2; then
22371           gcc_cv_ld_hidden=no
22372         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22373           gcc_cv_ld_hidden="no"
22374         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22375           gcc_cv_ld_hidden=no
22376         fi
22377       fi
22378     fi
22379   else
22380     case "${target}" in
22381       *-*-darwin*)
22382         # Darwin ld has some visibility support.
22383         gcc_cv_ld_hidden=yes
22384         ;;
22385       hppa64*-*-hpux* | ia64*-*-hpux*)
22386         gcc_cv_ld_hidden=yes
22387         ;;
22388       *-*-solaris2.8*)
22389         # .hidden support was backported to Solaris 8, starting with ld
22390         # version 1.276.
22391         if test "$ld_vers_minor" -ge 276; then
22392           gcc_cv_ld_hidden=yes
22393         else
22394           gcc_cv_ld_hidden=no
22395         fi
22396         ;;
22397       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22398         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22399         # .symbolic was only added in Solaris 9 12/02.
22400         gcc_cv_ld_hidden=yes
22401         ;;
22402       *)
22403         gcc_cv_ld_hidden=no
22404         ;;
22405     esac
22406   fi
22407 fi
22408 fi
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22410 $as_echo "$gcc_cv_ld_hidden" >&6; }
22411 libgcc_visibility=no
22412
22413
22414 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22415   libgcc_visibility=yes
22416
22417 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22418
22419 fi
22420
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22422 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22423 gcc_cv_ld_ro_rw_mix=unknown
22424 if test $in_tree_ld = yes ; then
22425   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 \
22426      && test $in_tree_ld_is_elf = yes; then
22427     gcc_cv_ld_ro_rw_mix=read-write
22428   fi
22429 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22430   echo '.section myfoosect, "a"' > conftest1.s
22431   echo '.section myfoosect, "aw"' > conftest2.s
22432   echo '.byte 1' >> conftest2.s
22433   echo '.section myfoosect, "a"' > conftest3.s
22434   echo '.byte 0' >> conftest3.s
22435   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22436      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22437      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22438      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22439         conftest2.o conftest3.o > /dev/null 2>&1; then
22440     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22441                          | sed -e '/myfoosect/!d' -e N`
22442     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22443       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22444         gcc_cv_ld_ro_rw_mix=read-only
22445       else
22446         gcc_cv_ld_ro_rw_mix=read-write
22447       fi
22448     fi
22449   fi
22450   rm -f conftest.* conftest[123].*
22451 fi
22452 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22453
22454 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22455
22456 fi
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22458 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22459
22460 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22462 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22463 if test "${gcc_cv_as_leb128+set}" = set; then :
22464   $as_echo_n "(cached) " >&6
22465 else
22466   gcc_cv_as_leb128=no
22467     if test $in_tree_gas = yes; then
22468     if test $in_tree_gas_is_elf = yes \
22469   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22470   then gcc_cv_as_leb128=yes
22471 fi
22472   elif test x$gcc_cv_as != x; then
22473     $as_echo '  .data
22474         .uleb128 L2 - L1
22475 L1:
22476         .uleb128 1280
22477         .sleb128 -1010
22478 L2:' > conftest.s
22479     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22480   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22481   (eval $ac_try) 2>&5
22482   ac_status=$?
22483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22484   test $ac_status = 0; }; }
22485     then
22486         # GAS versions before 2.11 do not support uleb128,
22487   # despite appearing to.
22488   # ??? There exists an elf-specific test that will crash
22489   # the assembler.  Perhaps it's better to figure out whether
22490   # arbitrary sections are supported and try the test.
22491   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22492   if echo "$as_ver" | grep GNU > /dev/null; then
22493     as_vers=`echo $as_ver | sed -n \
22494         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22495     as_major=`expr "$as_vers" : '\([0-9]*\)'`
22496     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22497     if test $as_major -eq 2 && test $as_minor -lt 11
22498     then :
22499     else gcc_cv_as_leb128=yes
22500     fi
22501   fi
22502     else
22503       echo "configure: failed program was" >&5
22504       cat conftest.s >&5
22505     fi
22506     rm -f conftest.o conftest.s
22507   fi
22508 fi
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22510 $as_echo "$gcc_cv_as_leb128" >&6; }
22511 if test $gcc_cv_as_leb128 = yes; then
22512
22513 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22514
22515 fi
22516
22517 # Check if we have assembler support for unwind directives.
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22519 $as_echo_n "checking assembler for cfi directives... " >&6; }
22520 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22521   $as_echo_n "(cached) " >&6
22522 else
22523   gcc_cv_as_cfi_directive=no
22524   if test x$gcc_cv_as != x; then
22525     $as_echo '  .text
22526         .cfi_startproc
22527         .cfi_offset 0, 0
22528         .cfi_same_value 1
22529         .cfi_def_cfa 1, 2
22530         .cfi_escape 1, 2, 3, 4, 5
22531         .cfi_endproc' > conftest.s
22532     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22533   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22534   (eval $ac_try) 2>&5
22535   ac_status=$?
22536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22537   test $ac_status = 0; }; }
22538     then
22539         case "$target" in
22540   *-*-solaris*)
22541     # If the linker used on Solaris (like Sun ld) isn't capable of merging
22542     # read-only and read-write sections, we need to make sure that the
22543     # assembler used emits read-write .eh_frame sections.
22544     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22545       if test "x$gcc_cv_objdump" != x; then
22546         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22547                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22548           gcc_cv_as_cfi_directive=no
22549         else
22550           case "$target" in
22551             i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22552               # On Solaris/x86, make sure that GCC and gas agree on using
22553               # read-only .eh_frame sections for 64-bit.
22554               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22555                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22556                         sed -e /.eh_frame/!d -e N | \
22557                         grep READONLY > /dev/null; then
22558                 gcc_cv_as_cfi_directive=yes
22559               else
22560                 gcc_cv_as_cfi_directive=no
22561               fi
22562               ;;
22563             *)
22564               gcc_cv_as_cfi_directive=yes
22565               ;;
22566           esac
22567         fi
22568       else
22569         # no objdump, err on the side of caution
22570         gcc_cv_as_cfi_directive=no
22571       fi
22572     else
22573       gcc_cv_as_cfi_directive=yes
22574     fi
22575     ;;
22576   *-*-*)
22577     gcc_cv_as_cfi_directive=yes
22578     ;;
22579 esac
22580     else
22581       echo "configure: failed program was" >&5
22582       cat conftest.s >&5
22583     fi
22584     rm -f conftest.o conftest.s
22585   fi
22586 fi
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22588 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22589
22590 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22592 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22593 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22594   $as_echo_n "(cached) " >&6
22595 else
22596   gcc_cv_as_cfi_advance_working=no
22597   if test x$gcc_cv_as != x; then
22598     $as_echo '  .text
22599         .cfi_startproc
22600         .cfi_adjust_cfa_offset 64
22601         .skip 75040, 0
22602         .cfi_adjust_cfa_offset 128
22603         .cfi_endproc' > conftest.s
22604     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22605   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22606   (eval $ac_try) 2>&5
22607   ac_status=$?
22608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22609   test $ac_status = 0; }; }
22610     then
22611
22612 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22613     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
22614    gcc_cv_as_cfi_advance_working=yes
22615 fi
22616
22617     else
22618       echo "configure: failed program was" >&5
22619       cat conftest.s >&5
22620     fi
22621     rm -f conftest.o conftest.s
22622   fi
22623 fi
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22625 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22626
22627 else
22628   # no objdump, err on the side of caution
22629   gcc_cv_as_cfi_advance_working=no
22630 fi
22631
22632
22633 cat >>confdefs.h <<_ACEOF
22634 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22635        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22636 _ACEOF
22637
22638
22639
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22641 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22642 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22643   $as_echo_n "(cached) " >&6
22644 else
22645   gcc_cv_as_cfi_personality_directive=no
22646   if test x$gcc_cv_as != x; then
22647     $as_echo '  .text
22648         .cfi_startproc
22649         .cfi_personality 0, symbol
22650         .cfi_endproc' > conftest.s
22651     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22652   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22653   (eval $ac_try) 2>&5
22654   ac_status=$?
22655   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22656   test $ac_status = 0; }; }
22657     then
22658         gcc_cv_as_cfi_personality_directive=yes
22659     else
22660       echo "configure: failed program was" >&5
22661       cat conftest.s >&5
22662     fi
22663     rm -f conftest.o conftest.s
22664   fi
22665 fi
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22667 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22668
22669
22670 cat >>confdefs.h <<_ACEOF
22671 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22672     then echo 1; else echo 0; fi`
22673 _ACEOF
22674
22675
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22677 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22678 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22679   $as_echo_n "(cached) " >&6
22680 else
22681   gcc_cv_as_cfi_sections_directive=no
22682   if test x$gcc_cv_as != x; then
22683     $as_echo '  .text
22684         .cfi_sections .debug_frame, .eh_frame
22685         .cfi_startproc
22686         .cfi_endproc' > conftest.s
22687     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22688   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22689   (eval $ac_try) 2>&5
22690   ac_status=$?
22691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22692   test $ac_status = 0; }; }
22693     then
22694         case $target_os in
22695   win32 | pe | cygwin* | mingw32* | uwin*)
22696     # Need to check that we generated the correct relocation for the
22697     # .debug_frame section.  This was fixed for binutils 2.21.
22698     gcc_cv_as_cfi_sections_directive=no
22699     if test "x$gcc_cv_objdump" != x; then
22700      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22701         grep secrel > /dev/null; then
22702       gcc_cv_as_cfi_sections_directive=yes
22703      fi
22704     fi
22705     ;;
22706   *)
22707     gcc_cv_as_cfi_sections_directive=yes
22708     ;;
22709 esac
22710     else
22711       echo "configure: failed program was" >&5
22712       cat conftest.s >&5
22713     fi
22714     rm -f conftest.o conftest.s
22715   fi
22716 fi
22717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22718 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22719
22720
22721
22722 cat >>confdefs.h <<_ACEOF
22723 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22724     then echo 1; else echo 0; fi`
22725 _ACEOF
22726
22727
22728 # GAS versions up to and including 2.11.0 may mis-optimize
22729 # .eh_frame data.
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22731 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22732 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22733   $as_echo_n "(cached) " >&6
22734 else
22735   gcc_cv_as_eh_frame=no
22736     if test $in_tree_gas = yes; then
22737     if test $in_tree_gas_is_elf = yes \
22738   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22739   then gcc_cv_as_eh_frame=yes
22740 fi
22741   elif test x$gcc_cv_as != x; then
22742     $as_echo '  .text
22743 .LFB1:
22744         .4byte  0
22745 .L1:
22746         .4byte  0
22747 .LFE1:
22748         .section        .eh_frame,"aw",@progbits
22749 __FRAME_BEGIN__:
22750         .4byte  .LECIE1-.LSCIE1
22751 .LSCIE1:
22752         .4byte  0x0
22753         .byte   0x1
22754         .ascii "z\0"
22755         .byte   0x1
22756         .byte   0x78
22757         .byte   0x1a
22758         .byte   0x0
22759         .byte   0x4
22760         .4byte  1
22761         .p2align 1
22762 .LECIE1:
22763 .LSFDE1:
22764         .4byte  .LEFDE1-.LASFDE1
22765 .LASFDE1:
22766         .4byte  .LASFDE1-__FRAME_BEGIN__
22767         .4byte  .LFB1
22768         .4byte  .LFE1-.LFB1
22769         .byte   0x4
22770         .4byte  .LFE1-.LFB1
22771         .byte   0x4
22772         .4byte  .L1-.LFB1
22773 .LEFDE1:' > conftest.s
22774     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22775   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22776   (eval $ac_try) 2>&5
22777   ac_status=$?
22778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22779   test $ac_status = 0; }; }
22780     then
22781           cat > conftest.lit <<EOF
22782  0000 10000000 00000000 017a0001 781a0004  .........z..x...
22783  0010 01000000 12000000 18000000 00000000  ................
22784  0020 08000000 04080000 0044               .........D      
22785 EOF
22786 cat > conftest.big <<EOF
22787  0000 00000010 00000000 017a0001 781a0004  .........z..x...
22788  0010 00000001 00000012 00000018 00000000  ................
22789  0020 00000008 04000000 0844               .........D      
22790 EOF
22791   # If the assembler didn't choke, and we can objdump,
22792   # and we got the correct data, then succeed.
22793   # The text in the here-document typically retains its unix-style line
22794   # endings, while the output of objdump will use host line endings.
22795   # Therefore, use diff -b for the comparisons.
22796   if test x$gcc_cv_objdump != x \
22797   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22798      | tail -3 > conftest.got \
22799   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22800     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22801   then
22802     gcc_cv_as_eh_frame=yes
22803   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22804   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22805   (eval $ac_try) 2>&5
22806   ac_status=$?
22807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22808   test $ac_status = 0; }; }; then
22809     gcc_cv_as_eh_frame=buggy
22810   else
22811     # Uh oh, what do we do now?
22812     gcc_cv_as_eh_frame=no
22813   fi
22814     else
22815       echo "configure: failed program was" >&5
22816       cat conftest.s >&5
22817     fi
22818     rm -f conftest.o conftest.s
22819   fi
22820 fi
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22822 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22823
22824
22825 if test $gcc_cv_as_eh_frame = buggy; then
22826
22827 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22828
22829 fi
22830
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22832 $as_echo_n "checking assembler for section merging support... " >&6; }
22833 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22834   $as_echo_n "(cached) " >&6
22835 else
22836   gcc_cv_as_shf_merge=no
22837     if test $in_tree_gas = yes; then
22838     if test $in_tree_gas_is_elf = yes \
22839   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22840   then gcc_cv_as_shf_merge=yes
22841 fi
22842   elif test x$gcc_cv_as != x; then
22843     $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22844     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22845   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22846   (eval $ac_try) 2>&5
22847   ac_status=$?
22848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22849   test $ac_status = 0; }; }
22850     then
22851         gcc_cv_as_shf_merge=yes
22852     else
22853       echo "configure: failed program was" >&5
22854       cat conftest.s >&5
22855     fi
22856     rm -f conftest.o conftest.s
22857   fi
22858 fi
22859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22860 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22861
22862 if test $gcc_cv_as_shf_merge = no; then
22863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22864 $as_echo_n "checking assembler for section merging support... " >&6; }
22865 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22866   $as_echo_n "(cached) " >&6
22867 else
22868   gcc_cv_as_shf_merge=no
22869     if test $in_tree_gas = yes; then
22870     if test $in_tree_gas_is_elf = yes \
22871   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22872   then gcc_cv_as_shf_merge=yes
22873 fi
22874   elif test x$gcc_cv_as != x; then
22875     $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22876     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22877   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22878   (eval $ac_try) 2>&5
22879   ac_status=$?
22880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22881   test $ac_status = 0; }; }
22882     then
22883         gcc_cv_as_shf_merge=yes
22884     else
22885       echo "configure: failed program was" >&5
22886       cat conftest.s >&5
22887     fi
22888     rm -f conftest.o conftest.s
22889   fi
22890 fi
22891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22892 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22893
22894 fi
22895
22896 cat >>confdefs.h <<_ACEOF
22897 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22898 _ACEOF
22899
22900
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22902 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22903 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22904   $as_echo_n "(cached) " >&6
22905 else
22906   gcc_cv_as_comdat_group=no
22907     if test $in_tree_gas = yes; then
22908     if test $in_tree_gas_is_elf = yes \
22909   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22910   then gcc_cv_as_comdat_group=yes
22911 fi
22912   elif test x$gcc_cv_as != x; then
22913     $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22914     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22915   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22916   (eval $ac_try) 2>&5
22917   ac_status=$?
22918   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22919   test $ac_status = 0; }; }
22920     then
22921         gcc_cv_as_comdat_group=yes
22922     else
22923       echo "configure: failed program was" >&5
22924       cat conftest.s >&5
22925     fi
22926     rm -f conftest.o conftest.s
22927   fi
22928 fi
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22930 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22931
22932 if test $gcc_cv_as_comdat_group = yes; then
22933   gcc_cv_as_comdat_group_percent=no
22934   gcc_cv_as_comdat_group_group=no
22935 else
22936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22937 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22938 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22939   $as_echo_n "(cached) " >&6
22940 else
22941   gcc_cv_as_comdat_group_percent=no
22942     if test $in_tree_gas = yes; then
22943     if test $in_tree_gas_is_elf = yes \
22944   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22945   then gcc_cv_as_comdat_group_percent=yes
22946 fi
22947   elif test x$gcc_cv_as != x; then
22948     $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22949     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22950   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22951   (eval $ac_try) 2>&5
22952   ac_status=$?
22953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22954   test $ac_status = 0; }; }
22955     then
22956         gcc_cv_as_comdat_group_percent=yes
22957     else
22958       echo "configure: failed program was" >&5
22959       cat conftest.s >&5
22960     fi
22961     rm -f conftest.o conftest.s
22962   fi
22963 fi
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22965 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22966
22967  if test $gcc_cv_as_comdat_group_percent = yes; then
22968    gcc_cv_as_comdat_group_group=no
22969  else
22970    case "${target}" in
22971      # Sun as uses a completely different syntax.
22972      *-*-solaris2*)
22973        case "${target}" in
22974          sparc*-*-solaris2*)
22975            conftest_s='
22976                .group foo,".text%foo",#comdat
22977                .section ".text%foo", #alloc,#execinstr,#progbits
22978                .globl foo
22979              foo:
22980              '
22981            ;;
22982          i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22983            conftest_s='
22984                .group foo,.text%foo,#comdat
22985                .section .text%foo, "ax", @progbits
22986                .globl  foo
22987              foo:
22988              '
22989            ;;
22990        esac
22991        { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22992 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22993 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22994   $as_echo_n "(cached) " >&6
22995 else
22996   gcc_cv_as_comdat_group_group=no
22997   if test x$gcc_cv_as != x; then
22998     $as_echo "$conftest_s" > conftest.s
22999     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23000   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23001   (eval $ac_try) 2>&5
23002   ac_status=$?
23003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23004   test $ac_status = 0; }; }
23005     then
23006         gcc_cv_as_comdat_group_group=yes
23007     else
23008       echo "configure: failed program was" >&5
23009       cat conftest.s >&5
23010     fi
23011     rm -f conftest.o conftest.s
23012   fi
23013 fi
23014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23015 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23016
23017        ;;
23018    esac
23019  fi
23020 fi
23021 if test x"$ld_is_gold" = xyes; then
23022   comdat_group=yes
23023 elif test $in_tree_ld = yes ; then
23024   comdat_group=no
23025   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 \
23026      && test $in_tree_ld_is_elf = yes; then
23027      comdat_group=yes
23028   fi
23029 elif echo "$ld_ver" | grep GNU > /dev/null; then
23030   comdat_group=yes
23031   if test 0"$ld_date" -lt 20050308; then
23032     if test -n "$ld_date"; then
23033       # If there was date string, but was earlier than 2005-03-08, fail
23034       comdat_group=no
23035     elif test "$ld_vers_major" -lt 2; then
23036       comdat_group=no
23037     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23038       comdat_group=no
23039     fi
23040   fi
23041 else
23042   case "${target}" in
23043     *-*-solaris2.1[1-9]*)
23044       comdat_group=no
23045       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23046       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23047       # version 1.688.
23048       #
23049       # If using Sun as for COMDAT group as emitted by GCC, one needs at
23050       # least ld version 1.2267.
23051       if test "$ld_vers_major" -gt 1; then
23052         comdat_group=yes
23053       elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
23054         comdat_group=yes
23055       elif test "$ld_vers_minor" -ge 2267; then
23056         comdat_group=yes
23057       fi
23058       ;;
23059     *)
23060       # Assume linkers other than GNU ld don't support COMDAT group.
23061       comdat_group=no
23062       ;;
23063   esac
23064 fi
23065 # Allow overriding the automatic COMDAT group tests above.
23066 # Check whether --enable-comdat was given.
23067 if test "${enable_comdat+set}" = set; then :
23068   enableval=$enable_comdat; comdat_group="$enable_comdat"
23069 fi
23070
23071 if test $comdat_group = no; then
23072   gcc_cv_as_comdat_group=no
23073   gcc_cv_as_comdat_group_percent=no
23074   gcc_cv_as_comdat_group_group=no
23075 fi
23076
23077 cat >>confdefs.h <<_ACEOF
23078 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23079     || test $gcc_cv_as_comdat_group_percent = yes \
23080     || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23081 _ACEOF
23082
23083
23084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23085 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23086 if test "${gcc_cv_as_discriminator+set}" = set; then :
23087   $as_echo_n "(cached) " >&6
23088 else
23089   gcc_cv_as_discriminator=no
23090     if test $in_tree_gas = yes; then
23091     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23092   then gcc_cv_as_discriminator=yes
23093 fi
23094   elif test x$gcc_cv_as != x; then
23095     $as_echo '  .text
23096         .file 1 "conf.c"
23097         .loc 1 1 0 discriminator 1' > conftest.s
23098     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23099   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23100   (eval $ac_try) 2>&5
23101   ac_status=$?
23102   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23103   test $ac_status = 0; }; }
23104     then
23105         gcc_cv_as_discriminator=yes
23106     else
23107       echo "configure: failed program was" >&5
23108       cat conftest.s >&5
23109     fi
23110     rm -f conftest.o conftest.s
23111   fi
23112 fi
23113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23114 $as_echo "$gcc_cv_as_discriminator" >&6; }
23115 if test $gcc_cv_as_discriminator = yes; then
23116
23117 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23118
23119 fi
23120
23121 # Thread-local storage - the check is heavily parameterized.
23122 conftest_s=
23123 tls_first_major=
23124 tls_first_minor=
23125 tls_as_opt=
23126 case "$target" in
23127   alpha*-*-*)
23128     conftest_s='
23129         .section ".tdata","awT",@progbits
23130 foo:    .long   25
23131         .text
23132         ldq     $27,__tls_get_addr($29)         !literal!1
23133         lda     $16,foo($29)                    !tlsgd!1
23134         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
23135         ldq     $27,__tls_get_addr($29)         !literal!2
23136         lda     $16,foo($29)                    !tlsldm!2
23137         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
23138         ldq     $1,foo($29)                     !gotdtprel
23139         ldah    $2,foo($29)                     !dtprelhi
23140         lda     $3,foo($2)                      !dtprello
23141         lda     $4,foo($29)                     !dtprel
23142         ldq     $1,foo($29)                     !gottprel
23143         ldah    $2,foo($29)                     !tprelhi
23144         lda     $3,foo($2)                      !tprello
23145         lda     $4,foo($29)                     !tprel'
23146         tls_first_major=2
23147         tls_first_minor=13
23148         tls_as_opt=--fatal-warnings
23149         ;;
23150   cris-*-*|crisv32-*-*)
23151     conftest_s='
23152         .section ".tdata","awT",@progbits
23153 x:      .long   25
23154         .text
23155         move.d x:IE,$r10
23156         nop'
23157         tls_first_major=2
23158         tls_first_minor=20
23159         tls_as_opt=--fatal-warnings
23160         ;;
23161   frv*-*-*)
23162     conftest_s='
23163         .section ".tdata","awT",@progbits
23164 x:      .long   25
23165         .text
23166         call    #gettlsoff(x)'
23167         tls_first_major=2
23168         tls_first_minor=14
23169         ;;
23170   hppa*-*-linux*)
23171     conftest_s='
23172 t1:     .reg    %r20
23173 t2:     .reg    %r21
23174 gp:     .reg    %r19
23175         .section ".tdata","awT",@progbits
23176 foo:    .long   25
23177         .text
23178         .align  4
23179         addil LT%foo-$tls_gdidx$,gp
23180         ldo RT%foo-$tls_gdidx$(%r1),%arg0
23181         b __tls_get_addr
23182         nop
23183         addil LT%foo-$tls_ldidx$,gp
23184         b __tls_get_addr
23185         ldo RT%foo-$tls_ldidx$(%r1),%arg0
23186         addil LR%foo-$tls_dtpoff$,%ret0
23187         ldo RR%foo-$tls_dtpoff$(%r1),%t1
23188         mfctl %cr27,%t1
23189         addil LT%foo-$tls_ieoff$,gp
23190         ldw RT%foo-$tls_ieoff$(%r1),%t2
23191         add %t1,%t2,%t3
23192         mfctl %cr27,%t1
23193         addil LR%foo-$tls_leoff$,%t1
23194         ldo RR%foo-$tls_leoff$(%r1),%t2'
23195         tls_first_major=2
23196         tls_first_minor=15
23197         tls_as_opt=--fatal-warnings
23198         ;;
23199   arm*-*-*)
23200     conftest_s='
23201         .section ".tdata","awT",%progbits
23202 foo:    .long   25
23203         .text
23204 .word foo(gottpoff)
23205 .word foo(tpoff)
23206 .word foo(tlsgd)
23207 .word foo(tlsldm)
23208 .word foo(tlsldo)'
23209         tls_first_major=2
23210         tls_first_minor=17
23211         ;;
23212   i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23213     case "$target" in
23214       i[34567]86-*-solaris2.*)
23215         on_solaris=yes
23216         tga_func=___tls_get_addr
23217         ;;
23218       x86_64-*-solaris2.1[0-9]*)
23219         on_solaris=yes
23220         tga_func=__tls_get_addr
23221         ;;
23222       *)
23223         on_solaris=no
23224         ;;
23225     esac
23226     if test x$on_solaris = xyes && test x$gas_flag = xno; then
23227       conftest_s='
23228         .section .tdata,"awt",@progbits'
23229       tls_first_major=0
23230       tls_first_minor=0
23231
23232 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23233
23234     else
23235       conftest_s='
23236         .section ".tdata","awT",@progbits'
23237       tls_first_major=2
23238       tls_first_minor=14
23239       tls_as_opt="--fatal-warnings"
23240     fi
23241     conftest_s="$conftest_s
23242 foo:    .long   25
23243         .text
23244         movl    %gs:0, %eax
23245         leal    foo@tlsgd(,%ebx,1), %eax
23246         leal    foo@tlsldm(%ebx), %eax
23247         leal    foo@dtpoff(%eax), %edx
23248         movl    foo@gottpoff(%ebx), %eax
23249         subl    foo@gottpoff(%ebx), %eax
23250         addl    foo@gotntpoff(%ebx), %eax
23251         movl    foo@indntpoff, %eax
23252         movl    \$foo@tpoff, %eax
23253         subl    \$foo@tpoff, %eax
23254         leal    foo@ntpoff(%ecx), %eax"
23255     ;;
23256   x86_64-*-*)
23257     conftest_s='
23258         .section ".tdata","awT",@progbits
23259 foo:    .long   25
23260         .text
23261         movq    %fs:0, %rax
23262         leaq    foo@TLSGD(%rip), %rdi
23263         leaq    foo@TLSLD(%rip), %rdi
23264         leaq    foo@DTPOFF(%rax), %rdx
23265         movq    foo@GOTTPOFF(%rip), %rax
23266         movq    $foo@TPOFF, %rax'
23267         tls_first_major=2
23268         tls_first_minor=14
23269         tls_as_opt=--fatal-warnings
23270         ;;
23271   ia64-*-*)
23272     conftest_s='
23273         .section ".tdata","awT",@progbits
23274 foo:    data8   25
23275         .text
23276         addl    r16 = @ltoff(@dtpmod(foo#)), gp
23277         addl    r17 = @ltoff(@dtprel(foo#)), gp
23278         addl    r18 = @ltoff(@tprel(foo#)), gp
23279         addl    r19 = @dtprel(foo#), gp
23280         adds    r21 = @dtprel(foo#), r13
23281         movl    r23 = @dtprel(foo#)
23282         addl    r20 = @tprel(foo#), gp
23283         adds    r22 = @tprel(foo#), r13
23284         movl    r24 = @tprel(foo#)'
23285         tls_first_major=2
23286         tls_first_minor=13
23287         tls_as_opt=--fatal-warnings
23288         ;;
23289   mips*-*-*)
23290     conftest_s='
23291         .section .tdata,"awT",@progbits
23292 x:
23293         .word 2
23294         .text
23295         addiu $4, $28, %tlsgd(x)
23296         addiu $4, $28, %tlsldm(x)
23297         lui $4, %dtprel_hi(x)
23298         addiu $4, $4, %dtprel_lo(x)
23299         lw $4, %gottprel(x)($28)
23300         lui $4, %tprel_hi(x)
23301         addiu $4, $4, %tprel_lo(x)'
23302         tls_first_major=2
23303         tls_first_minor=16
23304         tls_as_opt='-32 --fatal-warnings'
23305         ;;
23306   m68k-*-*)
23307     conftest_s='
23308         .section .tdata,"awT",@progbits
23309 x:
23310         .word 2
23311         .text
23312 foo:
23313         move.l x@TLSGD(%a5),%a0
23314         move.l x@TLSLDM(%a5),%a0
23315         move.l x@TLSLDO(%a5),%a0
23316         move.l x@TLSIE(%a5),%a0
23317         move.l x@TLSLE(%a5),%a0'
23318         tls_first_major=2
23319         tls_first_minor=19
23320         tls_as_opt='--fatal-warnings'
23321         ;;
23322   powerpc-*-*)
23323     conftest_s='
23324         .section ".tdata","awT",@progbits
23325         .align 2
23326 ld0:    .space 4
23327 ld1:    .space 4
23328 x1:     .space 4
23329 x2:     .space 4
23330 x3:     .space 4
23331         .text
23332         addi 3,31,ld0@got@tlsgd
23333         bl __tls_get_addr
23334         addi 3,31,x1@got@tlsld
23335         bl __tls_get_addr
23336         addi 9,3,x1@dtprel
23337         addis 9,3,x2@dtprel@ha
23338         addi 9,9,x2@dtprel@l
23339         lwz 9,x3@got@tprel(31)
23340         add 9,9,x@tls
23341         addi 9,2,x1@tprel
23342         addis 9,2,x2@tprel@ha
23343         addi 9,9,x2@tprel@l'
23344         tls_first_major=2
23345         tls_first_minor=14
23346         tls_as_opt="-a32 --fatal-warnings"
23347         ;;
23348   powerpc64-*-*)
23349     conftest_s='
23350         .section ".tdata","awT",@progbits
23351         .align 3
23352 ld0:    .space 8
23353 ld1:    .space 8
23354 x1:     .space 8
23355 x2:     .space 8
23356 x3:     .space 8
23357         .text
23358         addi 3,2,ld0@got@tlsgd
23359         bl .__tls_get_addr
23360         nop
23361         addi 3,2,ld1@toc
23362         bl .__tls_get_addr
23363         nop
23364         addi 3,2,x1@got@tlsld
23365         bl .__tls_get_addr
23366         nop
23367         addi 9,3,x1@dtprel
23368         bl .__tls_get_addr
23369         nop
23370         addis 9,3,x2@dtprel@ha
23371         addi 9,9,x2@dtprel@l
23372         bl .__tls_get_addr
23373         nop
23374         ld 9,x3@got@dtprel(2)
23375         add 9,9,3
23376         bl .__tls_get_addr
23377         nop'
23378         tls_first_major=2
23379         tls_first_minor=14
23380         tls_as_opt="-a64 --fatal-warnings"
23381         ;;
23382   s390-*-*)
23383     conftest_s='
23384         .section ".tdata","awT",@progbits
23385 foo:    .long   25
23386         .text
23387         .long   foo@TLSGD
23388         .long   foo@TLSLDM
23389         .long   foo@DTPOFF
23390         .long   foo@NTPOFF
23391         .long   foo@GOTNTPOFF
23392         .long   foo@INDNTPOFF
23393         l       %r1,foo@GOTNTPOFF(%r12)
23394         l       %r1,0(%r1):tls_load:foo
23395         bas     %r14,0(%r1,%r13):tls_gdcall:foo
23396         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
23397         tls_first_major=2
23398         tls_first_minor=14
23399         tls_as_opt="-m31 --fatal-warnings"
23400         ;;
23401   s390x-*-*)
23402     conftest_s='
23403         .section ".tdata","awT",@progbits
23404 foo:    .long   25
23405         .text
23406         .quad   foo@TLSGD
23407         .quad   foo@TLSLDM
23408         .quad   foo@DTPOFF
23409         .quad   foo@NTPOFF
23410         .quad   foo@GOTNTPOFF
23411         lg      %r1,foo@GOTNTPOFF(%r12)
23412         larl    %r1,foo@INDNTPOFF
23413         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
23414         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23415         tls_first_major=2
23416         tls_first_minor=14
23417         tls_as_opt="-m64 -Aesame --fatal-warnings"
23418         ;;
23419   sh-*-* | sh[34]-*-*)
23420     conftest_s='
23421         .section ".tdata","awT",@progbits
23422 foo:    .long   25
23423         .text
23424         .long   foo@TLSGD
23425         .long   foo@TLSLDM
23426         .long   foo@DTPOFF
23427         .long   foo@GOTTPOFF
23428         .long   foo@TPOFF'
23429         tls_first_major=2
23430         tls_first_minor=13
23431         tls_as_opt=--fatal-warnings
23432         ;;
23433   sparc*-*-*)
23434     case "$target" in
23435       sparc*-sun-solaris2.*)
23436         on_solaris=yes
23437         tga_func=__tls_get_addr
23438         ;;
23439       *)
23440         on_solaris=no
23441         ;;
23442     esac
23443     if test x$on_solaris = xyes && test x$gas_flag = xno; then
23444       conftest_s='
23445         .section ".tdata",#alloc,#write,#tls'
23446         tls_first_major=0
23447         tls_first_minor=0
23448     else
23449       conftest_s='
23450         .section ".tdata","awT",@progbits'
23451         tls_first_major=2
23452         tls_first_minor=14
23453         tls_as_opt="-32 --fatal-warnings"
23454     fi
23455     conftest_s="$conftest_s
23456 foo:    .long   25
23457         .text
23458         sethi   %tgd_hi22(foo), %o0
23459         add     %o0, %tgd_lo10(foo), %o1
23460         add     %l7, %o1, %o0, %tgd_add(foo)
23461         call    __tls_get_addr, %tgd_call(foo)
23462         sethi   %tldm_hi22(foo), %l1
23463         add     %l1, %tldm_lo10(foo), %l2
23464         add     %l7, %l2, %o0, %tldm_add(foo)
23465         call    __tls_get_addr, %tldm_call(foo)
23466         sethi   %tldo_hix22(foo), %l3
23467         xor     %l3, %tldo_lox10(foo), %l4
23468         add     %o0, %l4, %l5, %tldo_add(foo)
23469         sethi   %tie_hi22(foo), %o3
23470         add     %o3, %tie_lo10(foo), %o3
23471         ld      [%l7 + %o3], %o2, %tie_ld(foo)
23472         add     %g7, %o2, %o4, %tie_add(foo)
23473         sethi   %tle_hix22(foo), %l1
23474         xor     %l1, %tle_lox10(foo), %o5
23475         ld      [%g7 + %o5], %o1"
23476         ;;
23477   xtensa*-*-*)
23478     conftest_s='
23479         .section ".tdata","awT",@progbits
23480 foo:    .long   25
23481         .text
23482         movi    a8, foo@TLSFUNC
23483         movi    a10, foo@TLSARG
23484         callx8.tls a8, foo@TLSCALL'
23485         tls_first_major=2
23486         tls_first_minor=19
23487         ;;
23488 esac
23489 set_have_as_tls=no
23490 if test "x$enable_tls" = xno ; then
23491   : # TLS explicitly disabled.
23492 elif test "x$enable_tls" = xyes ; then
23493   set_have_as_tls=yes # TLS explicitly enabled.
23494 elif test -z "$tls_first_major"; then
23495   : # If we don't have a check, assume no support.
23496 else
23497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23498 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23499 if test "${gcc_cv_as_tls+set}" = set; then :
23500   $as_echo_n "(cached) " >&6
23501 else
23502   gcc_cv_as_tls=no
23503     if test $in_tree_gas = yes; then
23504     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23505   then gcc_cv_as_tls=yes
23506 fi
23507   elif test x$gcc_cv_as != x; then
23508     $as_echo "$conftest_s" > conftest.s
23509     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23510   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23511   (eval $ac_try) 2>&5
23512   ac_status=$?
23513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23514   test $ac_status = 0; }; }
23515     then
23516         gcc_cv_as_tls=yes
23517     else
23518       echo "configure: failed program was" >&5
23519       cat conftest.s >&5
23520     fi
23521     rm -f conftest.o conftest.s
23522   fi
23523 fi
23524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23525 $as_echo "$gcc_cv_as_tls" >&6; }
23526 if test $gcc_cv_as_tls = yes; then
23527   set_have_as_tls=yes
23528 fi
23529 fi
23530 case "$target" in
23531   *-*-irix6*)
23532     # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23533     # with TLS support are in use, native TLS cannot work.
23534     set_have_as_tls=no
23535     ;;
23536   *-*-osf*)
23537     # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23538     # gld with TLS support are in use, native TLS cannot work.
23539     set_have_as_tls=no
23540     ;;
23541   # TLS was introduced in the Solaris 9 FCS release and backported to
23542   # Solaris 8 patches.  Support for GNU-style TLS on x86 was only
23543   # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23544   # ld and GCC don't support any longer.
23545   *-*-solaris2.*)
23546     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23547 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23548     ld_tls_support=no
23549     # Check ld and ld.so.1 TLS support.
23550     if echo "$ld_ver" | grep GNU > /dev/null; then
23551       # Assume all interesting versions of GNU ld have TLS support.
23552       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23553       ld_tls_support=yes
23554     else
23555       case "$target" in
23556         # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23557         i?86-*-solaris2.8)
23558           min_tls_ld_vers_minor=280
23559           ;;
23560         # Solaris 8/SPARC ld has TLS support since version 1.272.
23561         sparc*-*-solaris2.8)
23562           min_tls_ld_vers_minor=272
23563           ;;
23564         # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23565         i?86-*-solaris2.9)
23566           min_tls_ld_vers_minor=374
23567           ;;
23568         # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23569         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23570           min_tls_ld_vers_minor=343
23571           ;;
23572       esac
23573       if test "$ld_vers_major" -gt 1 || \
23574         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23575         ld_tls_support=yes
23576       else
23577         set_have_as_tls=no
23578       fi
23579     fi
23580     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23581 $as_echo "$ld_tls_support" >&6; }
23582
23583     save_LIBS="$LIBS"
23584     save_LDFLAGS="$LDFLAGS"
23585     LIBS=
23586     LDFLAGS=
23587
23588     { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23589 $as_echo_n "checking alternate thread library... " >&6; }
23590     case "$target" in
23591       # TLS support was backported to Solaris 8 patches, but only lives in
23592       # the alternate thread library which became the default in Solaris 9.
23593       # We want to always use that, irrespective of TLS support.
23594       *-*-solaris2.8)
23595         # Take multilib subdir into account.  There's no spec to handle
23596         # this.  The 64 symlink exists since Solaris 8.
23597         lwp_dir=/usr/lib/lwp
23598         lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23599         LDFLAGS="-L$lwp_dir -R$lwp_dir"
23600         ;;
23601       *-*-solaris2*)
23602         lwp_dir="none"
23603         lwp_spec=""
23604         ;;
23605     esac
23606     # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23607
23608 cat >>confdefs.h <<_ACEOF
23609 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23610 _ACEOF
23611
23612     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23613 $as_echo "$lwp_dir" >&6; }
23614
23615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23616 $as_echo_n "checking library containing $tga_func... " >&6; }
23617     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23618     # (32-bit x86) only lived in libthread, so check for that.  Keep
23619     # set_have_as_tls if found, disable if not.
23620     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23622 $as_echo_n "checking for library containing $tga_func... " >&6; }
23623 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23624   $as_echo_n "(cached) " >&6
23625 else
23626   ac_func_search_save_LIBS=$LIBS
23627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23628 /* end confdefs.h.  */
23629
23630 /* Override any GCC internal prototype to avoid an error.
23631    Use char because int might match the return type of a GCC
23632    builtin and then its argument prototype would still apply.  */
23633 #ifdef __cplusplus
23634 extern "C"
23635 #endif
23636 char $tga_func ();
23637 int
23638 main ()
23639 {
23640 return $tga_func ();
23641   ;
23642   return 0;
23643 }
23644 _ACEOF
23645 for ac_lib in '' thread; do
23646   if test -z "$ac_lib"; then
23647     ac_res="none required"
23648   else
23649     ac_res=-l$ac_lib
23650     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23651   fi
23652   if ac_fn_c_try_link "$LINENO"; then :
23653   eval "$as_ac_Search=\$ac_res"
23654 fi
23655 rm -f core conftest.err conftest.$ac_objext \
23656     conftest$ac_exeext
23657   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23658   break
23659 fi
23660 done
23661 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23662
23663 else
23664   eval "$as_ac_Search=no"
23665 fi
23666 rm conftest.$ac_ext
23667 LIBS=$ac_func_search_save_LIBS
23668 fi
23669 eval ac_res=\$$as_ac_Search
23670                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23671 $as_echo "$ac_res" >&6; }
23672 eval ac_res=\$$as_ac_Search
23673 if test "$ac_res" != no; then :
23674   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23675
23676 else
23677   set_have_as_tls=no
23678 fi
23679
23680     # Clear LIBS if we cannot support TLS.
23681     if test $set_have_as_tls = no; then
23682       LIBS=
23683     fi
23684     # Always define LIB_TLS_SPEC, even without TLS support.
23685
23686 cat >>confdefs.h <<_ACEOF
23687 #define LIB_TLS_SPEC "$LIBS"
23688 _ACEOF
23689
23690     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23691 $as_echo "$LIBS" >&6; }
23692
23693     LIBS="$save_LIBS"
23694     LDFLAGS="$save_LDFLAGS"
23695     ;;
23696 esac
23697 if test $set_have_as_tls = yes ; then
23698
23699 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23700
23701 fi
23702
23703 # Target-specific assembler checks.
23704
23705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23706 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23707 gcc_cv_ld_static_dynamic=no
23708 gcc_cv_ld_static_option='-Bstatic'
23709 gcc_cv_ld_dynamic_option='-Bdynamic'
23710 if test $in_tree_ld = yes ; then
23711   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
23712     gcc_cv_ld_static_dynamic=yes
23713   fi
23714 elif test x$gcc_cv_ld != x; then
23715   # Check if linker supports -Bstatic/-Bdynamic option
23716   if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23717      && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23718       gcc_cv_ld_static_dynamic=yes
23719   else
23720     case "$target" in
23721       # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23722       alpha*-dec-osf*)
23723         gcc_cv_ld_static_dynamic=yes
23724         gcc_cv_ld_static_option="-noso"
23725         gcc_cv_ld_dynamic_option="-so_archive"
23726         ;;
23727       # HP-UX ld uses -a flags to select between shared and archive.
23728       *-*-hpux*)
23729         if test x"$gnu_ld" = xno; then
23730           gcc_cv_ld_static_dynamic=yes
23731           gcc_cv_ld_static_option="-aarchive_shared"
23732           gcc_cv_ld_dynamic_option="-adefault"
23733         fi
23734         ;;
23735       # IRIX 6 ld supports -Bstatic/-Bdynamic.
23736       mips-sgi-irix6*)
23737         gcc_cv_ld_static_dynamic=yes
23738         ;;
23739       # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23740       *-*-solaris2*)
23741         gcc_cv_ld_static_dynamic=yes
23742         ;;
23743     esac
23744   fi
23745 fi
23746 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23747
23748 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23749
23750
23751 cat >>confdefs.h <<_ACEOF
23752 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23753 _ACEOF
23754
23755
23756 cat >>confdefs.h <<_ACEOF
23757 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23758 _ACEOF
23759
23760 fi
23761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23762 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23763
23764 if test x"$demangler_in_ld" = xyes; then
23765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23766 $as_echo_n "checking linker --demangle support... " >&6; }
23767   gcc_cv_ld_demangle=no
23768   if test $in_tree_ld = yes; then
23769     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 \
23770       gcc_cv_ld_demangle=yes
23771     fi
23772   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23773     # Check if the GNU linker supports --demangle option
23774     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23775       gcc_cv_ld_demangle=yes
23776     fi
23777   fi
23778   if test x"$gcc_cv_ld_demangle" = xyes; then
23779
23780 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23781
23782   fi
23783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23784 $as_echo "$gcc_cv_ld_demangle" >&6; }
23785 fi
23786
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23788 $as_echo_n "checking linker plugin support... " >&6; }
23789 gcc_cv_lto_plugin=0
23790 if test -f liblto_plugin.la; then
23791   save_ld_ver="$ld_ver"
23792   save_ld_vers_major="$ld_vers_major"
23793   save_ld_vers_minor="$ld_vers_minor"
23794   save_ld_is_gold="$ld_is_gold"
23795
23796   ld_is_gold=no
23797
23798   if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23799     ld_ver="GNU ld"
23800     # FIXME: ld_is_gold?
23801     ld_vers_major="$gcc_cv_gld_major_version"
23802     ld_vers_minor="$gcc_cv_gld_minor_version"
23803   else
23804     # Determine plugin linker version.
23805     # FIXME: Partial duplicate from above, generalize.
23806     ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23807     if echo "$ld_ver" | grep GNU > /dev/null; then
23808       if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23809         ld_is_gold=yes
23810         ld_vers=`echo $ld_ver | sed -n \
23811             -e 's,^[^)]*[        ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23812       else
23813         ld_vers=`echo $ld_ver | sed -n \
23814             -e 's,^.*[   ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23815       fi
23816       ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23817       ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23818     fi
23819   fi
23820
23821   # Determine plugin support.
23822   if echo "$ld_ver" | grep GNU > /dev/null; then
23823     # Require GNU ld or gold 2.21+ for plugin support by default.
23824     if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23825       gcc_cv_lto_plugin=2
23826     # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23827     elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23828       gcc_cv_lto_plugin=1
23829     fi
23830   fi
23831
23832   ld_ver="$save_ld_ver"
23833   ld_vers_major="$save_ld_vers_major"
23834   ld_vers_minor="$save_ld_vers_minor"
23835   ld_is_gold="$save_ld_is_gold"
23836 fi
23837
23838 cat >>confdefs.h <<_ACEOF
23839 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23840 _ACEOF
23841
23842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23843 $as_echo "$gcc_cv_lto_plugin" >&6; }
23844
23845 case "$target" in
23846   # All TARGET_ABI_OSF targets.
23847   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23848     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23849 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23850 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23851   $as_echo_n "(cached) " >&6
23852 else
23853   gcc_cv_as_alpha_explicit_relocs=no
23854     if test $in_tree_gas = yes; then
23855     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23856   then gcc_cv_as_alpha_explicit_relocs=yes
23857 fi
23858   elif test x$gcc_cv_as != x; then
23859     $as_echo '  .set nomacro
23860         .text
23861         extbl   $3, $2, $3      !lituse_bytoff!1
23862         ldq     $2, a($29)      !literal!1
23863         ldq     $4, b($29)      !literal!2
23864         ldq_u   $3, 0($2)       !lituse_base!1
23865         ldq     $27, f($29)     !literal!5
23866         jsr     $26, ($27), f   !lituse_jsr!5
23867         ldah    $29, 0($26)     !gpdisp!3
23868         lda     $0, c($29)      !gprel
23869         ldah    $1, d($29)      !gprelhigh
23870         lda     $1, d($1)       !gprellow
23871         lda     $29, 0($29)     !gpdisp!3' > conftest.s
23872     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23873   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23874   (eval $ac_try) 2>&5
23875   ac_status=$?
23876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23877   test $ac_status = 0; }; }
23878     then
23879         gcc_cv_as_alpha_explicit_relocs=yes
23880     else
23881       echo "configure: failed program was" >&5
23882       cat conftest.s >&5
23883     fi
23884     rm -f conftest.o conftest.s
23885   fi
23886 fi
23887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23888 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23889 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23890
23891 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23892
23893 fi
23894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23895 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23896 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23897   $as_echo_n "(cached) " >&6
23898 else
23899   gcc_cv_as_alpha_jsrdirect_relocs=no
23900     if test $in_tree_gas = yes; then
23901     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23902   then gcc_cv_as_alpha_jsrdirect_relocs=yes
23903 fi
23904   elif test x$gcc_cv_as != x; then
23905     $as_echo '  .set nomacro
23906         .text
23907         ldq     $27, a($29)     !literal!1
23908         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
23909     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23910   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23911   (eval $ac_try) 2>&5
23912   ac_status=$?
23913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23914   test $ac_status = 0; }; }
23915     then
23916         gcc_cv_as_alpha_jsrdirect_relocs=yes
23917     else
23918       echo "configure: failed program was" >&5
23919       cat conftest.s >&5
23920     fi
23921     rm -f conftest.o conftest.s
23922   fi
23923 fi
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23925 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23926 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23927
23928 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23929
23930 fi
23931     ;;
23932
23933   cris-*-*)
23934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23935 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23936 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23937   $as_echo_n "(cached) " >&6
23938 else
23939   gcc_cv_as_cris_no_mul_bug=no
23940     if test $in_tree_gas = yes; then
23941     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23942   then gcc_cv_as_cris_no_mul_bug=yes
23943 fi
23944   elif test x$gcc_cv_as != x; then
23945     $as_echo '.text' > conftest.s
23946     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23947   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23948   (eval $ac_try) 2>&5
23949   ac_status=$?
23950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23951   test $ac_status = 0; }; }
23952     then
23953         gcc_cv_as_cris_no_mul_bug=yes
23954     else
23955       echo "configure: failed program was" >&5
23956       cat conftest.s >&5
23957     fi
23958     rm -f conftest.o conftest.s
23959   fi
23960 fi
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23962 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23963 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23964
23965 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23966
23967 fi
23968     ;;
23969
23970   sparc*-*-*)
23971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23972 $as_echo_n "checking assembler for .register... " >&6; }
23973 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23974   $as_echo_n "(cached) " >&6
23975 else
23976   gcc_cv_as_sparc_register_op=no
23977   if test x$gcc_cv_as != x; then
23978     $as_echo '.register %g2, #scratch' > conftest.s
23979     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23980   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23981   (eval $ac_try) 2>&5
23982   ac_status=$?
23983   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23984   test $ac_status = 0; }; }
23985     then
23986         gcc_cv_as_sparc_register_op=yes
23987     else
23988       echo "configure: failed program was" >&5
23989       cat conftest.s >&5
23990     fi
23991     rm -f conftest.o conftest.s
23992   fi
23993 fi
23994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23995 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23996 if test $gcc_cv_as_sparc_register_op = yes; then
23997
23998 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23999
24000 fi
24001
24002     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24003 $as_echo_n "checking assembler for -relax option... " >&6; }
24004 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24005   $as_echo_n "(cached) " >&6
24006 else
24007   gcc_cv_as_sparc_relax=no
24008   if test x$gcc_cv_as != x; then
24009     $as_echo '.text' > conftest.s
24010     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24011   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24012   (eval $ac_try) 2>&5
24013   ac_status=$?
24014   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24015   test $ac_status = 0; }; }
24016     then
24017         gcc_cv_as_sparc_relax=yes
24018     else
24019       echo "configure: failed program was" >&5
24020       cat conftest.s >&5
24021     fi
24022     rm -f conftest.o conftest.s
24023   fi
24024 fi
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24026 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24027 if test $gcc_cv_as_sparc_relax = yes; then
24028
24029 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24030
24031 fi
24032
24033     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24034 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24035 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24036   $as_echo_n "(cached) " >&6
24037 else
24038   gcc_cv_as_sparc_gotdata_op=no
24039   if test x$gcc_cv_as != x; then
24040     $as_echo '.text
24041 .align 4
24042 foo:
24043         nop
24044 bar:
24045         sethi %gdop_hix22(foo), %g1
24046         xor    %g1, %gdop_lox10(foo), %g1
24047         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24048     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24049   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24050   (eval $ac_try) 2>&5
24051   ac_status=$?
24052   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24053   test $ac_status = 0; }; }
24054     then
24055         if test x$gcc_cv_ld != x \
24056        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24057          if test x$gcc_cv_objdump != x; then
24058            if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
24059               | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
24060                gcc_cv_as_sparc_gotdata_op=no
24061            else
24062                gcc_cv_as_sparc_gotdata_op=yes
24063            fi
24064          fi
24065        fi
24066        rm -f conftest
24067     else
24068       echo "configure: failed program was" >&5
24069       cat conftest.s >&5
24070     fi
24071     rm -f conftest.o conftest.s
24072   fi
24073 fi
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24075 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24076 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24077
24078 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24079
24080 fi
24081
24082     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24083 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24084 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24085   $as_echo_n "(cached) " >&6
24086 else
24087   gcc_cv_as_sparc_ua_pcrel=no
24088   if test x$gcc_cv_as != x; then
24089     $as_echo '.text
24090 foo:
24091         nop
24092 .data
24093 .align 4
24094 .byte 0
24095 .uaword %r_disp32(foo)' > conftest.s
24096     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24097   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24098   (eval $ac_try) 2>&5
24099   ac_status=$?
24100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24101   test $ac_status = 0; }; }
24102     then
24103         if test x$gcc_cv_ld != x \
24104        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
24105          gcc_cv_as_sparc_ua_pcrel=yes
24106        fi
24107        rm -f conftest
24108     else
24109       echo "configure: failed program was" >&5
24110       cat conftest.s >&5
24111     fi
24112     rm -f conftest.o conftest.s
24113   fi
24114 fi
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24116 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24117 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24118
24119 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24120
24121
24122       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24123 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24124 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24125   $as_echo_n "(cached) " >&6
24126 else
24127   gcc_cv_as_sparc_ua_pcrel_hidden=no
24128   if test x$gcc_cv_as != x; then
24129     $as_echo '.data
24130 .align 4
24131 .byte 0x31
24132 .uaword %r_disp32(foo)
24133 .byte 0x32, 0x33, 0x34
24134 .global foo
24135 .hidden foo
24136 foo:
24137 .skip 4' > conftest.s
24138     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24139   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24140   (eval $ac_try) 2>&5
24141   ac_status=$?
24142   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24143   test $ac_status = 0; }; }
24144     then
24145         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24146          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24147          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24148             | grep ' 31000000 07323334' > /dev/null 2>&1; then
24149             if $gcc_cv_objdump -R conftest 2> /dev/null \
24150                | grep 'DISP32' > /dev/null 2>&1; then
24151                 :
24152             else
24153                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24154             fi
24155          fi
24156          rm -f conftest
24157     else
24158       echo "configure: failed program was" >&5
24159       cat conftest.s >&5
24160     fi
24161     rm -f conftest.o conftest.s
24162   fi
24163 fi
24164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24165 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24166 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24167
24168 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24169
24170 fi
24171
24172 fi # unaligned pcrel relocs
24173
24174     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24175 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24176 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24177   $as_echo_n "(cached) " >&6
24178 else
24179   gcc_cv_as_sparc_offsetable_lo10=no
24180   if test x$gcc_cv_as != x; then
24181     $as_echo '.text
24182         or %g1, %lo(ab) + 12, %g1
24183         or %g1, %lo(ab + 12), %g1' > conftest.s
24184     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24185   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24186   (eval $ac_try) 2>&5
24187   ac_status=$?
24188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24189   test $ac_status = 0; }; }
24190     then
24191         if test x$gcc_cv_objdump != x \
24192        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24193           | grep ' 82106000 82106000' > /dev/null 2>&1; then
24194          gcc_cv_as_sparc_offsetable_lo10=yes
24195        fi
24196     else
24197       echo "configure: failed program was" >&5
24198       cat conftest.s >&5
24199     fi
24200     rm -f conftest.o conftest.s
24201   fi
24202 fi
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24204 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24205 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24206
24207 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24208
24209 fi
24210
24211     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24212 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24213 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24214   $as_echo_n "(cached) " >&6
24215 else
24216   gcc_cv_as_sparc_fmaf=no
24217   if test x$gcc_cv_as != x; then
24218     $as_echo '.text
24219        .register %g2, #scratch
24220        .register %g3, #scratch
24221        .align 4
24222        fmaddd %f0, %f2, %f4, %f6
24223        addxccc %g1, %g2, %g3
24224        fsrl32 %f2, %f4, %f8
24225        fnaddd %f10, %f12, %f14' > conftest.s
24226     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24227   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24228   (eval $ac_try) 2>&5
24229   ac_status=$?
24230   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24231   test $ac_status = 0; }; }
24232     then
24233         gcc_cv_as_sparc_fmaf=yes
24234     else
24235       echo "configure: failed program was" >&5
24236       cat conftest.s >&5
24237     fi
24238     rm -f conftest.o conftest.s
24239   fi
24240 fi
24241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24242 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24243 if test $gcc_cv_as_sparc_fmaf = yes; then
24244
24245 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24246
24247 fi
24248     ;;
24249
24250   i[34567]86-*-* | x86_64-*-*)
24251     case $target_os in
24252       cygwin*)
24253         # Full C++ conformance when using a shared libstdc++-v3 requires some
24254         # support from the Cygwin DLL, which in more recent versions exports
24255         # wrappers to aid in interposing and redirecting operators new, delete,
24256         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
24257         # are configuring for a version of Cygwin that exports the wrappers.
24258         if test x$host = x$target; then
24259           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24260 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24261   gcc_ac_cygwin_dll_wrappers=yes
24262 else
24263   gcc_ac_cygwin_dll_wrappers=no
24264 fi
24265
24266         else
24267           # Can't check presence of libc functions during cross-compile, so
24268           # we just have to assume we're building for an up-to-date target.
24269           gcc_ac_cygwin_dll_wrappers=yes
24270         fi
24271
24272 cat >>confdefs.h <<_ACEOF
24273 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24274 _ACEOF
24275
24276     esac
24277     case $target_os in
24278       cygwin* | pe | mingw32*)
24279         # Recent binutils allows the three-operand form of ".comm" on PE.  This
24280         # definition is used unconditionally to initialise the default state of
24281         # the target option variable that governs usage of the feature.
24282         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24283 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24284 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24285   $as_echo_n "(cached) " >&6
24286 else
24287   gcc_cv_as_comm_has_align=no
24288     if test $in_tree_gas = yes; then
24289     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24290   then gcc_cv_as_comm_has_align=yes
24291 fi
24292   elif test x$gcc_cv_as != x; then
24293     $as_echo '.comm foo,1,32' > conftest.s
24294     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24295   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24296   (eval $ac_try) 2>&5
24297   ac_status=$?
24298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24299   test $ac_status = 0; }; }
24300     then
24301         gcc_cv_as_comm_has_align=yes
24302     else
24303       echo "configure: failed program was" >&5
24304       cat conftest.s >&5
24305     fi
24306     rm -f conftest.o conftest.s
24307   fi
24308 fi
24309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24310 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24311
24312
24313 cat >>confdefs.h <<_ACEOF
24314 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24315 _ACEOF
24316
24317         # Used for DWARF 2 in PE
24318         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24319 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24320 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24321   $as_echo_n "(cached) " >&6
24322 else
24323   gcc_cv_as_ix86_pe_secrel32=no
24324     if test $in_tree_gas = yes; then
24325     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24326   then gcc_cv_as_ix86_pe_secrel32=yes
24327 fi
24328   elif test x$gcc_cv_as != x; then
24329     $as_echo '.text
24330 foo:    nop
24331 .data
24332         .secrel32 foo' > conftest.s
24333     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24334   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24335   (eval $ac_try) 2>&5
24336   ac_status=$?
24337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24338   test $ac_status = 0; }; }
24339     then
24340         if test x$gcc_cv_ld != x \
24341            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24342              gcc_cv_as_ix86_pe_secrel32=yes
24343            fi
24344            rm -f conftest
24345     else
24346       echo "configure: failed program was" >&5
24347       cat conftest.s >&5
24348     fi
24349     rm -f conftest.o conftest.s
24350   fi
24351 fi
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24353 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24354 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24355
24356 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24357
24358 fi
24359         # Test if the assembler supports the extended form of the .section
24360         # directive that specifies section alignment.  LTO support uses this,
24361         # but normally only after installation, so we warn but don't fail the
24362         # configure if LTO is enabled but the assembler does not support it.
24363         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24364 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24365 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24366   $as_echo_n "(cached) " >&6
24367 else
24368   gcc_cv_as_section_has_align=no
24369     if test $in_tree_gas = yes; then
24370     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24371   then gcc_cv_as_section_has_align=yes
24372 fi
24373   elif test x$gcc_cv_as != x; then
24374     $as_echo '.section lto_test,"dr0"' > conftest.s
24375     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24376   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24377   (eval $ac_try) 2>&5
24378   ac_status=$?
24379   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24380   test $ac_status = 0; }; }
24381     then
24382         gcc_cv_as_section_has_align=yes
24383     else
24384       echo "configure: failed program was" >&5
24385       cat conftest.s >&5
24386     fi
24387     rm -f conftest.o conftest.s
24388   fi
24389 fi
24390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24391 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24392
24393         if test x$gcc_cv_as_section_has_align != xyes; then
24394           case ",$enable_languages," in
24395             *,lto,*)
24396               { $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
24397 $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;}
24398               ;;
24399           esac
24400         fi
24401         # Test if the assembler supports the section flag 'e' for specifying
24402         # an excluded section.
24403         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24404 $as_echo_n "checking assembler for .section with e... " >&6; }
24405 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24406   $as_echo_n "(cached) " >&6
24407 else
24408   gcc_cv_as_section_has_e=no
24409     if test $in_tree_gas = yes; then
24410     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24411   then gcc_cv_as_section_has_e=yes
24412 fi
24413   elif test x$gcc_cv_as != x; then
24414     $as_echo '.section foo1,"e"
24415 .byte 0,0,0,0' > conftest.s
24416     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24417   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24418   (eval $ac_try) 2>&5
24419   ac_status=$?
24420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24421   test $ac_status = 0; }; }
24422     then
24423         gcc_cv_as_section_has_e=yes
24424     else
24425       echo "configure: failed program was" >&5
24426       cat conftest.s >&5
24427     fi
24428     rm -f conftest.o conftest.s
24429   fi
24430 fi
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24432 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24433
24434
24435 cat >>confdefs.h <<_ACEOF
24436 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24437 _ACEOF
24438
24439         ;;
24440     esac
24441
24442     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24443 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24444 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24445   $as_echo_n "(cached) " >&6
24446 else
24447   gcc_cv_as_ix86_filds=no
24448   if test x$gcc_cv_as != x; then
24449     $as_echo 'filds mem; fists mem' > conftest.s
24450     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24451   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24452   (eval $ac_try) 2>&5
24453   ac_status=$?
24454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24455   test $ac_status = 0; }; }
24456     then
24457         gcc_cv_as_ix86_filds=yes
24458     else
24459       echo "configure: failed program was" >&5
24460       cat conftest.s >&5
24461     fi
24462     rm -f conftest.o conftest.s
24463   fi
24464 fi
24465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24466 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24467 if test $gcc_cv_as_ix86_filds = yes; then
24468
24469 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24470
24471 fi
24472
24473     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24474 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24475 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24476   $as_echo_n "(cached) " >&6
24477 else
24478   gcc_cv_as_ix86_fildq=no
24479   if test x$gcc_cv_as != x; then
24480     $as_echo 'fildq mem; fistpq mem' > conftest.s
24481     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24482   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24483   (eval $ac_try) 2>&5
24484   ac_status=$?
24485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24486   test $ac_status = 0; }; }
24487     then
24488         gcc_cv_as_ix86_fildq=yes
24489     else
24490       echo "configure: failed program was" >&5
24491       cat conftest.s >&5
24492     fi
24493     rm -f conftest.o conftest.s
24494   fi
24495 fi
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24497 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24498 if test $gcc_cv_as_ix86_fildq = yes; then
24499
24500 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24501
24502 fi
24503
24504     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24505 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24506 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24507   $as_echo_n "(cached) " >&6
24508 else
24509   gcc_cv_as_ix86_cmov_sun_syntax=no
24510   if test x$gcc_cv_as != x; then
24511     $as_echo 'cmovl.l %edx, %eax' > conftest.s
24512     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24513   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24514   (eval $ac_try) 2>&5
24515   ac_status=$?
24516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24517   test $ac_status = 0; }; }
24518     then
24519         gcc_cv_as_ix86_cmov_sun_syntax=yes
24520     else
24521       echo "configure: failed program was" >&5
24522       cat conftest.s >&5
24523     fi
24524     rm -f conftest.o conftest.s
24525   fi
24526 fi
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24528 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24529 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24530
24531 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24532
24533 fi
24534
24535     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24536 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24537 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24538   $as_echo_n "(cached) " >&6
24539 else
24540   gcc_cv_as_ix86_ffreep=no
24541   if test x$gcc_cv_as != x; then
24542     $as_echo 'ffreep %st(1)' > conftest.s
24543     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24544   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24545   (eval $ac_try) 2>&5
24546   ac_status=$?
24547   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24548   test $ac_status = 0; }; }
24549     then
24550         gcc_cv_as_ix86_ffreep=yes
24551     else
24552       echo "configure: failed program was" >&5
24553       cat conftest.s >&5
24554     fi
24555     rm -f conftest.o conftest.s
24556   fi
24557 fi
24558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24559 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24560 if test $gcc_cv_as_ix86_ffreep = yes; then
24561
24562 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24563
24564 fi
24565
24566     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24567 $as_echo_n "checking assembler for .quad directive... " >&6; }
24568 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24569   $as_echo_n "(cached) " >&6
24570 else
24571   gcc_cv_as_ix86_quad=no
24572   if test x$gcc_cv_as != x; then
24573     $as_echo '.quad 0' > conftest.s
24574     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24575   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24576   (eval $ac_try) 2>&5
24577   ac_status=$?
24578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24579   test $ac_status = 0; }; }
24580     then
24581         gcc_cv_as_ix86_quad=yes
24582     else
24583       echo "configure: failed program was" >&5
24584       cat conftest.s >&5
24585     fi
24586     rm -f conftest.o conftest.s
24587   fi
24588 fi
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24590 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24591 if test $gcc_cv_as_ix86_quad = yes; then
24592
24593 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24594
24595 fi
24596
24597     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24598 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24599 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24600   $as_echo_n "(cached) " >&6
24601 else
24602   gcc_cv_as_ix86_sahf=no
24603   if test x$gcc_cv_as != x; then
24604     $as_echo '.code64
24605        sahf' > conftest.s
24606     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24607   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24608   (eval $ac_try) 2>&5
24609   ac_status=$?
24610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24611   test $ac_status = 0; }; }
24612     then
24613         gcc_cv_as_ix86_sahf=yes
24614     else
24615       echo "configure: failed program was" >&5
24616       cat conftest.s >&5
24617     fi
24618     rm -f conftest.o conftest.s
24619   fi
24620 fi
24621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24622 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24623 if test $gcc_cv_as_ix86_sahf = yes; then
24624
24625 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24626
24627 fi
24628
24629     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24630 $as_echo_n "checking assembler for swap suffix... " >&6; }
24631 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24632   $as_echo_n "(cached) " >&6
24633 else
24634   gcc_cv_as_ix86_swap=no
24635   if test x$gcc_cv_as != x; then
24636     $as_echo 'movl.s %esp, %ebp' > conftest.s
24637     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24638   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24639   (eval $ac_try) 2>&5
24640   ac_status=$?
24641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24642   test $ac_status = 0; }; }
24643     then
24644         gcc_cv_as_ix86_swap=yes
24645     else
24646       echo "configure: failed program was" >&5
24647       cat conftest.s >&5
24648     fi
24649     rm -f conftest.o conftest.s
24650   fi
24651 fi
24652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24653 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24654 if test $gcc_cv_as_ix86_swap = yes; then
24655
24656 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24657
24658 fi
24659
24660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24661 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24662 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24663   $as_echo_n "(cached) " >&6
24664 else
24665   gcc_cv_as_ix86_diff_sect_delta=no
24666   if test x$gcc_cv_as != x; then
24667     $as_echo '.section .rodata
24668 .L1:
24669         .long .L2-.L1
24670         .long .L3-.L1
24671         .text
24672 .L3:    nop
24673 .L2:    nop' > conftest.s
24674     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24675   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24676   (eval $ac_try) 2>&5
24677   ac_status=$?
24678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24679   test $ac_status = 0; }; }
24680     then
24681         gcc_cv_as_ix86_diff_sect_delta=yes
24682     else
24683       echo "configure: failed program was" >&5
24684       cat conftest.s >&5
24685     fi
24686     rm -f conftest.o conftest.s
24687   fi
24688 fi
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24690 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24691 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24692
24693 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24694
24695 fi
24696
24697     # These two are used unconditionally by i386.[ch]; it is to be defined
24698     # to 1 if the feature is present, 0 otherwise.
24699     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24700 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24701 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24702   $as_echo_n "(cached) " >&6
24703 else
24704   gcc_cv_as_ix86_gotoff_in_data=no
24705     if test $in_tree_gas = yes; then
24706     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24707   then gcc_cv_as_ix86_gotoff_in_data=yes
24708 fi
24709   elif test x$gcc_cv_as != x; then
24710     $as_echo '  .text
24711 .L0:
24712         nop
24713         .data
24714         .long .L0@GOTOFF' > conftest.s
24715     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24716   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24717   (eval $ac_try) 2>&5
24718   ac_status=$?
24719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24720   test $ac_status = 0; }; }
24721     then
24722         gcc_cv_as_ix86_gotoff_in_data=yes
24723     else
24724       echo "configure: failed program was" >&5
24725       cat conftest.s >&5
24726     fi
24727     rm -f conftest.o conftest.s
24728   fi
24729 fi
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24731 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24732
24733
24734 cat >>confdefs.h <<_ACEOF
24735 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24736 _ACEOF
24737
24738
24739     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24740 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24741 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24742   $as_echo_n "(cached) " >&6
24743 else
24744   gcc_cv_as_ix86_rep_lock_prefix=no
24745   if test x$gcc_cv_as != x; then
24746     $as_echo 'rep movsl
24747          lock addl %edi, (%eax,%esi)
24748          lock orl $0, (%esp)' > conftest.s
24749     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24750   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24751   (eval $ac_try) 2>&5
24752   ac_status=$?
24753   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24754   test $ac_status = 0; }; }
24755     then
24756         gcc_cv_as_ix86_rep_lock_prefix=yes
24757     else
24758       echo "configure: failed program was" >&5
24759       cat conftest.s >&5
24760     fi
24761     rm -f conftest.o conftest.s
24762   fi
24763 fi
24764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24765 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24766 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24767
24768 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24769
24770 fi
24771
24772     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24773 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24774 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24775   $as_echo_n "(cached) " >&6
24776 else
24777   gcc_cv_as_ix86_tlsgdplt=no
24778   if test x$gcc_cv_as != x; then
24779     $as_echo 'call    tls_gd@tlsgdplt' > conftest.s
24780     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24781   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24782   (eval $ac_try) 2>&5
24783   ac_status=$?
24784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24785   test $ac_status = 0; }; }
24786     then
24787         gcc_cv_as_ix86_tlsgdplt=yes
24788     else
24789       echo "configure: failed program was" >&5
24790       cat conftest.s >&5
24791     fi
24792     rm -f conftest.o conftest.s
24793   fi
24794 fi
24795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24796 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24797 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24798
24799 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24800
24801 fi
24802
24803     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24804 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24805 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24806   $as_echo_n "(cached) " >&6
24807 else
24808   gcc_cv_as_ix86_tlsldmplt=no
24809   if test x$gcc_cv_as != x; then
24810     $as_echo 'call    tls_ld@tlsldmplt' > conftest.s
24811     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24812   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24813   (eval $ac_try) 2>&5
24814   ac_status=$?
24815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24816   test $ac_status = 0; }; }
24817     then
24818         gcc_cv_as_ix86_tlsldmplt=yes
24819     else
24820       echo "configure: failed program was" >&5
24821       cat conftest.s >&5
24822     fi
24823     rm -f conftest.o conftest.s
24824   fi
24825 fi
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24827 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24828 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24829
24830 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24831
24832 fi
24833
24834     ;;
24835
24836   ia64*-*-*)
24837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24838 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24839 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24840   $as_echo_n "(cached) " >&6
24841 else
24842   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24843     if test $in_tree_gas = yes; then
24844     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24845   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24846 fi
24847   elif test x$gcc_cv_as != x; then
24848     $as_echo '  .text
24849         addl r15 = @ltoffx(x#), gp
24850         ;;
24851         ld8.mov r16 = [r15], x#' > conftest.s
24852     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24853   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24854   (eval $ac_try) 2>&5
24855   ac_status=$?
24856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24857   test $ac_status = 0; }; }
24858     then
24859         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24860     else
24861       echo "configure: failed program was" >&5
24862       cat conftest.s >&5
24863     fi
24864     rm -f conftest.o conftest.s
24865   fi
24866 fi
24867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24868 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24869 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24870
24871 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24872
24873 fi
24874
24875     ;;
24876
24877   powerpc*-*-*)
24878     case $target in
24879       *-*-aix*) conftest_s='    .machine "pwr5"
24880         .csect .text[PR]
24881         mfcr 3,128';;
24882       *-*-darwin*)
24883         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24884 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24885 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24886   $as_echo_n "(cached) " >&6
24887 else
24888   gcc_cv_as_machine_directive=no
24889   if test x$gcc_cv_as != x; then
24890     $as_echo '  .machine ppc7400' > conftest.s
24891     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24892   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24893   (eval $ac_try) 2>&5
24894   ac_status=$?
24895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24896   test $ac_status = 0; }; }
24897     then
24898         gcc_cv_as_machine_directive=yes
24899     else
24900       echo "configure: failed program was" >&5
24901       cat conftest.s >&5
24902     fi
24903     rm -f conftest.o conftest.s
24904   fi
24905 fi
24906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24907 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24908
24909         if test x$gcc_cv_as_machine_directive != xyes; then
24910           echo "*** This target requires an assembler supporting \".machine\"" >&2
24911           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24912           test x$build = x$target && exit 1
24913         fi
24914         conftest_s='    .text
24915         mfcr r3,128';;
24916       *) conftest_s='   .machine power4
24917         .text
24918         mfcr 3,128';;
24919     esac
24920
24921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24922 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24923 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24924   $as_echo_n "(cached) " >&6
24925 else
24926   gcc_cv_as_powerpc_mfcrf=no
24927     if test $in_tree_gas = yes; then
24928     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24929   then gcc_cv_as_powerpc_mfcrf=yes
24930 fi
24931   elif test x$gcc_cv_as != x; then
24932     $as_echo "$conftest_s" > conftest.s
24933     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24934   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24935   (eval $ac_try) 2>&5
24936   ac_status=$?
24937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24938   test $ac_status = 0; }; }
24939     then
24940         gcc_cv_as_powerpc_mfcrf=yes
24941     else
24942       echo "configure: failed program was" >&5
24943       cat conftest.s >&5
24944     fi
24945     rm -f conftest.o conftest.s
24946   fi
24947 fi
24948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24949 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24950 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24951
24952 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24953
24954 fi
24955
24956     case $target in
24957       *-*-aix*) conftest_s='    .machine "pwr5"
24958         .csect .text[PR]
24959         popcntb 3,3';;
24960       *) conftest_s='   .machine power5
24961         .text
24962         popcntb 3,3';;
24963     esac
24964
24965     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24966 $as_echo_n "checking assembler for popcntb support... " >&6; }
24967 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24968   $as_echo_n "(cached) " >&6
24969 else
24970   gcc_cv_as_powerpc_popcntb=no
24971     if test $in_tree_gas = yes; then
24972     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24973   then gcc_cv_as_powerpc_popcntb=yes
24974 fi
24975   elif test x$gcc_cv_as != x; then
24976     $as_echo "$conftest_s" > conftest.s
24977     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24978   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24979   (eval $ac_try) 2>&5
24980   ac_status=$?
24981   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24982   test $ac_status = 0; }; }
24983     then
24984         gcc_cv_as_powerpc_popcntb=yes
24985     else
24986       echo "configure: failed program was" >&5
24987       cat conftest.s >&5
24988     fi
24989     rm -f conftest.o conftest.s
24990   fi
24991 fi
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24993 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24994 if test $gcc_cv_as_powerpc_popcntb = yes; then
24995
24996 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24997
24998 fi
24999
25000     case $target in
25001       *-*-aix*) conftest_s='    .machine "pwr5x"
25002         .csect .text[PR]
25003         frin 1,1';;
25004       *) conftest_s='   .machine power5
25005         .text
25006         frin 1,1';;
25007     esac
25008
25009     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25010 $as_echo_n "checking assembler for fp round support... " >&6; }
25011 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25012   $as_echo_n "(cached) " >&6
25013 else
25014   gcc_cv_as_powerpc_fprnd=no
25015     if test $in_tree_gas = yes; then
25016     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25017   then gcc_cv_as_powerpc_fprnd=yes
25018 fi
25019   elif test x$gcc_cv_as != x; then
25020     $as_echo "$conftest_s" > conftest.s
25021     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25022   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25023   (eval $ac_try) 2>&5
25024   ac_status=$?
25025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25026   test $ac_status = 0; }; }
25027     then
25028         gcc_cv_as_powerpc_fprnd=yes
25029     else
25030       echo "configure: failed program was" >&5
25031       cat conftest.s >&5
25032     fi
25033     rm -f conftest.o conftest.s
25034   fi
25035 fi
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25037 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25038 if test $gcc_cv_as_powerpc_fprnd = yes; then
25039
25040 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25041
25042 fi
25043
25044     case $target in
25045       *-*-aix*) conftest_s='    .machine "pwr6"
25046         .csect .text[PR]
25047         mffgpr 1,3';;
25048       *) conftest_s='   .machine power6
25049         .text
25050         mffgpr 1,3';;
25051     esac
25052
25053     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25054 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25055 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25056   $as_echo_n "(cached) " >&6
25057 else
25058   gcc_cv_as_powerpc_mfpgpr=no
25059     if test $in_tree_gas = yes; then
25060     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25061   then gcc_cv_as_powerpc_mfpgpr=yes
25062 fi
25063   elif test x$gcc_cv_as != x; then
25064     $as_echo "$conftest_s" > conftest.s
25065     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25066   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25067   (eval $ac_try) 2>&5
25068   ac_status=$?
25069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25070   test $ac_status = 0; }; }
25071     then
25072         gcc_cv_as_powerpc_mfpgpr=yes
25073     else
25074       echo "configure: failed program was" >&5
25075       cat conftest.s >&5
25076     fi
25077     rm -f conftest.o conftest.s
25078   fi
25079 fi
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25081 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25082 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25083
25084 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25085
25086 fi
25087
25088     case $target in
25089       *-*-aix*) conftest_s='    .csect .text[PR]
25090 LCF..0:
25091         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25092       *-*-darwin*)
25093         conftest_s='    .text
25094 LCF0:
25095         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25096       *) conftest_s='   .text
25097 .LCF0:
25098         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25099     esac
25100
25101     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25102 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25103 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25104   $as_echo_n "(cached) " >&6
25105 else
25106   gcc_cv_as_powerpc_rel16=no
25107     if test $in_tree_gas = yes; then
25108     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25109   then gcc_cv_as_powerpc_rel16=yes
25110 fi
25111   elif test x$gcc_cv_as != x; then
25112     $as_echo "$conftest_s" > conftest.s
25113     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25114   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25115   (eval $ac_try) 2>&5
25116   ac_status=$?
25117   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25118   test $ac_status = 0; }; }
25119     then
25120         gcc_cv_as_powerpc_rel16=yes
25121     else
25122       echo "configure: failed program was" >&5
25123       cat conftest.s >&5
25124     fi
25125     rm -f conftest.o conftest.s
25126   fi
25127 fi
25128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25129 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25130 if test $gcc_cv_as_powerpc_rel16 = yes; then
25131
25132 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25133
25134 fi
25135
25136     case $target in
25137       *-*-aix*) conftest_s='    .machine "pwr6"
25138         .csect .text[PR]
25139         cmpb 3,4,5';;
25140       *) conftest_s='   .machine power6
25141         .text
25142         cmpb 3,4,5';;
25143     esac
25144
25145     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25146 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25147 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25148   $as_echo_n "(cached) " >&6
25149 else
25150   gcc_cv_as_powerpc_cmpb=no
25151     if test $in_tree_gas = yes; then
25152     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25153   then gcc_cv_as_powerpc_cmpb=yes
25154 fi
25155   elif test x$gcc_cv_as != x; then
25156     $as_echo "$conftest_s" > conftest.s
25157     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25158   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25159   (eval $ac_try) 2>&5
25160   ac_status=$?
25161   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25162   test $ac_status = 0; }; }
25163     then
25164         gcc_cv_as_powerpc_cmpb=yes
25165     else
25166       echo "configure: failed program was" >&5
25167       cat conftest.s >&5
25168     fi
25169     rm -f conftest.o conftest.s
25170   fi
25171 fi
25172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25173 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25174 if test $gcc_cv_as_powerpc_cmpb = yes; then
25175
25176 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25177
25178 fi
25179
25180     case $target in
25181       *-*-aix*) conftest_s='    .machine "pwr6"
25182         .csect .text[PR]
25183         dadd 1,2,3';;
25184       *) conftest_s='   .machine power6
25185         .text
25186         dadd 1,2,3';;
25187     esac
25188
25189     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25190 $as_echo_n "checking assembler for decimal float support... " >&6; }
25191 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25192   $as_echo_n "(cached) " >&6
25193 else
25194   gcc_cv_as_powerpc_dfp=no
25195     if test $in_tree_gas = yes; then
25196     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25197   then gcc_cv_as_powerpc_dfp=yes
25198 fi
25199   elif test x$gcc_cv_as != x; then
25200     $as_echo "$conftest_s" > conftest.s
25201     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25202   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25203   (eval $ac_try) 2>&5
25204   ac_status=$?
25205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25206   test $ac_status = 0; }; }
25207     then
25208         gcc_cv_as_powerpc_dfp=yes
25209     else
25210       echo "configure: failed program was" >&5
25211       cat conftest.s >&5
25212     fi
25213     rm -f conftest.o conftest.s
25214   fi
25215 fi
25216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25217 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25218 if test $gcc_cv_as_powerpc_dfp = yes; then
25219
25220 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25221
25222 fi
25223
25224     case $target in
25225       *-*-aix*) conftest_s='    .machine "pwr7"
25226         .csect .text[PR]
25227         lxvd2x 1,2,3';;
25228       *) conftest_s='   .machine power7
25229         .text
25230         lxvd2x 1,2,3';;
25231     esac
25232
25233     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25234 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25235 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25236   $as_echo_n "(cached) " >&6
25237 else
25238   gcc_cv_as_powerpc_vsx=no
25239     if test $in_tree_gas = yes; then
25240     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25241   then gcc_cv_as_powerpc_vsx=yes
25242 fi
25243   elif test x$gcc_cv_as != x; then
25244     $as_echo "$conftest_s" > conftest.s
25245     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25246   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25247   (eval $ac_try) 2>&5
25248   ac_status=$?
25249   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25250   test $ac_status = 0; }; }
25251     then
25252         gcc_cv_as_powerpc_vsx=yes
25253     else
25254       echo "configure: failed program was" >&5
25255       cat conftest.s >&5
25256     fi
25257     rm -f conftest.o conftest.s
25258   fi
25259 fi
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25261 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25262 if test $gcc_cv_as_powerpc_vsx = yes; then
25263
25264 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25265
25266 fi
25267
25268     case $target in
25269       *-*-aix*) conftest_s='    .machine "pwr7"
25270         .csect .text[PR]
25271         popcntd 3,3';;
25272       *) conftest_s='   .machine power7
25273         .text
25274         popcntd 3,3';;
25275     esac
25276
25277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25278 $as_echo_n "checking assembler for popcntd support... " >&6; }
25279 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25280   $as_echo_n "(cached) " >&6
25281 else
25282   gcc_cv_as_powerpc_popcntd=no
25283     if test $in_tree_gas = yes; then
25284     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25285   then gcc_cv_as_powerpc_popcntd=yes
25286 fi
25287   elif test x$gcc_cv_as != x; then
25288     $as_echo "$conftest_s" > conftest.s
25289     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25290   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25291   (eval $ac_try) 2>&5
25292   ac_status=$?
25293   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25294   test $ac_status = 0; }; }
25295     then
25296         gcc_cv_as_powerpc_popcntd=yes
25297     else
25298       echo "configure: failed program was" >&5
25299       cat conftest.s >&5
25300     fi
25301     rm -f conftest.o conftest.s
25302   fi
25303 fi
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25305 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25306 if test $gcc_cv_as_powerpc_popcntd = yes; then
25307
25308 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25309
25310 fi
25311
25312     case $target in
25313       *-*-aix*) conftest_s='    .csect .text[PR]
25314         lwsync';;
25315       *) conftest_s='   .text
25316         lwsync';;
25317     esac
25318
25319     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25320 $as_echo_n "checking assembler for lwsync support... " >&6; }
25321 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25322   $as_echo_n "(cached) " >&6
25323 else
25324   gcc_cv_as_powerpc_lwsync=no
25325     if test $in_tree_gas = yes; then
25326     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25327   then gcc_cv_as_powerpc_lwsync=yes
25328 fi
25329   elif test x$gcc_cv_as != x; then
25330     $as_echo "$conftest_s" > conftest.s
25331     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25332   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25333   (eval $ac_try) 2>&5
25334   ac_status=$?
25335   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25336   test $ac_status = 0; }; }
25337     then
25338         gcc_cv_as_powerpc_lwsync=yes
25339     else
25340       echo "configure: failed program was" >&5
25341       cat conftest.s >&5
25342     fi
25343     rm -f conftest.o conftest.s
25344   fi
25345 fi
25346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25347 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25348 if test $gcc_cv_as_powerpc_lwsync = yes; then
25349
25350 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25351
25352 fi
25353
25354     case $target in
25355       *-*-aix*) conftest_s='    .machine "476"
25356         .csect .text[PR]
25357         dci 0';;
25358       *) conftest_s='   .machine "476"
25359         .text
25360         dci 0';;
25361     esac
25362
25363     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25364 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25365 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25366   $as_echo_n "(cached) " >&6
25367 else
25368   gcc_cv_as_powerpc_dci=no
25369     if test $in_tree_gas = yes; then
25370     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25371   then gcc_cv_as_powerpc_dci=yes
25372 fi
25373   elif test x$gcc_cv_as != x; then
25374     $as_echo "$conftest_s" > conftest.s
25375     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25376   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25377   (eval $ac_try) 2>&5
25378   ac_status=$?
25379   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25380   test $ac_status = 0; }; }
25381     then
25382         gcc_cv_as_powerpc_dci=yes
25383     else
25384       echo "configure: failed program was" >&5
25385       cat conftest.s >&5
25386     fi
25387     rm -f conftest.o conftest.s
25388   fi
25389 fi
25390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25391 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25392 if test $gcc_cv_as_powerpc_dci = yes; then
25393
25394 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25395
25396 fi
25397
25398     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25399 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25400 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25401   $as_echo_n "(cached) " >&6
25402 else
25403   gcc_cv_as_powerpc_gnu_attribute=no
25404     if test $in_tree_gas = yes; then
25405     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25406   then gcc_cv_as_powerpc_gnu_attribute=yes
25407 fi
25408   elif test x$gcc_cv_as != x; then
25409     $as_echo '.gnu_attribute 4,1' > conftest.s
25410     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25411   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25412   (eval $ac_try) 2>&5
25413   ac_status=$?
25414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25415   test $ac_status = 0; }; }
25416     then
25417         gcc_cv_as_powerpc_gnu_attribute=yes
25418     else
25419       echo "configure: failed program was" >&5
25420       cat conftest.s >&5
25421     fi
25422     rm -f conftest.o conftest.s
25423   fi
25424 fi
25425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25426 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25427 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25428
25429 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25430
25431 fi
25432
25433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25434 $as_echo_n "checking assembler for tls marker support... " >&6; }
25435 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25436   $as_echo_n "(cached) " >&6
25437 else
25438   gcc_cv_as_powerpc_tls_markers=no
25439     if test $in_tree_gas = yes; then
25440     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25441   then gcc_cv_as_powerpc_tls_markers=yes
25442 fi
25443   elif test x$gcc_cv_as != x; then
25444     $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25445     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25446   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25447   (eval $ac_try) 2>&5
25448   ac_status=$?
25449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25450   test $ac_status = 0; }; }
25451     then
25452         gcc_cv_as_powerpc_tls_markers=yes
25453     else
25454       echo "configure: failed program was" >&5
25455       cat conftest.s >&5
25456     fi
25457     rm -f conftest.o conftest.s
25458   fi
25459 fi
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25461 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25462 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25463
25464 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25465
25466 fi
25467
25468     case $target in
25469       *-*-aix*)
25470         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25471 $as_echo_n "checking assembler for .ref support... " >&6; }
25472 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25473   $as_echo_n "(cached) " >&6
25474 else
25475   gcc_cv_as_aix_ref=no
25476     if test $in_tree_gas = yes; then
25477     if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25478   then :
25479 fi
25480   elif test x$gcc_cv_as != x; then
25481     $as_echo '  .csect stuff[rw]
25482              stuff:
25483                 .long 1
25484                 .extern sym
25485                 .ref sym
25486           ' > conftest.s
25487     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25488   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25489   (eval $ac_try) 2>&5
25490   ac_status=$?
25491   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25492   test $ac_status = 0; }; }
25493     then
25494         gcc_cv_as_aix_ref=yes
25495     else
25496       echo "configure: failed program was" >&5
25497       cat conftest.s >&5
25498     fi
25499     rm -f conftest.o conftest.s
25500   fi
25501 fi
25502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25503 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25504 if test $gcc_cv_as_aix_ref = yes; then
25505
25506 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25507
25508 fi
25509         ;;
25510     esac
25511     ;;
25512
25513   mips*-*-*)
25514     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25515 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25516 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25517   $as_echo_n "(cached) " >&6
25518 else
25519   gcc_cv_as_mips_explicit_relocs=no
25520     if test $in_tree_gas = yes; then
25521     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25522   then gcc_cv_as_mips_explicit_relocs=yes
25523 fi
25524   elif test x$gcc_cv_as != x; then
25525     $as_echo '  lw $4,%gp_rel(foo)($4)' > conftest.s
25526     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25527   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25528   (eval $ac_try) 2>&5
25529   ac_status=$?
25530   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25531   test $ac_status = 0; }; }
25532     then
25533         gcc_cv_as_mips_explicit_relocs=yes
25534     else
25535       echo "configure: failed program was" >&5
25536       cat conftest.s >&5
25537     fi
25538     rm -f conftest.o conftest.s
25539   fi
25540 fi
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25542 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25543 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25544   if test x$target_cpu_default = x
25545        then target_cpu_default=MASK_EXPLICIT_RELOCS
25546        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25547        fi
25548 fi
25549     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25550 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25551 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25552   $as_echo_n "(cached) " >&6
25553 else
25554   gcc_cv_as_mips_no_shared=no
25555     if test $in_tree_gas = yes; then
25556     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25557   then gcc_cv_as_mips_no_shared=yes
25558 fi
25559   elif test x$gcc_cv_as != x; then
25560     $as_echo 'nop' > conftest.s
25561     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25562   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25563   (eval $ac_try) 2>&5
25564   ac_status=$?
25565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25566   test $ac_status = 0; }; }
25567     then
25568         gcc_cv_as_mips_no_shared=yes
25569     else
25570       echo "configure: failed program was" >&5
25571       cat conftest.s >&5
25572     fi
25573     rm -f conftest.o conftest.s
25574   fi
25575 fi
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25577 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25578 if test $gcc_cv_as_mips_no_shared = yes; then
25579
25580 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25581
25582 fi
25583
25584     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25585 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25586 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25587   $as_echo_n "(cached) " >&6
25588 else
25589   gcc_cv_as_mips_gnu_attribute=no
25590     if test $in_tree_gas = yes; then
25591     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25592   then gcc_cv_as_mips_gnu_attribute=yes
25593 fi
25594   elif test x$gcc_cv_as != x; then
25595     $as_echo '.gnu_attribute 4,1' > conftest.s
25596     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25597   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25598   (eval $ac_try) 2>&5
25599   ac_status=$?
25600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25601   test $ac_status = 0; }; }
25602     then
25603         gcc_cv_as_mips_gnu_attribute=yes
25604     else
25605       echo "configure: failed program was" >&5
25606       cat conftest.s >&5
25607     fi
25608     rm -f conftest.o conftest.s
25609   fi
25610 fi
25611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25612 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25613 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25614
25615 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25616
25617 fi
25618
25619     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25620 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25621 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25622   $as_echo_n "(cached) " >&6
25623 else
25624   gcc_cv_as_mips_dtprelword=no
25625     if test $in_tree_gas = yes; then
25626     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25627   then gcc_cv_as_mips_dtprelword=yes
25628 fi
25629   elif test x$gcc_cv_as != x; then
25630     $as_echo '.section .tdata,"awT",@progbits
25631 x:
25632         .word 2
25633         .text
25634         .dtprelword x+0x8000' > conftest.s
25635     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25636   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25637   (eval $ac_try) 2>&5
25638   ac_status=$?
25639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25640   test $ac_status = 0; }; }
25641     then
25642         gcc_cv_as_mips_dtprelword=yes
25643     else
25644       echo "configure: failed program was" >&5
25645       cat conftest.s >&5
25646     fi
25647     rm -f conftest.o conftest.s
25648   fi
25649 fi
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25651 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25652 if test $gcc_cv_as_mips_dtprelword = yes; then
25653
25654 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25655
25656 fi
25657
25658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25659 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25660 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25661   $as_echo_n "(cached) " >&6
25662 else
25663   gcc_cv_as_mips_dspr1_mult=no
25664   if test x$gcc_cv_as != x; then
25665     $as_echo '  .set    mips32r2
25666         .set    nodspr2
25667         .set    dsp
25668         madd    $ac3,$4,$5
25669         maddu   $ac3,$4,$5
25670         msub    $ac3,$4,$5
25671         msubu   $ac3,$4,$5
25672         mult    $ac3,$4,$5
25673         multu   $ac3,$4,$5' > conftest.s
25674     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25675   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25676   (eval $ac_try) 2>&5
25677   ac_status=$?
25678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25679   test $ac_status = 0; }; }
25680     then
25681         gcc_cv_as_mips_dspr1_mult=yes
25682     else
25683       echo "configure: failed program was" >&5
25684       cat conftest.s >&5
25685     fi
25686     rm -f conftest.o conftest.s
25687   fi
25688 fi
25689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25690 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25691 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25692
25693 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25694
25695 fi
25696
25697     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25698 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25699     gcc_cv_as_ld_jalr_reloc=no
25700     if test $gcc_cv_as_mips_explicit_relocs = yes; then
25701       if test $in_tree_ld = yes ; then
25702         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 \
25703            && test $in_tree_ld_is_elf = yes; then
25704           gcc_cv_as_ld_jalr_reloc=yes
25705         fi
25706       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25707         echo '  .ent x' > conftest.s
25708         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
25709         echo '  ld $25,%call16(y)($28)' >> conftest.s
25710         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
25711         echo '1:        jalr $25' >> conftest.s
25712         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
25713         echo '1:        jalr $25' >> conftest.s
25714         echo '  .end x' >> conftest.s
25715         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25716            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25717           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25718              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25719             gcc_cv_as_ld_jalr_reloc=yes
25720           fi
25721         fi
25722         rm -f conftest.*
25723       fi
25724     fi
25725     if test $gcc_cv_as_ld_jalr_reloc = yes; then
25726       if test x$target_cpu_default = x; then
25727         target_cpu_default=MASK_RELAX_PIC_CALLS
25728       else
25729         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25730       fi
25731     fi
25732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25733 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25734
25735     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25736 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25737 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25738   $as_echo_n "(cached) " >&6
25739 else
25740   gcc_cv_ld_mips_personality_relaxation=no
25741        if test $in_tree_ld = yes ; then
25742          if test "$gcc_cv_gld_major_version" -eq 2 \
25743                  -a "$gcc_cv_gld_minor_version" -ge 21 \
25744                  -o "$gcc_cv_gld_major_version" -gt 2; then
25745            gcc_cv_ld_mips_personality_relaxation=yes
25746          fi
25747        elif test x$gcc_cv_as != x \
25748                  -a x$gcc_cv_ld != x \
25749                  -a x$gcc_cv_readelf != x ; then
25750          cat > conftest.s <<EOF
25751         .cfi_startproc
25752         .cfi_personality 0x80,indirect_ptr
25753         .ent test
25754 test:
25755         nop
25756         .end test
25757         .cfi_endproc
25758
25759         .section .data,"aw",@progbits
25760 indirect_ptr:
25761         .dc.a personality
25762 EOF
25763          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25764             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25765            if $gcc_cv_readelf -d conftest 2>&1 \
25766               | grep TEXTREL > /dev/null 2>&1; then
25767              :
25768            elif $gcc_cv_readelf --relocs conftest 2>&1 \
25769                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25770              :
25771            else
25772              gcc_cv_ld_mips_personality_relaxation=yes
25773            fi
25774          fi
25775        fi
25776        rm -f conftest.s conftest.o conftest
25777 fi
25778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25779 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25780     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25781
25782 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25783
25784     fi
25785     ;;
25786 esac
25787
25788 # Mips and HP-UX need the GNU assembler.
25789 # Linux on IA64 might be able to use the Intel assembler.
25790
25791 case "$target" in
25792   mips*-*-* | *-*-hpux* )
25793     if test x$gas_flag = xyes \
25794        || test x"$host" != x"$build" \
25795        || test ! -x "$gcc_cv_as" \
25796        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25797       :
25798     else
25799       echo "*** This configuration requires the GNU assembler" >&2
25800       exit 1
25801     fi
25802     ;;
25803 esac
25804
25805 # ??? Not all targets support dwarf2 debug_line, even within a version
25806 # of gas.  Moreover, we need to emit a valid instruction to trigger any
25807 # info to the output file.  So, as supported targets are added to gas 2.11,
25808 # add some instruction here to (also) show we expect this might work.
25809 # ??? Once 2.11 is released, probably need to add first known working
25810 # version to the per-target configury.
25811 case "$cpu_type" in
25812   alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25813   | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25814     insn="nop"
25815     ;;
25816   ia64 | s390)
25817     insn="nop 0"
25818     ;;
25819   mmix)
25820     insn="swym 0"
25821     ;;
25822 esac
25823 if test x"$insn" != x; then
25824  conftest_s="\
25825         .file 1 \"conftest.s\"
25826         .loc 1 3 0
25827         $insn"
25828  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25829 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25830 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25831   $as_echo_n "(cached) " >&6
25832 else
25833   gcc_cv_as_dwarf2_debug_line=no
25834     if test $in_tree_gas = yes; then
25835     if test $in_tree_gas_is_elf = yes \
25836   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25837   then gcc_cv_as_dwarf2_debug_line=yes
25838 fi
25839   elif test x$gcc_cv_as != x; then
25840     $as_echo "$conftest_s" > conftest.s
25841     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25842   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25843   (eval $ac_try) 2>&5
25844   ac_status=$?
25845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25846   test $ac_status = 0; }; }
25847     then
25848         if test x$gcc_cv_objdump != x \
25849    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25850       | grep debug_line > /dev/null 2>&1; then
25851      gcc_cv_as_dwarf2_debug_line=yes
25852    fi
25853     else
25854       echo "configure: failed program was" >&5
25855       cat conftest.s >&5
25856     fi
25857     rm -f conftest.o conftest.s
25858   fi
25859 fi
25860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25861 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25862
25863
25864 # The .debug_line file table must be in the exact order that
25865 # we specified the files, since these indices are also used
25866 # by DW_AT_decl_file.  Approximate this test by testing if
25867 # the assembler bitches if the same index is assigned twice.
25868  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25869 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25870 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25871   $as_echo_n "(cached) " >&6
25872 else
25873   gcc_cv_as_dwarf2_file_buggy=no
25874   if test x$gcc_cv_as != x; then
25875     $as_echo '  .file 1 "foo.s"
25876         .file 1 "bar.s"' > conftest.s
25877     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25878   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25879   (eval $ac_try) 2>&5
25880   ac_status=$?
25881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25882   test $ac_status = 0; }; }
25883     then
25884         gcc_cv_as_dwarf2_file_buggy=yes
25885     else
25886       echo "configure: failed program was" >&5
25887       cat conftest.s >&5
25888     fi
25889     rm -f conftest.o conftest.s
25890   fi
25891 fi
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25893 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25894
25895
25896  if test $gcc_cv_as_dwarf2_debug_line = yes \
25897  && test $gcc_cv_as_dwarf2_file_buggy = no; then
25898
25899 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25900
25901  fi
25902
25903  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25904 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25905 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25906   $as_echo_n "(cached) " >&6
25907 else
25908   gcc_cv_as_gdwarf2_flag=no
25909     if test $in_tree_gas = yes; then
25910     if test $in_tree_gas_is_elf = yes \
25911   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25912   then gcc_cv_as_gdwarf2_flag=yes
25913 fi
25914   elif test x$gcc_cv_as != x; then
25915     $as_echo "$insn" > conftest.s
25916     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25917   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25918   (eval $ac_try) 2>&5
25919   ac_status=$?
25920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25921   test $ac_status = 0; }; }
25922     then
25923         gcc_cv_as_gdwarf2_flag=yes
25924     else
25925       echo "configure: failed program was" >&5
25926       cat conftest.s >&5
25927     fi
25928     rm -f conftest.o conftest.s
25929   fi
25930 fi
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25932 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25933 if test $gcc_cv_as_gdwarf2_flag = yes; then
25934
25935 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25936
25937 fi
25938
25939  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25940 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25941 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25942   $as_echo_n "(cached) " >&6
25943 else
25944   gcc_cv_as_gstabs_flag=no
25945     if test $in_tree_gas = yes; then
25946     if test $in_tree_gas_is_elf = yes \
25947   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25948   then gcc_cv_as_gstabs_flag=yes
25949 fi
25950   elif test x$gcc_cv_as != x; then
25951     $as_echo "$insn" > conftest.s
25952     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25953   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25954   (eval $ac_try) 2>&5
25955   ac_status=$?
25956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25957   test $ac_status = 0; }; }
25958     then
25959         # The native Solaris 9/Intel assembler doesn't understand --gstabs
25960    # and warns about it, but still exits successfully.  So check for
25961    # this.
25962    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25963   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25964   (eval $ac_try) 2>&5
25965   ac_status=$?
25966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25967   test $ac_status = 0; }; }
25968    then :
25969    else gcc_cv_as_gstabs_flag=yes
25970    fi
25971     else
25972       echo "configure: failed program was" >&5
25973       cat conftest.s >&5
25974     fi
25975     rm -f conftest.o conftest.s
25976   fi
25977 fi
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25979 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25980 if test $gcc_cv_as_gstabs_flag = yes; then
25981
25982 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25983
25984 fi
25985
25986  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25987 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25988 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25989   $as_echo_n "(cached) " >&6
25990 else
25991   gcc_cv_as_debug_prefix_map_flag=no
25992     if test $in_tree_gas = yes; then
25993     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25994   then gcc_cv_as_debug_prefix_map_flag=yes
25995 fi
25996   elif test x$gcc_cv_as != x; then
25997     $as_echo "$insn" > conftest.s
25998     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25999   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26000   (eval $ac_try) 2>&5
26001   ac_status=$?
26002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26003   test $ac_status = 0; }; }
26004     then
26005         gcc_cv_as_debug_prefix_map_flag=yes
26006     else
26007       echo "configure: failed program was" >&5
26008       cat conftest.s >&5
26009     fi
26010     rm -f conftest.o conftest.s
26011   fi
26012 fi
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26014 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26015 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26016
26017 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26018
26019 fi
26020 fi
26021
26022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26023 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26024 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26025   $as_echo_n "(cached) " >&6
26026 else
26027   gcc_cv_as_lcomm_with_alignment=no
26028   if test x$gcc_cv_as != x; then
26029     $as_echo '.lcomm bar,4,16' > conftest.s
26030     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26031   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26032   (eval $ac_try) 2>&5
26033   ac_status=$?
26034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26035   test $ac_status = 0; }; }
26036     then
26037         gcc_cv_as_lcomm_with_alignment=yes
26038     else
26039       echo "configure: failed program was" >&5
26040       cat conftest.s >&5
26041     fi
26042     rm -f conftest.o conftest.s
26043   fi
26044 fi
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26046 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26047 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26048
26049 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26050
26051 fi
26052
26053 # Check whether --enable-gnu-unique-object was given.
26054 if test "${enable_gnu_unique_object+set}" = set; then :
26055   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26056     yes | no) ;;
26057     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26058 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26059   esac
26060 else
26061   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26062 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26063 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26064   $as_echo_n "(cached) " >&6
26065 else
26066   gcc_cv_as_gnu_unique_object=no
26067     if test $in_tree_gas = yes; then
26068     if test $in_tree_gas_is_elf = yes \
26069   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26070   then gcc_cv_as_gnu_unique_object=yes
26071 fi
26072   elif test x$gcc_cv_as != x; then
26073     $as_echo '.type foo, @gnu_unique_object' > conftest.s
26074     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
26075   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26076   (eval $ac_try) 2>&5
26077   ac_status=$?
26078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26079   test $ac_status = 0; }; }
26080     then
26081         gcc_cv_as_gnu_unique_object=yes
26082     else
26083       echo "configure: failed program was" >&5
26084       cat conftest.s >&5
26085     fi
26086     rm -f conftest.o conftest.s
26087   fi
26088 fi
26089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26090 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26091 if test $gcc_cv_as_gnu_unique_object = yes; then
26092   # Also check for ld.so support, i.e. glibc 2.11 or higher.
26093    if test x$host = x$build -a x$host = x$target &&
26094        ldd --version 2>/dev/null &&
26095        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
26096       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
26097       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
26098       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
26099       if test "$glibcnum" -ge 2011 ; then
26100         enable_gnu_unique_object=yes
26101       fi
26102     fi
26103 fi
26104 fi
26105
26106 if test x$enable_gnu_unique_object = xyes; then
26107
26108 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26109
26110 fi
26111
26112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26113 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26114 if test "${gcc_cv_as_line_zero+set}" = set; then :
26115   $as_echo_n "(cached) " >&6
26116 else
26117   gcc_cv_as_line_zero=no
26118   if test $in_tree_gas = yes; then
26119     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26120   then gcc_cv_as_line_zero=yes
26121 fi
26122   elif test "x$gcc_cv_as" != x; then
26123     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26124     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26125   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26126   (eval $ac_try) 2>&5
26127   ac_status=$?
26128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26129   test $ac_status = 0; }; } &&
26130        test "x`cat conftest.out`" = x
26131     then
26132       gcc_cv_as_line_zero=yes
26133     else
26134       echo "configure: failed program was" >&5
26135       cat conftest.s >&5
26136       echo "configure: error output was" >&5
26137       cat conftest.out >&5
26138     fi
26139     rm -f conftest.o conftest.s conftest.out
26140   fi
26141 fi
26142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26143 $as_echo "$gcc_cv_as_line_zero" >&6; }
26144 if test "x$gcc_cv_as_line_zero" = xyes; then
26145
26146 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26147
26148 fi
26149
26150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26151 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26152 gcc_cv_ld_eh_frame_hdr=no
26153 if test $in_tree_ld = yes ; then
26154   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 \
26155      && test $in_tree_ld_is_elf = yes; then
26156     gcc_cv_ld_eh_frame_hdr=yes
26157   fi
26158 elif test x$gcc_cv_ld != x; then
26159   if echo "$ld_ver" | grep GNU > /dev/null; then
26160     # Check if linker supports --eh-frame-hdr option
26161     if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26162       gcc_cv_ld_eh_frame_hdr=yes
26163     fi
26164   else
26165     case "$target" in
26166       *-*-solaris2*)
26167         # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26168         if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26169           gcc_cv_ld_eh_frame_hdr=yes
26170         fi
26171         ;;
26172     esac
26173   fi
26174 fi
26175
26176 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26177
26178 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26179
26180 fi
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26182 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26183
26184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26185 $as_echo_n "checking linker position independent executable support... " >&6; }
26186 gcc_cv_ld_pie=no
26187 if test $in_tree_ld = yes ; then
26188   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 \
26189      && test $in_tree_ld_is_elf = yes; then
26190     gcc_cv_ld_pie=yes
26191   fi
26192 elif test x$gcc_cv_ld != x; then
26193         # Check if linker supports -pie option
26194         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26195                 gcc_cv_ld_pie=yes
26196         fi
26197 fi
26198 if test x"$gcc_cv_ld_pie" = xyes; then
26199
26200 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26201
26202 fi
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26204 $as_echo "$gcc_cv_ld_pie" >&6; }
26205
26206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26207 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26208 gcc_cv_ld_eh_gc_sections=no
26209 if test $in_tree_ld = yes ; then
26210   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 \
26211      && test $in_tree_ld_is_elf = yes; then
26212     gcc_cv_ld_eh_gc_sections=yes
26213   fi
26214 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26215   cat > conftest.s <<EOF
26216         .section        .text
26217 .globl _start
26218         .type _start, @function
26219 _start:
26220         .long foo
26221         .size _start, .-_start
26222         .section        .text.foo,"ax",@progbits
26223         .type foo, @function
26224 foo:
26225         .long 0
26226         .size foo, .-foo
26227         .section        .gcc_except_table.foo,"a",@progbits
26228 .L0:
26229         .long 0
26230         .section        .eh_frame,"a",@progbits
26231         .long .L0
26232 EOF
26233   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26234     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26235          | grep "gc-sections option ignored" > /dev/null; then
26236       gcc_cv_ld_eh_gc_sections=no
26237     elif $gcc_cv_objdump -h conftest 2> /dev/null \
26238          | grep gcc_except_table > /dev/null; then
26239       gcc_cv_ld_eh_gc_sections=yes
26240       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26241       if test x$gcc_cv_as_comdat_group != xyes; then
26242         gcc_cv_ld_eh_gc_sections=no
26243         cat > conftest.s <<EOF
26244         .section        .text
26245 .globl _start
26246         .type _start, @function
26247 _start:
26248         .long foo
26249         .size _start, .-_start
26250         .section        .gnu.linkonce.t.foo,"ax",@progbits
26251         .type foo, @function
26252 foo:
26253         .long 0
26254         .size foo, .-foo
26255         .section        .gcc_except_table.foo,"a",@progbits
26256 .L0:
26257         .long 0
26258         .section        .eh_frame,"a",@progbits
26259         .long .L0
26260 EOF
26261         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26262           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26263                | grep "gc-sections option ignored" > /dev/null; then
26264             gcc_cv_ld_eh_gc_sections=no
26265           elif $gcc_cv_objdump -h conftest 2> /dev/null \
26266                | grep gcc_except_table > /dev/null; then
26267             gcc_cv_ld_eh_gc_sections=yes
26268           fi
26269         fi
26270       fi
26271     fi
26272   fi
26273   rm -f conftest.s conftest.o conftest
26274 fi
26275 case "$target" in
26276   hppa*-*-linux*)
26277     # ??? This apparently exposes a binutils bug with PC-relative relocations.
26278     gcc_cv_ld_eh_gc_sections=no
26279     ;;
26280 esac
26281 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26282
26283 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26284
26285 fi
26286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26287 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26288
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26290 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26291 gcc_cv_ld_eh_gc_sections_bug=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" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
26294      && test $in_tree_ld_is_elf = yes; then
26295     gcc_cv_ld_eh_gc_sections_bug=yes
26296   fi
26297 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
26298   gcc_cv_ld_eh_gc_sections_bug=yes
26299   cat > conftest.s <<EOF
26300         .section        .text
26301 .globl _start
26302         .type _start, @function
26303 _start:
26304         .long foo
26305         .size _start, .-_start
26306         .section        .text.startup.foo,"ax",@progbits
26307         .type foo, @function
26308 foo:
26309         .long 0
26310         .size foo, .-foo
26311         .section        .gcc_except_table.foo,"a",@progbits
26312 .L0:
26313         .long 0
26314         .section        .eh_frame,"a",@progbits
26315         .long .L0
26316 EOF
26317   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26318     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26319          | grep "gc-sections option ignored" > /dev/null; then
26320       :
26321     elif $gcc_cv_objdump -h conftest 2> /dev/null \
26322          | grep gcc_except_table > /dev/null; then
26323       gcc_cv_ld_eh_gc_sections_bug=no
26324     fi
26325   fi
26326   rm -f conftest.s conftest.o conftest
26327 fi
26328 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26329
26330 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26331
26332 fi
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26334 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26335
26336 # --------
26337 # UNSORTED
26338 # --------
26339
26340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26341 $as_echo_n "checking linker --as-needed support... " >&6; }
26342 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26343   $as_echo_n "(cached) " >&6
26344 else
26345   gcc_cv_ld_as_needed=no
26346 if test $in_tree_ld = yes ; then
26347   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 \
26348      && test $in_tree_ld_is_elf = yes; then
26349     gcc_cv_ld_as_needed=yes
26350   fi
26351 elif test x$gcc_cv_ld != x; then
26352         # Check if linker supports --as-needed and --no-as-needed options
26353         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26354                 gcc_cv_ld_as_needed=yes
26355         fi
26356 fi
26357
26358 fi
26359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26360 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26361 if test x"$gcc_cv_ld_as_needed" = xyes; then
26362
26363 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26364
26365 fi
26366
26367 case "$target:$tm_file" in
26368   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26369     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26370 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26371 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26372   $as_echo_n "(cached) " >&6
26373 else
26374   gcc_cv_ld_no_dot_syms=no
26375     if test $in_tree_ld = yes ; then
26376       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
26377         gcc_cv_ld_no_dot_syms=yes
26378       fi
26379     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26380       cat > conftest1.s <<EOF
26381         .text
26382         bl .foo
26383 EOF
26384       cat > conftest2.s <<EOF
26385         .section ".opd","aw"
26386         .align 3
26387         .globl foo
26388         .type foo,@function
26389 foo:
26390         .quad .LEfoo,.TOC.@tocbase,0
26391         .text
26392 .LEfoo:
26393         blr
26394         .size foo,.-.LEfoo
26395 EOF
26396       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26397          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26398          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26399         gcc_cv_ld_no_dot_syms=yes
26400       fi
26401       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26402     fi
26403
26404 fi
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26406 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26407     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26408
26409 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26410
26411     fi
26412
26413     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26414 $as_echo_n "checking linker large toc support... " >&6; }
26415 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26416   $as_echo_n "(cached) " >&6
26417 else
26418   gcc_cv_ld_large_toc=no
26419     if test $in_tree_ld = yes ; then
26420       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
26421         gcc_cv_ld_large_toc=yes
26422       fi
26423     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26424       cat > conftest.s <<EOF
26425         .section ".tbss","awT",@nobits
26426         .align 3
26427 ie0:    .space 8
26428         .global _start
26429         .text
26430 _start:
26431         addis 9,13,ie0@got@tprel@ha
26432         ld 9,ie0@got@tprel@l(9)
26433 EOF
26434       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26435          && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26436         gcc_cv_ld_large_toc=yes
26437       fi
26438       rm -f conftest conftest.o conftest.s
26439     fi
26440
26441 fi
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26443 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26444     if test x"$gcc_cv_ld_large_toc" = xyes; then
26445
26446 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26447
26448     fi
26449     ;;
26450 esac
26451
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26453 $as_echo_n "checking linker --build-id support... " >&6; }
26454 if test "${gcc_cv_ld_buildid+set}" = set; then :
26455   $as_echo_n "(cached) " >&6
26456 else
26457   gcc_cv_ld_buildid=no
26458   if test $in_tree_ld = yes ; then
26459     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26460        "$gcc_cv_gld_minor_version" -ge 18 -o \
26461        "$gcc_cv_gld_major_version" -gt 2 \
26462        && test $in_tree_ld_is_elf = yes; then
26463       gcc_cv_ld_buildid=yes
26464     fi
26465   elif test x$gcc_cv_ld != x; then
26466     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26467       gcc_cv_ld_buildid=yes
26468     fi
26469   fi
26470 fi
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26472 $as_echo "$gcc_cv_ld_buildid" >&6; }
26473 if test x"$gcc_cv_ld_buildid" = xyes; then
26474
26475 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26476
26477 fi
26478
26479 # Check whether --enable-linker-build-id was given.
26480 if test "${enable_linker_build_id+set}" = set; then :
26481   enableval=$enable_linker_build_id;
26482 else
26483   enable_linker_build_id=no
26484 fi
26485
26486
26487 if test x"$enable_linker_build_id" = xyes; then
26488   if test x"$gcc_cv_ld_buildid" = xyes; then
26489
26490 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26491
26492   else
26493     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26494 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26495   fi
26496 fi
26497
26498 # In binutils 2.21, GNU ld gained support for new emulations fully
26499 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26501 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26502 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26503   $as_echo_n "(cached) " >&6
26504 else
26505   gcc_cv_ld_sol2_emulation=no
26506   if test $in_tree_ld = yes ; then
26507     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26508        "$gcc_cv_gld_minor_version" -ge 21 -o \
26509        "$gcc_cv_gld_major_version" -gt 2 \
26510        && test $in_tree_ld_is_elf = yes; then
26511       gcc_cv_ld_sol2_emulation=yes
26512     fi
26513   elif test x$gcc_cv_ld != x; then
26514     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26515        grep _sol2 > /dev/null; then
26516       gcc_cv_ld_sol2_emulation=yes
26517     fi
26518   fi
26519 fi
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26521 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26522 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26523
26524 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26525
26526 fi
26527
26528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26529 $as_echo_n "checking linker --sysroot support... " >&6; }
26530 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26531   $as_echo_n "(cached) " >&6
26532 else
26533   gcc_cv_ld_sysroot=no
26534   if test $in_tree_ld = yes ; then
26535       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
26536         gcc_cv_ld_sysroot=yes
26537       fi
26538   elif test x$gcc_cv_ld != x; then
26539     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26540       gcc_cv_ld_sysroot=yes
26541     fi
26542   fi
26543 fi
26544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26545 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26546 if test x"$gcc_cv_ld_sysroot" = xyes; then
26547
26548 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26549
26550 fi
26551
26552 if test x$with_sysroot = x && test x$host = x$target \
26553    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26554    && test "$prefix" != "NONE"; then
26555
26556 cat >>confdefs.h <<_ACEOF
26557 #define PREFIX_INCLUDE_DIR "$prefix/include"
26558 _ACEOF
26559
26560 fi
26561
26562 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26563   if test "x$with_headers" != x; then
26564     target_header_dir=$with_headers
26565   elif test "x$with_sysroot" = x; then
26566     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26567   elif test "x$with_build_sysroot" != "x"; then
26568     target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26569   elif test "x$with_sysroot" = xyes; then
26570     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26571   else
26572     target_header_dir="${with_sysroot}${native_system_header_dir}"
26573   fi
26574 else
26575   target_header_dir=${native_system_header_dir}
26576 fi
26577
26578 # Test for stack protector support in target C library.
26579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26580 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26581 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26582   $as_echo_n "(cached) " >&6
26583 else
26584   gcc_cv_libc_provides_ssp=no
26585     case "$target" in
26586        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26587       # glibc 2.4 and later provides __stack_chk_fail and
26588       # either __stack_chk_guard, or TLS access to stack guard canary.
26589       if test -f $target_header_dir/features.h \
26590          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
26591             $target_header_dir/features.h > /dev/null; then
26592         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
26593            $target_header_dir/features.h > /dev/null; then
26594           gcc_cv_libc_provides_ssp=yes
26595         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
26596              $target_header_dir/features.h > /dev/null \
26597              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
26598              $target_header_dir/features.h > /dev/null; then
26599           gcc_cv_libc_provides_ssp=yes
26600         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
26601              $target_header_dir/features.h > /dev/null && \
26602              test -f $target_header_dir/bits/uClibc_config.h && \
26603              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
26604              $target_header_dir/bits/uClibc_config.h > /dev/null; then
26605           gcc_cv_libc_provides_ssp=yes
26606         fi
26607       fi
26608         ;;
26609        *-*-gnu*)
26610          # Avoid complicated tests (see
26611          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26612          # simply assert that glibc does provide this, which is true for all
26613          # realistically usable GNU/Hurd configurations.
26614          gcc_cv_libc_provides_ssp=yes;;
26615        *-*-darwin* | *-*-freebsd*)
26616          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26617 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26618   gcc_cv_libc_provides_ssp=yes
26619 else
26620   echo "no __stack_chk_fail on this target"
26621 fi
26622
26623         ;;
26624   *) gcc_cv_libc_provides_ssp=no ;;
26625     esac
26626 fi
26627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26628 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26629
26630 if test x$gcc_cv_libc_provides_ssp = xyes; then
26631
26632 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26633
26634 fi
26635
26636 # Test for <sys/sdt.h> on the target.
26637
26638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26639 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26640 have_sys_sdt_h=no
26641 if test -f $target_header_dir/sys/sdt.h; then
26642   have_sys_sdt_h=yes
26643
26644 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26645
26646 fi
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26648 $as_echo "$have_sys_sdt_h" >&6; }
26649
26650 # Check if TFmode long double should be used by default or not.
26651 # Some glibc targets used DFmode long double, but with glibc 2.4
26652 # and later they can use TFmode.
26653 case "$target" in
26654   powerpc*-*-linux* | \
26655   sparc*-*-linux* | \
26656   s390*-*-linux* | \
26657   alpha*-*-linux*)
26658
26659 # Check whether --with-long-double-128 was given.
26660 if test "${with_long_double_128+set}" = set; then :
26661   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26662 else
26663   gcc_cv_target_ldbl128=no
26664       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26665         $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26666       && gcc_cv_target_ldbl128=yes
26667
26668 fi
26669
26670     ;;
26671 esac
26672 if test x$gcc_cv_target_ldbl128 = xyes; then
26673
26674 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26675
26676 fi
26677
26678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26679 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26680 gcc_cv_target_dl_iterate_phdr=unknown
26681 case "$target" in
26682   *-*-solaris2*)
26683     # <link.h> needs both a dl_iterate_phdr declaration and support for
26684     # compilation with largefile support.
26685     if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26686       && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26687       gcc_cv_target_dl_iterate_phdr=yes
26688     else
26689       gcc_cv_target_dl_iterate_phdr=no
26690     fi
26691     ;;
26692 esac
26693
26694 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26695
26696 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26697
26698 fi
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26700 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26701
26702 # Find out what GC implementation we want, or may, use.
26703
26704 # Check whether --with-gc was given.
26705 if test "${with_gc+set}" = set; then :
26706   withval=$with_gc; case "$withval" in
26707   page)
26708     GGC=ggc-$withval
26709     ;;
26710   zone)
26711     GGC=ggc-$withval
26712
26713 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26714
26715     ;;
26716   *)
26717     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26718     ;;
26719 esac
26720 else
26721   GGC=ggc-page
26722 fi
26723
26724
26725 echo "Using $GGC for garbage collection."
26726
26727 # Libraries to use on the host.  This will normally be set by the top
26728 # level Makefile.  Here we simply capture the value for our Makefile.
26729 if test -z "${HOST_LIBS+set}"; then
26730   HOST_LIBS=
26731 fi
26732
26733
26734 # Use the system's zlib library.
26735 zlibdir=-L../zlib
26736 zlibinc="-I\$(srcdir)/../zlib"
26737
26738 # Check whether --with-system-zlib was given.
26739 if test "${with_system_zlib+set}" = set; then :
26740   withval=$with_system_zlib; zlibdir=
26741 zlibinc=
26742
26743 fi
26744
26745
26746
26747
26748
26749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26750 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26751     # Check whether --enable-maintainer-mode was given.
26752 if test "${enable_maintainer_mode+set}" = set; then :
26753   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26754 else
26755   maintainer_mode=no
26756 fi
26757
26758
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26760 $as_echo "$maintainer_mode" >&6; }
26761
26762 if test "$maintainer_mode" = "yes"; then
26763   MAINT=''
26764 else
26765   MAINT='#'
26766 fi
26767
26768 # --------------
26769 # Language hooks
26770 # --------------
26771
26772 # Make empty files to contain the specs and options for each language.
26773 # Then add #include lines to for a compiler that has specs and/or options.
26774
26775 subdirs=
26776 lang_opt_files=
26777 lang_specs_files=
26778 lang_tree_files=
26779 # These (without "all_") are set in each config-lang.in.
26780 # `language' must be a single word so is spelled singularly.
26781 all_languages=
26782 all_compilers=
26783 all_outputs='Makefile'
26784 # List of language makefile fragments.
26785 all_lang_makefrags=
26786 # Additional files for gengtype
26787 all_gtfiles="$target_gtfiles"
26788
26789 # These are the languages that are set in --enable-languages,
26790 # and are available in the GCC tree.
26791 all_selected_languages=
26792
26793 # Add the language fragments.
26794 # Languages are added via two mechanisms.  Some information must be
26795 # recorded in makefile variables, these are defined in config-lang.in.
26796 # We accumulate them and plug them into the main Makefile.
26797 # The other mechanism is a set of hooks for each of the main targets
26798 # like `clean', `install', etc.
26799
26800 language_hooks="Make-hooks"
26801
26802 for lang in ${srcdir}/*/config-lang.in
26803 do
26804         test "$lang" = "${srcdir}/*/config-lang.in" && continue
26805
26806         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
26807         if test "x$lang_alias" = x
26808         then
26809               echo "$lang doesn't set \$language." 1>&2
26810               exit 1
26811         fi
26812         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26813         subdirs="$subdirs $subdir"
26814
26815         # $gcc_subdir is where the gcc integration files are to be found
26816         # for a language, both for internal compiler purposes (compiler
26817         # sources implementing front-end to GCC tree converters), and for
26818         # build infrastructure purposes (Make-lang.in, etc.)
26819         #
26820         # This will be <subdir> (relative to $srcdir) if a line like
26821         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26822         # is found in <langdir>/config-lang.in, and will remain <langdir>
26823         # otherwise.
26824         #
26825         # Except for the language alias (fetched above), the regular
26826         # "config-lang.in" contents are always retrieved from $gcc_subdir,
26827         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26828         # only this and the language alias.
26829
26830         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
26831         if [ "$gcc_subdir" = "" ]; then
26832            gcc_subdir="$subdir"
26833         fi
26834
26835         case ",$enable_languages," in
26836         *,$lang_alias,*)
26837             all_selected_languages="$all_selected_languages $lang_alias"
26838             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26839                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26840             fi
26841             ;;
26842         esac
26843
26844         language=
26845         boot_language=
26846         compilers=
26847         outputs=
26848         gtfiles=
26849         subdir_requires=
26850         . ${srcdir}/$gcc_subdir/config-lang.in
26851         if test "x$language" = x
26852         then
26853                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26854                 exit 1
26855         fi
26856
26857         ok=:
26858         case ",$enable_languages," in
26859                 *,$lang_alias,*) ;;
26860                 *)
26861                         for i in $subdir_requires; do
26862                                 test -f "${srcdir}/$i/config-lang.in" && continue
26863                                 ok=false
26864                                 break
26865                         done
26866                 ;;
26867         esac
26868         $ok || continue
26869
26870         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26871         if test -f $srcdir/$gcc_subdir/lang.opt; then
26872             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26873             all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26874         fi
26875         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26876             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26877         fi
26878         all_languages="$all_languages $language"
26879         all_compilers="$all_compilers $compilers"
26880         all_outputs="$all_outputs $outputs"
26881         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26882         case ",$enable_languages," in
26883                 *,lto,*)
26884
26885 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26886
26887                     enable_lto=yes
26888
26889                     ;;
26890                 *) ;;
26891         esac
26892 done
26893
26894 # Pick up gtfiles for c
26895 gtfiles=
26896 . ${srcdir}/c-config-lang.in
26897 all_gtfiles="$all_gtfiles [c] $gtfiles"
26898
26899 check_languages=
26900 for language in $all_selected_languages
26901 do
26902         check_languages="$check_languages check-$language"
26903 done
26904
26905 # We link each language in with a set of hooks, reached indirectly via
26906 # lang.${target}.  Only do so for selected languages.
26907
26908 rm -f Make-hooks
26909 touch Make-hooks
26910 target_list="all.cross start.encap rest.encap tags \
26911         install-common install-man install-info install-pdf install-html dvi \
26912         pdf html uninstall info man srcextra srcman srcinfo \
26913         mostlyclean clean distclean maintainer-clean install-plugin"
26914
26915 for t in $target_list
26916 do
26917         x=
26918         for lang in $all_selected_languages
26919         do
26920                 x="$x $lang.$t"
26921         done
26922         echo "lang.$t: $x" >> Make-hooks
26923 done
26924
26925 # --------
26926 # Option include files
26927 # --------
26928
26929 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26930 option_includes="option-includes.mk"
26931
26932
26933 # --------
26934 # UNSORTED
26935 # --------
26936
26937 # Create .gdbinit.
26938
26939 echo "dir ." > .gdbinit
26940 echo "dir ${srcdir}" >> .gdbinit
26941 if test x$gdb_needs_out_file_path = xyes
26942 then
26943         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26944 fi
26945 if test "x$subdirs" != x; then
26946         for s in $subdirs
26947         do
26948                 echo "dir ${srcdir}/$s" >> .gdbinit
26949         done
26950 fi
26951 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26952
26953 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26954
26955
26956
26957 # Find a directory in which to install a shared libgcc.
26958
26959 # Check whether --enable-version-specific-runtime-libs was given.
26960 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26961   enableval=$enable_version_specific_runtime_libs;
26962 fi
26963
26964
26965 # Substitute configuration variables
26966
26967
26968
26969
26970
26971
26972
26973
26974
26975
26976
26977
26978
26979
26980
26981
26982
26983
26984
26985
26986
26987
26988
26989
26990
26991
26992
26993
26994
26995
26996
26997
26998
26999
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020
27021
27022
27023
27024
27025
27026
27027
27028 # Echo link setup.
27029 if test x${build} = x${host} ; then
27030   if test x${host} = x${target} ; then
27031     echo "Links are now set up to build a native compiler for ${target}." 1>&2
27032   else
27033     echo "Links are now set up to build a cross-compiler" 1>&2
27034     echo " from ${host} to ${target}." 1>&2
27035   fi
27036 else
27037   if test x${host} = x${target} ; then
27038     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27039     echo " for ${target}." 1>&2
27040   else
27041     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27042     echo " from ${host} to ${target}." 1>&2
27043   fi
27044 fi
27045
27046
27047
27048
27049
27050
27051
27052
27053
27054 if test "x${CLOOGLIBS}" != "x" ; then
27055
27056 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27057
27058 fi
27059
27060 # Check for plugin support
27061 # Check whether --enable-plugin was given.
27062 if test "${enable_plugin+set}" = set; then :
27063   enableval=$enable_plugin; enable_plugin=$enableval
27064 else
27065   enable_plugin=yes; default_plugin=yes
27066 fi
27067
27068
27069 pluginlibs=
27070
27071 case "${host}" in
27072   *-*-darwin*)
27073     if test x$build = x$host; then
27074       export_sym_check="nm${exeext} -g"
27075     elif test x$host = x$target; then
27076       export_sym_check="$gcc_cv_nm -g"
27077     else
27078       export_sym_check=
27079     fi
27080   ;;
27081   *)
27082     if test x$build = x$host; then
27083       export_sym_check="objdump${exeext} -T"
27084     elif test x$host = x$target; then
27085       export_sym_check="$gcc_cv_objdump -T"
27086     else
27087       export_sym_check=
27088     fi
27089   ;;
27090 esac
27091
27092 if test x"$enable_plugin" = x"yes"; then
27093
27094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27095 $as_echo_n "checking for exported symbols... " >&6; }
27096   if test "x$export_sym_check" != x; then
27097     echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27098     ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
27099     if $export_sym_check conftest | grep foobar > /dev/null; then
27100       : # No need to use a flag
27101       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27102 $as_echo "yes" >&6; }
27103     else
27104       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27105 $as_echo "yes" >&6; }
27106       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27107 $as_echo_n "checking for -rdynamic... " >&6; }
27108       ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27109       if $export_sym_check conftest | grep foobar > /dev/null; then
27110         plugin_rdynamic=yes
27111         pluginlibs="-rdynamic"
27112       else
27113         plugin_rdynamic=no
27114         enable_plugin=no
27115       fi
27116       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27117 $as_echo "$plugin_rdynamic" >&6; }
27118     fi
27119   else
27120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27121 $as_echo "unable to check" >&6; }
27122   fi
27123
27124   # Check -ldl
27125   saved_LIBS="$LIBS"
27126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27127 $as_echo_n "checking for library containing dlopen... " >&6; }
27128 if test "${ac_cv_search_dlopen+set}" = set; then :
27129   $as_echo_n "(cached) " >&6
27130 else
27131   ac_func_search_save_LIBS=$LIBS
27132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27133 /* end confdefs.h.  */
27134
27135 /* Override any GCC internal prototype to avoid an error.
27136    Use char because int might match the return type of a GCC
27137    builtin and then its argument prototype would still apply.  */
27138 #ifdef __cplusplus
27139 extern "C"
27140 #endif
27141 char dlopen ();
27142 int
27143 main ()
27144 {
27145 return dlopen ();
27146   ;
27147   return 0;
27148 }
27149 _ACEOF
27150 for ac_lib in '' dl; do
27151   if test -z "$ac_lib"; then
27152     ac_res="none required"
27153   else
27154     ac_res=-l$ac_lib
27155     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27156   fi
27157   if ac_fn_c_try_link "$LINENO"; then :
27158   ac_cv_search_dlopen=$ac_res
27159 fi
27160 rm -f core conftest.err conftest.$ac_objext \
27161     conftest$ac_exeext
27162   if test "${ac_cv_search_dlopen+set}" = set; then :
27163   break
27164 fi
27165 done
27166 if test "${ac_cv_search_dlopen+set}" = set; then :
27167
27168 else
27169   ac_cv_search_dlopen=no
27170 fi
27171 rm conftest.$ac_ext
27172 LIBS=$ac_func_search_save_LIBS
27173 fi
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27175 $as_echo "$ac_cv_search_dlopen" >&6; }
27176 ac_res=$ac_cv_search_dlopen
27177 if test "$ac_res" != no; then :
27178   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27179
27180 fi
27181
27182   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27183     pluginlibs="$pluginlibs -ldl"
27184   fi
27185   LIBS="$saved_LIBS"
27186
27187   # Check that we can build shared objects with -fPIC -shared
27188   saved_LDFLAGS="$LDFLAGS"
27189   saved_CFLAGS="$CFLAGS"
27190   case "${host}" in
27191     *-*-darwin*)
27192       CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27193       CFLAGS="$CFLAGS -fPIC"
27194       LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27195     ;;
27196     *)
27197       CFLAGS="$CFLAGS -fPIC"
27198       LDFLAGS="$LDFLAGS -fPIC -shared"
27199     ;;
27200   esac
27201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27202 $as_echo_n "checking for -fPIC -shared... " >&6; }
27203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27204 /* end confdefs.h.  */
27205 extern int X;
27206 int
27207 main ()
27208 {
27209 return X == 0;
27210   ;
27211   return 0;
27212 }
27213 _ACEOF
27214 if ac_fn_c_try_link "$LINENO"; then :
27215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27216 $as_echo "yes" >&6; }; have_pic_shared=yes
27217 else
27218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27219 $as_echo "no" >&6; }; have_pic_shared=no
27220 fi
27221 rm -f core conftest.err conftest.$ac_objext \
27222     conftest$ac_exeext conftest.$ac_ext
27223   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27224     pluginlibs=
27225     enable_plugin=no
27226   fi
27227   LDFLAGS="$saved_LDFLAGS"
27228   CFLAGS="$saved_CFLAGS"
27229
27230   # If plugin support had been requested but not available, fail.
27231   if test x"$enable_plugin" = x"no" ; then
27232     if test x"$default_plugin" != x"yes"; then
27233       as_fn_error "
27234 Building GCC with plugin support requires a host that supports
27235 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27236     fi
27237   fi
27238 fi
27239
27240
27241
27242 if test x"$enable_plugin" = x"yes"; then
27243
27244 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27245
27246 fi
27247
27248
27249 # Check whether --enable-libquadmath-support was given.
27250 if test "${enable_libquadmath_support+set}" = set; then :
27251   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27252 else
27253   ENABLE_LIBQUADMATH_SUPPORT=yes
27254 fi
27255
27256 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27257
27258 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27259
27260 fi
27261
27262
27263 # Specify what hash style to use by default.
27264
27265 # Check whether --with-linker-hash-style was given.
27266 if test "${with_linker_hash_style+set}" = set; then :
27267   withval=$with_linker_hash_style; case x"$withval" in
27268    xsysv)
27269      LINKER_HASH_STYLE=sysv
27270      ;;
27271    xgnu)
27272      LINKER_HASH_STYLE=gnu
27273      ;;
27274    xboth)
27275      LINKER_HASH_STYLE=both
27276      ;;
27277    *)
27278      as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27279      ;;
27280  esac
27281 else
27282   LINKER_HASH_STYLE=''
27283 fi
27284
27285 if test x"${LINKER_HASH_STYLE}" != x; then
27286
27287 cat >>confdefs.h <<_ACEOF
27288 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27289 _ACEOF
27290
27291 fi
27292
27293 # Configure the subdirectories
27294 # AC_CONFIG_SUBDIRS($subdirs)
27295
27296 # Create the Makefile
27297 # and configure language subdirectories
27298 ac_config_files="$ac_config_files $all_outputs"
27299
27300
27301 ac_config_commands="$ac_config_commands default"
27302
27303 cat >confcache <<\_ACEOF
27304 # This file is a shell script that caches the results of configure
27305 # tests run on this system so they can be shared between configure
27306 # scripts and configure runs, see configure's option --config-cache.
27307 # It is not useful on other systems.  If it contains results you don't
27308 # want to keep, you may remove or edit it.
27309 #
27310 # config.status only pays attention to the cache file if you give it
27311 # the --recheck option to rerun configure.
27312 #
27313 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27314 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27315 # following values.
27316
27317 _ACEOF
27318
27319 # The following way of writing the cache mishandles newlines in values,
27320 # but we know of no workaround that is simple, portable, and efficient.
27321 # So, we kill variables containing newlines.
27322 # Ultrix sh set writes to stderr and can't be redirected directly,
27323 # and sets the high bit in the cache file unless we assign to the vars.
27324 (
27325   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27326     eval ac_val=\$$ac_var
27327     case $ac_val in #(
27328     *${as_nl}*)
27329       case $ac_var in #(
27330       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27331 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27332       esac
27333       case $ac_var in #(
27334       _ | IFS | as_nl) ;; #(
27335       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27336       *) { eval $ac_var=; unset $ac_var;} ;;
27337       esac ;;
27338     esac
27339   done
27340
27341   (set) 2>&1 |
27342     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27343     *${as_nl}ac_space=\ *)
27344       # `set' does not quote correctly, so add quotes: double-quote
27345       # substitution turns \\\\ into \\, and sed turns \\ into \.
27346       sed -n \
27347         "s/'/'\\\\''/g;
27348           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27349       ;; #(
27350     *)
27351       # `set' quotes correctly as required by POSIX, so do not add quotes.
27352       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27353       ;;
27354     esac |
27355     sort
27356 ) |
27357   sed '
27358      /^ac_cv_env_/b end
27359      t clear
27360      :clear
27361      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27362      t end
27363      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27364      :end' >>confcache
27365 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27366   if test -w "$cache_file"; then
27367     test "x$cache_file" != "x/dev/null" &&
27368       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27369 $as_echo "$as_me: updating cache $cache_file" >&6;}
27370     cat confcache >$cache_file
27371   else
27372     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27373 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27374   fi
27375 fi
27376 rm -f confcache
27377
27378 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27379 # Let make expand exec_prefix.
27380 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27381
27382 DEFS=-DHAVE_CONFIG_H
27383
27384 ac_libobjs=
27385 ac_ltlibobjs=
27386 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27387   # 1. Remove the extension, and $U if already installed.
27388   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27389   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27390   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27391   #    will be set to the directory where LIBOBJS objects are built.
27392   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27393   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27394 done
27395 LIBOBJS=$ac_libobjs
27396
27397 LTLIBOBJS=$ac_ltlibobjs
27398
27399
27400
27401
27402 : ${CONFIG_STATUS=./config.status}
27403 ac_write_fail=0
27404 ac_clean_files_save=$ac_clean_files
27405 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27406 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27407 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27408 as_write_fail=0
27409 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27410 #! $SHELL
27411 # Generated by $as_me.
27412 # Run this file to recreate the current configuration.
27413 # Compiler output produced by configure, useful for debugging
27414 # configure, is in config.log if it exists.
27415
27416 debug=false
27417 ac_cs_recheck=false
27418 ac_cs_silent=false
27419
27420 SHELL=\${CONFIG_SHELL-$SHELL}
27421 export SHELL
27422 _ASEOF
27423 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27424 ## -------------------- ##
27425 ## M4sh Initialization. ##
27426 ## -------------------- ##
27427
27428 # Be more Bourne compatible
27429 DUALCASE=1; export DUALCASE # for MKS sh
27430 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27431   emulate sh
27432   NULLCMD=:
27433   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27434   # is contrary to our usage.  Disable this feature.
27435   alias -g '${1+"$@"}'='"$@"'
27436   setopt NO_GLOB_SUBST
27437 else
27438   case `(set -o) 2>/dev/null` in #(
27439   *posix*) :
27440     set -o posix ;; #(
27441   *) :
27442      ;;
27443 esac
27444 fi
27445
27446
27447 as_nl='
27448 '
27449 export as_nl
27450 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27451 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27452 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27453 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27454 # Prefer a ksh shell builtin over an external printf program on Solaris,
27455 # but without wasting forks for bash or zsh.
27456 if test -z "$BASH_VERSION$ZSH_VERSION" \
27457     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27458   as_echo='print -r --'
27459   as_echo_n='print -rn --'
27460 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27461   as_echo='printf %s\n'
27462   as_echo_n='printf %s'
27463 else
27464   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27465     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27466     as_echo_n='/usr/ucb/echo -n'
27467   else
27468     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27469     as_echo_n_body='eval
27470       arg=$1;
27471       case $arg in #(
27472       *"$as_nl"*)
27473         expr "X$arg" : "X\\(.*\\)$as_nl";
27474         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27475       esac;
27476       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27477     '
27478     export as_echo_n_body
27479     as_echo_n='sh -c $as_echo_n_body as_echo'
27480   fi
27481   export as_echo_body
27482   as_echo='sh -c $as_echo_body as_echo'
27483 fi
27484
27485 # The user is always right.
27486 if test "${PATH_SEPARATOR+set}" != set; then
27487   PATH_SEPARATOR=:
27488   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27489     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27490       PATH_SEPARATOR=';'
27491   }
27492 fi
27493
27494
27495 # IFS
27496 # We need space, tab and new line, in precisely that order.  Quoting is
27497 # there to prevent editors from complaining about space-tab.
27498 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27499 # splitting by setting IFS to empty value.)
27500 IFS=" ""        $as_nl"
27501
27502 # Find who we are.  Look in the path if we contain no directory separator.
27503 case $0 in #((
27504   *[\\/]* ) as_myself=$0 ;;
27505   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27506 for as_dir in $PATH
27507 do
27508   IFS=$as_save_IFS
27509   test -z "$as_dir" && as_dir=.
27510     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27511   done
27512 IFS=$as_save_IFS
27513
27514      ;;
27515 esac
27516 # We did not find ourselves, most probably we were run as `sh COMMAND'
27517 # in which case we are not to be found in the path.
27518 if test "x$as_myself" = x; then
27519   as_myself=$0
27520 fi
27521 if test ! -f "$as_myself"; then
27522   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27523   exit 1
27524 fi
27525
27526 # Unset variables that we do not need and which cause bugs (e.g. in
27527 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
27528 # suppresses any "Segmentation fault" message there.  '((' could
27529 # trigger a bug in pdksh 5.2.14.
27530 for as_var in BASH_ENV ENV MAIL MAILPATH
27531 do eval test x\${$as_var+set} = xset \
27532   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27533 done
27534 PS1='$ '
27535 PS2='> '
27536 PS4='+ '
27537
27538 # NLS nuisances.
27539 LC_ALL=C
27540 export LC_ALL
27541 LANGUAGE=C
27542 export LANGUAGE
27543
27544 # CDPATH.
27545 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27546
27547
27548 # as_fn_error ERROR [LINENO LOG_FD]
27549 # ---------------------------------
27550 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27551 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27552 # script with status $?, using 1 if that was 0.
27553 as_fn_error ()
27554 {
27555   as_status=$?; test $as_status -eq 0 && as_status=1
27556   if test "$3"; then
27557     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27558     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27559   fi
27560   $as_echo "$as_me: error: $1" >&2
27561   as_fn_exit $as_status
27562 } # as_fn_error
27563
27564
27565 # as_fn_set_status STATUS
27566 # -----------------------
27567 # Set $? to STATUS, without forking.
27568 as_fn_set_status ()
27569 {
27570   return $1
27571 } # as_fn_set_status
27572
27573 # as_fn_exit STATUS
27574 # -----------------
27575 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27576 as_fn_exit ()
27577 {
27578   set +e
27579   as_fn_set_status $1
27580   exit $1
27581 } # as_fn_exit
27582
27583 # as_fn_unset VAR
27584 # ---------------
27585 # Portably unset VAR.
27586 as_fn_unset ()
27587 {
27588   { eval $1=; unset $1;}
27589 }
27590 as_unset=as_fn_unset
27591 # as_fn_append VAR VALUE
27592 # ----------------------
27593 # Append the text in VALUE to the end of the definition contained in VAR. Take
27594 # advantage of any shell optimizations that allow amortized linear growth over
27595 # repeated appends, instead of the typical quadratic growth present in naive
27596 # implementations.
27597 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27598   eval 'as_fn_append ()
27599   {
27600     eval $1+=\$2
27601   }'
27602 else
27603   as_fn_append ()
27604   {
27605     eval $1=\$$1\$2
27606   }
27607 fi # as_fn_append
27608
27609 # as_fn_arith ARG...
27610 # ------------------
27611 # Perform arithmetic evaluation on the ARGs, and store the result in the
27612 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27613 # must be portable across $(()) and expr.
27614 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27615   eval 'as_fn_arith ()
27616   {
27617     as_val=$(( $* ))
27618   }'
27619 else
27620   as_fn_arith ()
27621   {
27622     as_val=`expr "$@" || test $? -eq 1`
27623   }
27624 fi # as_fn_arith
27625
27626
27627 if expr a : '\(a\)' >/dev/null 2>&1 &&
27628    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27629   as_expr=expr
27630 else
27631   as_expr=false
27632 fi
27633
27634 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27635   as_basename=basename
27636 else
27637   as_basename=false
27638 fi
27639
27640 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27641   as_dirname=dirname
27642 else
27643   as_dirname=false
27644 fi
27645
27646 as_me=`$as_basename -- "$0" ||
27647 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27648          X"$0" : 'X\(//\)$' \| \
27649          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27650 $as_echo X/"$0" |
27651     sed '/^.*\/\([^/][^/]*\)\/*$/{
27652             s//\1/
27653             q
27654           }
27655           /^X\/\(\/\/\)$/{
27656             s//\1/
27657             q
27658           }
27659           /^X\/\(\/\).*/{
27660             s//\1/
27661             q
27662           }
27663           s/.*/./; q'`
27664
27665 # Avoid depending upon Character Ranges.
27666 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27667 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27668 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27669 as_cr_digits='0123456789'
27670 as_cr_alnum=$as_cr_Letters$as_cr_digits
27671
27672 ECHO_C= ECHO_N= ECHO_T=
27673 case `echo -n x` in #(((((
27674 -n*)
27675   case `echo 'xy\c'` in
27676   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27677   xy)  ECHO_C='\c';;
27678   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27679        ECHO_T=' ';;
27680   esac;;
27681 *)
27682   ECHO_N='-n';;
27683 esac
27684
27685 rm -f conf$$ conf$$.exe conf$$.file
27686 if test -d conf$$.dir; then
27687   rm -f conf$$.dir/conf$$.file
27688 else
27689   rm -f conf$$.dir
27690   mkdir conf$$.dir 2>/dev/null
27691 fi
27692 if (echo >conf$$.file) 2>/dev/null; then
27693   if ln -s conf$$.file conf$$ 2>/dev/null; then
27694     as_ln_s='ln -s'
27695     # ... but there are two gotchas:
27696     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27697     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27698     # In both cases, we have to default to `cp -p'.
27699     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27700       as_ln_s='cp -p'
27701   elif ln conf$$.file conf$$ 2>/dev/null; then
27702     as_ln_s=ln
27703   else
27704     as_ln_s='cp -p'
27705   fi
27706 else
27707   as_ln_s='cp -p'
27708 fi
27709 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27710 rmdir conf$$.dir 2>/dev/null
27711
27712
27713 # as_fn_mkdir_p
27714 # -------------
27715 # Create "$as_dir" as a directory, including parents if necessary.
27716 as_fn_mkdir_p ()
27717 {
27718
27719   case $as_dir in #(
27720   -*) as_dir=./$as_dir;;
27721   esac
27722   test -d "$as_dir" || eval $as_mkdir_p || {
27723     as_dirs=
27724     while :; do
27725       case $as_dir in #(
27726       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27727       *) as_qdir=$as_dir;;
27728       esac
27729       as_dirs="'$as_qdir' $as_dirs"
27730       as_dir=`$as_dirname -- "$as_dir" ||
27731 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27732          X"$as_dir" : 'X\(//\)[^/]' \| \
27733          X"$as_dir" : 'X\(//\)$' \| \
27734          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27735 $as_echo X"$as_dir" |
27736     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27737             s//\1/
27738             q
27739           }
27740           /^X\(\/\/\)[^/].*/{
27741             s//\1/
27742             q
27743           }
27744           /^X\(\/\/\)$/{
27745             s//\1/
27746             q
27747           }
27748           /^X\(\/\).*/{
27749             s//\1/
27750             q
27751           }
27752           s/.*/./; q'`
27753       test -d "$as_dir" && break
27754     done
27755     test -z "$as_dirs" || eval "mkdir $as_dirs"
27756   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27757
27758
27759 } # as_fn_mkdir_p
27760 if mkdir -p . 2>/dev/null; then
27761   as_mkdir_p='mkdir -p "$as_dir"'
27762 else
27763   test -d ./-p && rmdir ./-p
27764   as_mkdir_p=false
27765 fi
27766
27767 if test -x / >/dev/null 2>&1; then
27768   as_test_x='test -x'
27769 else
27770   if ls -dL / >/dev/null 2>&1; then
27771     as_ls_L_option=L
27772   else
27773     as_ls_L_option=
27774   fi
27775   as_test_x='
27776     eval sh -c '\''
27777       if test -d "$1"; then
27778         test -d "$1/.";
27779       else
27780         case $1 in #(
27781         -*)set "./$1";;
27782         esac;
27783         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27784         ???[sx]*):;;*)false;;esac;fi
27785     '\'' sh
27786   '
27787 fi
27788 as_executable_p=$as_test_x
27789
27790 # Sed expression to map a string onto a valid CPP name.
27791 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27792
27793 # Sed expression to map a string onto a valid variable name.
27794 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27795
27796
27797 exec 6>&1
27798 ## ----------------------------------- ##
27799 ## Main body of $CONFIG_STATUS script. ##
27800 ## ----------------------------------- ##
27801 _ASEOF
27802 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27803
27804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27805 # Save the log message, to keep $0 and so on meaningful, and to
27806 # report actual input values of CONFIG_FILES etc. instead of their
27807 # values after options handling.
27808 ac_log="
27809 This file was extended by $as_me, which was
27810 generated by GNU Autoconf 2.64.  Invocation command line was
27811
27812   CONFIG_FILES    = $CONFIG_FILES
27813   CONFIG_HEADERS  = $CONFIG_HEADERS
27814   CONFIG_LINKS    = $CONFIG_LINKS
27815   CONFIG_COMMANDS = $CONFIG_COMMANDS
27816   $ $0 $@
27817
27818 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27819 "
27820
27821 _ACEOF
27822
27823 case $ac_config_files in *"
27824 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27825 esac
27826
27827 case $ac_config_headers in *"
27828 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27829 esac
27830
27831
27832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27833 # Files that config.status was made for.
27834 config_files="$ac_config_files"
27835 config_headers="$ac_config_headers"
27836 config_commands="$ac_config_commands"
27837
27838 _ACEOF
27839
27840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27841 ac_cs_usage="\
27842 \`$as_me' instantiates files and other configuration actions
27843 from templates according to the current configuration.  Unless the files
27844 and actions are specified as TAGs, all are instantiated by default.
27845
27846 Usage: $0 [OPTION]... [TAG]...
27847
27848   -h, --help       print this help, then exit
27849   -V, --version    print version number and configuration settings, then exit
27850   -q, --quiet, --silent
27851                    do not print progress messages
27852   -d, --debug      don't remove temporary files
27853       --recheck    update $as_me by reconfiguring in the same conditions
27854       --file=FILE[:TEMPLATE]
27855                    instantiate the configuration file FILE
27856       --header=FILE[:TEMPLATE]
27857                    instantiate the configuration header FILE
27858
27859 Configuration files:
27860 $config_files
27861
27862 Configuration headers:
27863 $config_headers
27864
27865 Configuration commands:
27866 $config_commands
27867
27868 Report bugs to the package provider."
27869
27870 _ACEOF
27871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27872 ac_cs_version="\\
27873 config.status
27874 configured by $0, generated by GNU Autoconf 2.64,
27875   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27876
27877 Copyright (C) 2009 Free Software Foundation, Inc.
27878 This config.status script is free software; the Free Software Foundation
27879 gives unlimited permission to copy, distribute and modify it."
27880
27881 ac_pwd='$ac_pwd'
27882 srcdir='$srcdir'
27883 AWK='$AWK'
27884 test -n "\$AWK" || AWK=awk
27885 _ACEOF
27886
27887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27888 # The default lists apply if the user does not specify any file.
27889 ac_need_defaults=:
27890 while test $# != 0
27891 do
27892   case $1 in
27893   --*=*)
27894     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27895     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27896     ac_shift=:
27897     ;;
27898   *)
27899     ac_option=$1
27900     ac_optarg=$2
27901     ac_shift=shift
27902     ;;
27903   esac
27904
27905   case $ac_option in
27906   # Handling of the options.
27907   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27908     ac_cs_recheck=: ;;
27909   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27910     $as_echo "$ac_cs_version"; exit ;;
27911   --debug | --debu | --deb | --de | --d | -d )
27912     debug=: ;;
27913   --file | --fil | --fi | --f )
27914     $ac_shift
27915     case $ac_optarg in
27916     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27917     esac
27918     as_fn_append CONFIG_FILES " '$ac_optarg'"
27919     ac_need_defaults=false;;
27920   --header | --heade | --head | --hea )
27921     $ac_shift
27922     case $ac_optarg in
27923     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27924     esac
27925     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27926     ac_need_defaults=false;;
27927   --he | --h)
27928     # Conflict between --help and --header
27929     as_fn_error "ambiguous option: \`$1'
27930 Try \`$0 --help' for more information.";;
27931   --help | --hel | -h )
27932     $as_echo "$ac_cs_usage"; exit ;;
27933   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27934   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27935     ac_cs_silent=: ;;
27936
27937   # This is an error.
27938   -*) as_fn_error "unrecognized option: \`$1'
27939 Try \`$0 --help' for more information." ;;
27940
27941   *) as_fn_append ac_config_targets " $1"
27942      ac_need_defaults=false ;;
27943
27944   esac
27945   shift
27946 done
27947
27948 ac_configure_extra_args=
27949
27950 if $ac_cs_silent; then
27951   exec 6>/dev/null
27952   ac_configure_extra_args="$ac_configure_extra_args --silent"
27953 fi
27954
27955 _ACEOF
27956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27957 if \$ac_cs_recheck; then
27958   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27959   shift
27960   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27961   CONFIG_SHELL='$SHELL'
27962   export CONFIG_SHELL
27963   exec "\$@"
27964 fi
27965
27966 _ACEOF
27967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27968 exec 5>>config.log
27969 {
27970   echo
27971   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27972 ## Running $as_me. ##
27973 _ASBOX
27974   $as_echo "$ac_log"
27975 } >&5
27976
27977 _ACEOF
27978 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27979 #
27980 # INIT-COMMANDS
27981 #
27982 subdirs='$subdirs'
27983
27984 _ACEOF
27985
27986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27987
27988 # Handling of arguments.
27989 for ac_config_target in $ac_config_targets
27990 do
27991   case $ac_config_target in
27992     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27993     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27994     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27995     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27996     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27997     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27998
27999   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28000   esac
28001 done
28002
28003
28004 # If the user did not use the arguments to specify the items to instantiate,
28005 # then the envvar interface is used.  Set only those that are not.
28006 # We use the long form for the default assignment because of an extremely
28007 # bizarre bug on SunOS 4.1.3.
28008 if $ac_need_defaults; then
28009   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28010   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28011   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28012 fi
28013
28014 # Have a temporary directory for convenience.  Make it in the build tree
28015 # simply because there is no reason against having it here, and in addition,
28016 # creating and moving files from /tmp can sometimes cause problems.
28017 # Hook for its removal unless debugging.
28018 # Note that there is a small window in which the directory will not be cleaned:
28019 # after its creation but before its name has been assigned to `$tmp'.
28020 $debug ||
28021 {
28022   tmp=
28023   trap 'exit_status=$?
28024   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28025 ' 0
28026   trap 'as_fn_exit 1' 1 2 13 15
28027 }
28028 # Create a (secure) tmp directory for tmp files.
28029
28030 {
28031   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28032   test -n "$tmp" && test -d "$tmp"
28033 }  ||
28034 {
28035   tmp=./conf$$-$RANDOM
28036   (umask 077 && mkdir "$tmp")
28037 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
28038
28039 # Set up the scripts for CONFIG_FILES section.
28040 # No need to generate them if there are no CONFIG_FILES.
28041 # This happens for instance with `./config.status config.h'.
28042 if test -n "$CONFIG_FILES"; then
28043
28044 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
28045   ac_cs_awk_getline=:
28046   ac_cs_awk_pipe_init=
28047   ac_cs_awk_read_file='
28048       while ((getline aline < (F[key])) > 0)
28049         print(aline)
28050       close(F[key])'
28051   ac_cs_awk_pipe_fini=
28052 else
28053   ac_cs_awk_getline=false
28054   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
28055   ac_cs_awk_read_file='
28056       print "|#_!!_#|"
28057       print "cat " F[key] " &&"
28058       '$ac_cs_awk_pipe_init
28059   # The final `:' finishes the AND list.
28060   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
28061 fi
28062 ac_cr=`echo X | tr X '\015'`
28063 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28064 # But we know of no other shell where ac_cr would be empty at this
28065 # point, so we can use a bashism as a fallback.
28066 if test "x$ac_cr" = x; then
28067   eval ac_cr=\$\'\\r\'
28068 fi
28069 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28070 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28071   ac_cs_awk_cr='\r'
28072 else
28073   ac_cs_awk_cr=$ac_cr
28074 fi
28075
28076 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28077 _ACEOF
28078
28079 # Create commands to substitute file output variables.
28080 {
28081   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28082   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28083   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
28084   echo "_ACAWK" &&
28085   echo "_ACEOF"
28086 } >conf$$files.sh &&
28087 . ./conf$$files.sh ||
28088   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28089 rm -f conf$$files.sh
28090
28091 {
28092   echo "cat >conf$$subs.awk <<_ACEOF" &&
28093   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28094   echo "_ACEOF"
28095 } >conf$$subs.sh ||
28096   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28097 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28098 ac_delim='%!_!# '
28099 for ac_last_try in false false false false false :; do
28100   . ./conf$$subs.sh ||
28101     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28102
28103   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
28104   if test $ac_delim_n = $ac_delim_num; then
28105     break
28106   elif $ac_last_try; then
28107     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
28108   else
28109     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28110   fi
28111 done
28112 rm -f conf$$subs.sh
28113
28114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28115 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28116 _ACEOF
28117 sed -n '
28118 h
28119 s/^/S["/; s/!.*/"]=/
28120 p
28121 g
28122 s/^[^!]*!//
28123 :repl
28124 t repl
28125 s/'"$ac_delim"'$//
28126 t delim
28127 :nl
28128 h
28129 s/\(.\{148\}\).*/\1/
28130 t more1
28131 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28132 p
28133 n
28134 b repl
28135 :more1
28136 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28137 p
28138 g
28139 s/.\{148\}//
28140 t nl
28141 :delim
28142 h
28143 s/\(.\{148\}\).*/\1/
28144 t more2
28145 s/["\\]/\\&/g; s/^/"/; s/$/"/
28146 p
28147 b
28148 :more2
28149 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28150 p
28151 g
28152 s/.\{148\}//
28153 t delim
28154 ' <conf$$subs.awk | sed '
28155 /^[^""]/{
28156   N
28157   s/\n//
28158 }
28159 ' >>$CONFIG_STATUS || ac_write_fail=1
28160 rm -f conf$$subs.awk
28161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28162 _ACAWK
28163 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28164   for (key in S) S_is_set[key] = 1
28165   FS = "\a"
28166   \$ac_cs_awk_pipe_init
28167 }
28168 {
28169   line = $ 0
28170   nfields = split(line, field, "@")
28171   substed = 0
28172   len = length(field[1])
28173   for (i = 2; i < nfields; i++) {
28174     key = field[i]
28175     keylen = length(key)
28176     if (S_is_set[key]) {
28177       value = S[key]
28178       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28179       len += length(value) + length(field[++i])
28180       substed = 1
28181     } else
28182       len += 1 + keylen
28183   }
28184   if (nfields == 3 && !substed) {
28185     key = field[2]
28186     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
28187       \$ac_cs_awk_read_file
28188       next
28189     }
28190   }
28191   print line
28192 }
28193 \$ac_cs_awk_pipe_fini
28194 _ACAWK
28195 _ACEOF
28196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28197 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28198   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28199 else
28200   cat
28201 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28202   || as_fn_error "could not setup config files machinery" "$LINENO" 5
28203 _ACEOF
28204
28205 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28206 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28207 # trailing colons and then remove the whole line if VPATH becomes empty
28208 # (actually we leave an empty line to preserve line numbers).
28209 if test "x$srcdir" = x.; then
28210   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28211 s/:*\$(srcdir):*/:/
28212 s/:*\${srcdir}:*/:/
28213 s/:*@srcdir@:*/:/
28214 s/^\([^=]*=[     ]*\):*/\1/
28215 s/:*$//
28216 s/^[^=]*=[       ]*$//
28217 }'
28218 fi
28219
28220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28221 fi # test -n "$CONFIG_FILES"
28222
28223 # Set up the scripts for CONFIG_HEADERS section.
28224 # No need to generate them if there are no CONFIG_HEADERS.
28225 # This happens for instance with `./config.status Makefile'.
28226 if test -n "$CONFIG_HEADERS"; then
28227 cat >"$tmp/defines.awk" <<\_ACAWK ||
28228 BEGIN {
28229 _ACEOF
28230
28231 # Transform confdefs.h into an awk script `defines.awk', embedded as
28232 # here-document in config.status, that substitutes the proper values into
28233 # config.h.in to produce config.h.
28234
28235 # Create a delimiter string that does not exist in confdefs.h, to ease
28236 # handling of long lines.
28237 ac_delim='%!_!# '
28238 for ac_last_try in false false :; do
28239   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28240   if test -z "$ac_t"; then
28241     break
28242   elif $ac_last_try; then
28243     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28244   else
28245     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28246   fi
28247 done
28248
28249 # For the awk script, D is an array of macro values keyed by name,
28250 # likewise P contains macro parameters if any.  Preserve backslash
28251 # newline sequences.
28252
28253 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28254 sed -n '
28255 s/.\{148\}/&'"$ac_delim"'/g
28256 t rset
28257 :rset
28258 s/^[     ]*#[    ]*define[       ][      ]*/ /
28259 t def
28260 d
28261 :def
28262 s/\\$//
28263 t bsnl
28264 s/["\\]/\\&/g
28265 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28266 D["\1"]=" \3"/p
28267 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
28268 d
28269 :bsnl
28270 s/["\\]/\\&/g
28271 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28272 D["\1"]=" \3\\\\\\n"\\/p
28273 t cont
28274 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28275 t cont
28276 d
28277 :cont
28278 n
28279 s/.\{148\}/&'"$ac_delim"'/g
28280 t clear
28281 :clear
28282 s/\\$//
28283 t bsnlc
28284 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28285 d
28286 :bsnlc
28287 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28288 b cont
28289 ' <confdefs.h | sed '
28290 s/'"$ac_delim"'/"\\\
28291 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28292
28293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28294   for (key in D) D_is_set[key] = 1
28295   FS = "\a"
28296 }
28297 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28298   line = \$ 0
28299   split(line, arg, " ")
28300   if (arg[1] == "#") {
28301     defundef = arg[2]
28302     mac1 = arg[3]
28303   } else {
28304     defundef = substr(arg[1], 2)
28305     mac1 = arg[2]
28306   }
28307   split(mac1, mac2, "(") #)
28308   macro = mac2[1]
28309   prefix = substr(line, 1, index(line, defundef) - 1)
28310   if (D_is_set[macro]) {
28311     # Preserve the white space surrounding the "#".
28312     print prefix "define", macro P[macro] D[macro]
28313     next
28314   } else {
28315     # Replace #undef with comments.  This is necessary, for example,
28316     # in the case of _POSIX_SOURCE, which is predefined and required
28317     # on some systems where configure will not decide to define it.
28318     if (defundef == "undef") {
28319       print "/*", prefix defundef, macro, "*/"
28320       next
28321     }
28322   }
28323 }
28324 { print }
28325 _ACAWK
28326 _ACEOF
28327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28328   as_fn_error "could not setup config headers machinery" "$LINENO" 5
28329 fi # test -n "$CONFIG_HEADERS"
28330
28331
28332 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
28333 shift
28334 for ac_tag
28335 do
28336   case $ac_tag in
28337   :[FHLC]) ac_mode=$ac_tag; continue;;
28338   esac
28339   case $ac_mode$ac_tag in
28340   :[FHL]*:*);;
28341   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28342   :[FH]-) ac_tag=-:-;;
28343   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28344   esac
28345   ac_save_IFS=$IFS
28346   IFS=:
28347   set x $ac_tag
28348   IFS=$ac_save_IFS
28349   shift
28350   ac_file=$1
28351   shift
28352
28353   case $ac_mode in
28354   :L) ac_source=$1;;
28355   :[FH])
28356     ac_file_inputs=
28357     for ac_f
28358     do
28359       case $ac_f in
28360       -) ac_f="$tmp/stdin";;
28361       *) # Look for the file first in the build tree, then in the source tree
28362          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28363          # because $ac_f cannot contain `:'.
28364          test -f "$ac_f" ||
28365            case $ac_f in
28366            [\\/$]*) false;;
28367            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28368            esac ||
28369            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28370       esac
28371       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28372       as_fn_append ac_file_inputs " '$ac_f'"
28373     done
28374
28375     # Let's still pretend it is `configure' which instantiates (i.e., don't
28376     # use $as_me), people would be surprised to read:
28377     #    /* config.h.  Generated by config.status.  */
28378     configure_input='Generated from '`
28379           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28380         `' by configure.'
28381     if test x"$ac_file" != x-; then
28382       configure_input="$ac_file.  $configure_input"
28383       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28384 $as_echo "$as_me: creating $ac_file" >&6;}
28385     fi
28386     # Neutralize special characters interpreted by sed in replacement strings.
28387     case $configure_input in #(
28388     *\&* | *\|* | *\\* )
28389        ac_sed_conf_input=`$as_echo "$configure_input" |
28390        sed 's/[\\\\&|]/\\\\&/g'`;; #(
28391     *) ac_sed_conf_input=$configure_input;;
28392     esac
28393
28394     case $ac_tag in
28395     *:-:* | *:-) cat >"$tmp/stdin" \
28396       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28397     esac
28398     ;;
28399   esac
28400
28401   ac_dir=`$as_dirname -- "$ac_file" ||
28402 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28403          X"$ac_file" : 'X\(//\)[^/]' \| \
28404          X"$ac_file" : 'X\(//\)$' \| \
28405          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28406 $as_echo X"$ac_file" |
28407     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28408             s//\1/
28409             q
28410           }
28411           /^X\(\/\/\)[^/].*/{
28412             s//\1/
28413             q
28414           }
28415           /^X\(\/\/\)$/{
28416             s//\1/
28417             q
28418           }
28419           /^X\(\/\).*/{
28420             s//\1/
28421             q
28422           }
28423           s/.*/./; q'`
28424   as_dir="$ac_dir"; as_fn_mkdir_p
28425   ac_builddir=.
28426
28427 case "$ac_dir" in
28428 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28429 *)
28430   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28431   # A ".." for each directory in $ac_dir_suffix.
28432   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28433   case $ac_top_builddir_sub in
28434   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28435   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28436   esac ;;
28437 esac
28438 ac_abs_top_builddir=$ac_pwd
28439 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28440 # for backward compatibility:
28441 ac_top_builddir=$ac_top_build_prefix
28442
28443 case $srcdir in
28444   .)  # We are building in place.
28445     ac_srcdir=.
28446     ac_top_srcdir=$ac_top_builddir_sub
28447     ac_abs_top_srcdir=$ac_pwd ;;
28448   [\\/]* | ?:[\\/]* )  # Absolute name.
28449     ac_srcdir=$srcdir$ac_dir_suffix;
28450     ac_top_srcdir=$srcdir
28451     ac_abs_top_srcdir=$srcdir ;;
28452   *) # Relative name.
28453     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28454     ac_top_srcdir=$ac_top_build_prefix$srcdir
28455     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28456 esac
28457 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28458
28459
28460   case $ac_mode in
28461   :F)
28462   #
28463   # CONFIG_FILE
28464   #
28465
28466 _ACEOF
28467
28468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28469 # If the template does not know about datarootdir, expand it.
28470 # FIXME: This hack should be removed a few years after 2.60.
28471 ac_datarootdir_hack=; ac_datarootdir_seen=
28472 ac_sed_dataroot='
28473 /datarootdir/ {
28474   p
28475   q
28476 }
28477 /@datadir@/p
28478 /@docdir@/p
28479 /@infodir@/p
28480 /@localedir@/p
28481 /@mandir@/p'
28482 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28483 *datarootdir*) ac_datarootdir_seen=yes;;
28484 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28485   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28486 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28487 _ACEOF
28488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28489   ac_datarootdir_hack='
28490   s&@datadir@&$datadir&g
28491   s&@docdir@&$docdir&g
28492   s&@infodir@&$infodir&g
28493   s&@localedir@&$localedir&g
28494   s&@mandir@&$mandir&g
28495   s&\\\${datarootdir}&$datarootdir&g' ;;
28496 esac
28497 _ACEOF
28498
28499 # Neutralize VPATH when `$srcdir' = `.'.
28500 # Shell code in configure.ac might set extrasub.
28501 # FIXME: do we really want to maintain this feature?
28502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28503 ac_sed_extra="$ac_vpsub
28504 $extrasub
28505 _ACEOF
28506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28507 :t
28508 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28509 s|@configure_input@|$ac_sed_conf_input|;t t
28510 s&@top_builddir@&$ac_top_builddir_sub&;t t
28511 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28512 s&@srcdir@&$ac_srcdir&;t t
28513 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28514 s&@top_srcdir@&$ac_top_srcdir&;t t
28515 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28516 s&@builddir@&$ac_builddir&;t t
28517 s&@abs_builddir@&$ac_abs_builddir&;t t
28518 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28519 $ac_datarootdir_hack
28520 "
28521 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28522 if $ac_cs_awk_getline; then
28523   $AWK -f "$tmp/subs.awk"
28524 else
28525   $AWK -f "$tmp/subs.awk" | $SHELL
28526 fi >$tmp/out \
28527   || as_fn_error "could not create $ac_file" "$LINENO" 5
28528
28529 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28530   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28531   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28532   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28533 which seems to be undefined.  Please make sure it is defined." >&5
28534 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28535 which seems to be undefined.  Please make sure it is defined." >&2;}
28536
28537   rm -f "$tmp/stdin"
28538   case $ac_file in
28539   -) cat "$tmp/out" && rm -f "$tmp/out";;
28540   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28541   esac \
28542   || as_fn_error "could not create $ac_file" "$LINENO" 5
28543  ;;
28544   :H)
28545   #
28546   # CONFIG_HEADER
28547   #
28548   if test x"$ac_file" != x-; then
28549     {
28550       $as_echo "/* $configure_input  */" \
28551       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28552     } >"$tmp/config.h" \
28553       || as_fn_error "could not create $ac_file" "$LINENO" 5
28554     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28555       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28556 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28557     else
28558       rm -f "$ac_file"
28559       mv "$tmp/config.h" "$ac_file" \
28560         || as_fn_error "could not create $ac_file" "$LINENO" 5
28561     fi
28562   else
28563     $as_echo "/* $configure_input  */" \
28564       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28565       || as_fn_error "could not create -" "$LINENO" 5
28566   fi
28567  ;;
28568
28569   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28570 $as_echo "$as_me: executing $ac_file commands" >&6;}
28571  ;;
28572   esac
28573
28574
28575   case $ac_file$ac_mode in
28576     "as":F) chmod +x as ;;
28577     "collect-ld":F) chmod +x collect-ld ;;
28578     "nm":F) chmod +x nm ;;
28579     "default":C)
28580 case ${CONFIG_HEADERS} in
28581   *auto-host.h:config.in*)
28582   echo > cstamp-h ;;
28583 esac
28584 # Make sure all the subdirs exist.
28585 for d in $subdirs doc build common c-family
28586 do
28587     test -d $d || mkdir $d
28588 done
28589  ;;
28590
28591   esac
28592 done # for ac_tag
28593
28594
28595 as_fn_exit 0
28596 _ACEOF
28597 ac_clean_files=$ac_clean_files_save
28598
28599 test $ac_write_fail = 0 ||
28600   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28601
28602
28603 # configure is writing to config.log, and then calls config.status.
28604 # config.status does its own redirection, appending to config.log.
28605 # Unfortunately, on DOS this fails, as config.log is still kept open
28606 # by configure, so config.status won't be able to write to it; its
28607 # output is simply discarded.  So we exec the FD to /dev/null,
28608 # effectively closing config.log, so it can be properly (re)opened and
28609 # appended to by config.status.  When coming back to configure, we
28610 # need to make the FD available again.
28611 if test "$no_create" != yes; then
28612   ac_cs_success=:
28613   ac_config_status_args=
28614   test "$silent" = yes &&
28615     ac_config_status_args="$ac_config_status_args --quiet"
28616   exec 5>/dev/null
28617   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28618   exec 5>>config.log
28619   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28620   # would make configure fail if this is the last instruction.
28621   $ac_cs_success || as_fn_exit $?
28622 fi
28623 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28624   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28625 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28626 fi
28627
28628