OSDN Git Service

2010-12-09 Martin Jambor <mjambor@suse.cz>
[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 thread_file
625 out_object_file
626 out_file
627 objc_boehm_gc
628 md_file
629 local_prefix
630 lang_tree_files
631 lang_specs_files
632 lang_opt_files
633 install
634 out_host_hook_obj
635 host_xm_defines
636 host_xm_include_list
637 host_xm_file_list
638 host_exeext
639 gcc_gxx_include_dir
640 gcc_config_arguments
641 float_h_file
642 extra_programs
643 extra_passes
644 extra_parts
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 slibdir
671 dollar
672 gcc_tooldir
673 enable_lto
674 MAINT
675 zlibinc
676 zlibdir
677 HOST_LIBS
678 GGC
679 libgcc_visibility
680 gcc_cv_readelf
681 gcc_cv_objdump
682 ORIGINAL_NM_FOR_TARGET
683 gcc_cv_nm
684 ORIGINAL_LD_FOR_TARGET
685 ORIGINAL_PLUGIN_LD_FOR_TARGET
686 gcc_cv_ld
687 ORIGINAL_AS_FOR_TARGET
688 gcc_cv_as
689 enable_fast_install
690 objdir
691 OTOOL64
692 OTOOL
693 LIPO
694 NMEDIT
695 DSYMUTIL
696 STRIP
697 OBJDUMP
698 ac_ct_DUMPBIN
699 DUMPBIN
700 LD
701 FGREP
702 SED
703 LIBTOOL
704 collect2
705 STMP_FIXINC
706 BUILD_LDFLAGS
707 BUILD_CFLAGS
708 CC_FOR_BUILD
709 inhibit_libc
710 SYSTEM_HEADER_DIR
711 ALL
712 CROSS
713 CATOBJEXT
714 GENCAT
715 INSTOBJEXT
716 DATADIRNAME
717 CATALOGS
718 POSUB
719 GMSGFMT
720 XGETTEXT
721 INCINTL
722 LIBINTL_DEP
723 LIBINTL
724 USE_NLS
725 extra_opt_files
726 extra_modes_file
727 gthread_flags
728 objext
729 manext
730 LIBICONV_DEP
731 LTLIBICONV
732 LIBICONV
733 LDEXP_LIB
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 enable_shared
763 enable_fixed_point
764 enable_decimal_float
765 enable_multilib
766 ENABLE_BUILD_WITH_CXX
767 coverage_flags
768 valgrind_command
769 valgrind_path_defines
770 valgrind_path
771 TREEBROWSER
772 nocommon_flag
773 warn_cxxflags
774 warn_cflags
775 c_strict_warn
776 strict_warn
777 c_loose_warn
778 loose_warn
779 EGREP
780 GREP
781 CPP
782 OUTPUT_OPTION
783 NO_MINUS_C_MINUS_O
784 GNATMAKE
785 GNATBIND
786 ac_ct_CXX
787 CXXFLAGS
788 CXX
789 OBJEXT
790 EXEEXT
791 ac_ct_CC
792 CPPFLAGS
793 LDFLAGS
794 CFLAGS
795 CC
796 GENINSRC
797 target_subdir
798 host_subdir
799 build_subdir
800 build_libsubdir
801 target_noncanonical
802 target_os
803 target_vendor
804 target_cpu
805 target
806 host_os
807 host_vendor
808 host_cpu
809 host
810 build_os
811 build_vendor
812 build_cpu
813 build
814 target_alias
815 host_alias
816 build_alias
817 LIBS
818 ECHO_T
819 ECHO_N
820 ECHO_C
821 DEFS
822 mandir
823 localedir
824 libdir
825 psdir
826 pdfdir
827 dvidir
828 htmldir
829 infodir
830 docdir
831 oldincludedir
832 includedir
833 localstatedir
834 sharedstatedir
835 sysconfdir
836 datadir
837 datarootdir
838 libexecdir
839 sbindir
840 bindir
841 program_transform_name
842 prefix
843 exec_prefix
844 PACKAGE_URL
845 PACKAGE_BUGREPORT
846 PACKAGE_STRING
847 PACKAGE_VERSION
848 PACKAGE_TARNAME
849 PACKAGE_NAME
850 PATH_SEPARATOR
851 SHELL'
852 ac_subst_files='option_includes
853 language_hooks'
854 ac_user_opts='
855 enable_option_checking
856 with_build_libsubdir
857 with_local_prefix
858 with_gxx_include_dir
859 with_cpp_install_dir
860 enable_generated_files_in_srcdir
861 with_gnu_ld
862 with_ld
863 with_demangler_in_ld
864 with_gnu_as
865 with_as
866 enable_largefile
867 enable_werror_always
868 enable_checking
869 enable_coverage
870 enable_gather_detailed_mem_stats
871 enable_build_with_cxx
872 with_stabs
873 enable_multilib
874 enable___cxa_atexit
875 enable_decimal_float
876 enable_fixed_point
877 enable_threads
878 enable_tls
879 enable_objc_gc
880 with_dwarf2
881 enable_shared
882 with_build_sysroot
883 with_sysroot
884 with_specs
885 with_pkgversion
886 with_bugurl
887 enable_languages
888 with_multilib_list
889 enable_rpath
890 with_libiconv_prefix
891 enable_initfini_array
892 enable_sjlj_exceptions
893 with_system_libunwind
894 enable_secureplt
895 enable_leading_mingw64_underscores
896 enable_cld
897 enable_frame_pointer
898 enable_win32_registry
899 enable_static
900 with_pic
901 enable_fast_install
902 enable_libtool_lock
903 with_plugin_ld
904 enable_gnu_indirect_function
905 enable_comdat
906 enable_gnu_unique_object
907 enable_linker_build_id
908 with_long_double_128
909 with_gc
910 with_system_zlib
911 enable_maintainer_mode
912 enable_version_specific_runtime_libs
913 with_slibdir
914 enable_plugin
915 '
916       ac_precious_vars='build_alias
917 host_alias
918 target_alias
919 CC
920 CFLAGS
921 LDFLAGS
922 LIBS
923 CPPFLAGS
924 CXX
925 CXXFLAGS
926 CCC
927 CPP
928 CXXCPP
929 GMPLIBS
930 GMPINC
931 PPLLIBS
932 PPLINC
933 CLOOGLIBS
934 CLOOGINC'
935
936
937 # Initialize some variables set by options.
938 ac_init_help=
939 ac_init_version=false
940 ac_unrecognized_opts=
941 ac_unrecognized_sep=
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
944 cache_file=/dev/null
945 exec_prefix=NONE
946 no_create=
947 no_recursion=
948 prefix=NONE
949 program_prefix=NONE
950 program_suffix=NONE
951 program_transform_name=s,x,x,
952 silent=
953 site=
954 srcdir=
955 verbose=
956 x_includes=NONE
957 x_libraries=NONE
958
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir='${exec_prefix}/bin'
966 sbindir='${exec_prefix}/sbin'
967 libexecdir='${exec_prefix}/libexec'
968 datarootdir='${prefix}/share'
969 datadir='${datarootdir}'
970 sysconfdir='${prefix}/etc'
971 sharedstatedir='${prefix}/com'
972 localstatedir='${prefix}/var'
973 includedir='${prefix}/include'
974 oldincludedir='/usr/include'
975 docdir='${datarootdir}/doc/${PACKAGE}'
976 infodir='${datarootdir}/info'
977 htmldir='${docdir}'
978 dvidir='${docdir}'
979 pdfdir='${docdir}'
980 psdir='${docdir}'
981 libdir='${exec_prefix}/lib'
982 localedir='${datarootdir}/locale'
983 mandir='${datarootdir}/man'
984
985 ac_prev=
986 ac_dashdash=
987 for ac_option
988 do
989   # If the previous option needs an argument, assign it.
990   if test -n "$ac_prev"; then
991     eval $ac_prev=\$ac_option
992     ac_prev=
993     continue
994   fi
995
996   case $ac_option in
997   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998   *)    ac_optarg=yes ;;
999   esac
1000
1001   # Accept the important Cygnus configure options, so we can diagnose typos.
1002
1003   case $ac_dashdash$ac_option in
1004   --)
1005     ac_dashdash=yes ;;
1006
1007   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008     ac_prev=bindir ;;
1009   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010     bindir=$ac_optarg ;;
1011
1012   -build | --build | --buil | --bui | --bu)
1013     ac_prev=build_alias ;;
1014   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015     build_alias=$ac_optarg ;;
1016
1017   -cache-file | --cache-file | --cache-fil | --cache-fi \
1018   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019     ac_prev=cache_file ;;
1020   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022     cache_file=$ac_optarg ;;
1023
1024   --config-cache | -C)
1025     cache_file=config.cache ;;
1026
1027   -datadir | --datadir | --datadi | --datad)
1028     ac_prev=datadir ;;
1029   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030     datadir=$ac_optarg ;;
1031
1032   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033   | --dataroo | --dataro | --datar)
1034     ac_prev=datarootdir ;;
1035   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037     datarootdir=$ac_optarg ;;
1038
1039   -disable-* | --disable-*)
1040     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041     # Reject names that are not valid shell variable names.
1042     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043       as_fn_error "invalid feature name: $ac_useropt"
1044     ac_useropt_orig=$ac_useropt
1045     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046     case $ac_user_opts in
1047       *"
1048 "enable_$ac_useropt"
1049 "*) ;;
1050       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051          ac_unrecognized_sep=', ';;
1052     esac
1053     eval enable_$ac_useropt=no ;;
1054
1055   -docdir | --docdir | --docdi | --doc | --do)
1056     ac_prev=docdir ;;
1057   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058     docdir=$ac_optarg ;;
1059
1060   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061     ac_prev=dvidir ;;
1062   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063     dvidir=$ac_optarg ;;
1064
1065   -enable-* | --enable-*)
1066     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067     # Reject names that are not valid shell variable names.
1068     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069       as_fn_error "invalid feature name: $ac_useropt"
1070     ac_useropt_orig=$ac_useropt
1071     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072     case $ac_user_opts in
1073       *"
1074 "enable_$ac_useropt"
1075 "*) ;;
1076       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077          ac_unrecognized_sep=', ';;
1078     esac
1079     eval enable_$ac_useropt=\$ac_optarg ;;
1080
1081   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083   | --exec | --exe | --ex)
1084     ac_prev=exec_prefix ;;
1085   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087   | --exec=* | --exe=* | --ex=*)
1088     exec_prefix=$ac_optarg ;;
1089
1090   -gas | --gas | --ga | --g)
1091     # Obsolete; use --with-gas.
1092     with_gas=yes ;;
1093
1094   -help | --help | --hel | --he | -h)
1095     ac_init_help=long ;;
1096   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097     ac_init_help=recursive ;;
1098   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099     ac_init_help=short ;;
1100
1101   -host | --host | --hos | --ho)
1102     ac_prev=host_alias ;;
1103   -host=* | --host=* | --hos=* | --ho=*)
1104     host_alias=$ac_optarg ;;
1105
1106   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107     ac_prev=htmldir ;;
1108   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109   | --ht=*)
1110     htmldir=$ac_optarg ;;
1111
1112   -includedir | --includedir | --includedi | --included | --include \
1113   | --includ | --inclu | --incl | --inc)
1114     ac_prev=includedir ;;
1115   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116   | --includ=* | --inclu=* | --incl=* | --inc=*)
1117     includedir=$ac_optarg ;;
1118
1119   -infodir | --infodir | --infodi | --infod | --info | --inf)
1120     ac_prev=infodir ;;
1121   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122     infodir=$ac_optarg ;;
1123
1124   -libdir | --libdir | --libdi | --libd)
1125     ac_prev=libdir ;;
1126   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127     libdir=$ac_optarg ;;
1128
1129   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130   | --libexe | --libex | --libe)
1131     ac_prev=libexecdir ;;
1132   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133   | --libexe=* | --libex=* | --libe=*)
1134     libexecdir=$ac_optarg ;;
1135
1136   -localedir | --localedir | --localedi | --localed | --locale)
1137     ac_prev=localedir ;;
1138   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139     localedir=$ac_optarg ;;
1140
1141   -localstatedir | --localstatedir | --localstatedi | --localstated \
1142   | --localstate | --localstat | --localsta | --localst | --locals)
1143     ac_prev=localstatedir ;;
1144   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146     localstatedir=$ac_optarg ;;
1147
1148   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149     ac_prev=mandir ;;
1150   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151     mandir=$ac_optarg ;;
1152
1153   -nfp | --nfp | --nf)
1154     # Obsolete; use --without-fp.
1155     with_fp=no ;;
1156
1157   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158   | --no-cr | --no-c | -n)
1159     no_create=yes ;;
1160
1161   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163     no_recursion=yes ;;
1164
1165   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167   | --oldin | --oldi | --old | --ol | --o)
1168     ac_prev=oldincludedir ;;
1169   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172     oldincludedir=$ac_optarg ;;
1173
1174   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175     ac_prev=prefix ;;
1176   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177     prefix=$ac_optarg ;;
1178
1179   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180   | --program-pre | --program-pr | --program-p)
1181     ac_prev=program_prefix ;;
1182   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184     program_prefix=$ac_optarg ;;
1185
1186   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187   | --program-suf | --program-su | --program-s)
1188     ac_prev=program_suffix ;;
1189   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191     program_suffix=$ac_optarg ;;
1192
1193   -program-transform-name | --program-transform-name \
1194   | --program-transform-nam | --program-transform-na \
1195   | --program-transform-n | --program-transform- \
1196   | --program-transform | --program-transfor \
1197   | --program-transfo | --program-transf \
1198   | --program-trans | --program-tran \
1199   | --progr-tra | --program-tr | --program-t)
1200     ac_prev=program_transform_name ;;
1201   -program-transform-name=* | --program-transform-name=* \
1202   | --program-transform-nam=* | --program-transform-na=* \
1203   | --program-transform-n=* | --program-transform-=* \
1204   | --program-transform=* | --program-transfor=* \
1205   | --program-transfo=* | --program-transf=* \
1206   | --program-trans=* | --program-tran=* \
1207   | --progr-tra=* | --program-tr=* | --program-t=*)
1208     program_transform_name=$ac_optarg ;;
1209
1210   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211     ac_prev=pdfdir ;;
1212   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213     pdfdir=$ac_optarg ;;
1214
1215   -psdir | --psdir | --psdi | --psd | --ps)
1216     ac_prev=psdir ;;
1217   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218     psdir=$ac_optarg ;;
1219
1220   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221   | -silent | --silent | --silen | --sile | --sil)
1222     silent=yes ;;
1223
1224   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225     ac_prev=sbindir ;;
1226   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227   | --sbi=* | --sb=*)
1228     sbindir=$ac_optarg ;;
1229
1230   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232   | --sharedst | --shareds | --shared | --share | --shar \
1233   | --sha | --sh)
1234     ac_prev=sharedstatedir ;;
1235   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238   | --sha=* | --sh=*)
1239     sharedstatedir=$ac_optarg ;;
1240
1241   -site | --site | --sit)
1242     ac_prev=site ;;
1243   -site=* | --site=* | --sit=*)
1244     site=$ac_optarg ;;
1245
1246   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247     ac_prev=srcdir ;;
1248   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249     srcdir=$ac_optarg ;;
1250
1251   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252   | --syscon | --sysco | --sysc | --sys | --sy)
1253     ac_prev=sysconfdir ;;
1254   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256     sysconfdir=$ac_optarg ;;
1257
1258   -target | --target | --targe | --targ | --tar | --ta | --t)
1259     ac_prev=target_alias ;;
1260   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261     target_alias=$ac_optarg ;;
1262
1263   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264     verbose=yes ;;
1265
1266   -version | --version | --versio | --versi | --vers | -V)
1267     ac_init_version=: ;;
1268
1269   -with-* | --with-*)
1270     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271     # Reject names that are not valid shell variable names.
1272     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273       as_fn_error "invalid package name: $ac_useropt"
1274     ac_useropt_orig=$ac_useropt
1275     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276     case $ac_user_opts in
1277       *"
1278 "with_$ac_useropt"
1279 "*) ;;
1280       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281          ac_unrecognized_sep=', ';;
1282     esac
1283     eval with_$ac_useropt=\$ac_optarg ;;
1284
1285   -without-* | --without-*)
1286     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287     # Reject names that are not valid shell variable names.
1288     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289       as_fn_error "invalid package name: $ac_useropt"
1290     ac_useropt_orig=$ac_useropt
1291     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292     case $ac_user_opts in
1293       *"
1294 "with_$ac_useropt"
1295 "*) ;;
1296       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297          ac_unrecognized_sep=', ';;
1298     esac
1299     eval with_$ac_useropt=no ;;
1300
1301   --x)
1302     # Obsolete; use --with-x.
1303     with_x=yes ;;
1304
1305   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306   | --x-incl | --x-inc | --x-in | --x-i)
1307     ac_prev=x_includes ;;
1308   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310     x_includes=$ac_optarg ;;
1311
1312   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314     ac_prev=x_libraries ;;
1315   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317     x_libraries=$ac_optarg ;;
1318
1319   -*) as_fn_error "unrecognized option: \`$ac_option'
1320 Try \`$0 --help' for more information."
1321     ;;
1322
1323   *=*)
1324     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325     # Reject names that are not valid shell variable names.
1326     case $ac_envvar in #(
1327       '' | [0-9]* | *[!_$as_cr_alnum]* )
1328       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1329     esac
1330     eval $ac_envvar=\$ac_optarg
1331     export $ac_envvar ;;
1332
1333   *)
1334     # FIXME: should be removed in autoconf 3.0.
1335     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1339     ;;
1340
1341   esac
1342 done
1343
1344 if test -n "$ac_prev"; then
1345   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346   as_fn_error "missing argument to $ac_option"
1347 fi
1348
1349 if test -n "$ac_unrecognized_opts"; then
1350   case $enable_option_checking in
1351     no) ;;
1352     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1353     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1354   esac
1355 fi
1356
1357 # Check all directory arguments for consistency.
1358 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359                 datadir sysconfdir sharedstatedir localstatedir includedir \
1360                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361                 libdir localedir mandir
1362 do
1363   eval ac_val=\$$ac_var
1364   # Remove trailing slashes.
1365   case $ac_val in
1366     */ )
1367       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368       eval $ac_var=\$ac_val;;
1369   esac
1370   # Be sure to have absolute directory names.
1371   case $ac_val in
1372     [\\/$]* | ?:[\\/]* )  continue;;
1373     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1374   esac
1375   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1376 done
1377
1378 # There might be people who depend on the old broken behavior: `$host'
1379 # used to hold the argument of --host etc.
1380 # FIXME: To remove some day.
1381 build=$build_alias
1382 host=$host_alias
1383 target=$target_alias
1384
1385 # FIXME: To remove some day.
1386 if test "x$host_alias" != x; then
1387   if test "x$build_alias" = x; then
1388     cross_compiling=maybe
1389     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1390     If a cross compiler is detected then cross compile mode will be used." >&2
1391   elif test "x$build_alias" != "x$host_alias"; then
1392     cross_compiling=yes
1393   fi
1394 fi
1395
1396 ac_tool_prefix=
1397 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1398
1399 test "$silent" = yes && exec 6>/dev/null
1400
1401
1402 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1403 ac_ls_di=`ls -di .` &&
1404 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1405   as_fn_error "working directory cannot be determined"
1406 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407   as_fn_error "pwd does not report name of working directory"
1408
1409
1410 # Find the source files, if location was not specified.
1411 if test -z "$srcdir"; then
1412   ac_srcdir_defaulted=yes
1413   # Try the directory containing this script, then the parent directory.
1414   ac_confdir=`$as_dirname -- "$as_myself" ||
1415 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1416          X"$as_myself" : 'X\(//\)[^/]' \| \
1417          X"$as_myself" : 'X\(//\)$' \| \
1418          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1419 $as_echo X"$as_myself" |
1420     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421             s//\1/
1422             q
1423           }
1424           /^X\(\/\/\)[^/].*/{
1425             s//\1/
1426             q
1427           }
1428           /^X\(\/\/\)$/{
1429             s//\1/
1430             q
1431           }
1432           /^X\(\/\).*/{
1433             s//\1/
1434             q
1435           }
1436           s/.*/./; q'`
1437   srcdir=$ac_confdir
1438   if test ! -r "$srcdir/$ac_unique_file"; then
1439     srcdir=..
1440   fi
1441 else
1442   ac_srcdir_defaulted=no
1443 fi
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1446   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1447 fi
1448 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449 ac_abs_confdir=`(
1450         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1451         pwd)`
1452 # When building in place, set srcdir=.
1453 if test "$ac_abs_confdir" = "$ac_pwd"; then
1454   srcdir=.
1455 fi
1456 # Remove unnecessary trailing slashes from srcdir.
1457 # Double slashes in file names in object file debugging info
1458 # mess up M-x gdb in Emacs.
1459 case $srcdir in
1460 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461 esac
1462 for ac_var in $ac_precious_vars; do
1463   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464   eval ac_env_${ac_var}_value=\$${ac_var}
1465   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467 done
1468
1469 #
1470 # Report the --help message.
1471 #
1472 if test "$ac_init_help" = "long"; then
1473   # Omit some internal or obsolete options to make the list less imposing.
1474   # This message is too long to be a string in the A/UX 3.1 sh.
1475   cat <<_ACEOF
1476 \`configure' configures this package to adapt to many kinds of systems.
1477
1478 Usage: $0 [OPTION]... [VAR=VALUE]...
1479
1480 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481 VAR=VALUE.  See below for descriptions of some of the useful variables.
1482
1483 Defaults for the options are specified in brackets.
1484
1485 Configuration:
1486   -h, --help              display this help and exit
1487       --help=short        display options specific to this package
1488       --help=recursive    display the short help of all the included packages
1489   -V, --version           display version information and exit
1490   -q, --quiet, --silent   do not print \`checking...' messages
1491       --cache-file=FILE   cache test results in FILE [disabled]
1492   -C, --config-cache      alias for \`--cache-file=config.cache'
1493   -n, --no-create         do not create output files
1494       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1495
1496 Installation directories:
1497   --prefix=PREFIX         install architecture-independent files in PREFIX
1498                           [$ac_default_prefix]
1499   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1500                           [PREFIX]
1501
1502 By default, \`make install' will install all the files in
1503 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1504 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505 for instance \`--prefix=\$HOME'.
1506
1507 For better control, use the options below.
1508
1509 Fine tuning of the installation directories:
1510   --bindir=DIR            user executables [EPREFIX/bin]
1511   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1512   --libexecdir=DIR        program executables [EPREFIX/libexec]
1513   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1514   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1515   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1516   --libdir=DIR            object code libraries [EPREFIX/lib]
1517   --includedir=DIR        C header files [PREFIX/include]
1518   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1519   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1520   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1521   --infodir=DIR           info documentation [DATAROOTDIR/info]
1522   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1523   --mandir=DIR            man documentation [DATAROOTDIR/man]
1524   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1525   --htmldir=DIR           html documentation [DOCDIR]
1526   --dvidir=DIR            dvi documentation [DOCDIR]
1527   --pdfdir=DIR            pdf documentation [DOCDIR]
1528   --psdir=DIR             ps documentation [DOCDIR]
1529 _ACEOF
1530
1531   cat <<\_ACEOF
1532
1533 Program names:
1534   --program-prefix=PREFIX            prepend PREFIX to installed program names
1535   --program-suffix=SUFFIX            append SUFFIX to installed program names
1536   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1537
1538 System types:
1539   --build=BUILD     configure for building on BUILD [guessed]
1540   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1541   --target=TARGET   configure for building compilers for TARGET [HOST]
1542 _ACEOF
1543 fi
1544
1545 if test -n "$ac_init_help"; then
1546
1547   cat <<\_ACEOF
1548
1549 Optional Features:
1550   --disable-option-checking  ignore unrecognized --enable/--with options
1551   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1552   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1553   --enable-generated-files-in-srcdir
1554                           put copies of generated files in source dir
1555                           intended for creating source tarballs for users
1556                           without texinfo bison or flex.
1557   --disable-largefile     omit support for large files
1558   --enable-werror-always  enable -Werror despite compiler version
1559   --enable-checking=LIST
1560                           enable expensive run-time checks.  With LIST,
1561                           enable only specific categories of checks.
1562                           Categories are: yes,no,all,none,release.
1563                           Flags are: assert,df,fold,gc,gcac,gimple,misc,
1564                           rtlflag,rtl,runtime,tree,valgrind,types.
1565   --enable-coverage=LEVEL
1566                           enable compiler's code coverage collection.
1567                           Use to measure compiler performance and locate
1568                           unused parts of the compiler. With LEVEL, specify
1569                           optimization. Values are opt, noopt,
1570                           default is noopt
1571   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
1572   --enable-build-with-cxx build with C++ compiler instead of C compiler
1573   --enable-multilib       enable library support for multiple ABIs
1574   --enable-__cxa_atexit   enable __cxa_atexit for C++
1575   --enable-decimal-float={no,yes,bid,dpd}
1576                         enable decimal float extension to C.  Selecting 'bid'
1577                         or 'dpd' choses which decimal floating point format
1578                         to use
1579   --enable-fixed-point    enable fixed-point arithmetic extension to C
1580   --enable-threads        enable thread usage for target GCC
1581   --enable-threads=LIB    use LIB thread package for target GCC
1582   --enable-tls            enable or disable generation of tls code
1583                           overriding the assembler check for tls support
1584   --enable-objc-gc        enable the use of Boehm's garbage collector with
1585                           the GNU Objective-C runtime
1586   --disable-shared        don't provide a shared libgcc
1587   --enable-languages=LIST specify which front-ends to build
1588   --disable-rpath         do not hardcode runtime library paths
1589   --enable-initfini-array       use .init_array/.fini_array sections
1590   --enable-sjlj-exceptions
1591                           arrange to use setjmp/longjmp exception handling
1592   --enable-secureplt      enable -msecure-plt by default for PowerPC
1593   --enable-leading-mingw64-underscores
1594                           Enable leading underscores on 64 bit mingw targets
1595   --enable-cld            enable -mcld by default for 32bit x86
1596   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit x86
1597   --disable-win32-registry
1598                           disable lookup of installation paths in the
1599                           Registry on Windows hosts
1600   --enable-win32-registry enable registry lookup (default)
1601   --enable-win32-registry=KEY
1602                           use KEY instead of GCC version as the last portion
1603                           of the registry key
1604   --enable-shared[=PKGS]  build shared libraries [default=yes]
1605   --enable-static[=PKGS]  build static libraries [default=yes]
1606   --enable-fast-install[=PKGS]
1607                           optimize for fast installation [default=yes]
1608   --disable-libtool-lock  avoid locking (might break parallel builds)
1609   --enable-gnu-indirect-function
1610                           enable the use of the @gnu_indirect_function to
1611                           glibc systems
1612   --enable-comdat         enable COMDAT group support
1613   --enable-gnu-unique-object    enable the use of the @gnu_unique_object ELF extension on
1614                                 glibc systems
1615   --enable-linker-build-id
1616                           compiler will always pass --build-id to linker
1617   --enable-maintainer-mode
1618                           enable make rules and dependencies not useful
1619                           (and sometimes confusing) to the casual installer
1620   --enable-version-specific-runtime-libs
1621                           specify that runtime libraries should be
1622                           installed in a compiler-specific directory
1623   --enable-plugin         enable plugin support
1624
1625 Optional Packages:
1626   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1627   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1628   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1629   --with-local-prefix=DIR specifies directory to put local include
1630   --with-gxx-include-dir=DIR
1631                           specifies directory to put g++ header files
1632   --with-cpp-install-dir=DIR
1633                           install the user visible C preprocessor in DIR
1634                           (relative to PREFIX) as well as PREFIX/bin
1635   --with-gnu-ld           arrange to work with GNU ld.
1636   --with-ld               arrange to use the specified ld (full pathname)
1637   --with-demangler-in-ld  try to use demangler in GNU ld.
1638   --with-gnu-as           arrange to work with GNU as
1639   --with-as               arrange to use the specified as (full pathname)
1640   --with-stabs            arrange to use stabs instead of host debug format
1641   --with-dwarf2           force the default debug format to be DWARF 2
1642   --with-build-sysroot=sysroot
1643                           use sysroot as the system root during the build
1644   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1645   --with-specs=SPECS      add SPECS to driver command-line processing
1646   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1647   --with-bugurl=URL       Direct users to URL to report a bug
1648   --with-multilib-list    Select multilibs (SH only)
1649   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1650   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1651   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1652   --with-system-libunwind use installed libunwind
1653   --with-pic              try to use only PIC/non-PIC objects [default=use
1654                           both]
1655   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1656   --with-plugin-ld=[ARG]  specify the plugin linker
1657   --with-long-double-128  Use 128-bit long double by default.
1658   --with-gc={page,zone}   choose the garbage collection mechanism to use
1659                           with the compiler
1660   --with-system-zlib      use installed libz
1661   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1662
1663 Some influential environment variables:
1664   CC          C compiler command
1665   CFLAGS      C compiler flags
1666   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1667               nonstandard directory <lib dir>
1668   LIBS        libraries to pass to the linker, e.g. -l<library>
1669   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1670               you have headers in a nonstandard directory <include dir>
1671   CXX         C++ compiler command
1672   CXXFLAGS    C++ compiler flags
1673   CPP         C preprocessor
1674   CXXCPP      C++ preprocessor
1675   GMPLIBS     How to link GMP
1676   GMPINC      How to find GMP include files
1677   PPLLIBS     How to link PPL
1678   PPLINC      How to find PPL include files
1679   CLOOGLIBS   How to link CLOOG
1680   CLOOGINC    How to find CLOOG include files
1681
1682 Use these variables to override the choices made by `configure' or to help
1683 it to find libraries and programs with nonstandard names/locations.
1684
1685 Report bugs to the package provider.
1686 _ACEOF
1687 ac_status=$?
1688 fi
1689
1690 if test "$ac_init_help" = "recursive"; then
1691   # If there are subdirs, report their specific --help.
1692   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1693     test -d "$ac_dir" ||
1694       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1695       continue
1696     ac_builddir=.
1697
1698 case "$ac_dir" in
1699 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1700 *)
1701   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1702   # A ".." for each directory in $ac_dir_suffix.
1703   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1704   case $ac_top_builddir_sub in
1705   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1706   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1707   esac ;;
1708 esac
1709 ac_abs_top_builddir=$ac_pwd
1710 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1711 # for backward compatibility:
1712 ac_top_builddir=$ac_top_build_prefix
1713
1714 case $srcdir in
1715   .)  # We are building in place.
1716     ac_srcdir=.
1717     ac_top_srcdir=$ac_top_builddir_sub
1718     ac_abs_top_srcdir=$ac_pwd ;;
1719   [\\/]* | ?:[\\/]* )  # Absolute name.
1720     ac_srcdir=$srcdir$ac_dir_suffix;
1721     ac_top_srcdir=$srcdir
1722     ac_abs_top_srcdir=$srcdir ;;
1723   *) # Relative name.
1724     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1725     ac_top_srcdir=$ac_top_build_prefix$srcdir
1726     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1727 esac
1728 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1729
1730     cd "$ac_dir" || { ac_status=$?; continue; }
1731     # Check for guested configure.
1732     if test -f "$ac_srcdir/configure.gnu"; then
1733       echo &&
1734       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1735     elif test -f "$ac_srcdir/configure"; then
1736       echo &&
1737       $SHELL "$ac_srcdir/configure" --help=recursive
1738     else
1739       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1740     fi || ac_status=$?
1741     cd "$ac_pwd" || { ac_status=$?; break; }
1742   done
1743 fi
1744
1745 test -n "$ac_init_help" && exit $ac_status
1746 if $ac_init_version; then
1747   cat <<\_ACEOF
1748 configure
1749 generated by GNU Autoconf 2.64
1750
1751 Copyright (C) 2009 Free Software Foundation, Inc.
1752 This configure script is free software; the Free Software Foundation
1753 gives unlimited permission to copy, distribute and modify it.
1754 _ACEOF
1755   exit
1756 fi
1757
1758 ## ------------------------ ##
1759 ## Autoconf initialization. ##
1760 ## ------------------------ ##
1761
1762 # ac_fn_c_try_compile LINENO
1763 # --------------------------
1764 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_compile ()
1766 {
1767   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768   rm -f conftest.$ac_objext
1769   if { { ac_try="$ac_compile"
1770 case "(($ac_try" in
1771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772   *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776   (eval "$ac_compile") 2>conftest.err
1777   ac_status=$?
1778   if test -s conftest.err; then
1779     grep -v '^ *+' conftest.err >conftest.er1
1780     cat conftest.er1 >&5
1781     mv -f conftest.er1 conftest.err
1782   fi
1783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784   test $ac_status = 0; } && {
1785          test -z "$ac_c_werror_flag" ||
1786          test ! -s conftest.err
1787        } && test -s conftest.$ac_objext; then :
1788   ac_retval=0
1789 else
1790   $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1792
1793         ac_retval=1
1794 fi
1795   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796   return $ac_retval
1797
1798 } # ac_fn_c_try_compile
1799
1800 # ac_fn_cxx_try_compile LINENO
1801 # ----------------------------
1802 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_cxx_try_compile ()
1804 {
1805   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806   rm -f conftest.$ac_objext
1807   if { { ac_try="$ac_compile"
1808 case "(($ac_try" in
1809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810   *) ac_try_echo=$ac_try;;
1811 esac
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814   (eval "$ac_compile") 2>conftest.err
1815   ac_status=$?
1816   if test -s conftest.err; then
1817     grep -v '^ *+' conftest.err >conftest.er1
1818     cat conftest.er1 >&5
1819     mv -f conftest.er1 conftest.err
1820   fi
1821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822   test $ac_status = 0; } && {
1823          test -z "$ac_cxx_werror_flag" ||
1824          test ! -s conftest.err
1825        } && test -s conftest.$ac_objext; then :
1826   ac_retval=0
1827 else
1828   $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1830
1831         ac_retval=1
1832 fi
1833   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834   return $ac_retval
1835
1836 } # ac_fn_cxx_try_compile
1837
1838 # ac_fn_c_try_cpp LINENO
1839 # ----------------------
1840 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1841 ac_fn_c_try_cpp ()
1842 {
1843   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844   if { { ac_try="$ac_cpp conftest.$ac_ext"
1845 case "(($ac_try" in
1846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847   *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1852   ac_status=$?
1853   if test -s conftest.err; then
1854     grep -v '^ *+' conftest.err >conftest.er1
1855     cat conftest.er1 >&5
1856     mv -f conftest.er1 conftest.err
1857   fi
1858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859   test $ac_status = 0; } >/dev/null && {
1860          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1861          test ! -s conftest.err
1862        }; then :
1863   ac_retval=0
1864 else
1865   $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868     ac_retval=1
1869 fi
1870   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871   return $ac_retval
1872
1873 } # ac_fn_c_try_cpp
1874
1875 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1876 # -------------------------------------------------------
1877 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1878 # the include files in INCLUDES and setting the cache variable VAR
1879 # accordingly.
1880 ac_fn_c_check_header_mongrel ()
1881 {
1882   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1887   $as_echo_n "(cached) " >&6
1888 fi
1889 eval ac_res=\$$3
1890                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 else
1893   # Is the header compilable?
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1895 $as_echo_n "checking $2 usability... " >&6; }
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h.  */
1898 $4
1899 #include <$2>
1900 _ACEOF
1901 if ac_fn_c_try_compile "$LINENO"; then :
1902   ac_header_compiler=yes
1903 else
1904   ac_header_compiler=no
1905 fi
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1908 $as_echo "$ac_header_compiler" >&6; }
1909
1910 # Is the header present?
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1912 $as_echo_n "checking $2 presence... " >&6; }
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h.  */
1915 #include <$2>
1916 _ACEOF
1917 if ac_fn_c_try_cpp "$LINENO"; then :
1918   ac_header_preproc=yes
1919 else
1920   ac_header_preproc=no
1921 fi
1922 rm -f conftest.err conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1924 $as_echo "$ac_header_preproc" >&6; }
1925
1926 # So?  What about this header?
1927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1928   yes:no: )
1929     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1930 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1931     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1933     ;;
1934   no:yes:* )
1935     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1936 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1937     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1938 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1939     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1940 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1941     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1942 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1943     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945     ;;
1946 esac
1947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1950   $as_echo_n "(cached) " >&6
1951 else
1952   eval "$3=\$ac_header_compiler"
1953 fi
1954 eval ac_res=\$$3
1955                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 fi
1958   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959
1960 } # ac_fn_c_check_header_mongrel
1961
1962 # ac_fn_c_try_run LINENO
1963 # ----------------------
1964 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1965 # that executables *can* be run.
1966 ac_fn_c_try_run ()
1967 {
1968   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969   if { { ac_try="$ac_link"
1970 case "(($ac_try" in
1971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972   *) ac_try_echo=$ac_try;;
1973 esac
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976   (eval "$ac_link") 2>&5
1977   ac_status=$?
1978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1980   { { case "(($ac_try" in
1981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982   *) ac_try_echo=$ac_try;;
1983 esac
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986   (eval "$ac_try") 2>&5
1987   ac_status=$?
1988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989   test $ac_status = 0; }; }; then :
1990   ac_retval=0
1991 else
1992   $as_echo "$as_me: program exited with status $ac_status" >&5
1993        $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1995
1996        ac_retval=$ac_status
1997 fi
1998   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2000   return $ac_retval
2001
2002 } # ac_fn_c_try_run
2003
2004 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2005 # -------------------------------------------------------
2006 # Tests whether HEADER exists and can be compiled using the include files in
2007 # INCLUDES, setting the cache variable VAR accordingly.
2008 ac_fn_c_check_header_compile ()
2009 {
2010   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2014   $as_echo_n "(cached) " >&6
2015 else
2016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h.  */
2018 $4
2019 #include <$2>
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022   eval "$3=yes"
2023 else
2024   eval "$3=no"
2025 fi
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027 fi
2028 eval ac_res=\$$3
2029                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2032
2033 } # ac_fn_c_check_header_compile
2034
2035 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2036 # --------------------------------------------
2037 # Tries to find the compile-time value of EXPR in a program that includes
2038 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2039 # computed
2040 ac_fn_c_compute_int ()
2041 {
2042   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043   if test "$cross_compiling" = yes; then
2044     # Depending upon the size, compute the lo and hi bounds.
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h.  */
2047 $4
2048 int
2049 main ()
2050 {
2051 static int test_array [1 - 2 * !(($2) >= 0)];
2052 test_array [0] = 0
2053
2054   ;
2055   return 0;
2056 }
2057 _ACEOF
2058 if ac_fn_c_try_compile "$LINENO"; then :
2059   ac_lo=0 ac_mid=0
2060   while :; do
2061     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h.  */
2063 $4
2064 int
2065 main ()
2066 {
2067 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2068 test_array [0] = 0
2069
2070   ;
2071   return 0;
2072 }
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075   ac_hi=$ac_mid; break
2076 else
2077   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2078                         if test $ac_lo -le $ac_mid; then
2079                           ac_lo= ac_hi=
2080                           break
2081                         fi
2082                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2083 fi
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085   done
2086 else
2087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h.  */
2089 $4
2090 int
2091 main ()
2092 {
2093 static int test_array [1 - 2 * !(($2) < 0)];
2094 test_array [0] = 0
2095
2096   ;
2097   return 0;
2098 }
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101   ac_hi=-1 ac_mid=-1
2102   while :; do
2103     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h.  */
2105 $4
2106 int
2107 main ()
2108 {
2109 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2110 test_array [0] = 0
2111
2112   ;
2113   return 0;
2114 }
2115 _ACEOF
2116 if ac_fn_c_try_compile "$LINENO"; then :
2117   ac_lo=$ac_mid; break
2118 else
2119   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2120                         if test $ac_mid -le $ac_hi; then
2121                           ac_lo= ac_hi=
2122                           break
2123                         fi
2124                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127   done
2128 else
2129   ac_lo= ac_hi=
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 fi
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 # Binary search between lo and hi bounds.
2135 while test "x$ac_lo" != "x$ac_hi"; do
2136   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h.  */
2139 $4
2140 int
2141 main ()
2142 {
2143 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2144 test_array [0] = 0
2145
2146   ;
2147   return 0;
2148 }
2149 _ACEOF
2150 if ac_fn_c_try_compile "$LINENO"; then :
2151   ac_hi=$ac_mid
2152 else
2153   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2154 fi
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 done
2157 case $ac_lo in #((
2158 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2159 '') ac_retval=1 ;;
2160 esac
2161   else
2162     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h.  */
2164 $4
2165 static long int longval () { return $2; }
2166 static unsigned long int ulongval () { return $2; }
2167 #include <stdio.h>
2168 #include <stdlib.h>
2169 int
2170 main ()
2171 {
2172
2173   FILE *f = fopen ("conftest.val", "w");
2174   if (! f)
2175     return 1;
2176   if (($2) < 0)
2177     {
2178       long int i = longval ();
2179       if (i != ($2))
2180         return 1;
2181       fprintf (f, "%ld", i);
2182     }
2183   else
2184     {
2185       unsigned long int i = ulongval ();
2186       if (i != ($2))
2187         return 1;
2188       fprintf (f, "%lu", i);
2189     }
2190   /* Do not output a trailing newline, as this causes \r\n confusion
2191      on some platforms.  */
2192   return ferror (f) || fclose (f) != 0;
2193
2194   ;
2195   return 0;
2196 }
2197 _ACEOF
2198 if ac_fn_c_try_run "$LINENO"; then :
2199   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2200 else
2201   ac_retval=1
2202 fi
2203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2204   conftest.$ac_objext conftest.beam conftest.$ac_ext
2205 rm -f conftest.val
2206
2207   fi
2208   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2209   return $ac_retval
2210
2211 } # ac_fn_c_compute_int
2212
2213 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2214 # -------------------------------------------
2215 # Tests whether TYPE exists after having included INCLUDES, setting cache
2216 # variable VAR accordingly.
2217 ac_fn_c_check_type ()
2218 {
2219   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2221 $as_echo_n "checking for $2... " >&6; }
2222 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2223   $as_echo_n "(cached) " >&6
2224 else
2225   eval "$3=no"
2226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h.  */
2228 $4
2229 int
2230 main ()
2231 {
2232 if (sizeof ($2))
2233          return 0;
2234   ;
2235   return 0;
2236 }
2237 _ACEOF
2238 if ac_fn_c_try_compile "$LINENO"; then :
2239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h.  */
2241 $4
2242 int
2243 main ()
2244 {
2245 if (sizeof (($2)))
2246             return 0;
2247   ;
2248   return 0;
2249 }
2250 _ACEOF
2251 if ac_fn_c_try_compile "$LINENO"; then :
2252
2253 else
2254   eval "$3=yes"
2255 fi
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 fi
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 fi
2260 eval ac_res=\$$3
2261                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2262 $as_echo "$ac_res" >&6; }
2263   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2264
2265 } # ac_fn_c_check_type
2266
2267 # ac_fn_c_find_intX_t LINENO BITS VAR
2268 # -----------------------------------
2269 # Finds a signed integer type with width BITS, setting cache variable VAR
2270 # accordingly.
2271 ac_fn_c_find_intX_t ()
2272 {
2273   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2275 $as_echo_n "checking for int$2_t... " >&6; }
2276 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2277   $as_echo_n "(cached) " >&6
2278 else
2279   eval "$3=no"
2280      for ac_type in int$2_t 'int' 'long int' \
2281          'long long int' 'short int' 'signed char'; do
2282        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h.  */
2284 $ac_includes_default
2285 int
2286 main ()
2287 {
2288 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2289 test_array [0] = 0
2290
2291   ;
2292   return 0;
2293 }
2294 _ACEOF
2295 if ac_fn_c_try_compile "$LINENO"; then :
2296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h.  */
2298 $ac_includes_default
2299 int
2300 main ()
2301 {
2302 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2303                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2304 test_array [0] = 0
2305
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 if ac_fn_c_try_compile "$LINENO"; then :
2311
2312 else
2313   case $ac_type in #(
2314   int$2_t) :
2315     eval "$3=yes" ;; #(
2316   *) :
2317     eval "$3=\$ac_type" ;;
2318 esac
2319 fi
2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321 fi
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323        eval as_val=\$$3
2324    if test "x$as_val" = x""no; then :
2325
2326 else
2327   break
2328 fi
2329      done
2330 fi
2331 eval ac_res=\$$3
2332                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2333 $as_echo "$ac_res" >&6; }
2334   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2335
2336 } # ac_fn_c_find_intX_t
2337
2338 # ac_fn_c_try_link LINENO
2339 # -----------------------
2340 # Try to link conftest.$ac_ext, and return whether this succeeded.
2341 ac_fn_c_try_link ()
2342 {
2343   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344   rm -f conftest.$ac_objext conftest$ac_exeext
2345   if { { ac_try="$ac_link"
2346 case "(($ac_try" in
2347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348   *) ac_try_echo=$ac_try;;
2349 esac
2350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2351 $as_echo "$ac_try_echo"; } >&5
2352   (eval "$ac_link") 2>conftest.err
2353   ac_status=$?
2354   if test -s conftest.err; then
2355     grep -v '^ *+' conftest.err >conftest.er1
2356     cat conftest.er1 >&5
2357     mv -f conftest.er1 conftest.err
2358   fi
2359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2360   test $ac_status = 0; } && {
2361          test -z "$ac_c_werror_flag" ||
2362          test ! -s conftest.err
2363        } && test -s conftest$ac_exeext && {
2364          test "$cross_compiling" = yes ||
2365          $as_test_x conftest$ac_exeext
2366        }; then :
2367   ac_retval=0
2368 else
2369   $as_echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2371
2372         ac_retval=1
2373 fi
2374   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2375   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2376   # interfere with the next link command; also delete a directory that is
2377   # left behind by Apple's compiler.  We do this before executing the actions.
2378   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2379   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2380   return $ac_retval
2381
2382 } # ac_fn_c_try_link
2383
2384 # ac_fn_c_find_uintX_t LINENO BITS VAR
2385 # ------------------------------------
2386 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2387 # accordingly.
2388 ac_fn_c_find_uintX_t ()
2389 {
2390   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2392 $as_echo_n "checking for uint$2_t... " >&6; }
2393 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2394   $as_echo_n "(cached) " >&6
2395 else
2396   eval "$3=no"
2397      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2398          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2399        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h.  */
2401 $ac_includes_default
2402 int
2403 main ()
2404 {
2405 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2406 test_array [0] = 0
2407
2408   ;
2409   return 0;
2410 }
2411 _ACEOF
2412 if ac_fn_c_try_compile "$LINENO"; then :
2413   case $ac_type in #(
2414   uint$2_t) :
2415     eval "$3=yes" ;; #(
2416   *) :
2417     eval "$3=\$ac_type" ;;
2418 esac
2419 fi
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421        eval as_val=\$$3
2422    if test "x$as_val" = x""no; then :
2423
2424 else
2425   break
2426 fi
2427      done
2428 fi
2429 eval ac_res=\$$3
2430                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2431 $as_echo "$ac_res" >&6; }
2432   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2433
2434 } # ac_fn_c_find_uintX_t
2435
2436 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2437 # ----------------------------------------------
2438 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2439 ac_fn_c_check_header_preproc ()
2440 {
2441   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2443 $as_echo_n "checking for $2... " >&6; }
2444 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2445   $as_echo_n "(cached) " >&6
2446 else
2447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h.  */
2449 #include <$2>
2450 _ACEOF
2451 if ac_fn_c_try_cpp "$LINENO"; then :
2452   eval "$3=yes"
2453 else
2454   eval "$3=no"
2455 fi
2456 rm -f conftest.err conftest.$ac_ext
2457 fi
2458 eval ac_res=\$$3
2459                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2460 $as_echo "$ac_res" >&6; }
2461   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2462
2463 } # ac_fn_c_check_header_preproc
2464
2465 # ac_fn_cxx_try_cpp LINENO
2466 # ------------------------
2467 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2468 ac_fn_cxx_try_cpp ()
2469 {
2470   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471   if { { ac_try="$ac_cpp conftest.$ac_ext"
2472 case "(($ac_try" in
2473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474   *) ac_try_echo=$ac_try;;
2475 esac
2476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2477 $as_echo "$ac_try_echo"; } >&5
2478   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2479   ac_status=$?
2480   if test -s conftest.err; then
2481     grep -v '^ *+' conftest.err >conftest.er1
2482     cat conftest.er1 >&5
2483     mv -f conftest.er1 conftest.err
2484   fi
2485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2486   test $ac_status = 0; } >/dev/null && {
2487          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2488          test ! -s conftest.err
2489        }; then :
2490   ac_retval=0
2491 else
2492   $as_echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2494
2495     ac_retval=1
2496 fi
2497   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2498   return $ac_retval
2499
2500 } # ac_fn_cxx_try_cpp
2501
2502 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2503 # ------------------------------------------------
2504 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2505 ac_fn_cxx_check_header_preproc ()
2506 {
2507   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2509 $as_echo_n "checking for $2... " >&6; }
2510 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2511   $as_echo_n "(cached) " >&6
2512 else
2513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514 /* end confdefs.h.  */
2515 #include <$2>
2516 _ACEOF
2517 if ac_fn_cxx_try_cpp "$LINENO"; then :
2518   eval "$3=yes"
2519 else
2520   eval "$3=no"
2521 fi
2522 rm -f conftest.err conftest.$ac_ext
2523 fi
2524 eval ac_res=\$$3
2525                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2526 $as_echo "$ac_res" >&6; }
2527   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2528
2529 } # ac_fn_cxx_check_header_preproc
2530
2531 # ac_fn_c_check_func LINENO FUNC VAR
2532 # ----------------------------------
2533 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2534 ac_fn_c_check_func ()
2535 {
2536   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2538 $as_echo_n "checking for $2... " >&6; }
2539 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2540   $as_echo_n "(cached) " >&6
2541 else
2542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2543 /* end confdefs.h.  */
2544 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2546 #define $2 innocuous_$2
2547
2548 /* System header to define __stub macros and hopefully few prototypes,
2549     which can conflict with char $2 (); below.
2550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2551     <limits.h> exists even on freestanding compilers.  */
2552
2553 #ifdef __STDC__
2554 # include <limits.h>
2555 #else
2556 # include <assert.h>
2557 #endif
2558
2559 #undef $2
2560
2561 /* Override any GCC internal prototype to avoid an error.
2562    Use char because int might match the return type of a GCC
2563    builtin and then its argument prototype would still apply.  */
2564 #ifdef __cplusplus
2565 extern "C"
2566 #endif
2567 char $2 ();
2568 /* The GNU C library defines this for functions which it implements
2569     to always fail with ENOSYS.  Some functions are actually named
2570     something starting with __ and the normal name is an alias.  */
2571 #if defined __stub_$2 || defined __stub___$2
2572 choke me
2573 #endif
2574
2575 int
2576 main ()
2577 {
2578 return $2 ();
2579   ;
2580   return 0;
2581 }
2582 _ACEOF
2583 if ac_fn_c_try_link "$LINENO"; then :
2584   eval "$3=yes"
2585 else
2586   eval "$3=no"
2587 fi
2588 rm -f core conftest.err conftest.$ac_objext \
2589     conftest$ac_exeext conftest.$ac_ext
2590 fi
2591 eval ac_res=\$$3
2592                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2593 $as_echo "$ac_res" >&6; }
2594   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2595
2596 } # ac_fn_c_check_func
2597
2598 # ac_fn_cxx_try_link LINENO
2599 # -------------------------
2600 # Try to link conftest.$ac_ext, and return whether this succeeded.
2601 ac_fn_cxx_try_link ()
2602 {
2603   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2604   rm -f conftest.$ac_objext conftest$ac_exeext
2605   if { { ac_try="$ac_link"
2606 case "(($ac_try" in
2607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608   *) ac_try_echo=$ac_try;;
2609 esac
2610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2611 $as_echo "$ac_try_echo"; } >&5
2612   (eval "$ac_link") 2>conftest.err
2613   ac_status=$?
2614   if test -s conftest.err; then
2615     grep -v '^ *+' conftest.err >conftest.er1
2616     cat conftest.er1 >&5
2617     mv -f conftest.er1 conftest.err
2618   fi
2619   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2620   test $ac_status = 0; } && {
2621          test -z "$ac_cxx_werror_flag" ||
2622          test ! -s conftest.err
2623        } && test -s conftest$ac_exeext && {
2624          test "$cross_compiling" = yes ||
2625          $as_test_x conftest$ac_exeext
2626        }; then :
2627   ac_retval=0
2628 else
2629   $as_echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2631
2632         ac_retval=1
2633 fi
2634   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2635   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2636   # interfere with the next link command; also delete a directory that is
2637   # left behind by Apple's compiler.  We do this before executing the actions.
2638   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2639   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2640   return $ac_retval
2641
2642 } # ac_fn_cxx_try_link
2643 cat >config.log <<_ACEOF
2644 This file contains any messages produced by compilers while
2645 running configure, to aid debugging if configure makes a mistake.
2646
2647 It was created by $as_me, which was
2648 generated by GNU Autoconf 2.64.  Invocation command line was
2649
2650   $ $0 $@
2651
2652 _ACEOF
2653 exec 5>>config.log
2654 {
2655 cat <<_ASUNAME
2656 ## --------- ##
2657 ## Platform. ##
2658 ## --------- ##
2659
2660 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2661 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2662 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2663 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2664 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2665
2666 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2667 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2668
2669 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2670 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2671 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2672 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2673 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2674 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2675 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2676
2677 _ASUNAME
2678
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2681 do
2682   IFS=$as_save_IFS
2683   test -z "$as_dir" && as_dir=.
2684     $as_echo "PATH: $as_dir"
2685   done
2686 IFS=$as_save_IFS
2687
2688 } >&5
2689
2690 cat >&5 <<_ACEOF
2691
2692
2693 ## ----------- ##
2694 ## Core tests. ##
2695 ## ----------- ##
2696
2697 _ACEOF
2698
2699
2700 # Keep a trace of the command line.
2701 # Strip out --no-create and --no-recursion so they do not pile up.
2702 # Strip out --silent because we don't want to record it for future runs.
2703 # Also quote any args containing shell meta-characters.
2704 # Make two passes to allow for proper duplicate-argument suppression.
2705 ac_configure_args=
2706 ac_configure_args0=
2707 ac_configure_args1=
2708 ac_must_keep_next=false
2709 for ac_pass in 1 2
2710 do
2711   for ac_arg
2712   do
2713     case $ac_arg in
2714     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2715     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2716     | -silent | --silent | --silen | --sile | --sil)
2717       continue ;;
2718     *\'*)
2719       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2720     esac
2721     case $ac_pass in
2722     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2723     2)
2724       as_fn_append ac_configure_args1 " '$ac_arg'"
2725       if test $ac_must_keep_next = true; then
2726         ac_must_keep_next=false # Got value, back to normal.
2727       else
2728         case $ac_arg in
2729           *=* | --config-cache | -C | -disable-* | --disable-* \
2730           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2731           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2732           | -with-* | --with-* | -without-* | --without-* | --x)
2733             case "$ac_configure_args0 " in
2734               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2735             esac
2736             ;;
2737           -* ) ac_must_keep_next=true ;;
2738         esac
2739       fi
2740       as_fn_append ac_configure_args " '$ac_arg'"
2741       ;;
2742     esac
2743   done
2744 done
2745 { ac_configure_args0=; unset ac_configure_args0;}
2746 { ac_configure_args1=; unset ac_configure_args1;}
2747
2748 # When interrupted or exit'd, cleanup temporary files, and complete
2749 # config.log.  We remove comments because anyway the quotes in there
2750 # would cause problems or look ugly.
2751 # WARNING: Use '\'' to represent an apostrophe within the trap.
2752 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2753 trap 'exit_status=$?
2754   # Save into config.log some information that might help in debugging.
2755   {
2756     echo
2757
2758     cat <<\_ASBOX
2759 ## ---------------- ##
2760 ## Cache variables. ##
2761 ## ---------------- ##
2762 _ASBOX
2763     echo
2764     # The following way of writing the cache mishandles newlines in values,
2765 (
2766   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2767     eval ac_val=\$$ac_var
2768     case $ac_val in #(
2769     *${as_nl}*)
2770       case $ac_var in #(
2771       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2772 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2773       esac
2774       case $ac_var in #(
2775       _ | IFS | as_nl) ;; #(
2776       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2777       *) { eval $ac_var=; unset $ac_var;} ;;
2778       esac ;;
2779     esac
2780   done
2781   (set) 2>&1 |
2782     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2783     *${as_nl}ac_space=\ *)
2784       sed -n \
2785         "s/'\''/'\''\\\\'\'''\''/g;
2786           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2787       ;; #(
2788     *)
2789       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2790       ;;
2791     esac |
2792     sort
2793 )
2794     echo
2795
2796     cat <<\_ASBOX
2797 ## ----------------- ##
2798 ## Output variables. ##
2799 ## ----------------- ##
2800 _ASBOX
2801     echo
2802     for ac_var in $ac_subst_vars
2803     do
2804       eval ac_val=\$$ac_var
2805       case $ac_val in
2806       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2807       esac
2808       $as_echo "$ac_var='\''$ac_val'\''"
2809     done | sort
2810     echo
2811
2812     if test -n "$ac_subst_files"; then
2813       cat <<\_ASBOX
2814 ## ------------------- ##
2815 ## File substitutions. ##
2816 ## ------------------- ##
2817 _ASBOX
2818       echo
2819       for ac_var in $ac_subst_files
2820       do
2821         eval ac_val=\$$ac_var
2822         case $ac_val in
2823         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2824         esac
2825         $as_echo "$ac_var='\''$ac_val'\''"
2826       done | sort
2827       echo
2828     fi
2829
2830     if test -s confdefs.h; then
2831       cat <<\_ASBOX
2832 ## ----------- ##
2833 ## confdefs.h. ##
2834 ## ----------- ##
2835 _ASBOX
2836       echo
2837       cat confdefs.h
2838       echo
2839     fi
2840     test "$ac_signal" != 0 &&
2841       $as_echo "$as_me: caught signal $ac_signal"
2842     $as_echo "$as_me: exit $exit_status"
2843   } >&5
2844   rm -f core *.core core.conftest.* &&
2845     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2846     exit $exit_status
2847 ' 0
2848 for ac_signal in 1 2 13 15; do
2849   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2850 done
2851 ac_signal=0
2852
2853 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2854 rm -f -r conftest* confdefs.h
2855
2856 $as_echo "/* confdefs.h */" > confdefs.h
2857
2858 # Predefined preprocessor variables.
2859
2860 cat >>confdefs.h <<_ACEOF
2861 #define PACKAGE_NAME "$PACKAGE_NAME"
2862 _ACEOF
2863
2864 cat >>confdefs.h <<_ACEOF
2865 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2866 _ACEOF
2867
2868 cat >>confdefs.h <<_ACEOF
2869 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2870 _ACEOF
2871
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE_STRING "$PACKAGE_STRING"
2874 _ACEOF
2875
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2878 _ACEOF
2879
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_URL "$PACKAGE_URL"
2882 _ACEOF
2883
2884
2885 # Let the site file select an alternate cache file if it wants to.
2886 # Prefer an explicitly selected file to automatically selected ones.
2887 ac_site_file1=NONE
2888 ac_site_file2=NONE
2889 if test -n "$CONFIG_SITE"; then
2890   ac_site_file1=$CONFIG_SITE
2891 elif test "x$prefix" != xNONE; then
2892   ac_site_file1=$prefix/share/config.site
2893   ac_site_file2=$prefix/etc/config.site
2894 else
2895   ac_site_file1=$ac_default_prefix/share/config.site
2896   ac_site_file2=$ac_default_prefix/etc/config.site
2897 fi
2898 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2899 do
2900   test "x$ac_site_file" = xNONE && continue
2901   if test -r "$ac_site_file"; then
2902     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2903 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2904     sed 's/^/| /' "$ac_site_file" >&5
2905     . "$ac_site_file"
2906   fi
2907 done
2908
2909 if test -r "$cache_file"; then
2910   # Some versions of bash will fail to source /dev/null (special
2911   # files actually), so we avoid doing that.
2912   if test -f "$cache_file"; then
2913     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2914 $as_echo "$as_me: loading cache $cache_file" >&6;}
2915     case $cache_file in
2916       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2917       *)                      . "./$cache_file";;
2918     esac
2919   fi
2920 else
2921   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2922 $as_echo "$as_me: creating cache $cache_file" >&6;}
2923   >$cache_file
2924 fi
2925
2926 # Check that the precious variables saved in the cache have kept the same
2927 # value.
2928 ac_cache_corrupted=false
2929 for ac_var in $ac_precious_vars; do
2930   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2931   eval ac_new_set=\$ac_env_${ac_var}_set
2932   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2933   eval ac_new_val=\$ac_env_${ac_var}_value
2934   case $ac_old_set,$ac_new_set in
2935     set,)
2936       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2937 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2938       ac_cache_corrupted=: ;;
2939     ,set)
2940       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2941 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2942       ac_cache_corrupted=: ;;
2943     ,);;
2944     *)
2945       if test "x$ac_old_val" != "x$ac_new_val"; then
2946         # differences in whitespace do not lead to failure.
2947         ac_old_val_w=`echo x $ac_old_val`
2948         ac_new_val_w=`echo x $ac_new_val`
2949         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2950           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2951 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2952           ac_cache_corrupted=:
2953         else
2954           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2955 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2956           eval $ac_var=\$ac_old_val
2957         fi
2958         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2959 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2960         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2961 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2962       fi;;
2963   esac
2964   # Pass precious variables to config.status.
2965   if test "$ac_new_set" = set; then
2966     case $ac_new_val in
2967     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2968     *) ac_arg=$ac_var=$ac_new_val ;;
2969     esac
2970     case " $ac_configure_args " in
2971       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2972       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2973     esac
2974   fi
2975 done
2976 if $ac_cache_corrupted; then
2977   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2979   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2980 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2981   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2982 fi
2983 ## -------------------- ##
2984 ## Main body of script. ##
2985 ## -------------------- ##
2986
2987 ac_ext=c
2988 ac_cpp='$CPP $CPPFLAGS'
2989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2992
2993
2994
2995
2996
2997
2998 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2999
3000
3001 gcc_version=`cat $srcdir/BASE-VER`
3002
3003 # Determine the host, build, and target systems
3004 ac_aux_dir=
3005 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3006   for ac_t in install-sh install.sh shtool; do
3007     if test -f "$ac_dir/$ac_t"; then
3008       ac_aux_dir=$ac_dir
3009       ac_install_sh="$ac_aux_dir/$ac_t -c"
3010       break 2
3011     fi
3012   done
3013 done
3014 if test -z "$ac_aux_dir"; then
3015   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3016 fi
3017
3018 # These three variables are undocumented and unsupported,
3019 # and are intended to be withdrawn in a future Autoconf release.
3020 # They can cause serious problems if a builder's source tree is in a directory
3021 # whose full name contains unusual characters.
3022 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3023 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3024 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3025
3026
3027 # Make sure we can run config.sub.
3028 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3029   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3030
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3032 $as_echo_n "checking build system type... " >&6; }
3033 if test "${ac_cv_build+set}" = set; then :
3034   $as_echo_n "(cached) " >&6
3035 else
3036   ac_build_alias=$build_alias
3037 test "x$ac_build_alias" = x &&
3038   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3039 test "x$ac_build_alias" = x &&
3040   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3041 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3042   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3043
3044 fi
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3046 $as_echo "$ac_cv_build" >&6; }
3047 case $ac_cv_build in
3048 *-*-*) ;;
3049 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3050 esac
3051 build=$ac_cv_build
3052 ac_save_IFS=$IFS; IFS='-'
3053 set x $ac_cv_build
3054 shift
3055 build_cpu=$1
3056 build_vendor=$2
3057 shift; shift
3058 # Remember, the first character of IFS is used to create $*,
3059 # except with old shells:
3060 build_os=$*
3061 IFS=$ac_save_IFS
3062 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3063
3064
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3066 $as_echo_n "checking host system type... " >&6; }
3067 if test "${ac_cv_host+set}" = set; then :
3068   $as_echo_n "(cached) " >&6
3069 else
3070   if test "x$host_alias" = x; then
3071   ac_cv_host=$ac_cv_build
3072 else
3073   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3074     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3075 fi
3076
3077 fi
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3079 $as_echo "$ac_cv_host" >&6; }
3080 case $ac_cv_host in
3081 *-*-*) ;;
3082 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3083 esac
3084 host=$ac_cv_host
3085 ac_save_IFS=$IFS; IFS='-'
3086 set x $ac_cv_host
3087 shift
3088 host_cpu=$1
3089 host_vendor=$2
3090 shift; shift
3091 # Remember, the first character of IFS is used to create $*,
3092 # except with old shells:
3093 host_os=$*
3094 IFS=$ac_save_IFS
3095 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3096
3097
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3099 $as_echo_n "checking target system type... " >&6; }
3100 if test "${ac_cv_target+set}" = set; then :
3101   $as_echo_n "(cached) " >&6
3102 else
3103   if test "x$target_alias" = x; then
3104   ac_cv_target=$ac_cv_host
3105 else
3106   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3107     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3108 fi
3109
3110 fi
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3112 $as_echo "$ac_cv_target" >&6; }
3113 case $ac_cv_target in
3114 *-*-*) ;;
3115 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3116 esac
3117 target=$ac_cv_target
3118 ac_save_IFS=$IFS; IFS='-'
3119 set x $ac_cv_target
3120 shift
3121 target_cpu=$1
3122 target_vendor=$2
3123 shift; shift
3124 # Remember, the first character of IFS is used to create $*,
3125 # except with old shells:
3126 target_os=$*
3127 IFS=$ac_save_IFS
3128 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3129
3130
3131 # The aliases save the names the user supplied, while $host etc.
3132 # will get canonicalized.
3133 test -n "$target_alias" &&
3134   test "$program_prefix$program_suffix$program_transform_name" = \
3135     NONENONEs,x,x, &&
3136   program_prefix=${target_alias}-
3137
3138 # Determine the noncanonical target name, for directory use.
3139  case ${build_alias} in
3140   "") build_noncanonical=${build} ;;
3141   *) build_noncanonical=${build_alias} ;;
3142 esac
3143
3144  case ${host_alias} in
3145   "") host_noncanonical=${build_noncanonical} ;;
3146   *) host_noncanonical=${host_alias} ;;
3147 esac
3148
3149  case ${target_alias} in
3150   "") target_noncanonical=${host_noncanonical} ;;
3151   *) target_noncanonical=${target_alias} ;;
3152 esac
3153
3154
3155
3156
3157 # Determine the target- and build-specific subdirectories
3158
3159 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3160 # have matching libraries, they should use host libraries: Makefile.tpl
3161 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3162 # However, they still use the build modules, because the corresponding
3163 # host modules (e.g. bison) are only built for the host when bootstrap
3164 # finishes. So:
3165 # - build_subdir is where we find build modules, and never changes.
3166 # - build_libsubdir is where we find build libraries, and can be overridden.
3167
3168 # Prefix 'build-' so this never conflicts with target_subdir.
3169 build_subdir="build-${build_noncanonical}"
3170
3171 # Check whether --with-build-libsubdir was given.
3172 if test "${with_build_libsubdir+set}" = set; then :
3173   withval=$with_build_libsubdir; build_libsubdir="$withval"
3174 else
3175   build_libsubdir="$build_subdir"
3176 fi
3177
3178 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3179 if ( test $srcdir = . && test -d gcc ) \
3180    || test -d $srcdir/../host-${host_noncanonical}; then
3181   host_subdir="host-${host_noncanonical}"
3182 else
3183   host_subdir=.
3184 fi
3185 # No prefix.
3186 target_subdir=${target_noncanonical}
3187
3188
3189 # Set program_transform_name
3190 test "$program_prefix" != NONE &&
3191   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3192 # Use a double $ so make ignores it.
3193 test "$program_suffix" != NONE &&
3194   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3195 # Double any \ or $.
3196 # By default was `s,x,x', remove it if useless.
3197 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3198 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3199
3200
3201 # Check for bogus environment variables.
3202 # Test if LIBRARY_PATH contains the notation for the current directory
3203 # since this would lead to problems installing/building glibc.
3204 # LIBRARY_PATH contains the current directory if one of the following
3205 # is true:
3206 # - one of the terminals (":" and ";") is the first or last sign
3207 # - two terminals occur directly after each other
3208 # - the path contains an element with a dot in it
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3210 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3211 case ${LIBRARY_PATH} in
3212   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3213     library_path_setting="contains current directory"
3214     ;;
3215   *)
3216     library_path_setting="ok"
3217     ;;
3218 esac
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3220 $as_echo "$library_path_setting" >&6; }
3221 if test "$library_path_setting" != "ok"; then
3222 as_fn_error "
3223 *** LIBRARY_PATH shouldn't contain the current directory when
3224 *** building gcc. Please change the environment variable
3225 *** and run configure again." "$LINENO" 5
3226 fi
3227
3228 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3229 # since this would lead to problems installing/building glibc.
3230 # GCC_EXEC_PREFIX contains the current directory if one of the following
3231 # is true:
3232 # - one of the terminals (":" and ";") is the first or last sign
3233 # - two terminals occur directly after each other
3234 # - the path contains an element with a dot in it
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3236 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3237 case ${GCC_EXEC_PREFIX} in
3238   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3239     gcc_exec_prefix_setting="contains current directory"
3240     ;;
3241   *)
3242     gcc_exec_prefix_setting="ok"
3243     ;;
3244 esac
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3246 $as_echo "$gcc_exec_prefix_setting" >&6; }
3247 if test "$gcc_exec_prefix_setting" != "ok"; then
3248 as_fn_error "
3249 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3250 *** building gcc. Please change the environment variable
3251 *** and run configure again." "$LINENO" 5
3252 fi
3253
3254 # -----------
3255 # Directories
3256 # -----------
3257
3258 # Specify the local prefix
3259 local_prefix=
3260
3261 # Check whether --with-local-prefix was given.
3262 if test "${with_local_prefix+set}" = set; then :
3263   withval=$with_local_prefix; case "${withval}" in
3264 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3265 no)     ;;
3266 *)      local_prefix=$with_local_prefix ;;
3267 esac
3268 fi
3269
3270
3271 # Default local prefix if it is empty
3272 if test x$local_prefix = x; then
3273         local_prefix=/usr/local
3274 fi
3275
3276 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3277 # passed in by the toplevel make and thus we'd get different behavior
3278 # depending on where we built the sources.
3279 gcc_gxx_include_dir=
3280 # Specify the g++ header file directory
3281
3282 # Check whether --with-gxx-include-dir was given.
3283 if test "${with_gxx_include_dir+set}" = set; then :
3284   withval=$with_gxx_include_dir; case "${withval}" in
3285 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3286 no)     ;;
3287 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3288 esac
3289 fi
3290
3291
3292 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3293 if test x${gcc_gxx_include_dir} = x; then
3294   if test x${enable_version_specific_runtime_libs} = xyes; then
3295     gcc_gxx_include_dir='${libsubdir}/include/c++'
3296   else
3297     libstdcxx_incdir='include/c++/$(version)'
3298     if test x$host != x$target; then
3299        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3300     fi
3301     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3302   fi
3303 fi
3304
3305
3306 # Check whether --with-cpp_install_dir was given.
3307 if test "${with_cpp_install_dir+set}" = set; then :
3308   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3309   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3310 elif test x$withval != xno; then
3311   cpp_install_dir=$withval
3312 fi
3313 fi
3314
3315
3316 # We would like to our source tree to be readonly.  However when releases or
3317 # pre-releases are generated, the flex/bison generated files as well as the
3318 # various formats of manuals need to be included along with the rest of the
3319 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3320 # just that.
3321
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3323 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3324     # Check whether --enable-generated-files-in-srcdir was given.
3325 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3326   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3327 else
3328   generated_files_in_srcdir=no
3329 fi
3330
3331
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3333 $as_echo "$generated_files_in_srcdir" >&6; }
3334
3335 if test "$generated_files_in_srcdir" = "yes"; then
3336   GENINSRC=''
3337 else
3338   GENINSRC='#'
3339 fi
3340
3341
3342 # -------------------
3343 # Find default linker
3344 # -------------------
3345
3346 # With GNU ld
3347
3348 # Check whether --with-gnu-ld was given.
3349 if test "${with_gnu_ld+set}" = set; then :
3350   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3351 else
3352   gnu_ld_flag=no
3353 fi
3354
3355
3356 # With pre-defined ld
3357
3358 # Check whether --with-ld was given.
3359 if test "${with_ld+set}" = set; then :
3360   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3361 fi
3362
3363 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3364   if test ! -x "$DEFAULT_LINKER"; then
3365     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3366   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3367     gnu_ld_flag=yes
3368   fi
3369
3370 cat >>confdefs.h <<_ACEOF
3371 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3372 _ACEOF
3373
3374 fi
3375
3376 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3377
3378 cat >>confdefs.h <<_ACEOF
3379 #define HAVE_GNU_LD $gnu_ld
3380 _ACEOF
3381
3382
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3384 $as_echo_n "checking whether a default linker was specified... " >&6; }
3385 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3386   if test x"$gnu_ld_flag" = x"no"; then
3387     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3388 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3389   else
3390     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3391 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3392   fi
3393 else
3394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3396 fi
3397
3398 # With demangler in GNU ld
3399
3400 # Check whether --with-demangler-in-ld was given.
3401 if test "${with_demangler_in_ld+set}" = set; then :
3402   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3403 else
3404   demangler_in_ld=no
3405 fi
3406
3407
3408 # ----------------------
3409 # Find default assembler
3410 # ----------------------
3411
3412 # With GNU as
3413
3414 # Check whether --with-gnu-as was given.
3415 if test "${with_gnu_as+set}" = set; then :
3416   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3417 else
3418   gas_flag=no
3419 fi
3420
3421
3422
3423 # Check whether --with-as was given.
3424 if test "${with_as+set}" = set; then :
3425   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3426 fi
3427
3428 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3429   if test ! -x "$DEFAULT_ASSEMBLER"; then
3430     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3431   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3432     gas_flag=yes
3433   fi
3434
3435 cat >>confdefs.h <<_ACEOF
3436 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3437 _ACEOF
3438
3439 fi
3440
3441 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3442
3443 cat >>confdefs.h <<_ACEOF
3444 #define HAVE_GNU_AS $gnu_as
3445 _ACEOF
3446
3447
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3449 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3450 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3451   if test x"$gas_flag" = x"no"; then
3452     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3453 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3454   else
3455     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3456 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3457   fi
3458 else
3459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 $as_echo "no" >&6; }
3461 fi
3462
3463 # ---------------
3464 # Find C compiler
3465 # ---------------
3466
3467 # If a non-executable a.out is present (e.g. created by GNU as above even if
3468 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3469 # file, even when creating an executable, so an execution test fails.
3470 # Remove possible default executable files to avoid this.
3471 #
3472 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3473 # Autoconf includes it.
3474 rm -f a.out a.exe b.out
3475
3476 # Find the native compiler
3477 ac_ext=c
3478 ac_cpp='$CPP $CPPFLAGS'
3479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482 if test -n "$ac_tool_prefix"; then
3483   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3484 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486 $as_echo_n "checking for $ac_word... " >&6; }
3487 if test "${ac_cv_prog_CC+set}" = set; then :
3488   $as_echo_n "(cached) " >&6
3489 else
3490   if test -n "$CC"; then
3491   ac_cv_prog_CC="$CC" # Let the user override the test.
3492 else
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494 for as_dir in $PATH
3495 do
3496   IFS=$as_save_IFS
3497   test -z "$as_dir" && as_dir=.
3498     for ac_exec_ext in '' $ac_executable_extensions; do
3499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3500     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3502     break 2
3503   fi
3504 done
3505   done
3506 IFS=$as_save_IFS
3507
3508 fi
3509 fi
3510 CC=$ac_cv_prog_CC
3511 if test -n "$CC"; then
3512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3513 $as_echo "$CC" >&6; }
3514 else
3515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516 $as_echo "no" >&6; }
3517 fi
3518
3519
3520 fi
3521 if test -z "$ac_cv_prog_CC"; then
3522   ac_ct_CC=$CC
3523   # Extract the first word of "gcc", so it can be a program name with args.
3524 set dummy gcc; ac_word=$2
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526 $as_echo_n "checking for $ac_word... " >&6; }
3527 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3528   $as_echo_n "(cached) " >&6
3529 else
3530   if test -n "$ac_ct_CC"; then
3531   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3532 else
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 for as_dir in $PATH
3535 do
3536   IFS=$as_save_IFS
3537   test -z "$as_dir" && as_dir=.
3538     for ac_exec_ext in '' $ac_executable_extensions; do
3539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3540     ac_cv_prog_ac_ct_CC="gcc"
3541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542     break 2
3543   fi
3544 done
3545   done
3546 IFS=$as_save_IFS
3547
3548 fi
3549 fi
3550 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3551 if test -n "$ac_ct_CC"; then
3552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3553 $as_echo "$ac_ct_CC" >&6; }
3554 else
3555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556 $as_echo "no" >&6; }
3557 fi
3558
3559   if test "x$ac_ct_CC" = x; then
3560     CC=""
3561   else
3562     case $cross_compiling:$ac_tool_warned in
3563 yes:)
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3565 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3566 ac_tool_warned=yes ;;
3567 esac
3568     CC=$ac_ct_CC
3569   fi
3570 else
3571   CC="$ac_cv_prog_CC"
3572 fi
3573
3574 if test -z "$CC"; then
3575           if test -n "$ac_tool_prefix"; then
3576     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3577 set dummy ${ac_tool_prefix}cc; ac_word=$2
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579 $as_echo_n "checking for $ac_word... " >&6; }
3580 if test "${ac_cv_prog_CC+set}" = set; then :
3581   $as_echo_n "(cached) " >&6
3582 else
3583   if test -n "$CC"; then
3584   ac_cv_prog_CC="$CC" # Let the user override the test.
3585 else
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589   IFS=$as_save_IFS
3590   test -z "$as_dir" && as_dir=.
3591     for ac_exec_ext in '' $ac_executable_extensions; do
3592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3593     ac_cv_prog_CC="${ac_tool_prefix}cc"
3594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3595     break 2
3596   fi
3597 done
3598   done
3599 IFS=$as_save_IFS
3600
3601 fi
3602 fi
3603 CC=$ac_cv_prog_CC
3604 if test -n "$CC"; then
3605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3606 $as_echo "$CC" >&6; }
3607 else
3608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3610 fi
3611
3612
3613   fi
3614 fi
3615 if test -z "$CC"; then
3616   # Extract the first word of "cc", so it can be a program name with args.
3617 set dummy cc; ac_word=$2
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619 $as_echo_n "checking for $ac_word... " >&6; }
3620 if test "${ac_cv_prog_CC+set}" = set; then :
3621   $as_echo_n "(cached) " >&6
3622 else
3623   if test -n "$CC"; then
3624   ac_cv_prog_CC="$CC" # Let the user override the test.
3625 else
3626   ac_prog_rejected=no
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH
3629 do
3630   IFS=$as_save_IFS
3631   test -z "$as_dir" && as_dir=.
3632     for ac_exec_ext in '' $ac_executable_extensions; do
3633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3634     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3635        ac_prog_rejected=yes
3636        continue
3637      fi
3638     ac_cv_prog_CC="cc"
3639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3640     break 2
3641   fi
3642 done
3643   done
3644 IFS=$as_save_IFS
3645
3646 if test $ac_prog_rejected = yes; then
3647   # We found a bogon in the path, so make sure we never use it.
3648   set dummy $ac_cv_prog_CC
3649   shift
3650   if test $# != 0; then
3651     # We chose a different compiler from the bogus one.
3652     # However, it has the same basename, so the bogon will be chosen
3653     # first if we set CC to just the basename; use the full file name.
3654     shift
3655     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3656   fi
3657 fi
3658 fi
3659 fi
3660 CC=$ac_cv_prog_CC
3661 if test -n "$CC"; then
3662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3663 $as_echo "$CC" >&6; }
3664 else
3665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3667 fi
3668
3669
3670 fi
3671 if test -z "$CC"; then
3672   if test -n "$ac_tool_prefix"; then
3673   for ac_prog in cl.exe
3674   do
3675     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if test "${ac_cv_prog_CC+set}" = set; then :
3680   $as_echo_n "(cached) " >&6
3681 else
3682   if test -n "$CC"; then
3683   ac_cv_prog_CC="$CC" # Let the user override the test.
3684 else
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH
3687 do
3688   IFS=$as_save_IFS
3689   test -z "$as_dir" && as_dir=.
3690     for ac_exec_ext in '' $ac_executable_extensions; do
3691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3692     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3694     break 2
3695   fi
3696 done
3697   done
3698 IFS=$as_save_IFS
3699
3700 fi
3701 fi
3702 CC=$ac_cv_prog_CC
3703 if test -n "$CC"; then
3704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3705 $as_echo "$CC" >&6; }
3706 else
3707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3709 fi
3710
3711
3712     test -n "$CC" && break
3713   done
3714 fi
3715 if test -z "$CC"; then
3716   ac_ct_CC=$CC
3717   for ac_prog in cl.exe
3718 do
3719   # Extract the first word of "$ac_prog", so it can be a program name with args.
3720 set dummy $ac_prog; ac_word=$2
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 $as_echo_n "checking for $ac_word... " >&6; }
3723 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3724   $as_echo_n "(cached) " >&6
3725 else
3726   if test -n "$ac_ct_CC"; then
3727   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3728 else
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3731 do
3732   IFS=$as_save_IFS
3733   test -z "$as_dir" && as_dir=.
3734     for ac_exec_ext in '' $ac_executable_extensions; do
3735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736     ac_cv_prog_ac_ct_CC="$ac_prog"
3737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3738     break 2
3739   fi
3740 done
3741   done
3742 IFS=$as_save_IFS
3743
3744 fi
3745 fi
3746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3747 if test -n "$ac_ct_CC"; then
3748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3749 $as_echo "$ac_ct_CC" >&6; }
3750 else
3751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752 $as_echo "no" >&6; }
3753 fi
3754
3755
3756   test -n "$ac_ct_CC" && break
3757 done
3758
3759   if test "x$ac_ct_CC" = x; then
3760     CC=""
3761   else
3762     case $cross_compiling:$ac_tool_warned in
3763 yes:)
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3766 ac_tool_warned=yes ;;
3767 esac
3768     CC=$ac_ct_CC
3769   fi
3770 fi
3771
3772 fi
3773
3774
3775 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3777 as_fn_error "no acceptable C compiler found in \$PATH
3778 See \`config.log' for more details." "$LINENO" 5; }
3779
3780 # Provide some information about the compiler.
3781 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3782 set X $ac_compile
3783 ac_compiler=$2
3784 for ac_option in --version -v -V -qversion; do
3785   { { ac_try="$ac_compiler $ac_option >&5"
3786 case "(($ac_try" in
3787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788   *) ac_try_echo=$ac_try;;
3789 esac
3790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3791 $as_echo "$ac_try_echo"; } >&5
3792   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3793   ac_status=$?
3794   if test -s conftest.err; then
3795     sed '10a\
3796 ... rest of stderr output deleted ...
3797          10q' conftest.err >conftest.er1
3798     cat conftest.er1 >&5
3799     rm -f conftest.er1 conftest.err
3800   fi
3801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802   test $ac_status = 0; }
3803 done
3804
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h.  */
3807
3808 int
3809 main ()
3810 {
3811
3812   ;
3813   return 0;
3814 }
3815 _ACEOF
3816 ac_clean_files_save=$ac_clean_files
3817 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3818 # Try to create an executable without -o first, disregard a.out.
3819 # It will help us diagnose broken compilers, and finding out an intuition
3820 # of exeext.
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3822 $as_echo_n "checking for C compiler default output file name... " >&6; }
3823 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3824
3825 # The possible output files:
3826 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3827
3828 ac_rmfiles=
3829 for ac_file in $ac_files
3830 do
3831   case $ac_file in
3832     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3833     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3834   esac
3835 done
3836 rm -f $ac_rmfiles
3837
3838 if { { ac_try="$ac_link_default"
3839 case "(($ac_try" in
3840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841   *) ac_try_echo=$ac_try;;
3842 esac
3843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3844 $as_echo "$ac_try_echo"; } >&5
3845   (eval "$ac_link_default") 2>&5
3846   ac_status=$?
3847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3848   test $ac_status = 0; }; then :
3849   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3850 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3851 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3852 # so that the user can short-circuit this test for compilers unknown to
3853 # Autoconf.
3854 for ac_file in $ac_files ''
3855 do
3856   test -f "$ac_file" || continue
3857   case $ac_file in
3858     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3859         ;;
3860     [ab].out )
3861         # We found the default executable, but exeext='' is most
3862         # certainly right.
3863         break;;
3864     *.* )
3865         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3866         then :; else
3867            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3868         fi
3869         # We set ac_cv_exeext here because the later test for it is not
3870         # safe: cross compilers may not add the suffix if given an `-o'
3871         # argument, so we may need to know it at that point already.
3872         # Even if this section looks crufty: it has the advantage of
3873         # actually working.
3874         break;;
3875     * )
3876         break;;
3877   esac
3878 done
3879 test "$ac_cv_exeext" = no && ac_cv_exeext=
3880
3881 else
3882   ac_file=''
3883 fi
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3885 $as_echo "$ac_file" >&6; }
3886 if test -z "$ac_file"; then :
3887   $as_echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3889
3890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3892 { as_fn_set_status 77
3893 as_fn_error "C compiler cannot create executables
3894 See \`config.log' for more details." "$LINENO" 5; }; }
3895 fi
3896 ac_exeext=$ac_cv_exeext
3897
3898 # Check that the compiler produces executables we can run.  If not, either
3899 # the compiler is broken, or we cross compile.
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3901 $as_echo_n "checking whether the C compiler works... " >&6; }
3902 # If not cross compiling, check that we can run a simple program.
3903 if test "$cross_compiling" != yes; then
3904   if { ac_try='./$ac_file'
3905   { { case "(($ac_try" in
3906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907   *) ac_try_echo=$ac_try;;
3908 esac
3909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3910 $as_echo "$ac_try_echo"; } >&5
3911   (eval "$ac_try") 2>&5
3912   ac_status=$?
3913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3914   test $ac_status = 0; }; }; then
3915     cross_compiling=no
3916   else
3917     if test "$cross_compiling" = maybe; then
3918         cross_compiling=yes
3919     else
3920         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3922 as_fn_error "cannot run C compiled programs.
3923 If you meant to cross compile, use \`--host'.
3924 See \`config.log' for more details." "$LINENO" 5; }
3925     fi
3926   fi
3927 fi
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3929 $as_echo "yes" >&6; }
3930
3931 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3932 ac_clean_files=$ac_clean_files_save
3933 # Check that the compiler produces executables we can run.  If not, either
3934 # the compiler is broken, or we cross compile.
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3936 $as_echo_n "checking whether we are cross compiling... " >&6; }
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3938 $as_echo "$cross_compiling" >&6; }
3939
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3941 $as_echo_n "checking for suffix of executables... " >&6; }
3942 if { { ac_try="$ac_link"
3943 case "(($ac_try" in
3944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3945   *) ac_try_echo=$ac_try;;
3946 esac
3947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3948 $as_echo "$ac_try_echo"; } >&5
3949   (eval "$ac_link") 2>&5
3950   ac_status=$?
3951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3952   test $ac_status = 0; }; then :
3953   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3954 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3955 # work properly (i.e., refer to `conftest.exe'), while it won't with
3956 # `rm'.
3957 for ac_file in conftest.exe conftest conftest.*; do
3958   test -f "$ac_file" || continue
3959   case $ac_file in
3960     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3961     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3962           break;;
3963     * ) break;;
3964   esac
3965 done
3966 else
3967   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3969 as_fn_error "cannot compute suffix of executables: cannot compile and link
3970 See \`config.log' for more details." "$LINENO" 5; }
3971 fi
3972 rm -f conftest$ac_cv_exeext
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3974 $as_echo "$ac_cv_exeext" >&6; }
3975
3976 rm -f conftest.$ac_ext
3977 EXEEXT=$ac_cv_exeext
3978 ac_exeext=$EXEEXT
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3980 $as_echo_n "checking for suffix of object files... " >&6; }
3981 if test "${ac_cv_objext+set}" = set; then :
3982   $as_echo_n "(cached) " >&6
3983 else
3984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h.  */
3986
3987 int
3988 main ()
3989 {
3990
3991   ;
3992   return 0;
3993 }
3994 _ACEOF
3995 rm -f conftest.o conftest.obj
3996 if { { ac_try="$ac_compile"
3997 case "(($ac_try" in
3998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999   *) ac_try_echo=$ac_try;;
4000 esac
4001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4002 $as_echo "$ac_try_echo"; } >&5
4003   (eval "$ac_compile") 2>&5
4004   ac_status=$?
4005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4006   test $ac_status = 0; }; then :
4007   for ac_file in conftest.o conftest.obj conftest.*; do
4008   test -f "$ac_file" || continue;
4009   case $ac_file in
4010     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4011     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4012        break;;
4013   esac
4014 done
4015 else
4016   $as_echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4018
4019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4021 as_fn_error "cannot compute suffix of object files: cannot compile
4022 See \`config.log' for more details." "$LINENO" 5; }
4023 fi
4024 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4025 fi
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4027 $as_echo "$ac_cv_objext" >&6; }
4028 OBJEXT=$ac_cv_objext
4029 ac_objext=$OBJEXT
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4031 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4032 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4033   $as_echo_n "(cached) " >&6
4034 else
4035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h.  */
4037
4038 int
4039 main ()
4040 {
4041 #ifndef __GNUC__
4042        choke me
4043 #endif
4044
4045   ;
4046   return 0;
4047 }
4048 _ACEOF
4049 if ac_fn_c_try_compile "$LINENO"; then :
4050   ac_compiler_gnu=yes
4051 else
4052   ac_compiler_gnu=no
4053 fi
4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4056
4057 fi
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4059 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4060 if test $ac_compiler_gnu = yes; then
4061   GCC=yes
4062 else
4063   GCC=
4064 fi
4065 ac_test_CFLAGS=${CFLAGS+set}
4066 ac_save_CFLAGS=$CFLAGS
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4068 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4069 if test "${ac_cv_prog_cc_g+set}" = set; then :
4070   $as_echo_n "(cached) " >&6
4071 else
4072   ac_save_c_werror_flag=$ac_c_werror_flag
4073    ac_c_werror_flag=yes
4074    ac_cv_prog_cc_g=no
4075    CFLAGS="-g"
4076    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h.  */
4078
4079 int
4080 main ()
4081 {
4082
4083   ;
4084   return 0;
4085 }
4086 _ACEOF
4087 if ac_fn_c_try_compile "$LINENO"; then :
4088   ac_cv_prog_cc_g=yes
4089 else
4090   CFLAGS=""
4091       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h.  */
4093
4094 int
4095 main ()
4096 {
4097
4098   ;
4099   return 0;
4100 }
4101 _ACEOF
4102 if ac_fn_c_try_compile "$LINENO"; then :
4103
4104 else
4105   ac_c_werror_flag=$ac_save_c_werror_flag
4106          CFLAGS="-g"
4107          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h.  */
4109
4110 int
4111 main ()
4112 {
4113
4114   ;
4115   return 0;
4116 }
4117 _ACEOF
4118 if ac_fn_c_try_compile "$LINENO"; then :
4119   ac_cv_prog_cc_g=yes
4120 fi
4121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4122 fi
4123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 fi
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126    ac_c_werror_flag=$ac_save_c_werror_flag
4127 fi
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4129 $as_echo "$ac_cv_prog_cc_g" >&6; }
4130 if test "$ac_test_CFLAGS" = set; then
4131   CFLAGS=$ac_save_CFLAGS
4132 elif test $ac_cv_prog_cc_g = yes; then
4133   if test "$GCC" = yes; then
4134     CFLAGS="-g -O2"
4135   else
4136     CFLAGS="-g"
4137   fi
4138 else
4139   if test "$GCC" = yes; then
4140     CFLAGS="-O2"
4141   else
4142     CFLAGS=
4143   fi
4144 fi
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4146 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4147 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4148   $as_echo_n "(cached) " >&6
4149 else
4150   ac_cv_prog_cc_c89=no
4151 ac_save_CC=$CC
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h.  */
4154 #include <stdarg.h>
4155 #include <stdio.h>
4156 #include <sys/types.h>
4157 #include <sys/stat.h>
4158 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4159 struct buf { int x; };
4160 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4161 static char *e (p, i)
4162      char **p;
4163      int i;
4164 {
4165   return p[i];
4166 }
4167 static char *f (char * (*g) (char **, int), char **p, ...)
4168 {
4169   char *s;
4170   va_list v;
4171   va_start (v,p);
4172   s = g (p, va_arg (v,int));
4173   va_end (v);
4174   return s;
4175 }
4176
4177 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4178    function prototypes and stuff, but not '\xHH' hex character constants.
4179    These don't provoke an error unfortunately, instead are silently treated
4180    as 'x'.  The following induces an error, until -std is added to get
4181    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4182    array size at least.  It's necessary to write '\x00'==0 to get something
4183    that's true only with -std.  */
4184 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4185
4186 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4187    inside strings and character constants.  */
4188 #define FOO(x) 'x'
4189 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4190
4191 int test (int i, double x);
4192 struct s1 {int (*f) (int a);};
4193 struct s2 {int (*f) (double a);};
4194 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4195 int argc;
4196 char **argv;
4197 int
4198 main ()
4199 {
4200 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4201   ;
4202   return 0;
4203 }
4204 _ACEOF
4205 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4206         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4207 do
4208   CC="$ac_save_CC $ac_arg"
4209   if ac_fn_c_try_compile "$LINENO"; then :
4210   ac_cv_prog_cc_c89=$ac_arg
4211 fi
4212 rm -f core conftest.err conftest.$ac_objext
4213   test "x$ac_cv_prog_cc_c89" != "xno" && break
4214 done
4215 rm -f conftest.$ac_ext
4216 CC=$ac_save_CC
4217
4218 fi
4219 # AC_CACHE_VAL
4220 case "x$ac_cv_prog_cc_c89" in
4221   x)
4222     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4223 $as_echo "none needed" >&6; } ;;
4224   xno)
4225     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4226 $as_echo "unsupported" >&6; } ;;
4227   *)
4228     CC="$CC $ac_cv_prog_cc_c89"
4229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4230 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4231 esac
4232 if test "x$ac_cv_prog_cc_c89" != xno; then :
4233
4234 fi
4235
4236 ac_ext=c
4237 ac_cpp='$CPP $CPPFLAGS'
4238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4241
4242 if test "x$CC" != xcc; then
4243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4244 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4245 else
4246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4247 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4248 fi
4249 set dummy $CC; ac_cc=`$as_echo "$2" |
4250                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4251 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4252   $as_echo_n "(cached) " >&6
4253 else
4254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h.  */
4256
4257 int
4258 main ()
4259 {
4260
4261   ;
4262   return 0;
4263 }
4264 _ACEOF
4265 # Make sure it works both with $CC and with simple cc.
4266 # We do the test twice because some compilers refuse to overwrite an
4267 # existing .o file with -o, though they will create one.
4268 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4269 rm -f conftest2.*
4270 if { { case "(($ac_try" in
4271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272   *) ac_try_echo=$ac_try;;
4273 esac
4274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4275 $as_echo "$ac_try_echo"; } >&5
4276   (eval "$ac_try") 2>&5
4277   ac_status=$?
4278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4279   test $ac_status = 0; } &&
4280    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282   *) ac_try_echo=$ac_try;;
4283 esac
4284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4285 $as_echo "$ac_try_echo"; } >&5
4286   (eval "$ac_try") 2>&5
4287   ac_status=$?
4288   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4289   test $ac_status = 0; };
4290 then
4291   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4292   if test "x$CC" != xcc; then
4293     # Test first that cc exists at all.
4294     if { ac_try='cc -c conftest.$ac_ext >&5'
4295   { { case "(($ac_try" in
4296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297   *) ac_try_echo=$ac_try;;
4298 esac
4299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4300 $as_echo "$ac_try_echo"; } >&5
4301   (eval "$ac_try") 2>&5
4302   ac_status=$?
4303   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4304   test $ac_status = 0; }; }; then
4305       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4306       rm -f conftest2.*
4307       if { { case "(($ac_try" in
4308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309   *) ac_try_echo=$ac_try;;
4310 esac
4311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312 $as_echo "$ac_try_echo"; } >&5
4313   (eval "$ac_try") 2>&5
4314   ac_status=$?
4315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316   test $ac_status = 0; } &&
4317          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319   *) ac_try_echo=$ac_try;;
4320 esac
4321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4322 $as_echo "$ac_try_echo"; } >&5
4323   (eval "$ac_try") 2>&5
4324   ac_status=$?
4325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4326   test $ac_status = 0; };
4327       then
4328         # cc works too.
4329         :
4330       else
4331         # cc exists but doesn't like -o.
4332         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4333       fi
4334     fi
4335   fi
4336 else
4337   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4338 fi
4339 rm -f core conftest*
4340
4341 fi
4342 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4344 $as_echo "yes" >&6; }
4345 else
4346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347 $as_echo "no" >&6; }
4348
4349 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4350
4351 fi
4352
4353 # expand $ac_aux_dir to an absolute path
4354 am_aux_dir=`cd $ac_aux_dir && pwd`
4355
4356 # FIXME: we rely on the cache variable name because
4357 # there is no other way.
4358 set dummy $CC
4359 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4360 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4361 if test "$am_t" != yes; then
4362    # Losing compiler, so override with the script.
4363    # FIXME: It is wrong to rewrite CC.
4364    # But if we don't then we get into trouble of one sort or another.
4365    # A longer-term fix would be to have automake use am__CC in this case,
4366    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4367    CC="$am_aux_dir/compile $CC"
4368 fi
4369
4370
4371 ac_ext=cpp
4372 ac_cpp='$CXXCPP $CPPFLAGS'
4373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4376 if test -z "$CXX"; then
4377   if test -n "$CCC"; then
4378     CXX=$CCC
4379   else
4380     if test -n "$ac_tool_prefix"; then
4381   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4382   do
4383     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4384 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4386 $as_echo_n "checking for $ac_word... " >&6; }
4387 if test "${ac_cv_prog_CXX+set}" = set; then :
4388   $as_echo_n "(cached) " >&6
4389 else
4390   if test -n "$CXX"; then
4391   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4392 else
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4395 do
4396   IFS=$as_save_IFS
4397   test -z "$as_dir" && as_dir=.
4398     for ac_exec_ext in '' $ac_executable_extensions; do
4399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4400     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4402     break 2
4403   fi
4404 done
4405   done
4406 IFS=$as_save_IFS
4407
4408 fi
4409 fi
4410 CXX=$ac_cv_prog_CXX
4411 if test -n "$CXX"; then
4412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4413 $as_echo "$CXX" >&6; }
4414 else
4415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4417 fi
4418
4419
4420     test -n "$CXX" && break
4421   done
4422 fi
4423 if test -z "$CXX"; then
4424   ac_ct_CXX=$CXX
4425   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4426 do
4427   # Extract the first word of "$ac_prog", so it can be a program name with args.
4428 set dummy $ac_prog; ac_word=$2
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4430 $as_echo_n "checking for $ac_word... " >&6; }
4431 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4432   $as_echo_n "(cached) " >&6
4433 else
4434   if test -n "$ac_ct_CXX"; then
4435   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4436 else
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4439 do
4440   IFS=$as_save_IFS
4441   test -z "$as_dir" && as_dir=.
4442     for ac_exec_ext in '' $ac_executable_extensions; do
4443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444     ac_cv_prog_ac_ct_CXX="$ac_prog"
4445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4446     break 2
4447   fi
4448 done
4449   done
4450 IFS=$as_save_IFS
4451
4452 fi
4453 fi
4454 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4455 if test -n "$ac_ct_CXX"; then
4456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4457 $as_echo "$ac_ct_CXX" >&6; }
4458 else
4459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460 $as_echo "no" >&6; }
4461 fi
4462
4463
4464   test -n "$ac_ct_CXX" && break
4465 done
4466
4467   if test "x$ac_ct_CXX" = x; then
4468     CXX="g++"
4469   else
4470     case $cross_compiling:$ac_tool_warned in
4471 yes:)
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4474 ac_tool_warned=yes ;;
4475 esac
4476     CXX=$ac_ct_CXX
4477   fi
4478 fi
4479
4480   fi
4481 fi
4482 # Provide some information about the compiler.
4483 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4484 set X $ac_compile
4485 ac_compiler=$2
4486 for ac_option in --version -v -V -qversion; do
4487   { { ac_try="$ac_compiler $ac_option >&5"
4488 case "(($ac_try" in
4489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490   *) ac_try_echo=$ac_try;;
4491 esac
4492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4493 $as_echo "$ac_try_echo"; } >&5
4494   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4495   ac_status=$?
4496   if test -s conftest.err; then
4497     sed '10a\
4498 ... rest of stderr output deleted ...
4499          10q' conftest.err >conftest.er1
4500     cat conftest.er1 >&5
4501     rm -f conftest.er1 conftest.err
4502   fi
4503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504   test $ac_status = 0; }
4505 done
4506
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4508 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4509 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4510   $as_echo_n "(cached) " >&6
4511 else
4512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h.  */
4514
4515 int
4516 main ()
4517 {
4518 #ifndef __GNUC__
4519        choke me
4520 #endif
4521
4522   ;
4523   return 0;
4524 }
4525 _ACEOF
4526 if ac_fn_cxx_try_compile "$LINENO"; then :
4527   ac_compiler_gnu=yes
4528 else
4529   ac_compiler_gnu=no
4530 fi
4531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4532 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4533
4534 fi
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4536 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4537 if test $ac_compiler_gnu = yes; then
4538   GXX=yes
4539 else
4540   GXX=
4541 fi
4542 ac_test_CXXFLAGS=${CXXFLAGS+set}
4543 ac_save_CXXFLAGS=$CXXFLAGS
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4545 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4546 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4547   $as_echo_n "(cached) " >&6
4548 else
4549   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4550    ac_cxx_werror_flag=yes
4551    ac_cv_prog_cxx_g=no
4552    CXXFLAGS="-g"
4553    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h.  */
4555
4556 int
4557 main ()
4558 {
4559
4560   ;
4561   return 0;
4562 }
4563 _ACEOF
4564 if ac_fn_cxx_try_compile "$LINENO"; then :
4565   ac_cv_prog_cxx_g=yes
4566 else
4567   CXXFLAGS=""
4568       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h.  */
4570
4571 int
4572 main ()
4573 {
4574
4575   ;
4576   return 0;
4577 }
4578 _ACEOF
4579 if ac_fn_cxx_try_compile "$LINENO"; then :
4580
4581 else
4582   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4583          CXXFLAGS="-g"
4584          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h.  */
4586
4587 int
4588 main ()
4589 {
4590
4591   ;
4592   return 0;
4593 }
4594 _ACEOF
4595 if ac_fn_cxx_try_compile "$LINENO"; then :
4596   ac_cv_prog_cxx_g=yes
4597 fi
4598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599 fi
4600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4601 fi
4602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4604 fi
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4606 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4607 if test "$ac_test_CXXFLAGS" = set; then
4608   CXXFLAGS=$ac_save_CXXFLAGS
4609 elif test $ac_cv_prog_cxx_g = yes; then
4610   if test "$GXX" = yes; then
4611     CXXFLAGS="-g -O2"
4612   else
4613     CXXFLAGS="-g"
4614   fi
4615 else
4616   if test "$GXX" = yes; then
4617     CXXFLAGS="-O2"
4618   else
4619     CXXFLAGS=
4620   fi
4621 fi
4622 ac_ext=c
4623 ac_cpp='$CPP $CPPFLAGS'
4624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4627
4628
4629
4630
4631 if test -n "$ac_tool_prefix"; then
4632   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4633 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4637   $as_echo_n "(cached) " >&6
4638 else
4639   if test -n "$GNATBIND"; then
4640   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4641 else
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4644 do
4645   IFS=$as_save_IFS
4646   test -z "$as_dir" && as_dir=.
4647     for ac_exec_ext in '' $ac_executable_extensions; do
4648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651     break 2
4652   fi
4653 done
4654   done
4655 IFS=$as_save_IFS
4656
4657 fi
4658 fi
4659 GNATBIND=$ac_cv_prog_GNATBIND
4660 if test -n "$GNATBIND"; then
4661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4662 $as_echo "$GNATBIND" >&6; }
4663 else
4664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4666 fi
4667
4668
4669 fi
4670 if test -z "$ac_cv_prog_GNATBIND"; then
4671   ac_ct_GNATBIND=$GNATBIND
4672   # Extract the first word of "gnatbind", so it can be a program name with args.
4673 set dummy gnatbind; ac_word=$2
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675 $as_echo_n "checking for $ac_word... " >&6; }
4676 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4677   $as_echo_n "(cached) " >&6
4678 else
4679   if test -n "$ac_ct_GNATBIND"; then
4680   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4681 else
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4684 do
4685   IFS=$as_save_IFS
4686   test -z "$as_dir" && as_dir=.
4687     for ac_exec_ext in '' $ac_executable_extensions; do
4688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691     break 2
4692   fi
4693 done
4694   done
4695 IFS=$as_save_IFS
4696
4697 fi
4698 fi
4699 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4700 if test -n "$ac_ct_GNATBIND"; then
4701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4702 $as_echo "$ac_ct_GNATBIND" >&6; }
4703 else
4704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705 $as_echo "no" >&6; }
4706 fi
4707
4708   if test "x$ac_ct_GNATBIND" = x; then
4709     GNATBIND="no"
4710   else
4711     case $cross_compiling:$ac_tool_warned in
4712 yes:)
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4715 ac_tool_warned=yes ;;
4716 esac
4717     GNATBIND=$ac_ct_GNATBIND
4718   fi
4719 else
4720   GNATBIND="$ac_cv_prog_GNATBIND"
4721 fi
4722
4723 if test -n "$ac_tool_prefix"; then
4724   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4725 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727 $as_echo_n "checking for $ac_word... " >&6; }
4728 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4729   $as_echo_n "(cached) " >&6
4730 else
4731   if test -n "$GNATMAKE"; then
4732   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4733 else
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4736 do
4737   IFS=$as_save_IFS
4738   test -z "$as_dir" && as_dir=.
4739     for ac_exec_ext in '' $ac_executable_extensions; do
4740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4743     break 2
4744   fi
4745 done
4746   done
4747 IFS=$as_save_IFS
4748
4749 fi
4750 fi
4751 GNATMAKE=$ac_cv_prog_GNATMAKE
4752 if test -n "$GNATMAKE"; then
4753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4754 $as_echo "$GNATMAKE" >&6; }
4755 else
4756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4758 fi
4759
4760
4761 fi
4762 if test -z "$ac_cv_prog_GNATMAKE"; then
4763   ac_ct_GNATMAKE=$GNATMAKE
4764   # Extract the first word of "gnatmake", so it can be a program name with args.
4765 set dummy gnatmake; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4769   $as_echo_n "(cached) " >&6
4770 else
4771   if test -n "$ac_ct_GNATMAKE"; then
4772   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4773 else
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 for as_dir in $PATH
4776 do
4777   IFS=$as_save_IFS
4778   test -z "$as_dir" && as_dir=.
4779     for ac_exec_ext in '' $ac_executable_extensions; do
4780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4781     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783     break 2
4784   fi
4785 done
4786   done
4787 IFS=$as_save_IFS
4788
4789 fi
4790 fi
4791 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4792 if test -n "$ac_ct_GNATMAKE"; then
4793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4794 $as_echo "$ac_ct_GNATMAKE" >&6; }
4795 else
4796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4798 fi
4799
4800   if test "x$ac_ct_GNATMAKE" = x; then
4801     GNATMAKE="no"
4802   else
4803     case $cross_compiling:$ac_tool_warned in
4804 yes:)
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4807 ac_tool_warned=yes ;;
4808 esac
4809     GNATMAKE=$ac_ct_GNATMAKE
4810   fi
4811 else
4812   GNATMAKE="$ac_cv_prog_GNATMAKE"
4813 fi
4814
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4816 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4817 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4818   $as_echo_n "(cached) " >&6
4819 else
4820   cat >conftest.adb <<EOF
4821 procedure conftest is begin null; end conftest;
4822 EOF
4823 acx_cv_cc_gcc_supports_ada=no
4824 # There is a bug in old released versions of GCC which causes the
4825 # driver to exit successfully when the appropriate language module
4826 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4827 # Therefore we must check for the error message as well as an
4828 # unsuccessful exit.
4829 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4830 # given a .adb file, but produce no object file.  So we must check
4831 # if an object file was really produced to guard against this.
4832 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4833 if test x"$errors" = x && test -f conftest.$ac_objext; then
4834   acx_cv_cc_gcc_supports_ada=yes
4835 fi
4836 rm -f conftest.*
4837 fi
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4839 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4840
4841 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4842   have_gnat=yes
4843 else
4844   have_gnat=no
4845 fi
4846
4847
4848 # autoconf is lame and doesn't give us any substitution variable for this.
4849 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4850   NO_MINUS_C_MINUS_O=yes
4851 else
4852   OUTPUT_OPTION='-o $@'
4853 fi
4854
4855
4856
4857 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4858 # optimizations to be activated explicitly by the toplevel.
4859 case "$CC" in
4860   */prev-gcc/xgcc*) ;;
4861   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4862 esac
4863
4864
4865 # -------------------------
4866 # Check C compiler features
4867 # -------------------------
4868
4869
4870 ac_ext=c
4871 ac_cpp='$CPP $CPPFLAGS'
4872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4876 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4877 # On Suns, sometimes $CPP names a directory.
4878 if test -n "$CPP" && test -d "$CPP"; then
4879   CPP=
4880 fi
4881 if test -z "$CPP"; then
4882   if test "${ac_cv_prog_CPP+set}" = set; then :
4883   $as_echo_n "(cached) " >&6
4884 else
4885       # Double quotes because CPP needs to be expanded
4886     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4887     do
4888       ac_preproc_ok=false
4889 for ac_c_preproc_warn_flag in '' yes
4890 do
4891   # Use a header file that comes with gcc, so configuring glibc
4892   # with a fresh cross-compiler works.
4893   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4894   # <limits.h> exists even on freestanding compilers.
4895   # On the NeXT, cc -E runs the code through the compiler's parser,
4896   # not just through cpp. "Syntax error" is here to catch this case.
4897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898 /* end confdefs.h.  */
4899 #ifdef __STDC__
4900 # include <limits.h>
4901 #else
4902 # include <assert.h>
4903 #endif
4904                      Syntax error
4905 _ACEOF
4906 if ac_fn_c_try_cpp "$LINENO"; then :
4907
4908 else
4909   # Broken: fails on valid input.
4910 continue
4911 fi
4912 rm -f conftest.err conftest.$ac_ext
4913
4914   # OK, works on sane cases.  Now check whether nonexistent headers
4915   # can be detected and how.
4916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h.  */
4918 #include <ac_nonexistent.h>
4919 _ACEOF
4920 if ac_fn_c_try_cpp "$LINENO"; then :
4921   # Broken: success on invalid input.
4922 continue
4923 else
4924   # Passes both tests.
4925 ac_preproc_ok=:
4926 break
4927 fi
4928 rm -f conftest.err conftest.$ac_ext
4929
4930 done
4931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4932 rm -f conftest.err conftest.$ac_ext
4933 if $ac_preproc_ok; then :
4934   break
4935 fi
4936
4937     done
4938     ac_cv_prog_CPP=$CPP
4939
4940 fi
4941   CPP=$ac_cv_prog_CPP
4942 else
4943   ac_cv_prog_CPP=$CPP
4944 fi
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4946 $as_echo "$CPP" >&6; }
4947 ac_preproc_ok=false
4948 for ac_c_preproc_warn_flag in '' yes
4949 do
4950   # Use a header file that comes with gcc, so configuring glibc
4951   # with a fresh cross-compiler works.
4952   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4953   # <limits.h> exists even on freestanding compilers.
4954   # On the NeXT, cc -E runs the code through the compiler's parser,
4955   # not just through cpp. "Syntax error" is here to catch this case.
4956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h.  */
4958 #ifdef __STDC__
4959 # include <limits.h>
4960 #else
4961 # include <assert.h>
4962 #endif
4963                      Syntax error
4964 _ACEOF
4965 if ac_fn_c_try_cpp "$LINENO"; then :
4966
4967 else
4968   # Broken: fails on valid input.
4969 continue
4970 fi
4971 rm -f conftest.err conftest.$ac_ext
4972
4973   # OK, works on sane cases.  Now check whether nonexistent headers
4974   # can be detected and how.
4975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976 /* end confdefs.h.  */
4977 #include <ac_nonexistent.h>
4978 _ACEOF
4979 if ac_fn_c_try_cpp "$LINENO"; then :
4980   # Broken: success on invalid input.
4981 continue
4982 else
4983   # Passes both tests.
4984 ac_preproc_ok=:
4985 break
4986 fi
4987 rm -f conftest.err conftest.$ac_ext
4988
4989 done
4990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4991 rm -f conftest.err conftest.$ac_ext
4992 if $ac_preproc_ok; then :
4993
4994 else
4995   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4997 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4998 See \`config.log' for more details." "$LINENO" 5; }
4999 fi
5000
5001 ac_ext=c
5002 ac_cpp='$CPP $CPPFLAGS'
5003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5006
5007
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5009 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5010 if test "${ac_cv_path_GREP+set}" = set; then :
5011   $as_echo_n "(cached) " >&6
5012 else
5013   if test -z "$GREP"; then
5014   ac_path_GREP_found=false
5015   # Loop through the user's path and test for each of PROGNAME-LIST
5016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5018 do
5019   IFS=$as_save_IFS
5020   test -z "$as_dir" && as_dir=.
5021     for ac_prog in grep ggrep; do
5022     for ac_exec_ext in '' $ac_executable_extensions; do
5023       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5024       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5025 # Check for GNU ac_path_GREP and select it if it is found.
5026   # Check for GNU $ac_path_GREP
5027 case `"$ac_path_GREP" --version 2>&1` in
5028 *GNU*)
5029   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5030 *)
5031   ac_count=0
5032   $as_echo_n 0123456789 >"conftest.in"
5033   while :
5034   do
5035     cat "conftest.in" "conftest.in" >"conftest.tmp"
5036     mv "conftest.tmp" "conftest.in"
5037     cp "conftest.in" "conftest.nl"
5038     $as_echo 'GREP' >> "conftest.nl"
5039     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5040     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5041     as_fn_arith $ac_count + 1 && ac_count=$as_val
5042     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5043       # Best one so far, save it but keep looking for a better one
5044       ac_cv_path_GREP="$ac_path_GREP"
5045       ac_path_GREP_max=$ac_count
5046     fi
5047     # 10*(2^10) chars as input seems more than enough
5048     test $ac_count -gt 10 && break
5049   done
5050   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5051 esac
5052
5053       $ac_path_GREP_found && break 3
5054     done
5055   done
5056   done
5057 IFS=$as_save_IFS
5058   if test -z "$ac_cv_path_GREP"; then
5059     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5060   fi
5061 else
5062   ac_cv_path_GREP=$GREP
5063 fi
5064
5065 fi
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5067 $as_echo "$ac_cv_path_GREP" >&6; }
5068  GREP="$ac_cv_path_GREP"
5069
5070
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5072 $as_echo_n "checking for egrep... " >&6; }
5073 if test "${ac_cv_path_EGREP+set}" = set; then :
5074   $as_echo_n "(cached) " >&6
5075 else
5076   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5077    then ac_cv_path_EGREP="$GREP -E"
5078    else
5079      if test -z "$EGREP"; then
5080   ac_path_EGREP_found=false
5081   # Loop through the user's path and test for each of PROGNAME-LIST
5082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5084 do
5085   IFS=$as_save_IFS
5086   test -z "$as_dir" && as_dir=.
5087     for ac_prog in egrep; do
5088     for ac_exec_ext in '' $ac_executable_extensions; do
5089       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5090       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5091 # Check for GNU ac_path_EGREP and select it if it is found.
5092   # Check for GNU $ac_path_EGREP
5093 case `"$ac_path_EGREP" --version 2>&1` in
5094 *GNU*)
5095   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5096 *)
5097   ac_count=0
5098   $as_echo_n 0123456789 >"conftest.in"
5099   while :
5100   do
5101     cat "conftest.in" "conftest.in" >"conftest.tmp"
5102     mv "conftest.tmp" "conftest.in"
5103     cp "conftest.in" "conftest.nl"
5104     $as_echo 'EGREP' >> "conftest.nl"
5105     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5106     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5107     as_fn_arith $ac_count + 1 && ac_count=$as_val
5108     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5109       # Best one so far, save it but keep looking for a better one
5110       ac_cv_path_EGREP="$ac_path_EGREP"
5111       ac_path_EGREP_max=$ac_count
5112     fi
5113     # 10*(2^10) chars as input seems more than enough
5114     test $ac_count -gt 10 && break
5115   done
5116   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5117 esac
5118
5119       $ac_path_EGREP_found && break 3
5120     done
5121   done
5122   done
5123 IFS=$as_save_IFS
5124   if test -z "$ac_cv_path_EGREP"; then
5125     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5126   fi
5127 else
5128   ac_cv_path_EGREP=$EGREP
5129 fi
5130
5131    fi
5132 fi
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5134 $as_echo "$ac_cv_path_EGREP" >&6; }
5135  EGREP="$ac_cv_path_EGREP"
5136
5137
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5139 $as_echo_n "checking for ANSI C header files... " >&6; }
5140 if test "${ac_cv_header_stdc+set}" = set; then :
5141   $as_echo_n "(cached) " >&6
5142 else
5143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144 /* end confdefs.h.  */
5145 #include <stdlib.h>
5146 #include <stdarg.h>
5147 #include <string.h>
5148 #include <float.h>
5149
5150 int
5151 main ()
5152 {
5153
5154   ;
5155   return 0;
5156 }
5157 _ACEOF
5158 if ac_fn_c_try_compile "$LINENO"; then :
5159   ac_cv_header_stdc=yes
5160 else
5161   ac_cv_header_stdc=no
5162 fi
5163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5164
5165 if test $ac_cv_header_stdc = yes; then
5166   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168 /* end confdefs.h.  */
5169 #include <string.h>
5170
5171 _ACEOF
5172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5173   $EGREP "memchr" >/dev/null 2>&1; then :
5174
5175 else
5176   ac_cv_header_stdc=no
5177 fi
5178 rm -f conftest*
5179
5180 fi
5181
5182 if test $ac_cv_header_stdc = yes; then
5183   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h.  */
5186 #include <stdlib.h>
5187
5188 _ACEOF
5189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5190   $EGREP "free" >/dev/null 2>&1; then :
5191
5192 else
5193   ac_cv_header_stdc=no
5194 fi
5195 rm -f conftest*
5196
5197 fi
5198
5199 if test $ac_cv_header_stdc = yes; then
5200   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5201   if test "$cross_compiling" = yes; then :
5202   :
5203 else
5204   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5205 /* end confdefs.h.  */
5206 #include <ctype.h>
5207 #include <stdlib.h>
5208 #if ((' ' & 0x0FF) == 0x020)
5209 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5210 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5211 #else
5212 # define ISLOWER(c) \
5213                    (('a' <= (c) && (c) <= 'i') \
5214                      || ('j' <= (c) && (c) <= 'r') \
5215                      || ('s' <= (c) && (c) <= 'z'))
5216 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5217 #endif
5218
5219 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5220 int
5221 main ()
5222 {
5223   int i;
5224   for (i = 0; i < 256; i++)
5225     if (XOR (islower (i), ISLOWER (i))
5226         || toupper (i) != TOUPPER (i))
5227       return 2;
5228   return 0;
5229 }
5230 _ACEOF
5231 if ac_fn_c_try_run "$LINENO"; then :
5232
5233 else
5234   ac_cv_header_stdc=no
5235 fi
5236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5237   conftest.$ac_objext conftest.beam conftest.$ac_ext
5238 fi
5239
5240 fi
5241 fi
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5243 $as_echo "$ac_cv_header_stdc" >&6; }
5244 if test $ac_cv_header_stdc = yes; then
5245
5246 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5247
5248 fi
5249
5250 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5251 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5252                   inttypes.h stdint.h unistd.h
5253 do :
5254   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5255 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5256 "
5257 eval as_val=\$$as_ac_Header
5258    if test "x$as_val" = x""yes; then :
5259   cat >>confdefs.h <<_ACEOF
5260 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5261 _ACEOF
5262
5263 fi
5264
5265 done
5266
5267
5268
5269   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5270 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5271   MINIX=yes
5272 else
5273   MINIX=
5274 fi
5275
5276
5277   if test "$MINIX" = yes; then
5278
5279 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5280
5281
5282 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5283
5284
5285 $as_echo "#define _MINIX 1" >>confdefs.h
5286
5287   fi
5288
5289
5290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5291 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5292 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5293   $as_echo_n "(cached) " >&6
5294 else
5295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h.  */
5297
5298 #         define __EXTENSIONS__ 1
5299           $ac_includes_default
5300 int
5301 main ()
5302 {
5303
5304   ;
5305   return 0;
5306 }
5307 _ACEOF
5308 if ac_fn_c_try_compile "$LINENO"; then :
5309   ac_cv_safe_to_define___extensions__=yes
5310 else
5311   ac_cv_safe_to_define___extensions__=no
5312 fi
5313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 fi
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5316 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5317   test $ac_cv_safe_to_define___extensions__ = yes &&
5318     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5319
5320   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5321
5322   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5323
5324   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5325
5326   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5327
5328
5329 ac_ext=c
5330 ac_cpp='$CPP $CPPFLAGS'
5331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5335 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5336 # On Suns, sometimes $CPP names a directory.
5337 if test -n "$CPP" && test -d "$CPP"; then
5338   CPP=
5339 fi
5340 if test -z "$CPP"; then
5341   if test "${ac_cv_prog_CPP+set}" = set; then :
5342   $as_echo_n "(cached) " >&6
5343 else
5344       # Double quotes because CPP needs to be expanded
5345     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5346     do
5347       ac_preproc_ok=false
5348 for ac_c_preproc_warn_flag in '' yes
5349 do
5350   # Use a header file that comes with gcc, so configuring glibc
5351   # with a fresh cross-compiler works.
5352   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5353   # <limits.h> exists even on freestanding compilers.
5354   # On the NeXT, cc -E runs the code through the compiler's parser,
5355   # not just through cpp. "Syntax error" is here to catch this case.
5356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h.  */
5358 #ifdef __STDC__
5359 # include <limits.h>
5360 #else
5361 # include <assert.h>
5362 #endif
5363                      Syntax error
5364 _ACEOF
5365 if ac_fn_c_try_cpp "$LINENO"; then :
5366
5367 else
5368   # Broken: fails on valid input.
5369 continue
5370 fi
5371 rm -f conftest.err conftest.$ac_ext
5372
5373   # OK, works on sane cases.  Now check whether nonexistent headers
5374   # can be detected and how.
5375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h.  */
5377 #include <ac_nonexistent.h>
5378 _ACEOF
5379 if ac_fn_c_try_cpp "$LINENO"; then :
5380   # Broken: success on invalid input.
5381 continue
5382 else
5383   # Passes both tests.
5384 ac_preproc_ok=:
5385 break
5386 fi
5387 rm -f conftest.err conftest.$ac_ext
5388
5389 done
5390 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5391 rm -f conftest.err conftest.$ac_ext
5392 if $ac_preproc_ok; then :
5393   break
5394 fi
5395
5396     done
5397     ac_cv_prog_CPP=$CPP
5398
5399 fi
5400   CPP=$ac_cv_prog_CPP
5401 else
5402   ac_cv_prog_CPP=$CPP
5403 fi
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5405 $as_echo "$CPP" >&6; }
5406 ac_preproc_ok=false
5407 for ac_c_preproc_warn_flag in '' yes
5408 do
5409   # Use a header file that comes with gcc, so configuring glibc
5410   # with a fresh cross-compiler works.
5411   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5412   # <limits.h> exists even on freestanding compilers.
5413   # On the NeXT, cc -E runs the code through the compiler's parser,
5414   # not just through cpp. "Syntax error" is here to catch this case.
5415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h.  */
5417 #ifdef __STDC__
5418 # include <limits.h>
5419 #else
5420 # include <assert.h>
5421 #endif
5422                      Syntax error
5423 _ACEOF
5424 if ac_fn_c_try_cpp "$LINENO"; then :
5425
5426 else
5427   # Broken: fails on valid input.
5428 continue
5429 fi
5430 rm -f conftest.err conftest.$ac_ext
5431
5432   # OK, works on sane cases.  Now check whether nonexistent headers
5433   # can be detected and how.
5434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h.  */
5436 #include <ac_nonexistent.h>
5437 _ACEOF
5438 if ac_fn_c_try_cpp "$LINENO"; then :
5439   # Broken: success on invalid input.
5440 continue
5441 else
5442   # Passes both tests.
5443 ac_preproc_ok=:
5444 break
5445 fi
5446 rm -f conftest.err conftest.$ac_ext
5447
5448 done
5449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5450 rm -f conftest.err conftest.$ac_ext
5451 if $ac_preproc_ok; then :
5452
5453 else
5454   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5456 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5457 See \`config.log' for more details." "$LINENO" 5; }
5458 fi
5459
5460 ac_ext=c
5461 ac_cpp='$CPP $CPPFLAGS'
5462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5465
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5467 $as_echo_n "checking for inline... " >&6; }
5468 if test "${ac_cv_c_inline+set}" = set; then :
5469   $as_echo_n "(cached) " >&6
5470 else
5471   ac_cv_c_inline=no
5472 for ac_kw in inline __inline__ __inline; do
5473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h.  */
5475 #ifndef __cplusplus
5476 typedef int foo_t;
5477 static $ac_kw foo_t static_foo () {return 0; }
5478 $ac_kw foo_t foo () {return 0; }
5479 #endif
5480
5481 _ACEOF
5482 if ac_fn_c_try_compile "$LINENO"; then :
5483   ac_cv_c_inline=$ac_kw
5484 fi
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486   test "$ac_cv_c_inline" != no && break
5487 done
5488
5489 fi
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5491 $as_echo "$ac_cv_c_inline" >&6; }
5492
5493 case $ac_cv_c_inline in
5494   inline | yes) ;;
5495   *)
5496     case $ac_cv_c_inline in
5497       no) ac_val=;;
5498       *) ac_val=$ac_cv_c_inline;;
5499     esac
5500     cat >>confdefs.h <<_ACEOF
5501 #ifndef __cplusplus
5502 #define inline $ac_val
5503 #endif
5504 _ACEOF
5505     ;;
5506 esac
5507
5508
5509 # Check whether --enable-largefile was given.
5510 if test "${enable_largefile+set}" = set; then :
5511   enableval=$enable_largefile;
5512 fi
5513
5514 if test "$enable_largefile" != no; then
5515
5516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5517 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5518 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5519   $as_echo_n "(cached) " >&6
5520 else
5521   ac_cv_sys_largefile_CC=no
5522      if test "$GCC" != yes; then
5523        ac_save_CC=$CC
5524        while :; do
5525          # IRIX 6.2 and later do not support large files by default,
5526          # so use the C compiler's -n32 option if that helps.
5527          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h.  */
5529 #include <sys/types.h>
5530  /* Check that off_t can represent 2**63 - 1 correctly.
5531     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5532     since some C++ compilers masquerading as C compilers
5533     incorrectly reject 9223372036854775807.  */
5534 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5535   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5536                        && LARGE_OFF_T % 2147483647 == 1)
5537                       ? 1 : -1];
5538 int
5539 main ()
5540 {
5541
5542   ;
5543   return 0;
5544 }
5545 _ACEOF
5546          if ac_fn_c_try_compile "$LINENO"; then :
5547   break
5548 fi
5549 rm -f core conftest.err conftest.$ac_objext
5550          CC="$CC -n32"
5551          if ac_fn_c_try_compile "$LINENO"; then :
5552   ac_cv_sys_largefile_CC=' -n32'; break
5553 fi
5554 rm -f core conftest.err conftest.$ac_objext
5555          break
5556        done
5557        CC=$ac_save_CC
5558        rm -f conftest.$ac_ext
5559     fi
5560 fi
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5562 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5563   if test "$ac_cv_sys_largefile_CC" != no; then
5564     CC=$CC$ac_cv_sys_largefile_CC
5565   fi
5566
5567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5568 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5569 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5570   $as_echo_n "(cached) " >&6
5571 else
5572   while :; do
5573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h.  */
5575 #include <sys/types.h>
5576  /* Check that off_t can represent 2**63 - 1 correctly.
5577     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5578     since some C++ compilers masquerading as C compilers
5579     incorrectly reject 9223372036854775807.  */
5580 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5581   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5582                        && LARGE_OFF_T % 2147483647 == 1)
5583                       ? 1 : -1];
5584 int
5585 main ()
5586 {
5587
5588   ;
5589   return 0;
5590 }
5591 _ACEOF
5592 if ac_fn_c_try_compile "$LINENO"; then :
5593   ac_cv_sys_file_offset_bits=no; break
5594 fi
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h.  */
5598 #define _FILE_OFFSET_BITS 64
5599 #include <sys/types.h>
5600  /* Check that off_t can represent 2**63 - 1 correctly.
5601     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5602     since some C++ compilers masquerading as C compilers
5603     incorrectly reject 9223372036854775807.  */
5604 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5605   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5606                        && LARGE_OFF_T % 2147483647 == 1)
5607                       ? 1 : -1];
5608 int
5609 main ()
5610 {
5611
5612   ;
5613   return 0;
5614 }
5615 _ACEOF
5616 if ac_fn_c_try_compile "$LINENO"; then :
5617   ac_cv_sys_file_offset_bits=64; break
5618 fi
5619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620   ac_cv_sys_file_offset_bits=unknown
5621   break
5622 done
5623 fi
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5625 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5626 case $ac_cv_sys_file_offset_bits in #(
5627   no | unknown) ;;
5628   *)
5629 cat >>confdefs.h <<_ACEOF
5630 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5631 _ACEOF
5632 ;;
5633 esac
5634 rm -rf conftest*
5635   if test $ac_cv_sys_file_offset_bits = unknown; then
5636     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5637 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5638 if test "${ac_cv_sys_large_files+set}" = set; then :
5639   $as_echo_n "(cached) " >&6
5640 else
5641   while :; do
5642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h.  */
5644 #include <sys/types.h>
5645  /* Check that off_t can represent 2**63 - 1 correctly.
5646     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5647     since some C++ compilers masquerading as C compilers
5648     incorrectly reject 9223372036854775807.  */
5649 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5650   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5651                        && LARGE_OFF_T % 2147483647 == 1)
5652                       ? 1 : -1];
5653 int
5654 main ()
5655 {
5656
5657   ;
5658   return 0;
5659 }
5660 _ACEOF
5661 if ac_fn_c_try_compile "$LINENO"; then :
5662   ac_cv_sys_large_files=no; break
5663 fi
5664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h.  */
5667 #define _LARGE_FILES 1
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_large_files=1; break
5687 fi
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689   ac_cv_sys_large_files=unknown
5690   break
5691 done
5692 fi
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5694 $as_echo "$ac_cv_sys_large_files" >&6; }
5695 case $ac_cv_sys_large_files in #(
5696   no | unknown) ;;
5697   *)
5698 cat >>confdefs.h <<_ACEOF
5699 #define _LARGE_FILES $ac_cv_sys_large_files
5700 _ACEOF
5701 ;;
5702 esac
5703 rm -rf conftest*
5704   fi
5705 fi
5706
5707
5708 # sizeof(char) is 1 by definition.
5709 # The cast to long int works around a bug in the HP C Compiler
5710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5711 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5712 # This bug is HP SR number 8606223364.
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5714 $as_echo_n "checking size of void *... " >&6; }
5715 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5716   $as_echo_n "(cached) " >&6
5717 else
5718   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5719
5720 else
5721   if test "$ac_cv_type_void_p" = yes; then
5722      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5724 { as_fn_set_status 77
5725 as_fn_error "cannot compute sizeof (void *)
5726 See \`config.log' for more details." "$LINENO" 5; }; }
5727    else
5728      ac_cv_sizeof_void_p=0
5729    fi
5730 fi
5731
5732 fi
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5734 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5735
5736
5737
5738 cat >>confdefs.h <<_ACEOF
5739 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5740 _ACEOF
5741
5742
5743 # The cast to long int works around a bug in the HP C Compiler
5744 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5745 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5746 # This bug is HP SR number 8606223364.
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5748 $as_echo_n "checking size of short... " >&6; }
5749 if test "${ac_cv_sizeof_short+set}" = set; then :
5750   $as_echo_n "(cached) " >&6
5751 else
5752   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5753
5754 else
5755   if test "$ac_cv_type_short" = yes; then
5756      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5758 { as_fn_set_status 77
5759 as_fn_error "cannot compute sizeof (short)
5760 See \`config.log' for more details." "$LINENO" 5; }; }
5761    else
5762      ac_cv_sizeof_short=0
5763    fi
5764 fi
5765
5766 fi
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5768 $as_echo "$ac_cv_sizeof_short" >&6; }
5769
5770
5771
5772 cat >>confdefs.h <<_ACEOF
5773 #define SIZEOF_SHORT $ac_cv_sizeof_short
5774 _ACEOF
5775
5776
5777 # The cast to long int works around a bug in the HP C Compiler
5778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5780 # This bug is HP SR number 8606223364.
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5782 $as_echo_n "checking size of int... " >&6; }
5783 if test "${ac_cv_sizeof_int+set}" = set; then :
5784   $as_echo_n "(cached) " >&6
5785 else
5786   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5787
5788 else
5789   if test "$ac_cv_type_int" = yes; then
5790      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5792 { as_fn_set_status 77
5793 as_fn_error "cannot compute sizeof (int)
5794 See \`config.log' for more details." "$LINENO" 5; }; }
5795    else
5796      ac_cv_sizeof_int=0
5797    fi
5798 fi
5799
5800 fi
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5802 $as_echo "$ac_cv_sizeof_int" >&6; }
5803
5804
5805
5806 cat >>confdefs.h <<_ACEOF
5807 #define SIZEOF_INT $ac_cv_sizeof_int
5808 _ACEOF
5809
5810
5811 # The cast to long int works around a bug in the HP C Compiler
5812 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5813 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5814 # This bug is HP SR number 8606223364.
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5816 $as_echo_n "checking size of long... " >&6; }
5817 if test "${ac_cv_sizeof_long+set}" = set; then :
5818   $as_echo_n "(cached) " >&6
5819 else
5820   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5821
5822 else
5823   if test "$ac_cv_type_long" = yes; then
5824      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5826 { as_fn_set_status 77
5827 as_fn_error "cannot compute sizeof (long)
5828 See \`config.log' for more details." "$LINENO" 5; }; }
5829    else
5830      ac_cv_sizeof_long=0
5831    fi
5832 fi
5833
5834 fi
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5836 $as_echo "$ac_cv_sizeof_long" >&6; }
5837
5838
5839
5840 cat >>confdefs.h <<_ACEOF
5841 #define SIZEOF_LONG $ac_cv_sizeof_long
5842 _ACEOF
5843
5844
5845 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5846 if test "x$ac_cv_type_long_long" = x""yes; then :
5847
5848 cat >>confdefs.h <<_ACEOF
5849 #define HAVE_LONG_LONG 1
5850 _ACEOF
5851
5852 # The cast to long int works around a bug in the HP C Compiler
5853 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5854 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5855 # This bug is HP SR number 8606223364.
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5857 $as_echo_n "checking size of long long... " >&6; }
5858 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5859   $as_echo_n "(cached) " >&6
5860 else
5861   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5862
5863 else
5864   if test "$ac_cv_type_long_long" = yes; then
5865      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5867 { as_fn_set_status 77
5868 as_fn_error "cannot compute sizeof (long long)
5869 See \`config.log' for more details." "$LINENO" 5; }; }
5870    else
5871      ac_cv_sizeof_long_long=0
5872    fi
5873 fi
5874
5875 fi
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5877 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5878
5879
5880
5881 cat >>confdefs.h <<_ACEOF
5882 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5883 _ACEOF
5884
5885
5886 fi
5887
5888 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5889 if test "x$ac_cv_type___int64" = x""yes; then :
5890
5891 cat >>confdefs.h <<_ACEOF
5892 #define HAVE___INT64 1
5893 _ACEOF
5894
5895 # The cast to long int works around a bug in the HP C Compiler
5896 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5897 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5898 # This bug is HP SR number 8606223364.
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5900 $as_echo_n "checking size of __int64... " >&6; }
5901 if test "${ac_cv_sizeof___int64+set}" = set; then :
5902   $as_echo_n "(cached) " >&6
5903 else
5904   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5905
5906 else
5907   if test "$ac_cv_type___int64" = yes; then
5908      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5910 { as_fn_set_status 77
5911 as_fn_error "cannot compute sizeof (__int64)
5912 See \`config.log' for more details." "$LINENO" 5; }; }
5913    else
5914      ac_cv_sizeof___int64=0
5915    fi
5916 fi
5917
5918 fi
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5920 $as_echo "$ac_cv_sizeof___int64" >&6; }
5921
5922
5923
5924 cat >>confdefs.h <<_ACEOF
5925 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5926 _ACEOF
5927
5928
5929 fi
5930
5931 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5932 case $ac_cv_c_int8_t in #(
5933   no|yes) ;; #(
5934   *)
5935
5936 cat >>confdefs.h <<_ACEOF
5937 #define int8_t $ac_cv_c_int8_t
5938 _ACEOF
5939 ;;
5940 esac
5941
5942 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5943 case $ac_cv_c_int16_t in #(
5944   no|yes) ;; #(
5945   *)
5946
5947 cat >>confdefs.h <<_ACEOF
5948 #define int16_t $ac_cv_c_int16_t
5949 _ACEOF
5950 ;;
5951 esac
5952
5953 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5954 case $ac_cv_c_int32_t in #(
5955   no|yes) ;; #(
5956   *)
5957
5958 cat >>confdefs.h <<_ACEOF
5959 #define int32_t $ac_cv_c_int32_t
5960 _ACEOF
5961 ;;
5962 esac
5963
5964 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5965 case $ac_cv_c_int64_t in #(
5966   no|yes) ;; #(
5967   *)
5968
5969 cat >>confdefs.h <<_ACEOF
5970 #define int64_t $ac_cv_c_int64_t
5971 _ACEOF
5972 ;;
5973 esac
5974
5975
5976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5977 $as_echo_n "checking for long long int... " >&6; }
5978 if test "${ac_cv_type_long_long_int+set}" = set; then :
5979   $as_echo_n "(cached) " >&6
5980 else
5981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h.  */
5983
5984   /* For now, do not test the preprocessor; as of 2007 there are too many
5985          implementations with broken preprocessors.  Perhaps this can
5986          be revisited in 2012.  In the meantime, code should not expect
5987          #if to work with literals wider than 32 bits.  */
5988       /* Test literals.  */
5989       long long int ll = 9223372036854775807ll;
5990       long long int nll = -9223372036854775807LL;
5991       unsigned long long int ull = 18446744073709551615ULL;
5992       /* Test constant expressions.   */
5993       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5994                      ? 1 : -1)];
5995       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5996                      ? 1 : -1)];
5997       int i = 63;
5998 int
5999 main ()
6000 {
6001 /* Test availability of runtime routines for shift and division.  */
6002       long long int llmax = 9223372036854775807ll;
6003       unsigned long long int ullmax = 18446744073709551615ull;
6004       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6005               | (llmax / ll) | (llmax % ll)
6006               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6007               | (ullmax / ull) | (ullmax % ull));
6008   ;
6009   return 0;
6010 }
6011
6012 _ACEOF
6013 if ac_fn_c_try_link "$LINENO"; then :
6014                         if test "$cross_compiling" = yes; then :
6015   ac_cv_type_long_long_int=yes
6016 else
6017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h.  */
6019 #include <limits.h>
6020                #ifndef LLONG_MAX
6021                # define HALF \
6022                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6023                # define LLONG_MAX (HALF - 1 + HALF)
6024                #endif
6025 int
6026 main ()
6027 {
6028 long long int n = 1;
6029                int i;
6030                for (i = 0; ; i++)
6031                  {
6032                    long long int m = n << i;
6033                    if (m >> i != n)
6034                      return 1;
6035                    if (LLONG_MAX / 2 < m)
6036                      break;
6037                  }
6038                return 0;
6039   ;
6040   return 0;
6041 }
6042 _ACEOF
6043 if ac_fn_c_try_run "$LINENO"; then :
6044   ac_cv_type_long_long_int=yes
6045 else
6046   ac_cv_type_long_long_int=no
6047 fi
6048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6049   conftest.$ac_objext conftest.beam conftest.$ac_ext
6050 fi
6051
6052 else
6053   ac_cv_type_long_long_int=no
6054 fi
6055 rm -f core conftest.err conftest.$ac_objext \
6056     conftest$ac_exeext conftest.$ac_ext
6057 fi
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6059 $as_echo "$ac_cv_type_long_long_int" >&6; }
6060   if test $ac_cv_type_long_long_int = yes; then
6061
6062 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6063
6064   fi
6065
6066
6067
6068   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6069 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6070
6071 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6072
6073 else
6074   test $ac_cv_type_long_long_int = yes \
6075        && ac_type='long long int' \
6076        || ac_type='long int'
6077
6078 cat >>confdefs.h <<_ACEOF
6079 #define intmax_t $ac_type
6080 _ACEOF
6081
6082 fi
6083
6084
6085
6086   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6087 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6088
6089 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6090
6091 else
6092   for ac_type in 'int' 'long int' 'long long int'; do
6093        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094 /* end confdefs.h.  */
6095 $ac_includes_default
6096 int
6097 main ()
6098 {
6099 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6100 test_array [0] = 0
6101
6102   ;
6103   return 0;
6104 }
6105 _ACEOF
6106 if ac_fn_c_try_compile "$LINENO"; then :
6107
6108 cat >>confdefs.h <<_ACEOF
6109 #define intptr_t $ac_type
6110 _ACEOF
6111
6112           ac_type=
6113 fi
6114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6115        test -z "$ac_type" && break
6116      done
6117 fi
6118
6119
6120 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6121 case $ac_cv_c_uint8_t in #(
6122   no|yes) ;; #(
6123   *)
6124
6125 $as_echo "#define _UINT8_T 1" >>confdefs.h
6126
6127
6128 cat >>confdefs.h <<_ACEOF
6129 #define uint8_t $ac_cv_c_uint8_t
6130 _ACEOF
6131 ;;
6132   esac
6133
6134 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6135 case $ac_cv_c_uint16_t in #(
6136   no|yes) ;; #(
6137   *)
6138
6139
6140 cat >>confdefs.h <<_ACEOF
6141 #define uint16_t $ac_cv_c_uint16_t
6142 _ACEOF
6143 ;;
6144   esac
6145
6146 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6147 case $ac_cv_c_uint32_t in #(
6148   no|yes) ;; #(
6149   *)
6150
6151 $as_echo "#define _UINT32_T 1" >>confdefs.h
6152
6153
6154 cat >>confdefs.h <<_ACEOF
6155 #define uint32_t $ac_cv_c_uint32_t
6156 _ACEOF
6157 ;;
6158   esac
6159
6160 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6161 case $ac_cv_c_uint64_t in #(
6162   no|yes) ;; #(
6163   *)
6164
6165 $as_echo "#define _UINT64_T 1" >>confdefs.h
6166
6167
6168 cat >>confdefs.h <<_ACEOF
6169 #define uint64_t $ac_cv_c_uint64_t
6170 _ACEOF
6171 ;;
6172   esac
6173
6174
6175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6176 $as_echo_n "checking for unsigned long long int... " >&6; }
6177 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6178   $as_echo_n "(cached) " >&6
6179 else
6180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h.  */
6182
6183   /* For now, do not test the preprocessor; as of 2007 there are too many
6184          implementations with broken preprocessors.  Perhaps this can
6185          be revisited in 2012.  In the meantime, code should not expect
6186          #if to work with literals wider than 32 bits.  */
6187       /* Test literals.  */
6188       long long int ll = 9223372036854775807ll;
6189       long long int nll = -9223372036854775807LL;
6190       unsigned long long int ull = 18446744073709551615ULL;
6191       /* Test constant expressions.   */
6192       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6193                      ? 1 : -1)];
6194       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6195                      ? 1 : -1)];
6196       int i = 63;
6197 int
6198 main ()
6199 {
6200 /* Test availability of runtime routines for shift and division.  */
6201       long long int llmax = 9223372036854775807ll;
6202       unsigned long long int ullmax = 18446744073709551615ull;
6203       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6204               | (llmax / ll) | (llmax % ll)
6205               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6206               | (ullmax / ull) | (ullmax % ull));
6207   ;
6208   return 0;
6209 }
6210
6211 _ACEOF
6212 if ac_fn_c_try_link "$LINENO"; then :
6213   ac_cv_type_unsigned_long_long_int=yes
6214 else
6215   ac_cv_type_unsigned_long_long_int=no
6216 fi
6217 rm -f core conftest.err conftest.$ac_objext \
6218     conftest$ac_exeext conftest.$ac_ext
6219 fi
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6221 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6222   if test $ac_cv_type_unsigned_long_long_int = yes; then
6223
6224 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6225
6226   fi
6227
6228
6229
6230   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6231 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6232
6233 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6234
6235 else
6236   test $ac_cv_type_unsigned_long_long_int = yes \
6237        && ac_type='unsigned long long int' \
6238        || ac_type='unsigned long int'
6239
6240 cat >>confdefs.h <<_ACEOF
6241 #define uintmax_t $ac_type
6242 _ACEOF
6243
6244 fi
6245
6246
6247
6248   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6249 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6250
6251 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6252
6253 else
6254   for ac_type in 'unsigned int' 'unsigned long int' \
6255         'unsigned long long int'; do
6256        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h.  */
6258 $ac_includes_default
6259 int
6260 main ()
6261 {
6262 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6263 test_array [0] = 0
6264
6265   ;
6266   return 0;
6267 }
6268 _ACEOF
6269 if ac_fn_c_try_compile "$LINENO"; then :
6270
6271 cat >>confdefs.h <<_ACEOF
6272 #define uintptr_t $ac_type
6273 _ACEOF
6274
6275           ac_type=
6276 fi
6277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6278        test -z "$ac_type" && break
6279      done
6280 fi
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296 # ---------------------
6297 # Warnings and checking
6298 # ---------------------
6299
6300 # Check $CC warning features (if it's GCC).
6301 # We want to use -pedantic, but we don't want warnings about
6302 # * 'long long'
6303 # * variadic macros
6304 # * overlong strings
6305 # So, we only use -pedantic if we can disable those warnings.
6306
6307 loose_warn=
6308 save_CFLAGS="$CFLAGS"
6309 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6310   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6311
6312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6313 $as_echo_n "checking whether $CC supports $option... " >&6; }
6314 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6315   $as_echo_n "(cached) " >&6
6316 else
6317   CFLAGS="$option"
6318     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h.  */
6320
6321 int
6322 main ()
6323 {
6324
6325   ;
6326   return 0;
6327 }
6328 _ACEOF
6329 if ac_fn_c_try_compile "$LINENO"; then :
6330   eval "$as_acx_Woption=yes"
6331 else
6332   eval "$as_acx_Woption=no"
6333 fi
6334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6335
6336 fi
6337 eval ac_res=\$$as_acx_Woption
6338                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6339 $as_echo "$ac_res" >&6; }
6340   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6341   loose_warn="$loose_warn${loose_warn:+ }$option"
6342 fi
6343   done
6344 CFLAGS="$save_CFLAGS"
6345
6346 c_loose_warn=
6347 save_CFLAGS="$CFLAGS"
6348 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6349   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6350
6351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6352 $as_echo_n "checking whether $CC supports $option... " >&6; }
6353 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6354   $as_echo_n "(cached) " >&6
6355 else
6356   CFLAGS="$option"
6357     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h.  */
6359
6360 int
6361 main ()
6362 {
6363
6364   ;
6365   return 0;
6366 }
6367 _ACEOF
6368 if ac_fn_c_try_compile "$LINENO"; then :
6369   eval "$as_acx_Woption=yes"
6370 else
6371   eval "$as_acx_Woption=no"
6372 fi
6373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6374
6375 fi
6376 eval ac_res=\$$as_acx_Woption
6377                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6378 $as_echo "$ac_res" >&6; }
6379   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6380   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6381 fi
6382   done
6383 CFLAGS="$save_CFLAGS"
6384
6385 strict_warn=
6386 save_CFLAGS="$CFLAGS"
6387 for option in -Wmissing-format-attribute; do
6388   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6389
6390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6391 $as_echo_n "checking whether $CC supports $option... " >&6; }
6392 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6393   $as_echo_n "(cached) " >&6
6394 else
6395   CFLAGS="$option"
6396     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397 /* end confdefs.h.  */
6398
6399 int
6400 main ()
6401 {
6402
6403   ;
6404   return 0;
6405 }
6406 _ACEOF
6407 if ac_fn_c_try_compile "$LINENO"; then :
6408   eval "$as_acx_Woption=yes"
6409 else
6410   eval "$as_acx_Woption=no"
6411 fi
6412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413
6414 fi
6415 eval ac_res=\$$as_acx_Woption
6416                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6417 $as_echo "$ac_res" >&6; }
6418   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6419   strict_warn="$strict_warn${strict_warn:+ }$option"
6420 fi
6421   done
6422 CFLAGS="$save_CFLAGS"
6423
6424 c_strict_warn=
6425 save_CFLAGS="$CFLAGS"
6426 for option in -Wold-style-definition -Wc++-compat; do
6427   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6428
6429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6430 $as_echo_n "checking whether $CC supports $option... " >&6; }
6431 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6432   $as_echo_n "(cached) " >&6
6433 else
6434   CFLAGS="$option"
6435     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h.  */
6437
6438 int
6439 main ()
6440 {
6441
6442   ;
6443   return 0;
6444 }
6445 _ACEOF
6446 if ac_fn_c_try_compile "$LINENO"; then :
6447   eval "$as_acx_Woption=yes"
6448 else
6449   eval "$as_acx_Woption=no"
6450 fi
6451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6452
6453 fi
6454 eval ac_res=\$$as_acx_Woption
6455                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6456 $as_echo "$ac_res" >&6; }
6457   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6458   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6459 fi
6460   done
6461 CFLAGS="$save_CFLAGS"
6462
6463 if test "$GCC" = yes; then :
6464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6465 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6466 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6467   $as_echo_n "(cached) " >&6
6468 else
6469   save_CFLAGS="$CFLAGS"
6470 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h.  */
6473
6474 int
6475 main ()
6476 {
6477
6478   ;
6479   return 0;
6480 }
6481 _ACEOF
6482 if ac_fn_c_try_compile "$LINENO"; then :
6483   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6484 else
6485   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6486 fi
6487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488 CFLAGS="$save_CFLAGS"
6489 fi
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6491 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6492 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6493   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6494 fi
6495
6496 fi
6497
6498 # Check whether --enable-werror-always was given.
6499 if test "${enable_werror_always+set}" = set; then :
6500   enableval=$enable_werror_always;
6501 else
6502   enable_werror_always=no
6503 fi
6504
6505 if test $enable_werror_always = yes; then :
6506   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6507 fi
6508
6509
6510
6511 # The above macros do nothing if the compiler is not GCC.  However, the
6512 # Makefile has more goo to add other flags, so these variables are used
6513 # to enable warnings only for GCC.
6514 warn_cflags=
6515 warn_cxxflags=
6516 if test "x$GCC" = "xyes"; then
6517   warn_cflags='$(GCC_WARN_CFLAGS)'
6518   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6519 fi
6520
6521
6522
6523 # Enable expensive internal checks
6524 is_release=
6525 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6526   is_release=yes
6527 fi
6528
6529 # Check whether --enable-checking was given.
6530 if test "${enable_checking+set}" = set; then :
6531   enableval=$enable_checking; ac_checking_flags="${enableval}"
6532 else
6533
6534 # Determine the default checks.
6535 if test x$is_release = x ; then
6536   ac_checking_flags=yes
6537 else
6538   ac_checking_flags=release
6539 fi
6540 fi
6541
6542 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6543 for check in release $ac_checking_flags
6544 do
6545         case $check in
6546         # these set all the flags to specific states
6547         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6548                         ac_fold_checking= ; ac_gc_checking=1 ;
6549                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6550                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6551                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6552                         ac_types_checking=1 ;;
6553         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6554                         ac_fold_checking= ; ac_gc_checking= ;
6555                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6556                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6557                         ac_tree_checking= ; ac_valgrind_checking= ;
6558                         ac_types_checking= ;;
6559         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6560                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6561                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6562                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6563                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6564                         ac_types_checking=1 ;;
6565         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6566                         ac_fold_checking= ; ac_gc_checking= ;
6567                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6568                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6569                         ac_tree_checking= ; ac_valgrind_checking= ;
6570                         ac_types_checking= ;;
6571         # these enable particular checks
6572         assert)         ac_assert_checking=1 ;;
6573         df)             ac_df_checking=1 ;;
6574         fold)           ac_fold_checking=1 ;;
6575         gc)             ac_gc_checking=1 ;;
6576         gcac)           ac_gc_always_collect=1 ;;
6577         gimple)         ac_gimple_checking=1 ;;
6578         misc)           ac_checking=1 ;;
6579         rtl)            ac_rtl_checking=1 ;;
6580         rtlflag)        ac_rtlflag_checking=1 ;;
6581         runtime)        ac_runtime_checking=1 ;;
6582         tree)           ac_tree_checking=1 ;;
6583         types)          ac_types_checking=1 ;;
6584         valgrind)       ac_valgrind_checking=1 ;;
6585         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6586         esac
6587 done
6588 IFS="$ac_save_IFS"
6589
6590 nocommon_flag=""
6591 if test x$ac_checking != x ; then
6592
6593 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6594
6595   nocommon_flag=-fno-common
6596 fi
6597
6598 if test x$ac_df_checking != x ; then
6599
6600 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6601
6602 fi
6603 if test x$ac_assert_checking != x ; then
6604
6605 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6606
6607 fi
6608 if test x$ac_gimple_checking != x ; then
6609
6610 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6611
6612 fi
6613
6614 if test x$ac_runtime_checking != x ; then
6615
6616 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6617
6618 fi
6619 if test x$ac_tree_checking != x ; then
6620
6621 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6622
6623   TREEBROWSER=tree-browser.o
6624 fi
6625 if test x$ac_types_checking != x ; then
6626
6627 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6628
6629 fi
6630
6631 if test x$ac_rtl_checking != x ; then
6632
6633 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6634
6635 fi
6636 if test x$ac_rtlflag_checking != x ; then
6637
6638 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6639
6640 fi
6641 if test x$ac_gc_checking != x ; then
6642
6643 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6644
6645 fi
6646 if test x$ac_gc_always_collect != x ; then
6647
6648 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6649
6650 fi
6651 if test x$ac_fold_checking != x ; then
6652
6653 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6654
6655 fi
6656 valgrind_path_defines=
6657 valgrind_command=
6658
6659 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6660 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6661   have_valgrind_h=yes
6662 else
6663   have_valgrind_h=no
6664 fi
6665
6666
6667
6668 if test x$ac_valgrind_checking != x ; then
6669   # It is certainly possible that there's valgrind but no valgrind.h.
6670   # GCC relies on making annotations so we must have both.
6671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6672 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674 /* end confdefs.h.  */
6675 #include <valgrind/memcheck.h>
6676 #ifndef VALGRIND_DISCARD
6677 #error VALGRIND_DISCARD not defined
6678 #endif
6679 _ACEOF
6680 if ac_fn_c_try_cpp "$LINENO"; then :
6681   gcc_cv_header_valgrind_memcheck_h=yes
6682 else
6683   gcc_cv_header_valgrind_memcheck_h=no
6684 fi
6685 rm -f conftest.err conftest.$ac_ext
6686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6687 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6689 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h.  */
6692 #include <memcheck.h>
6693 #ifndef VALGRIND_DISCARD
6694 #error VALGRIND_DISCARD not defined
6695 #endif
6696 _ACEOF
6697 if ac_fn_c_try_cpp "$LINENO"; then :
6698   gcc_cv_header_memcheck_h=yes
6699 else
6700   gcc_cv_header_memcheck_h=no
6701 fi
6702 rm -f conftest.err conftest.$ac_ext
6703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6704 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6705
6706 # Prepare PATH_SEPARATOR.
6707 # The user is always right.
6708 if test "${PATH_SEPARATOR+set}" != set; then
6709   echo "#! /bin/sh" >conf$$.sh
6710   echo  "exit 0"   >>conf$$.sh
6711   chmod +x conf$$.sh
6712   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6713     PATH_SEPARATOR=';'
6714   else
6715     PATH_SEPARATOR=:
6716   fi
6717   rm -f conf$$.sh
6718 fi
6719
6720 # Find out how to test for executable files. Don't use a zero-byte file,
6721 # as systems may use methods other than mode bits to determine executability.
6722 cat >conf$$.file <<_ASEOF
6723 #! /bin/sh
6724 exit 0
6725 _ASEOF
6726 chmod +x conf$$.file
6727 if test -x conf$$.file >/dev/null 2>&1; then
6728   ac_executable_p="test -x"
6729 else
6730   ac_executable_p="test -f"
6731 fi
6732 rm -f conf$$.file
6733
6734 # Extract the first word of "valgrind", so it can be a program name with args.
6735 set dummy valgrind; ac_word=$2
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6739   $as_echo_n "(cached) " >&6
6740 else
6741   case "$valgrind_path" in
6742   [\\/]* | ?:[\\/]*)
6743     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6744     ;;
6745   *)
6746     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6747     for ac_dir in $PATH; do
6748       IFS="$ac_save_IFS"
6749       test -z "$ac_dir" && ac_dir=.
6750       for ac_exec_ext in '' $ac_executable_extensions; do
6751         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6752           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6753             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6754             break 2
6755           fi
6756         fi
6757       done
6758     done
6759     IFS="$ac_save_IFS"
6760     ;;
6761 esac
6762 fi
6763 valgrind_path="$ac_cv_path_valgrind_path"
6764 if test -n "$valgrind_path"; then
6765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6766 $as_echo "$valgrind_path" >&6; }
6767 else
6768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6769 $as_echo "no" >&6; }
6770 fi
6771
6772   if test "x$valgrind_path" = "x" \
6773     || (test $have_valgrind_h = no \
6774         && test $gcc_cv_header_memcheck_h = no \
6775         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6776         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6777   fi
6778   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6779   valgrind_command="$valgrind_path -q"
6780
6781 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6782
6783   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6784
6785 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6786
6787   fi
6788   if test $gcc_cv_header_memcheck_h = yes; then
6789
6790 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6791
6792   fi
6793 fi
6794
6795
6796
6797 # Enable code coverage collection
6798 # Check whether --enable-coverage was given.
6799 if test "${enable_coverage+set}" = set; then :
6800   enableval=$enable_coverage; case "${enableval}" in
6801   yes|noopt)
6802     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6803     ;;
6804   opt)
6805     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6806     ;;
6807   no)
6808     # a.k.a. --disable-coverage
6809     coverage_flags=""
6810     ;;
6811   *)
6812     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6813     ;;
6814 esac
6815 else
6816   coverage_flags=""
6817 fi
6818
6819
6820
6821 # Check whether --enable-gather-detailed-mem-stats was given.
6822 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6823   enableval=$enable_gather_detailed_mem_stats;
6824 else
6825   enable_gather_detailed_mem_stats=no
6826 fi
6827
6828 if test x$enable_gather_detailed_mem_stats = xyes ; then
6829
6830 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6831
6832 fi
6833
6834 # -------------------------------
6835 # Miscenalleous configure options
6836 # -------------------------------
6837
6838 # See if we are building gcc with C++.
6839 # Check whether --enable-build-with-cxx was given.
6840 if test "${enable_build_with_cxx+set}" = set; then :
6841   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6842 else
6843   ENABLE_BUILD_WITH_CXX=no
6844 fi
6845
6846
6847 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6848
6849 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6850
6851 fi
6852
6853 # With stabs
6854
6855 # Check whether --with-stabs was given.
6856 if test "${with_stabs+set}" = set; then :
6857   withval=$with_stabs; stabs="$with_stabs"
6858 else
6859   stabs=no
6860 fi
6861
6862
6863 # Determine whether or not multilibs are enabled.
6864 # Check whether --enable-multilib was given.
6865 if test "${enable_multilib+set}" = set; then :
6866   enableval=$enable_multilib;
6867 else
6868   enable_multilib=yes
6869 fi
6870
6871
6872
6873 # Enable __cxa_atexit for C++.
6874 # Check whether --enable-__cxa_atexit was given.
6875 if test "${enable___cxa_atexit+set}" = set; then :
6876   enableval=$enable___cxa_atexit;
6877 fi
6878
6879
6880 # Enable C extension for decimal float if target supports it.
6881
6882 # Check whether --enable-decimal-float was given.
6883 if test "${enable_decimal_float+set}" = set; then :
6884   enableval=$enable_decimal_float;
6885   case $enable_decimal_float in
6886     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6887     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6888 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6889   esac
6890
6891 else
6892
6893   case $target in
6894     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6895     i?86*-*-mingw* | x86_64*-*-mingw* | \
6896     i?86*-*-cygwin*)
6897       enable_decimal_float=yes
6898       ;;
6899     *)
6900       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6901 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6902       enable_decimal_float=no
6903       ;;
6904   esac
6905
6906 fi
6907
6908
6909 # x86's use BID format instead of DPD
6910 case x$enable_decimal_float in
6911   xyes)
6912     case $target in
6913       i?86*-*-* | x86_64*-*-*)
6914         enable_decimal_float=bid
6915         ;;
6916       *)
6917         enable_decimal_float=dpd
6918         ;;
6919     esac
6920     default_decimal_float=$enable_decimal_float
6921     ;;
6922   xno)
6923     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6924     # dependency on libdecnumber.
6925     default_decimal_float=dpd
6926     ;;
6927 esac
6928
6929
6930
6931
6932 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6933
6934 cat >>confdefs.h <<_ACEOF
6935 #define ENABLE_DECIMAL_FLOAT $dfp
6936 _ACEOF
6937
6938
6939 # Use default_decimal_float for dependency.
6940 enable_decimal_float=$default_decimal_float
6941
6942 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6943
6944 cat >>confdefs.h <<_ACEOF
6945 #define ENABLE_DECIMAL_BID_FORMAT $bid
6946 _ACEOF
6947
6948
6949 # Enable C extension for fixed-point arithmetic.
6950 # Check whether --enable-fixed-point was given.
6951 if test "${enable_fixed_point+set}" = set; then :
6952   enableval=$enable_fixed_point;
6953
6954 else
6955
6956   case $target in
6957     mips*-*-*)
6958       case $host in
6959         mips*-sgi-irix*)
6960           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6961 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6962           enable_fixed_point=no
6963           ;;
6964         *)
6965           enable_fixed_point=yes
6966           ;;
6967       esac
6968       ;;
6969     *)
6970       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6971 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6972       enable_fixed_point=no
6973       ;;
6974   esac
6975
6976 fi
6977
6978
6979
6980 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6981
6982 cat >>confdefs.h <<_ACEOF
6983 #define ENABLE_FIXED_POINT $fixedpoint
6984 _ACEOF
6985
6986
6987 # Enable threads
6988 # Pass with no value to take the default
6989 # Pass with a value to specify a thread package
6990 # Check whether --enable-threads was given.
6991 if test "${enable_threads+set}" = set; then :
6992   enableval=$enable_threads;
6993 else
6994   enable_threads=''
6995 fi
6996
6997
6998 # Check whether --enable-tls was given.
6999 if test "${enable_tls+set}" = set; then :
7000   enableval=$enable_tls;
7001   case $enable_tls in
7002     yes | no) ;;
7003     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7004 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7005   esac
7006
7007 else
7008   enable_tls=''
7009 fi
7010
7011
7012 # Check whether --enable-objc-gc was given.
7013 if test "${enable_objc_gc+set}" = set; then :
7014   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7015         objc_boehm_gc=''
7016 else
7017         objc_boehm_gc=1
7018 fi
7019 else
7020   objc_boehm_gc=''
7021 fi
7022
7023
7024
7025 # Check whether --with-dwarf2 was given.
7026 if test "${with_dwarf2+set}" = set; then :
7027   withval=$with_dwarf2; dwarf2="$with_dwarf2"
7028 else
7029   dwarf2=no
7030 fi
7031
7032
7033 # Check whether --enable-shared was given.
7034 if test "${enable_shared+set}" = set; then :
7035   enableval=$enable_shared;
7036   case $enable_shared in
7037   yes | no) ;;
7038   *)
7039     enable_shared=no
7040     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7041     for pkg in $enableval; do
7042       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7043         enable_shared=yes
7044       fi
7045     done
7046     IFS="$ac_save_ifs"
7047     ;;
7048   esac
7049
7050 else
7051   enable_shared=yes
7052 fi
7053
7054
7055
7056
7057 # Check whether --with-build-sysroot was given.
7058 if test "${with_build_sysroot+set}" = set; then :
7059   withval=$with_build_sysroot;
7060 fi
7061
7062
7063
7064 # Check whether --with-sysroot was given.
7065 if test "${with_sysroot+set}" = set; then :
7066   withval=$with_sysroot;
7067  case ${with_sysroot} in
7068  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7069  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7070  esac
7071
7072  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7073  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7074
7075  if test "x$prefix" = xNONE; then
7076   test_prefix=/usr/local
7077  else
7078   test_prefix=$prefix
7079  fi
7080  if test "x$exec_prefix" = xNONE; then
7081   test_exec_prefix=$test_prefix
7082  else
7083   test_exec_prefix=$exec_prefix
7084  fi
7085  case ${TARGET_SYSTEM_ROOT} in
7086  "${test_prefix}"|"${test_prefix}/"*|\
7087  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7088  '${prefix}'|'${prefix}/'*|\
7089  '${exec_prefix}'|'${exec_prefix}/'*)
7090    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7091    TARGET_SYSTEM_ROOT_DEFINE="$t"
7092    ;;
7093  esac
7094
7095 else
7096
7097  TARGET_SYSTEM_ROOT=
7098  TARGET_SYSTEM_ROOT_DEFINE=
7099  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7100
7101 fi
7102
7103
7104
7105
7106
7107
7108 # Check whether --with-specs was given.
7109 if test "${with_specs+set}" = set; then :
7110   withval=$with_specs; CONFIGURE_SPECS=$withval
7111 else
7112   CONFIGURE_SPECS=
7113
7114 fi
7115
7116
7117
7118
7119
7120 # Check whether --with-pkgversion was given.
7121 if test "${with_pkgversion+set}" = set; then :
7122   withval=$with_pkgversion; case "$withval" in
7123       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7124       no)  PKGVERSION= ;;
7125       *)   PKGVERSION="($withval) " ;;
7126      esac
7127 else
7128   PKGVERSION="(GCC) "
7129
7130 fi
7131
7132
7133
7134
7135
7136 # Check whether --with-bugurl was given.
7137 if test "${with_bugurl+set}" = set; then :
7138   withval=$with_bugurl; case "$withval" in
7139       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7140       no)  BUGURL=
7141            ;;
7142       *)   BUGURL="$withval"
7143            ;;
7144      esac
7145 else
7146   BUGURL="http://gcc.gnu.org/bugs.html"
7147
7148 fi
7149
7150   case ${BUGURL} in
7151   "")
7152     REPORT_BUGS_TO=
7153     REPORT_BUGS_TEXI=
7154     ;;
7155   *)
7156     REPORT_BUGS_TO="<$BUGURL>"
7157     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7158     ;;
7159   esac;
7160
7161
7162
7163
7164 # Sanity check enable_languages in case someone does not run the toplevel
7165 # configure # script.
7166 # Check whether --enable-languages was given.
7167 if test "${enable_languages+set}" = set; then :
7168   enableval=$enable_languages; case ,${enable_languages}, in
7169        ,,|,yes,)
7170                 # go safe -- we cannot be much sure without the toplevel
7171                 # configure's
7172                 # analysis of which target libs are present and usable
7173                 enable_languages=c
7174                 ;;
7175          *,all,*)
7176                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7177                 ;;
7178         *,c,*)
7179                 ;;
7180         *)
7181                 enable_languages=c,${enable_languages}
7182                 ;;
7183 esac
7184 else
7185   enable_languages=c
7186 fi
7187
7188
7189
7190 # Check whether --with-multilib-list was given.
7191 if test "${with_multilib_list+set}" = set; then :
7192   withval=$with_multilib_list; :
7193 else
7194   with_multilib_list=default
7195 fi
7196
7197
7198 # -------------------------
7199 # Checks for other programs
7200 # -------------------------
7201
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7203 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7204 set x ${MAKE-make}
7205 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7206 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7207   $as_echo_n "(cached) " >&6
7208 else
7209   cat >conftest.make <<\_ACEOF
7210 SHELL = /bin/sh
7211 all:
7212         @echo '@@@%%%=$(MAKE)=@@@%%%'
7213 _ACEOF
7214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7215 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7216   *@@@%%%=?*=@@@%%%*)
7217     eval ac_cv_prog_make_${ac_make}_set=yes;;
7218   *)
7219     eval ac_cv_prog_make_${ac_make}_set=no;;
7220 esac
7221 rm -f conftest.make
7222 fi
7223 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7225 $as_echo "yes" >&6; }
7226   SET_MAKE=
7227 else
7228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229 $as_echo "no" >&6; }
7230   SET_MAKE="MAKE=${MAKE-make}"
7231 fi
7232
7233
7234 # Find some useful tools
7235 for ac_prog in gawk mawk nawk awk
7236 do
7237   # Extract the first word of "$ac_prog", so it can be a program name with args.
7238 set dummy $ac_prog; ac_word=$2
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7240 $as_echo_n "checking for $ac_word... " >&6; }
7241 if test "${ac_cv_prog_AWK+set}" = set; then :
7242   $as_echo_n "(cached) " >&6
7243 else
7244   if test -n "$AWK"; then
7245   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7246 else
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 for as_dir in $PATH
7249 do
7250   IFS=$as_save_IFS
7251   test -z "$as_dir" && as_dir=.
7252     for ac_exec_ext in '' $ac_executable_extensions; do
7253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7254     ac_cv_prog_AWK="$ac_prog"
7255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7256     break 2
7257   fi
7258 done
7259   done
7260 IFS=$as_save_IFS
7261
7262 fi
7263 fi
7264 AWK=$ac_cv_prog_AWK
7265 if test -n "$AWK"; then
7266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7267 $as_echo "$AWK" >&6; }
7268 else
7269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 $as_echo "no" >&6; }
7271 fi
7272
7273
7274   test -n "$AWK" && break
7275 done
7276
7277 # We need awk to create options.c and options.h.
7278 # Bail out if it's missing.
7279 case ${AWK} in
7280   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7281 esac
7282
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7284 $as_echo_n "checking whether ln -s works... " >&6; }
7285 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7286   $as_echo_n "(cached) " >&6
7287 else
7288   rm -f conftestdata_t
7289 echo >conftestdata_f
7290 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7291 then
7292   gcc_cv_prog_LN_S="ln -s"
7293 else
7294   if ln conftestdata_f conftestdata_t 2>/dev/null
7295   then
7296     gcc_cv_prog_LN_S=ln
7297   else
7298     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7299     then
7300       gcc_cv_prog_LN_S="cp -p"
7301     else
7302       gcc_cv_prog_LN_S=cp
7303     fi
7304   fi
7305 fi
7306 rm -f conftestdata_f conftestdata_t
7307
7308 fi
7309 LN_S="$gcc_cv_prog_LN_S"
7310 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7312 $as_echo "yes" >&6; }
7313 else
7314   if test "$gcc_cv_prog_LN_S" = "ln"; then
7315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7316 $as_echo "no, using ln" >&6; }
7317   else
7318     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7319 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7320   fi
7321 fi
7322
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7324 $as_echo_n "checking whether ln works... " >&6; }
7325 if test "${acx_cv_prog_LN+set}" = set; then :
7326   $as_echo_n "(cached) " >&6
7327 else
7328   rm -f conftestdata_t
7329 echo >conftestdata_f
7330 if ln conftestdata_f conftestdata_t 2>/dev/null
7331 then
7332   acx_cv_prog_LN=ln
7333 else
7334   acx_cv_prog_LN=no
7335 fi
7336 rm -f conftestdata_f conftestdata_t
7337
7338 fi
7339 if test $acx_cv_prog_LN = no; then
7340   LN="$LN_S"
7341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7342 $as_echo "no, using $LN" >&6; }
7343 else
7344   LN="$acx_cv_prog_LN"
7345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7346 $as_echo "yes" >&6; }
7347 fi
7348
7349 if test -n "$ac_tool_prefix"; then
7350   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7351 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7355   $as_echo_n "(cached) " >&6
7356 else
7357   if test -n "$RANLIB"; then
7358   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7359 else
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH
7362 do
7363   IFS=$as_save_IFS
7364   test -z "$as_dir" && as_dir=.
7365     for ac_exec_ext in '' $ac_executable_extensions; do
7366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7367     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369     break 2
7370   fi
7371 done
7372   done
7373 IFS=$as_save_IFS
7374
7375 fi
7376 fi
7377 RANLIB=$ac_cv_prog_RANLIB
7378 if test -n "$RANLIB"; then
7379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7380 $as_echo "$RANLIB" >&6; }
7381 else
7382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7384 fi
7385
7386
7387 fi
7388 if test -z "$ac_cv_prog_RANLIB"; then
7389   ac_ct_RANLIB=$RANLIB
7390   # Extract the first word of "ranlib", so it can be a program name with args.
7391 set dummy ranlib; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7395   $as_echo_n "(cached) " >&6
7396 else
7397   if test -n "$ac_ct_RANLIB"; then
7398   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7399 else
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 for as_dir in $PATH
7402 do
7403   IFS=$as_save_IFS
7404   test -z "$as_dir" && as_dir=.
7405     for ac_exec_ext in '' $ac_executable_extensions; do
7406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7407     ac_cv_prog_ac_ct_RANLIB="ranlib"
7408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409     break 2
7410   fi
7411 done
7412   done
7413 IFS=$as_save_IFS
7414
7415 fi
7416 fi
7417 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7418 if test -n "$ac_ct_RANLIB"; then
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7420 $as_echo "$ac_ct_RANLIB" >&6; }
7421 else
7422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7424 fi
7425
7426   if test "x$ac_ct_RANLIB" = x; then
7427     RANLIB=":"
7428   else
7429     case $cross_compiling:$ac_tool_warned in
7430 yes:)
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7433 ac_tool_warned=yes ;;
7434 esac
7435     RANLIB=$ac_ct_RANLIB
7436   fi
7437 else
7438   RANLIB="$ac_cv_prog_RANLIB"
7439 fi
7440
7441 case "${host}" in
7442 *-*-darwin*)
7443   # By default, the Darwin ranlib will not treat common symbols as
7444   # definitions when  building the archive table of contents.  Other
7445   # ranlibs do that; pass an option to the Darwin ranlib that makes
7446   # it behave similarly.
7447   ranlib_flags="-c"
7448   ;;
7449 *)
7450   ranlib_flags=""
7451 esac
7452
7453
7454 # Find a good install program.  We prefer a C program (faster),
7455 # so one script is as good as another.  But avoid the broken or
7456 # incompatible versions:
7457 # SysV /etc/install, /usr/sbin/install
7458 # SunOS /usr/etc/install
7459 # IRIX /sbin/install
7460 # AIX /bin/install
7461 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7462 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7463 # ./install, which can be erroneously created by make from ./install.sh.
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7465 $as_echo_n "checking for a BSD compatible install... " >&6; }
7466 if test -z "$INSTALL"; then
7467 if test "${ac_cv_path_install+set}" = set; then :
7468   $as_echo_n "(cached) " >&6
7469 else
7470     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7471   for ac_dir in $PATH; do
7472     # Account for people who put trailing slashes in PATH elements.
7473     case "$ac_dir/" in
7474     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7475     *)
7476       # OSF1 and SCO ODT 3.0 have their own names for install.
7477       for ac_prog in ginstall scoinst install; do
7478         if test -f $ac_dir/$ac_prog; then
7479           if test $ac_prog = install &&
7480             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7481             # AIX install.  It has an incompatible calling convention.
7482             # OSF/1 installbsd also uses dspmsg, but is usable.
7483             :
7484           else
7485             ac_cv_path_install="$ac_dir/$ac_prog -c"
7486             break 2
7487           fi
7488         fi
7489       done
7490       ;;
7491     esac
7492   done
7493   IFS="$ac_save_IFS"
7494
7495 fi
7496   if test "${ac_cv_path_install+set}" = set; then
7497     INSTALL="$ac_cv_path_install"
7498   else
7499     # As a last resort, use the slow shell script.  We don't cache a
7500     # path for INSTALL within a source directory, because that will
7501     # break other packages using the cache if that directory is
7502     # removed, or if the path is relative.
7503     INSTALL="$ac_install_sh"
7504   fi
7505 fi
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7507 $as_echo "$INSTALL" >&6; }
7508
7509 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7510 # It thinks the first close brace ends the variable substitution.
7511 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7512
7513 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7514
7515
7516 # See if cmp has --ignore-initial.
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7518 $as_echo_n "checking for cmp's capabilities... " >&6; }
7519 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7520   $as_echo_n "(cached) " >&6
7521 else
7522    echo abfoo >t1
7523   echo cdfoo >t2
7524   gcc_cv_prog_cmp_skip=slowcompare
7525   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7526     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7527       :
7528     else
7529       gcc_cv_prog_cmp_skip=gnucompare
7530     fi
7531   fi
7532   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7533     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7534       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7535         :
7536       else
7537         gcc_cv_prog_cmp_skip=fastcompare
7538       fi
7539     fi
7540   fi
7541   rm t1 t2
7542
7543 fi
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7545 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7546 make_compare_target=$gcc_cv_prog_cmp_skip
7547
7548
7549
7550 # See if we have the mktemp command.
7551 # Extract the first word of "mktemp", so it can be a program name with args.
7552 set dummy mktemp; ac_word=$2
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7554 $as_echo_n "checking for $ac_word... " >&6; }
7555 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7556   $as_echo_n "(cached) " >&6
7557 else
7558   if test -n "$have_mktemp_command"; then
7559   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7560 else
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 for as_dir in $PATH
7563 do
7564   IFS=$as_save_IFS
7565   test -z "$as_dir" && as_dir=.
7566     for ac_exec_ext in '' $ac_executable_extensions; do
7567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7568     ac_cv_prog_have_mktemp_command="yes"
7569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7570     break 2
7571   fi
7572 done
7573   done
7574 IFS=$as_save_IFS
7575
7576   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7577 fi
7578 fi
7579 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7580 if test -n "$have_mktemp_command"; then
7581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7582 $as_echo "$have_mktemp_command" >&6; }
7583 else
7584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585 $as_echo "no" >&6; }
7586 fi
7587
7588
7589
7590 # See if makeinfo has been installed and is modern enough
7591 # that we can use it.
7592
7593   # Extract the first word of "makeinfo", so it can be a program name with args.
7594 set dummy makeinfo; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7598   $as_echo_n "(cached) " >&6
7599 else
7600   if test -n "$MAKEINFO"; then
7601   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7602 else
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7605 do
7606   IFS=$as_save_IFS
7607   test -z "$as_dir" && as_dir=.
7608     for ac_exec_ext in '' $ac_executable_extensions; do
7609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610     ac_cv_prog_MAKEINFO="makeinfo"
7611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612     break 2
7613   fi
7614 done
7615   done
7616 IFS=$as_save_IFS
7617
7618 fi
7619 fi
7620 MAKEINFO=$ac_cv_prog_MAKEINFO
7621 if test -n "$MAKEINFO"; then
7622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7623 $as_echo "$MAKEINFO" >&6; }
7624 else
7625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7627 fi
7628
7629
7630   if test -n "$MAKEINFO"; then
7631     # Found it, now check the version.
7632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7633 $as_echo_n "checking for modern makeinfo... " >&6; }
7634 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7635   $as_echo_n "(cached) " >&6
7636 else
7637   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7638                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7639
7640                     case $ac_prog_version in
7641                       '')  gcc_cv_prog_makeinfo_modern=no;;
7642                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7643                       *)   gcc_cv_prog_makeinfo_modern=no;;
7644                     esac
7645
7646 fi
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7648 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7649   else
7650     gcc_cv_prog_makeinfo_modern=no
7651   fi
7652   if test $gcc_cv_prog_makeinfo_modern = no; then
7653     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7654   fi
7655
7656 if test $gcc_cv_prog_makeinfo_modern = no; then
7657   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7658 *** Makeinfo is missing or too old.
7659 *** Info documentation will not be built." >&5
7660 $as_echo "$as_me: WARNING:
7661 *** Makeinfo is missing or too old.
7662 *** Info documentation will not be built." >&2;}
7663   BUILD_INFO=
7664 else
7665   BUILD_INFO=info
7666 fi
7667
7668
7669 # Is pod2man recent enough to regenerate manpages?
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7671 $as_echo_n "checking for recent Pod::Man... " >&6; }
7672 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7674 $as_echo "yes" >&6; }
7675   GENERATED_MANPAGES=generated-manpages
7676 else
7677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678 $as_echo "no" >&6; }
7679   GENERATED_MANPAGES=
7680 fi
7681
7682
7683 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7684
7685 # How about lex?
7686 for ac_prog in flex
7687 do
7688   # Extract the first word of "$ac_prog", so it can be a program name with args.
7689 set dummy $ac_prog; ac_word=$2
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691 $as_echo_n "checking for $ac_word... " >&6; }
7692 if test "${ac_cv_prog_FLEX+set}" = set; then :
7693   $as_echo_n "(cached) " >&6
7694 else
7695   if test -n "$FLEX"; then
7696   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7697 else
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $PATH
7700 do
7701   IFS=$as_save_IFS
7702   test -z "$as_dir" && as_dir=.
7703     for ac_exec_ext in '' $ac_executable_extensions; do
7704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7705     ac_cv_prog_FLEX="$ac_prog"
7706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7707     break 2
7708   fi
7709 done
7710   done
7711 IFS=$as_save_IFS
7712
7713 fi
7714 fi
7715 FLEX=$ac_cv_prog_FLEX
7716 if test -n "$FLEX"; then
7717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7718 $as_echo "$FLEX" >&6; }
7719 else
7720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7722 fi
7723
7724
7725   test -n "$FLEX" && break
7726 done
7727 test -n "$FLEX" || FLEX="$MISSING flex"
7728
7729
7730 # Bison?
7731 for ac_prog in bison
7732 do
7733   # Extract the first word of "$ac_prog", so it can be a program name with args.
7734 set dummy $ac_prog; ac_word=$2
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7736 $as_echo_n "checking for $ac_word... " >&6; }
7737 if test "${ac_cv_prog_BISON+set}" = set; then :
7738   $as_echo_n "(cached) " >&6
7739 else
7740   if test -n "$BISON"; then
7741   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7742 else
7743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744 for as_dir in $PATH
7745 do
7746   IFS=$as_save_IFS
7747   test -z "$as_dir" && as_dir=.
7748     for ac_exec_ext in '' $ac_executable_extensions; do
7749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7750     ac_cv_prog_BISON="$ac_prog"
7751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7752     break 2
7753   fi
7754 done
7755   done
7756 IFS=$as_save_IFS
7757
7758 fi
7759 fi
7760 BISON=$ac_cv_prog_BISON
7761 if test -n "$BISON"; then
7762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7763 $as_echo "$BISON" >&6; }
7764 else
7765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }
7767 fi
7768
7769
7770   test -n "$BISON" && break
7771 done
7772 test -n "$BISON" || BISON="$MISSING bison"
7773
7774
7775 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7776 # check for build == host before using them.
7777
7778 # NM
7779 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7780   && test -d ../binutils ; then
7781   NM='${objdir}/../binutils/nm-new'
7782 else
7783   # Extract the first word of "nm", so it can be a program name with args.
7784 set dummy nm; ac_word=$2
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7786 $as_echo_n "checking for $ac_word... " >&6; }
7787 if test "${ac_cv_prog_NM+set}" = set; then :
7788   $as_echo_n "(cached) " >&6
7789 else
7790   if test -n "$NM"; then
7791   ac_cv_prog_NM="$NM" # Let the user override the test.
7792 else
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $PATH
7795 do
7796   IFS=$as_save_IFS
7797   test -z "$as_dir" && as_dir=.
7798     for ac_exec_ext in '' $ac_executable_extensions; do
7799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7800     ac_cv_prog_NM="nm"
7801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7802     break 2
7803   fi
7804 done
7805   done
7806 IFS=$as_save_IFS
7807
7808   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7809 fi
7810 fi
7811 NM=$ac_cv_prog_NM
7812 if test -n "$NM"; then
7813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7814 $as_echo "$NM" >&6; }
7815 else
7816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; }
7818 fi
7819
7820
7821 fi
7822
7823 # AR
7824 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7825   && test -d ../binutils ; then
7826   AR='${objdir}/../binutils/ar'
7827 else
7828   # Extract the first word of "ar", so it can be a program name with args.
7829 set dummy ar; ac_word=$2
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7831 $as_echo_n "checking for $ac_word... " >&6; }
7832 if test "${ac_cv_prog_AR+set}" = set; then :
7833   $as_echo_n "(cached) " >&6
7834 else
7835   if test -n "$AR"; then
7836   ac_cv_prog_AR="$AR" # Let the user override the test.
7837 else
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 for as_dir in $PATH
7840 do
7841   IFS=$as_save_IFS
7842   test -z "$as_dir" && as_dir=.
7843     for ac_exec_ext in '' $ac_executable_extensions; do
7844   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7845     ac_cv_prog_AR="ar"
7846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7847     break 2
7848   fi
7849 done
7850   done
7851 IFS=$as_save_IFS
7852
7853   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7854 fi
7855 fi
7856 AR=$ac_cv_prog_AR
7857 if test -n "$AR"; then
7858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7859 $as_echo "$AR" >&6; }
7860 else
7861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7863 fi
7864
7865
7866 fi
7867
7868
7869 # --------------------
7870 # Checks for C headers
7871 # --------------------
7872
7873 # Need to reject headers which give warnings, so that the -Werror bootstrap
7874 # works later. *sigh*  This needs to come before all header checks.
7875
7876 ac_c_preproc_warn_flag=yes
7877
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7879 $as_echo_n "checking for ANSI C header files... " >&6; }
7880 if test "${ac_cv_header_stdc+set}" = set; then :
7881   $as_echo_n "(cached) " >&6
7882 else
7883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h.  */
7885 #include <stdlib.h>
7886 #include <stdarg.h>
7887 #include <string.h>
7888 #include <float.h>
7889
7890 int
7891 main ()
7892 {
7893
7894   ;
7895   return 0;
7896 }
7897 _ACEOF
7898 if ac_fn_c_try_compile "$LINENO"; then :
7899   ac_cv_header_stdc=yes
7900 else
7901   ac_cv_header_stdc=no
7902 fi
7903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7904
7905 if test $ac_cv_header_stdc = yes; then
7906   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h.  */
7909 #include <string.h>
7910
7911 _ACEOF
7912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7913   $EGREP "memchr" >/dev/null 2>&1; then :
7914
7915 else
7916   ac_cv_header_stdc=no
7917 fi
7918 rm -f conftest*
7919
7920 fi
7921
7922 if test $ac_cv_header_stdc = yes; then
7923   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h.  */
7926 #include <stdlib.h>
7927
7928 _ACEOF
7929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7930   $EGREP "free" >/dev/null 2>&1; then :
7931
7932 else
7933   ac_cv_header_stdc=no
7934 fi
7935 rm -f conftest*
7936
7937 fi
7938
7939 if test $ac_cv_header_stdc = yes; then
7940   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7941   if test "$cross_compiling" = yes; then :
7942   :
7943 else
7944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h.  */
7946 #include <ctype.h>
7947 #include <stdlib.h>
7948 #if ((' ' & 0x0FF) == 0x020)
7949 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7950 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7951 #else
7952 # define ISLOWER(c) \
7953                    (('a' <= (c) && (c) <= 'i') \
7954                      || ('j' <= (c) && (c) <= 'r') \
7955                      || ('s' <= (c) && (c) <= 'z'))
7956 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7957 #endif
7958
7959 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7960 int
7961 main ()
7962 {
7963   int i;
7964   for (i = 0; i < 256; i++)
7965     if (XOR (islower (i), ISLOWER (i))
7966         || toupper (i) != TOUPPER (i))
7967       return 2;
7968   return 0;
7969 }
7970 _ACEOF
7971 if ac_fn_c_try_run "$LINENO"; then :
7972
7973 else
7974   ac_cv_header_stdc=no
7975 fi
7976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7977   conftest.$ac_objext conftest.beam conftest.$ac_ext
7978 fi
7979
7980 fi
7981 fi
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7983 $as_echo "$ac_cv_header_stdc" >&6; }
7984 if test $ac_cv_header_stdc = yes; then
7985
7986 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7987
7988 fi
7989
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7991 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7992 if test "${ac_cv_header_time+set}" = set; then :
7993   $as_echo_n "(cached) " >&6
7994 else
7995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h.  */
7997 #include <sys/types.h>
7998 #include <sys/time.h>
7999 #include <time.h>
8000
8001 int
8002 main ()
8003 {
8004 if ((struct tm *) 0)
8005 return 0;
8006   ;
8007   return 0;
8008 }
8009 _ACEOF
8010 if ac_fn_c_try_compile "$LINENO"; then :
8011   ac_cv_header_time=yes
8012 else
8013   ac_cv_header_time=no
8014 fi
8015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8016 fi
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8018 $as_echo "$ac_cv_header_time" >&6; }
8019 if test $ac_cv_header_time = yes; then
8020
8021 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8022
8023 fi
8024
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8026 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8027 if test "${gcc_cv_header_string+set}" = set; then :
8028   $as_echo_n "(cached) " >&6
8029 else
8030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h.  */
8032 #include <string.h>
8033 #include <strings.h>
8034 int
8035 main ()
8036 {
8037
8038   ;
8039   return 0;
8040 }
8041 _ACEOF
8042 if ac_fn_c_try_compile "$LINENO"; then :
8043   gcc_cv_header_string=yes
8044 else
8045   gcc_cv_header_string=no
8046 fi
8047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8048 fi
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8050 $as_echo "$gcc_cv_header_string" >&6; }
8051 if test $gcc_cv_header_string = yes; then
8052
8053 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8054
8055 fi
8056
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8058 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8059 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8060   $as_echo_n "(cached) " >&6
8061 else
8062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h.  */
8064 #include <sys/types.h>
8065 #include <sys/wait.h>
8066 #ifndef WEXITSTATUS
8067 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8068 #endif
8069 #ifndef WIFEXITED
8070 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8071 #endif
8072
8073 int
8074 main ()
8075 {
8076   int s;
8077   wait (&s);
8078   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8079   ;
8080   return 0;
8081 }
8082 _ACEOF
8083 if ac_fn_c_try_compile "$LINENO"; then :
8084   ac_cv_header_sys_wait_h=yes
8085 else
8086   ac_cv_header_sys_wait_h=no
8087 fi
8088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089 fi
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8091 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8092 if test $ac_cv_header_sys_wait_h = yes; then
8093
8094 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8095
8096 fi
8097
8098 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8099                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8100                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8101                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8102 do :
8103   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8104 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8105 eval as_val=\$$as_ac_Header
8106    if test "x$as_val" = x""yes; then :
8107   cat >>confdefs.h <<_ACEOF
8108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8109 _ACEOF
8110
8111 fi
8112 done
8113
8114
8115 # Check for thread headers.
8116 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8117 if test "x$ac_cv_header_thread_h" = x""yes; then :
8118   have_thread_h=yes
8119 else
8120   have_thread_h=
8121 fi
8122
8123 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8124 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8125   have_pthread_h=yes
8126 else
8127   have_pthread_h=
8128 fi
8129
8130
8131 # These tests can't be done till we know if we have limits.h.
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8133 $as_echo_n "checking for CHAR_BIT... " >&6; }
8134 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8135   $as_echo_n "(cached) " >&6
8136 else
8137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8138 /* end confdefs.h.  */
8139 #ifdef HAVE_LIMITS_H
8140 #include <limits.h>
8141 #endif
8142 #ifdef CHAR_BIT
8143 found
8144 #endif
8145 _ACEOF
8146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8147   $EGREP "found" >/dev/null 2>&1; then :
8148   gcc_cv_decl_char_bit=yes
8149 else
8150   gcc_cv_decl_char_bit=no
8151 fi
8152 rm -f conftest*
8153
8154
8155 fi
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8157 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8158 if test $gcc_cv_decl_char_bit = no; then
8159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8160 $as_echo_n "checking number of bits in a byte... " >&6; }
8161 if test "${gcc_cv_c_nbby+set}" = set; then :
8162   $as_echo_n "(cached) " >&6
8163 else
8164   i=8
8165  gcc_cv_c_nbby=
8166  while test $i -lt 65; do
8167    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168 /* end confdefs.h.  */
8169
8170 int
8171 main ()
8172 {
8173 switch(0) {
8174   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8175   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8176   ; }
8177   ;
8178   return 0;
8179 }
8180 _ACEOF
8181 if ac_fn_c_try_compile "$LINENO"; then :
8182   gcc_cv_c_nbby=$i; break
8183 fi
8184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8185    i=`expr $i + 1`
8186  done
8187  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8188
8189 fi
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8191 $as_echo "$gcc_cv_c_nbby" >&6; }
8192 if test $gcc_cv_c_nbby = failed; then
8193   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8194 else
8195
8196 cat >>confdefs.h <<_ACEOF
8197 #define CHAR_BIT $gcc_cv_c_nbby
8198 _ACEOF
8199
8200 fi
8201 fi
8202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8203 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8204 if test "${ac_cv_c_bigendian+set}" = set; then :
8205   $as_echo_n "(cached) " >&6
8206 else
8207   ac_cv_c_bigendian=unknown
8208     # See if we're dealing with a universal compiler.
8209     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h.  */
8211 #ifndef __APPLE_CC__
8212                not a universal capable compiler
8213              #endif
8214              typedef int dummy;
8215
8216 _ACEOF
8217 if ac_fn_c_try_compile "$LINENO"; then :
8218
8219         # Check for potential -arch flags.  It is not universal unless
8220         # there are at least two -arch flags with different values.
8221         ac_arch=
8222         ac_prev=
8223         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8224          if test -n "$ac_prev"; then
8225            case $ac_word in
8226              i?86 | x86_64 | ppc | ppc64)
8227                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8228                  ac_arch=$ac_word
8229                else
8230                  ac_cv_c_bigendian=universal
8231                  break
8232                fi
8233                ;;
8234            esac
8235            ac_prev=
8236          elif test "x$ac_word" = "x-arch"; then
8237            ac_prev=arch
8238          fi
8239        done
8240 fi
8241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8242     if test $ac_cv_c_bigendian = unknown; then
8243       # See if sys/param.h defines the BYTE_ORDER macro.
8244       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245 /* end confdefs.h.  */
8246 #include <sys/types.h>
8247              #include <sys/param.h>
8248
8249 int
8250 main ()
8251 {
8252 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8253                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8254                      && LITTLE_ENDIAN)
8255               bogus endian macros
8256              #endif
8257
8258   ;
8259   return 0;
8260 }
8261 _ACEOF
8262 if ac_fn_c_try_compile "$LINENO"; then :
8263   # It does; now see whether it defined to BIG_ENDIAN or not.
8264          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h.  */
8266 #include <sys/types.h>
8267                 #include <sys/param.h>
8268
8269 int
8270 main ()
8271 {
8272 #if BYTE_ORDER != BIG_ENDIAN
8273                  not big endian
8274                 #endif
8275
8276   ;
8277   return 0;
8278 }
8279 _ACEOF
8280 if ac_fn_c_try_compile "$LINENO"; then :
8281   ac_cv_c_bigendian=yes
8282 else
8283   ac_cv_c_bigendian=no
8284 fi
8285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8286 fi
8287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8288     fi
8289     if test $ac_cv_c_bigendian = unknown; then
8290       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8291       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292 /* end confdefs.h.  */
8293 #include <limits.h>
8294
8295 int
8296 main ()
8297 {
8298 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8299               bogus endian macros
8300              #endif
8301
8302   ;
8303   return 0;
8304 }
8305 _ACEOF
8306 if ac_fn_c_try_compile "$LINENO"; then :
8307   # It does; now see whether it defined to _BIG_ENDIAN or not.
8308          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8309 /* end confdefs.h.  */
8310 #include <limits.h>
8311
8312 int
8313 main ()
8314 {
8315 #ifndef _BIG_ENDIAN
8316                  not big endian
8317                 #endif
8318
8319   ;
8320   return 0;
8321 }
8322 _ACEOF
8323 if ac_fn_c_try_compile "$LINENO"; then :
8324   ac_cv_c_bigendian=yes
8325 else
8326   ac_cv_c_bigendian=no
8327 fi
8328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329 fi
8330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8331     fi
8332     if test $ac_cv_c_bigendian = unknown; then
8333       # Compile a test program.
8334       if test "$cross_compiling" = yes; then :
8335   # Try to guess by grepping values from an object file.
8336          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h.  */
8338 short int ascii_mm[] =
8339                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8340                 short int ascii_ii[] =
8341                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8342                 int use_ascii (int i) {
8343                   return ascii_mm[i] + ascii_ii[i];
8344                 }
8345                 short int ebcdic_ii[] =
8346                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8347                 short int ebcdic_mm[] =
8348                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8349                 int use_ebcdic (int i) {
8350                   return ebcdic_mm[i] + ebcdic_ii[i];
8351                 }
8352                 extern int foo;
8353
8354 int
8355 main ()
8356 {
8357 return use_ascii (foo) == use_ebcdic (foo);
8358   ;
8359   return 0;
8360 }
8361 _ACEOF
8362 if ac_fn_c_try_compile "$LINENO"; then :
8363   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8364               ac_cv_c_bigendian=yes
8365             fi
8366             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8367               if test "$ac_cv_c_bigendian" = unknown; then
8368                 ac_cv_c_bigendian=no
8369               else
8370                 # finding both strings is unlikely to happen, but who knows?
8371                 ac_cv_c_bigendian=unknown
8372               fi
8373             fi
8374 fi
8375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8376 else
8377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h.  */
8379 $ac_includes_default
8380 int
8381 main ()
8382 {
8383
8384              /* Are we little or big endian?  From Harbison&Steele.  */
8385              union
8386              {
8387                long int l;
8388                char c[sizeof (long int)];
8389              } u;
8390              u.l = 1;
8391              return u.c[sizeof (long int) - 1] == 1;
8392
8393   ;
8394   return 0;
8395 }
8396 _ACEOF
8397 if ac_fn_c_try_run "$LINENO"; then :
8398   ac_cv_c_bigendian=no
8399 else
8400   ac_cv_c_bigendian=yes
8401 fi
8402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8403   conftest.$ac_objext conftest.beam conftest.$ac_ext
8404 fi
8405
8406     fi
8407 fi
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8409 $as_echo "$ac_cv_c_bigendian" >&6; }
8410  case $ac_cv_c_bigendian in #(
8411    yes)
8412      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8413 ;; #(
8414    no)
8415       ;; #(
8416    universal)
8417
8418 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8419
8420      ;; #(
8421    *)
8422      as_fn_error "unknown endianness
8423  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8424  esac
8425
8426
8427 # ----------------------
8428 # Checks for C++ headers
8429 # ----------------------
8430
8431 ac_ext=cpp
8432 ac_cpp='$CXXCPP $CPPFLAGS'
8433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8437 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8438 if test -z "$CXXCPP"; then
8439   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8440   $as_echo_n "(cached) " >&6
8441 else
8442       # Double quotes because CXXCPP needs to be expanded
8443     for CXXCPP in "$CXX -E" "/lib/cpp"
8444     do
8445       ac_preproc_ok=false
8446 for ac_cxx_preproc_warn_flag in '' yes
8447 do
8448   # Use a header file that comes with gcc, so configuring glibc
8449   # with a fresh cross-compiler works.
8450   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8451   # <limits.h> exists even on freestanding compilers.
8452   # On the NeXT, cc -E runs the code through the compiler's parser,
8453   # not just through cpp. "Syntax error" is here to catch this case.
8454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h.  */
8456 #ifdef __STDC__
8457 # include <limits.h>
8458 #else
8459 # include <assert.h>
8460 #endif
8461                      Syntax error
8462 _ACEOF
8463 if ac_fn_cxx_try_cpp "$LINENO"; then :
8464
8465 else
8466   # Broken: fails on valid input.
8467 continue
8468 fi
8469 rm -f conftest.err conftest.$ac_ext
8470
8471   # OK, works on sane cases.  Now check whether nonexistent headers
8472   # can be detected and how.
8473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h.  */
8475 #include <ac_nonexistent.h>
8476 _ACEOF
8477 if ac_fn_cxx_try_cpp "$LINENO"; then :
8478   # Broken: success on invalid input.
8479 continue
8480 else
8481   # Passes both tests.
8482 ac_preproc_ok=:
8483 break
8484 fi
8485 rm -f conftest.err conftest.$ac_ext
8486
8487 done
8488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8489 rm -f conftest.err conftest.$ac_ext
8490 if $ac_preproc_ok; then :
8491   break
8492 fi
8493
8494     done
8495     ac_cv_prog_CXXCPP=$CXXCPP
8496
8497 fi
8498   CXXCPP=$ac_cv_prog_CXXCPP
8499 else
8500   ac_cv_prog_CXXCPP=$CXXCPP
8501 fi
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8503 $as_echo "$CXXCPP" >&6; }
8504 ac_preproc_ok=false
8505 for ac_cxx_preproc_warn_flag in '' yes
8506 do
8507   # Use a header file that comes with gcc, so configuring glibc
8508   # with a fresh cross-compiler works.
8509   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8510   # <limits.h> exists even on freestanding compilers.
8511   # On the NeXT, cc -E runs the code through the compiler's parser,
8512   # not just through cpp. "Syntax error" is here to catch this case.
8513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h.  */
8515 #ifdef __STDC__
8516 # include <limits.h>
8517 #else
8518 # include <assert.h>
8519 #endif
8520                      Syntax error
8521 _ACEOF
8522 if ac_fn_cxx_try_cpp "$LINENO"; then :
8523
8524 else
8525   # Broken: fails on valid input.
8526 continue
8527 fi
8528 rm -f conftest.err conftest.$ac_ext
8529
8530   # OK, works on sane cases.  Now check whether nonexistent headers
8531   # can be detected and how.
8532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8533 /* end confdefs.h.  */
8534 #include <ac_nonexistent.h>
8535 _ACEOF
8536 if ac_fn_cxx_try_cpp "$LINENO"; then :
8537   # Broken: success on invalid input.
8538 continue
8539 else
8540   # Passes both tests.
8541 ac_preproc_ok=:
8542 break
8543 fi
8544 rm -f conftest.err conftest.$ac_ext
8545
8546 done
8547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8548 rm -f conftest.err conftest.$ac_ext
8549 if $ac_preproc_ok; then :
8550
8551 else
8552   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8555 See \`config.log' for more details." >&5
8556 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8557 See \`config.log' for more details." >&2;}; }
8558 fi
8559
8560 ac_ext=c
8561 ac_cpp='$CPP $CPPFLAGS'
8562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8565
8566
8567 ac_ext=cpp
8568 ac_cpp='$CXXCPP $CPPFLAGS'
8569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8572
8573
8574
8575
8576 for ac_header in unordered_map
8577 do :
8578   ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8579 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8580   cat >>confdefs.h <<_ACEOF
8581 #define HAVE_UNORDERED_MAP 1
8582 _ACEOF
8583
8584 fi
8585 done
8586
8587 for ac_header in tr1/unordered_map
8588 do :
8589   ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8590 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8591   cat >>confdefs.h <<_ACEOF
8592 #define HAVE_TR1_UNORDERED_MAP 1
8593 _ACEOF
8594
8595 fi
8596 done
8597
8598 for ac_header in ext/hash_map
8599 do :
8600   ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8601 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8602   cat >>confdefs.h <<_ACEOF
8603 #define HAVE_EXT_HASH_MAP 1
8604 _ACEOF
8605
8606 fi
8607 done
8608
8609
8610 ac_ext=c
8611 ac_cpp='$CPP $CPPFLAGS'
8612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8615
8616
8617 # --------
8618 # UNSORTED
8619 # --------
8620
8621
8622 # These libraries may be used by collect2.
8623 # We may need a special search path to get them linked.
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8625 $as_echo_n "checking for collect2 libraries... " >&6; }
8626 if test "${gcc_cv_collect2_libs+set}" = set; then :
8627   $as_echo_n "(cached) " >&6
8628 else
8629   save_LIBS="$LIBS"
8630 for libs in '' -lld -lmld \
8631                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8632                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8633 do
8634         LIBS="$libs"
8635         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h.  */
8637
8638 /* Override any GCC internal prototype to avoid an error.
8639    Use char because int might match the return type of a GCC
8640    builtin and then its argument prototype would still apply.  */
8641 #ifdef __cplusplus
8642 extern "C"
8643 #endif
8644 char ldopen ();
8645 int
8646 main ()
8647 {
8648 return ldopen ();
8649   ;
8650   return 0;
8651 }
8652 _ACEOF
8653 if ac_fn_c_try_link "$LINENO"; then :
8654   gcc_cv_collect2_libs="$libs"; break
8655 fi
8656 rm -f core conftest.err conftest.$ac_objext \
8657     conftest$ac_exeext conftest.$ac_ext
8658 done
8659 LIBS="$save_LIBS"
8660 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8661 fi
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8663 $as_echo "$gcc_cv_collect2_libs" >&6; }
8664 case $gcc_cv_collect2_libs in
8665         "none required")        ;;
8666         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8667 esac
8668
8669
8670 # When building Ada code on Alpha, we need exc_resume which is usually in
8671 # -lexc.  So test for it.
8672 save_LIBS="$LIBS"
8673 LIBS=
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8675 $as_echo_n "checking for library containing exc_resume... " >&6; }
8676 if test "${ac_cv_search_exc_resume+set}" = set; then :
8677   $as_echo_n "(cached) " >&6
8678 else
8679   ac_func_search_save_LIBS=$LIBS
8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681 /* end confdefs.h.  */
8682
8683 /* Override any GCC internal prototype to avoid an error.
8684    Use char because int might match the return type of a GCC
8685    builtin and then its argument prototype would still apply.  */
8686 #ifdef __cplusplus
8687 extern "C"
8688 #endif
8689 char exc_resume ();
8690 int
8691 main ()
8692 {
8693 return exc_resume ();
8694   ;
8695   return 0;
8696 }
8697 _ACEOF
8698 for ac_lib in '' exc; do
8699   if test -z "$ac_lib"; then
8700     ac_res="none required"
8701   else
8702     ac_res=-l$ac_lib
8703     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8704   fi
8705   if ac_fn_c_try_link "$LINENO"; then :
8706   ac_cv_search_exc_resume=$ac_res
8707 fi
8708 rm -f core conftest.err conftest.$ac_objext \
8709     conftest$ac_exeext
8710   if test "${ac_cv_search_exc_resume+set}" = set; then :
8711   break
8712 fi
8713 done
8714 if test "${ac_cv_search_exc_resume+set}" = set; then :
8715
8716 else
8717   ac_cv_search_exc_resume=no
8718 fi
8719 rm conftest.$ac_ext
8720 LIBS=$ac_func_search_save_LIBS
8721 fi
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8723 $as_echo "$ac_cv_search_exc_resume" >&6; }
8724 ac_res=$ac_cv_search_exc_resume
8725 if test "$ac_res" != no; then :
8726   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8727
8728 fi
8729
8730 GNAT_LIBEXC="$LIBS"
8731 LIBS="$save_LIBS"
8732
8733
8734 # Some systems put ldexp and frexp in libm instead of libc; assume
8735 # they're both in the same place.  jcf-dump needs them.
8736 save_LIBS="$LIBS"
8737 LIBS=
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8739 $as_echo_n "checking for library containing ldexp... " >&6; }
8740 if test "${ac_cv_search_ldexp+set}" = set; then :
8741   $as_echo_n "(cached) " >&6
8742 else
8743   ac_func_search_save_LIBS=$LIBS
8744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8745 /* end confdefs.h.  */
8746
8747 /* Override any GCC internal prototype to avoid an error.
8748    Use char because int might match the return type of a GCC
8749    builtin and then its argument prototype would still apply.  */
8750 #ifdef __cplusplus
8751 extern "C"
8752 #endif
8753 char ldexp ();
8754 int
8755 main ()
8756 {
8757 return ldexp ();
8758   ;
8759   return 0;
8760 }
8761 _ACEOF
8762 for ac_lib in '' m; do
8763   if test -z "$ac_lib"; then
8764     ac_res="none required"
8765   else
8766     ac_res=-l$ac_lib
8767     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8768   fi
8769   if ac_fn_c_try_link "$LINENO"; then :
8770   ac_cv_search_ldexp=$ac_res
8771 fi
8772 rm -f core conftest.err conftest.$ac_objext \
8773     conftest$ac_exeext
8774   if test "${ac_cv_search_ldexp+set}" = set; then :
8775   break
8776 fi
8777 done
8778 if test "${ac_cv_search_ldexp+set}" = set; then :
8779
8780 else
8781   ac_cv_search_ldexp=no
8782 fi
8783 rm conftest.$ac_ext
8784 LIBS=$ac_func_search_save_LIBS
8785 fi
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8787 $as_echo "$ac_cv_search_ldexp" >&6; }
8788 ac_res=$ac_cv_search_ldexp
8789 if test "$ac_res" != no; then :
8790   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8791
8792 fi
8793
8794 LDEXP_LIB="$LIBS"
8795 LIBS="$save_LIBS"
8796
8797
8798 # Use <inttypes.h> only if it exists,
8799 # doesn't clash with <sys/types.h>, and declares intmax_t.
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8801 $as_echo_n "checking for inttypes.h... " >&6; }
8802 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8803   $as_echo_n "(cached) " >&6
8804 else
8805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h.  */
8807 #include <sys/types.h>
8808 #include <inttypes.h>
8809 int
8810 main ()
8811 {
8812 intmax_t i = -1;
8813   ;
8814   return 0;
8815 }
8816 _ACEOF
8817 if ac_fn_c_try_compile "$LINENO"; then :
8818   gcc_cv_header_inttypes_h=yes
8819 else
8820   gcc_cv_header_inttypes_h=no
8821 fi
8822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8823 fi
8824
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8826 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8827 if test $gcc_cv_header_inttypes_h = yes; then
8828
8829 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8830
8831 fi
8832
8833
8834
8835 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8836         sysconf strsignal getrusage nl_langinfo \
8837         gettimeofday mbstowcs wcswidth mmap setlocale \
8838         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
8839 do :
8840   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8841 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8842 eval as_val=\$$as_ac_var
8843    if test "x$as_val" = x""yes; then :
8844   cat >>confdefs.h <<_ACEOF
8845 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8846 _ACEOF
8847
8848 fi
8849 done
8850
8851
8852 if test x$ac_cv_func_mbstowcs = xyes; then
8853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8854 $as_echo_n "checking whether mbstowcs works... " >&6; }
8855 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8856   $as_echo_n "(cached) " >&6
8857 else
8858       if test "$cross_compiling" = yes; then :
8859   gcc_cv_func_mbstowcs_works=yes
8860 else
8861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h.  */
8863 #include <stdlib.h>
8864 int main()
8865 {
8866   mbstowcs(0, "", 0);
8867   return 0;
8868 }
8869 _ACEOF
8870 if ac_fn_c_try_run "$LINENO"; then :
8871   gcc_cv_func_mbstowcs_works=yes
8872 else
8873   gcc_cv_func_mbstowcs_works=no
8874 fi
8875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8876   conftest.$ac_objext conftest.beam conftest.$ac_ext
8877 fi
8878
8879 fi
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8881 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8882   if test x$gcc_cv_func_mbstowcs_works = xyes; then
8883
8884 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8885
8886   fi
8887 fi
8888
8889 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8890 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8891
8892 else
8893
8894 cat >>confdefs.h <<_ACEOF
8895 #define ssize_t int
8896 _ACEOF
8897
8898 fi
8899
8900 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8901 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8902
8903 else
8904
8905 cat >>confdefs.h <<_ACEOF
8906 #define caddr_t char *
8907 _ACEOF
8908
8909 fi
8910
8911
8912
8913 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8914 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8915   gcc_header_sys_mman_h=yes
8916 else
8917   gcc_header_sys_mman_h=no
8918 fi
8919
8920 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8921 if test "x$ac_cv_func_mmap" = x""yes; then :
8922   gcc_func_mmap=yes
8923 else
8924   gcc_func_mmap=no
8925 fi
8926
8927 if test "$gcc_header_sys_mman_h" != yes \
8928  || test "$gcc_func_mmap" != yes; then
8929    gcc_cv_func_mmap_file=no
8930    gcc_cv_func_mmap_dev_zero=no
8931    gcc_cv_func_mmap_anon=no
8932 else
8933    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8934 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8935 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8936   $as_echo_n "(cached) " >&6
8937 else
8938   # Add a system to this blacklist if
8939    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8940    # memory area containing the same data that you'd get if you applied
8941    # read() to the same fd.  The only system known to have a problem here
8942    # is VMS, where text files have record structure.
8943    case "$host_os" in
8944      vms* | ultrix*)
8945         gcc_cv_func_mmap_file=no ;;
8946      *)
8947         gcc_cv_func_mmap_file=yes;;
8948    esac
8949 fi
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8951 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8952    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8953 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8954 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8955   $as_echo_n "(cached) " >&6
8956 else
8957   # Add a system to this blacklist if it has mmap() but /dev/zero
8958    # does not exist, or if mmapping /dev/zero does not give anonymous
8959    # zeroed pages with both the following properties:
8960    # 1. If you map N consecutive pages in with one call, and then
8961    #    unmap any subset of those pages, the pages that were not
8962    #    explicitly unmapped remain accessible.
8963    # 2. If you map two adjacent blocks of memory and then unmap them
8964    #    both at once, they must both go away.
8965    # Systems known to be in this category are Windows (all variants),
8966    # VMS, and Darwin.
8967    case "$host_os" in
8968      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8969         gcc_cv_func_mmap_dev_zero=no ;;
8970      *)
8971         gcc_cv_func_mmap_dev_zero=yes;;
8972    esac
8973 fi
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8975 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8976
8977    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8978    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8979 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8980 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8981   $as_echo_n "(cached) " >&6
8982 else
8983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984 /* end confdefs.h.  */
8985 #include <sys/types.h>
8986 #include <sys/mman.h>
8987 #include <unistd.h>
8988
8989 #ifndef MAP_ANONYMOUS
8990 #define MAP_ANONYMOUS MAP_ANON
8991 #endif
8992
8993 int
8994 main ()
8995 {
8996 int n = MAP_ANONYMOUS;
8997   ;
8998   return 0;
8999 }
9000 _ACEOF
9001 if ac_fn_c_try_compile "$LINENO"; then :
9002   gcc_cv_decl_map_anon=yes
9003 else
9004   gcc_cv_decl_map_anon=no
9005 fi
9006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9007 fi
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9009 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9010
9011    if test $gcc_cv_decl_map_anon = no; then
9012      gcc_cv_func_mmap_anon=no
9013    else
9014      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9015 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9016 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9017   $as_echo_n "(cached) " >&6
9018 else
9019   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9020    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9021    # doesn't give anonymous zeroed pages with the same properties listed
9022    # above for use of /dev/zero.
9023    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9024    case "$host_os" in
9025      vms* | cygwin* | pe | mingw* | sco* | udk* )
9026         gcc_cv_func_mmap_anon=no ;;
9027      *)
9028         gcc_cv_func_mmap_anon=yes;;
9029    esac
9030 fi
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9032 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9033    fi
9034 fi
9035
9036 if test $gcc_cv_func_mmap_file = yes; then
9037
9038 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9039
9040 fi
9041 if test $gcc_cv_func_mmap_dev_zero = yes; then
9042
9043 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9044
9045 fi
9046 if test $gcc_cv_func_mmap_anon = yes; then
9047
9048 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9049
9050 fi
9051
9052
9053 case "${host}" in
9054 *-*-*vms*)
9055   # Under VMS, vfork works very differently than on Unix. The standard test
9056   # won't work, and it isn't easily adaptable. It makes more sense to
9057   # just force it.
9058   ac_cv_func_vfork_works=yes
9059   ;;
9060 esac
9061 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9062 if test "x$ac_cv_type_pid_t" = x""yes; then :
9063
9064 else
9065
9066 cat >>confdefs.h <<_ACEOF
9067 #define pid_t int
9068 _ACEOF
9069
9070 fi
9071
9072 for ac_header in vfork.h
9073 do :
9074   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9075 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9076   cat >>confdefs.h <<_ACEOF
9077 #define HAVE_VFORK_H 1
9078 _ACEOF
9079
9080 fi
9081 done
9082
9083 for ac_func in fork vfork
9084 do :
9085   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9086 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9087 eval as_val=\$$as_ac_var
9088    if test "x$as_val" = x""yes; then :
9089   cat >>confdefs.h <<_ACEOF
9090 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9091 _ACEOF
9092
9093 fi
9094 done
9095
9096 if test "x$ac_cv_func_fork" = xyes; then
9097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9098 $as_echo_n "checking for working fork... " >&6; }
9099 if test "${ac_cv_func_fork_works+set}" = set; then :
9100   $as_echo_n "(cached) " >&6
9101 else
9102   if test "$cross_compiling" = yes; then :
9103   ac_cv_func_fork_works=cross
9104 else
9105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106 /* end confdefs.h.  */
9107 $ac_includes_default
9108 int
9109 main ()
9110 {
9111
9112           /* By Ruediger Kuhlmann. */
9113           return fork () < 0;
9114
9115   ;
9116   return 0;
9117 }
9118 _ACEOF
9119 if ac_fn_c_try_run "$LINENO"; then :
9120   ac_cv_func_fork_works=yes
9121 else
9122   ac_cv_func_fork_works=no
9123 fi
9124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9125   conftest.$ac_objext conftest.beam conftest.$ac_ext
9126 fi
9127
9128 fi
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9130 $as_echo "$ac_cv_func_fork_works" >&6; }
9131
9132 else
9133   ac_cv_func_fork_works=$ac_cv_func_fork
9134 fi
9135 if test "x$ac_cv_func_fork_works" = xcross; then
9136   case $host in
9137     *-*-amigaos* | *-*-msdosdjgpp*)
9138       # Override, as these systems have only a dummy fork() stub
9139       ac_cv_func_fork_works=no
9140       ;;
9141     *)
9142       ac_cv_func_fork_works=yes
9143       ;;
9144   esac
9145   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9146 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9147 fi
9148 ac_cv_func_vfork_works=$ac_cv_func_vfork
9149 if test "x$ac_cv_func_vfork" = xyes; then
9150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9151 $as_echo_n "checking for working vfork... " >&6; }
9152 if test "${ac_cv_func_vfork_works+set}" = set; then :
9153   $as_echo_n "(cached) " >&6
9154 else
9155   if test "$cross_compiling" = yes; then :
9156   ac_cv_func_vfork_works=cross
9157 else
9158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h.  */
9160 /* Thanks to Paul Eggert for this test.  */
9161 $ac_includes_default
9162 #include <sys/wait.h>
9163 #ifdef HAVE_VFORK_H
9164 # include <vfork.h>
9165 #endif
9166 /* On some sparc systems, changes by the child to local and incoming
9167    argument registers are propagated back to the parent.  The compiler
9168    is told about this with #include <vfork.h>, but some compilers
9169    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9170    static variable whose address is put into a register that is
9171    clobbered by the vfork.  */
9172 static void
9173 #ifdef __cplusplus
9174 sparc_address_test (int arg)
9175 # else
9176 sparc_address_test (arg) int arg;
9177 #endif
9178 {
9179   static pid_t child;
9180   if (!child) {
9181     child = vfork ();
9182     if (child < 0) {
9183       perror ("vfork");
9184       _exit(2);
9185     }
9186     if (!child) {
9187       arg = getpid();
9188       write(-1, "", 0);
9189       _exit (arg);
9190     }
9191   }
9192 }
9193
9194 int
9195 main ()
9196 {
9197   pid_t parent = getpid ();
9198   pid_t child;
9199
9200   sparc_address_test (0);
9201
9202   child = vfork ();
9203
9204   if (child == 0) {
9205     /* Here is another test for sparc vfork register problems.  This
9206        test uses lots of local variables, at least as many local
9207        variables as main has allocated so far including compiler
9208        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9209        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9210        reuse the register of parent for one of the local variables,
9211        since it will think that parent can't possibly be used any more
9212        in this routine.  Assigning to the local variable will thus
9213        munge parent in the parent process.  */
9214     pid_t
9215       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9216       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9217     /* Convince the compiler that p..p7 are live; otherwise, it might
9218        use the same hardware register for all 8 local variables.  */
9219     if (p != p1 || p != p2 || p != p3 || p != p4
9220         || p != p5 || p != p6 || p != p7)
9221       _exit(1);
9222
9223     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9224        from child file descriptors.  If the child closes a descriptor
9225        before it execs or exits, this munges the parent's descriptor
9226        as well.  Test for this by closing stdout in the child.  */
9227     _exit(close(fileno(stdout)) != 0);
9228   } else {
9229     int status;
9230     struct stat st;
9231
9232     while (wait(&status) != child)
9233       ;
9234     return (
9235          /* Was there some problem with vforking?  */
9236          child < 0
9237
9238          /* Did the child fail?  (This shouldn't happen.)  */
9239          || status
9240
9241          /* Did the vfork/compiler bug occur?  */
9242          || parent != getpid()
9243
9244          /* Did the file descriptor bug occur?  */
9245          || fstat(fileno(stdout), &st) != 0
9246          );
9247   }
9248 }
9249 _ACEOF
9250 if ac_fn_c_try_run "$LINENO"; then :
9251   ac_cv_func_vfork_works=yes
9252 else
9253   ac_cv_func_vfork_works=no
9254 fi
9255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9256   conftest.$ac_objext conftest.beam conftest.$ac_ext
9257 fi
9258
9259 fi
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9261 $as_echo "$ac_cv_func_vfork_works" >&6; }
9262
9263 fi;
9264 if test "x$ac_cv_func_fork_works" = xcross; then
9265   ac_cv_func_vfork_works=$ac_cv_func_vfork
9266   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9267 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9268 fi
9269
9270 if test "x$ac_cv_func_vfork_works" = xyes; then
9271
9272 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9273
9274 else
9275
9276 $as_echo "#define vfork fork" >>confdefs.h
9277
9278 fi
9279 if test "x$ac_cv_func_fork_works" = xyes; then
9280
9281 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9282
9283 fi
9284
9285
9286
9287       if test "X$prefix" = "XNONE"; then
9288     acl_final_prefix="$ac_default_prefix"
9289   else
9290     acl_final_prefix="$prefix"
9291   fi
9292   if test "X$exec_prefix" = "XNONE"; then
9293     acl_final_exec_prefix='${prefix}'
9294   else
9295     acl_final_exec_prefix="$exec_prefix"
9296   fi
9297   acl_save_prefix="$prefix"
9298   prefix="$acl_final_prefix"
9299   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9300   prefix="$acl_save_prefix"
9301
9302
9303 # Check whether --with-gnu-ld was given.
9304 if test "${with_gnu_ld+set}" = set; then :
9305   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9306 else
9307   with_gnu_ld=no
9308 fi
9309
9310 # Prepare PATH_SEPARATOR.
9311 # The user is always right.
9312 if test "${PATH_SEPARATOR+set}" != set; then
9313   echo "#! /bin/sh" >conf$$.sh
9314   echo  "exit 0"   >>conf$$.sh
9315   chmod +x conf$$.sh
9316   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9317     PATH_SEPARATOR=';'
9318   else
9319     PATH_SEPARATOR=:
9320   fi
9321   rm -f conf$$.sh
9322 fi
9323 ac_prog=ld
9324 if test "$GCC" = yes; then
9325   # Check if gcc -print-prog-name=ld gives a path.
9326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9327 $as_echo_n "checking for ld used by GCC... " >&6; }
9328   case $host in
9329   *-*-mingw*)
9330     # gcc leaves a trailing carriage return which upsets mingw
9331     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9332   *)
9333     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9334   esac
9335   case $ac_prog in
9336     # Accept absolute paths.
9337     [\\/]* | [A-Za-z]:[\\/]*)
9338       re_direlt='/[^/][^/]*/\.\./'
9339       # Canonicalize the path of ld
9340       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9341       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9342         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9343       done
9344       test -z "$LD" && LD="$ac_prog"
9345       ;;
9346   "")
9347     # If it fails, then pretend we aren't using GCC.
9348     ac_prog=ld
9349     ;;
9350   *)
9351     # If it is relative, then search for the first ld in PATH.
9352     with_gnu_ld=unknown
9353     ;;
9354   esac
9355 elif test "$with_gnu_ld" = yes; then
9356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9357 $as_echo_n "checking for GNU ld... " >&6; }
9358 else
9359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9360 $as_echo_n "checking for non-GNU ld... " >&6; }
9361 fi
9362 if test "${acl_cv_path_LD+set}" = set; then :
9363   $as_echo_n "(cached) " >&6
9364 else
9365   if test -z "$LD"; then
9366   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9367   for ac_dir in $PATH; do
9368     test -z "$ac_dir" && ac_dir=.
9369     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9370       acl_cv_path_LD="$ac_dir/$ac_prog"
9371       # Check to see if the program is GNU ld.  I'd rather use --version,
9372       # but apparently some GNU ld's only accept -v.
9373       # Break only if it was the GNU/non-GNU ld that we prefer.
9374       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9375         test "$with_gnu_ld" != no && break
9376       else
9377         test "$with_gnu_ld" != yes && break
9378       fi
9379     fi
9380   done
9381   IFS="$ac_save_ifs"
9382 else
9383   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9384 fi
9385 fi
9386
9387 LD="$acl_cv_path_LD"
9388 if test -n "$LD"; then
9389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9390 $as_echo "$LD" >&6; }
9391 else
9392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9393 $as_echo "no" >&6; }
9394 fi
9395 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9397 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9398 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9399   $as_echo_n "(cached) " >&6
9400 else
9401   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9402 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9403   acl_cv_prog_gnu_ld=yes
9404 else
9405   acl_cv_prog_gnu_ld=no
9406 fi
9407 fi
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9409 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9410 with_gnu_ld=$acl_cv_prog_gnu_ld
9411
9412
9413
9414                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9415 $as_echo_n "checking for shared library run path origin... " >&6; }
9416 if test "${acl_cv_rpath+set}" = set; then :
9417   $as_echo_n "(cached) " >&6
9418 else
9419
9420     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9421     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9422     . ./conftest.sh
9423     rm -f ./conftest.sh
9424     acl_cv_rpath=done
9425
9426 fi
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9428 $as_echo "$acl_cv_rpath" >&6; }
9429   wl="$acl_cv_wl"
9430   libext="$acl_cv_libext"
9431   shlibext="$acl_cv_shlibext"
9432   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9433   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9434   hardcode_direct="$acl_cv_hardcode_direct"
9435   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9436     # Check whether --enable-rpath was given.
9437 if test "${enable_rpath+set}" = set; then :
9438   enableval=$enable_rpath; :
9439 else
9440   enable_rpath=yes
9441 fi
9442
9443
9444
9445
9446
9447
9448
9449
9450     use_additional=yes
9451
9452   acl_save_prefix="$prefix"
9453   prefix="$acl_final_prefix"
9454   acl_save_exec_prefix="$exec_prefix"
9455   exec_prefix="$acl_final_exec_prefix"
9456
9457     eval additional_includedir=\"$includedir\"
9458     eval additional_libdir=\"$libdir\"
9459
9460   exec_prefix="$acl_save_exec_prefix"
9461   prefix="$acl_save_prefix"
9462
9463
9464 # Check whether --with-libiconv-prefix was given.
9465 if test "${with_libiconv_prefix+set}" = set; then :
9466   withval=$with_libiconv_prefix;
9467     if test "X$withval" = "Xno"; then
9468       use_additional=no
9469     else
9470       if test "X$withval" = "X"; then
9471
9472   acl_save_prefix="$prefix"
9473   prefix="$acl_final_prefix"
9474   acl_save_exec_prefix="$exec_prefix"
9475   exec_prefix="$acl_final_exec_prefix"
9476
9477           eval additional_includedir=\"$includedir\"
9478           eval additional_libdir=\"$libdir\"
9479
9480   exec_prefix="$acl_save_exec_prefix"
9481   prefix="$acl_save_prefix"
9482
9483       else
9484         additional_includedir="$withval/include"
9485         additional_libdir="$withval/lib"
9486       fi
9487     fi
9488
9489 fi
9490
9491       LIBICONV=
9492   LTLIBICONV=
9493   INCICONV=
9494   rpathdirs=
9495   ltrpathdirs=
9496   names_already_handled=
9497   names_next_round='iconv '
9498   while test -n "$names_next_round"; do
9499     names_this_round="$names_next_round"
9500     names_next_round=
9501     for name in $names_this_round; do
9502       already_handled=
9503       for n in $names_already_handled; do
9504         if test "$n" = "$name"; then
9505           already_handled=yes
9506           break
9507         fi
9508       done
9509       if test -z "$already_handled"; then
9510         names_already_handled="$names_already_handled $name"
9511                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9512         eval value=\"\$HAVE_LIB$uppername\"
9513         if test -n "$value"; then
9514           if test "$value" = yes; then
9515             eval value=\"\$LIB$uppername\"
9516             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9517             eval value=\"\$LTLIB$uppername\"
9518             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9519           else
9520                                     :
9521           fi
9522         else
9523                               found_dir=
9524           found_la=
9525           found_so=
9526           found_a=
9527           if test $use_additional = yes; then
9528             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9529               found_dir="$additional_libdir"
9530               found_so="$additional_libdir/lib$name.$shlibext"
9531               if test -f "$additional_libdir/lib$name.la"; then
9532                 found_la="$additional_libdir/lib$name.la"
9533               fi
9534             else
9535               if test -f "$additional_libdir/lib$name.$libext"; then
9536                 found_dir="$additional_libdir"
9537                 found_a="$additional_libdir/lib$name.$libext"
9538                 if test -f "$additional_libdir/lib$name.la"; then
9539                   found_la="$additional_libdir/lib$name.la"
9540                 fi
9541               fi
9542             fi
9543           fi
9544           if test "X$found_dir" = "X"; then
9545             for x in $LDFLAGS $LTLIBICONV; do
9546
9547   acl_save_prefix="$prefix"
9548   prefix="$acl_final_prefix"
9549   acl_save_exec_prefix="$exec_prefix"
9550   exec_prefix="$acl_final_exec_prefix"
9551   eval x=\"$x\"
9552   exec_prefix="$acl_save_exec_prefix"
9553   prefix="$acl_save_prefix"
9554
9555               case "$x" in
9556                 -L*)
9557                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9558                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9559                     found_dir="$dir"
9560                     found_so="$dir/lib$name.$shlibext"
9561                     if test -f "$dir/lib$name.la"; then
9562                       found_la="$dir/lib$name.la"
9563                     fi
9564                   else
9565                     if test -f "$dir/lib$name.$libext"; then
9566                       found_dir="$dir"
9567                       found_a="$dir/lib$name.$libext"
9568                       if test -f "$dir/lib$name.la"; then
9569                         found_la="$dir/lib$name.la"
9570                       fi
9571                     fi
9572                   fi
9573                   ;;
9574               esac
9575               if test "X$found_dir" != "X"; then
9576                 break
9577               fi
9578             done
9579           fi
9580           if test "X$found_dir" != "X"; then
9581                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9582             if test "X$found_so" != "X"; then
9583                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9584                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9585               else
9586                                                                                 haveit=
9587                 for x in $ltrpathdirs; do
9588                   if test "X$x" = "X$found_dir"; then
9589                     haveit=yes
9590                     break
9591                   fi
9592                 done
9593                 if test -z "$haveit"; then
9594                   ltrpathdirs="$ltrpathdirs $found_dir"
9595                 fi
9596                                 if test "$hardcode_direct" = yes; then
9597                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9598                 else
9599                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9600                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9601                                                             haveit=
9602                     for x in $rpathdirs; do
9603                       if test "X$x" = "X$found_dir"; then
9604                         haveit=yes
9605                         break
9606                       fi
9607                     done
9608                     if test -z "$haveit"; then
9609                       rpathdirs="$rpathdirs $found_dir"
9610                     fi
9611                   else
9612                                                                                 haveit=
9613                     for x in $LDFLAGS $LIBICONV; do
9614
9615   acl_save_prefix="$prefix"
9616   prefix="$acl_final_prefix"
9617   acl_save_exec_prefix="$exec_prefix"
9618   exec_prefix="$acl_final_exec_prefix"
9619   eval x=\"$x\"
9620   exec_prefix="$acl_save_exec_prefix"
9621   prefix="$acl_save_prefix"
9622
9623                       if test "X$x" = "X-L$found_dir"; then
9624                         haveit=yes
9625                         break
9626                       fi
9627                     done
9628                     if test -z "$haveit"; then
9629                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9630                     fi
9631                     if test "$hardcode_minus_L" != no; then
9632                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9633                     else
9634                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9635                     fi
9636                   fi
9637                 fi
9638               fi
9639             else
9640               if test "X$found_a" != "X"; then
9641                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9642               else
9643                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9644               fi
9645             fi
9646                         additional_includedir=
9647             case "$found_dir" in
9648               */lib | */lib/)
9649                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9650                 additional_includedir="$basedir/include"
9651                 ;;
9652             esac
9653             if test "X$additional_includedir" != "X"; then
9654                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9655                 haveit=
9656                 if test "X$additional_includedir" = "X/usr/local/include"; then
9657                   if test -n "$GCC"; then
9658                     case $host_os in
9659                       linux*) haveit=yes;;
9660                     esac
9661                   fi
9662                 fi
9663                 if test -z "$haveit"; then
9664                   for x in $CPPFLAGS $INCICONV; do
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   eval x=\"$x\"
9671   exec_prefix="$acl_save_exec_prefix"
9672   prefix="$acl_save_prefix"
9673
9674                     if test "X$x" = "X-I$additional_includedir"; then
9675                       haveit=yes
9676                       break
9677                     fi
9678                   done
9679                   if test -z "$haveit"; then
9680                     if test -d "$additional_includedir"; then
9681                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9682                     fi
9683                   fi
9684                 fi
9685               fi
9686             fi
9687                         if test -n "$found_la"; then
9688                                                         save_libdir="$libdir"
9689               case "$found_la" in
9690                 */* | *\\*) . "$found_la" ;;
9691                 *) . "./$found_la" ;;
9692               esac
9693               libdir="$save_libdir"
9694                             for dep in $dependency_libs; do
9695                 case "$dep" in
9696                   -L*)
9697                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9698                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9699                       haveit=
9700                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9701                         if test -n "$GCC"; then
9702                           case $host_os in
9703                             linux*) haveit=yes;;
9704                           esac
9705                         fi
9706                       fi
9707                       if test -z "$haveit"; then
9708                         haveit=
9709                         for x in $LDFLAGS $LIBICONV; do
9710
9711   acl_save_prefix="$prefix"
9712   prefix="$acl_final_prefix"
9713   acl_save_exec_prefix="$exec_prefix"
9714   exec_prefix="$acl_final_exec_prefix"
9715   eval x=\"$x\"
9716   exec_prefix="$acl_save_exec_prefix"
9717   prefix="$acl_save_prefix"
9718
9719                           if test "X$x" = "X-L$additional_libdir"; then
9720                             haveit=yes
9721                             break
9722                           fi
9723                         done
9724                         if test -z "$haveit"; then
9725                           if test -d "$additional_libdir"; then
9726                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9727                           fi
9728                         fi
9729                         haveit=
9730                         for x in $LDFLAGS $LTLIBICONV; do
9731
9732   acl_save_prefix="$prefix"
9733   prefix="$acl_final_prefix"
9734   acl_save_exec_prefix="$exec_prefix"
9735   exec_prefix="$acl_final_exec_prefix"
9736   eval x=\"$x\"
9737   exec_prefix="$acl_save_exec_prefix"
9738   prefix="$acl_save_prefix"
9739
9740                           if test "X$x" = "X-L$additional_libdir"; then
9741                             haveit=yes
9742                             break
9743                           fi
9744                         done
9745                         if test -z "$haveit"; then
9746                           if test -d "$additional_libdir"; then
9747                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9748                           fi
9749                         fi
9750                       fi
9751                     fi
9752                     ;;
9753                   -R*)
9754                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9755                     if test "$enable_rpath" != no; then
9756                                                                   haveit=
9757                       for x in $rpathdirs; do
9758                         if test "X$x" = "X$dir"; then
9759                           haveit=yes
9760                           break
9761                         fi
9762                       done
9763                       if test -z "$haveit"; then
9764                         rpathdirs="$rpathdirs $dir"
9765                       fi
9766                                                                   haveit=
9767                       for x in $ltrpathdirs; do
9768                         if test "X$x" = "X$dir"; then
9769                           haveit=yes
9770                           break
9771                         fi
9772                       done
9773                       if test -z "$haveit"; then
9774                         ltrpathdirs="$ltrpathdirs $dir"
9775                       fi
9776                     fi
9777                     ;;
9778                   -l*)
9779                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9780                     ;;
9781                   *.la)
9782                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9783                     ;;
9784                   *)
9785                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9786                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9787                     ;;
9788                 esac
9789               done
9790             fi
9791           else
9792                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9793             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9794           fi
9795         fi
9796       fi
9797     done
9798   done
9799   if test "X$rpathdirs" != "X"; then
9800     if test -n "$hardcode_libdir_separator"; then
9801                         alldirs=
9802       for found_dir in $rpathdirs; do
9803         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9804       done
9805             acl_save_libdir="$libdir"
9806       libdir="$alldirs"
9807       eval flag=\"$hardcode_libdir_flag_spec\"
9808       libdir="$acl_save_libdir"
9809       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9810     else
9811             for found_dir in $rpathdirs; do
9812         acl_save_libdir="$libdir"
9813         libdir="$found_dir"
9814         eval flag=\"$hardcode_libdir_flag_spec\"
9815         libdir="$acl_save_libdir"
9816         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9817       done
9818     fi
9819   fi
9820   if test "X$ltrpathdirs" != "X"; then
9821             for found_dir in $ltrpathdirs; do
9822       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9823     done
9824   fi
9825
9826
9827
9828
9829
9830
9831
9832           am_save_CPPFLAGS="$CPPFLAGS"
9833
9834   for element in $INCICONV; do
9835     haveit=
9836     for x in $CPPFLAGS; do
9837
9838   acl_save_prefix="$prefix"
9839   prefix="$acl_final_prefix"
9840   acl_save_exec_prefix="$exec_prefix"
9841   exec_prefix="$acl_final_exec_prefix"
9842   eval x=\"$x\"
9843   exec_prefix="$acl_save_exec_prefix"
9844   prefix="$acl_save_prefix"
9845
9846       if test "X$x" = "X$element"; then
9847         haveit=yes
9848         break
9849       fi
9850     done
9851     if test -z "$haveit"; then
9852       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9853     fi
9854   done
9855
9856
9857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9858 $as_echo_n "checking for iconv... " >&6; }
9859 if test "${am_cv_func_iconv+set}" = set; then :
9860   $as_echo_n "(cached) " >&6
9861 else
9862
9863     am_cv_func_iconv="no, consider installing GNU libiconv"
9864     am_cv_lib_iconv=no
9865     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866 /* end confdefs.h.  */
9867 #include <stdlib.h>
9868 #include <iconv.h>
9869 int
9870 main ()
9871 {
9872 iconv_t cd = iconv_open("","");
9873        iconv(cd,NULL,NULL,NULL,NULL);
9874        iconv_close(cd);
9875   ;
9876   return 0;
9877 }
9878 _ACEOF
9879 if ac_fn_c_try_link "$LINENO"; then :
9880   am_cv_func_iconv=yes
9881 fi
9882 rm -f core conftest.err conftest.$ac_objext \
9883     conftest$ac_exeext conftest.$ac_ext
9884     if test "$am_cv_func_iconv" != yes; then
9885       am_save_LIBS="$LIBS"
9886       LIBS="$LIBS $LIBICONV"
9887       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h.  */
9889 #include <stdlib.h>
9890 #include <iconv.h>
9891 int
9892 main ()
9893 {
9894 iconv_t cd = iconv_open("","");
9895          iconv(cd,NULL,NULL,NULL,NULL);
9896          iconv_close(cd);
9897   ;
9898   return 0;
9899 }
9900 _ACEOF
9901 if ac_fn_c_try_link "$LINENO"; then :
9902   am_cv_lib_iconv=yes
9903         am_cv_func_iconv=yes
9904 fi
9905 rm -f core conftest.err conftest.$ac_objext \
9906     conftest$ac_exeext conftest.$ac_ext
9907       LIBS="$am_save_LIBS"
9908     fi
9909
9910 fi
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9912 $as_echo "$am_cv_func_iconv" >&6; }
9913   if test "$am_cv_func_iconv" = yes; then
9914
9915 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9916
9917   fi
9918   if test "$am_cv_lib_iconv" = yes; then
9919     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9920 $as_echo_n "checking how to link with libiconv... " >&6; }
9921     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9922 $as_echo "$LIBICONV" >&6; }
9923   else
9924             CPPFLAGS="$am_save_CPPFLAGS"
9925     LIBICONV=
9926     LTLIBICONV=
9927   fi
9928
9929
9930
9931   if test "$am_cv_func_iconv" = yes; then
9932     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9933 $as_echo_n "checking for iconv declaration... " >&6; }
9934     if test "${am_cv_proto_iconv+set}" = set; then :
9935   $as_echo_n "(cached) " >&6
9936 else
9937
9938       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h.  */
9940
9941 #include <stdlib.h>
9942 #include <iconv.h>
9943 extern
9944 #ifdef __cplusplus
9945 "C"
9946 #endif
9947 #if defined(__STDC__) || defined(__cplusplus)
9948 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9949 #else
9950 size_t iconv();
9951 #endif
9952
9953 int
9954 main ()
9955 {
9956
9957   ;
9958   return 0;
9959 }
9960 _ACEOF
9961 if ac_fn_c_try_compile "$LINENO"; then :
9962   am_cv_proto_iconv_arg1=""
9963 else
9964   am_cv_proto_iconv_arg1="const"
9965 fi
9966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9967       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);"
9968 fi
9969
9970     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9971     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9972          }$am_cv_proto_iconv" >&5
9973 $as_echo "${ac_t:-
9974          }$am_cv_proto_iconv" >&6; }
9975
9976 cat >>confdefs.h <<_ACEOF
9977 #define ICONV_CONST $am_cv_proto_iconv_arg1
9978 _ACEOF
9979
9980   fi
9981
9982 # Until we have in-tree GNU iconv:
9983 LIBICONV_DEP=
9984
9985
9986
9987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9988 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9989 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9990   $as_echo_n "(cached) " >&6
9991 else
9992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h.  */
9994 #include <locale.h>
9995 int
9996 main ()
9997 {
9998 return LC_MESSAGES
9999   ;
10000   return 0;
10001 }
10002 _ACEOF
10003 if ac_fn_c_try_link "$LINENO"; then :
10004   am_cv_val_LC_MESSAGES=yes
10005 else
10006   am_cv_val_LC_MESSAGES=no
10007 fi
10008 rm -f core conftest.err conftest.$ac_objext \
10009     conftest$ac_exeext conftest.$ac_ext
10010 fi
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10012 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10013   if test $am_cv_val_LC_MESSAGES = yes; then
10014
10015 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10016
10017   fi
10018
10019
10020
10021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10022 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10023 if test "${am_cv_langinfo_codeset+set}" = set; then :
10024   $as_echo_n "(cached) " >&6
10025 else
10026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027 /* end confdefs.h.  */
10028 #include <langinfo.h>
10029 int
10030 main ()
10031 {
10032 char* cs = nl_langinfo(CODESET);
10033   ;
10034   return 0;
10035 }
10036 _ACEOF
10037 if ac_fn_c_try_link "$LINENO"; then :
10038   am_cv_langinfo_codeset=yes
10039 else
10040   am_cv_langinfo_codeset=no
10041 fi
10042 rm -f core conftest.err conftest.$ac_objext \
10043     conftest$ac_exeext conftest.$ac_ext
10044
10045 fi
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10047 $as_echo "$am_cv_langinfo_codeset" >&6; }
10048   if test $am_cv_langinfo_codeset = yes; then
10049
10050 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10051
10052   fi
10053
10054
10055 # We will need to find libiberty.h and ansidecl.h
10056 saved_CFLAGS="$CFLAGS"
10057 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10058 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10059         strsignal strstr strverscmp \
10060         errno snprintf vsnprintf vasprintf malloc realloc calloc \
10061         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
10062 do
10063   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10065 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10066 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10067   $as_echo_n "(cached) " >&6
10068 else
10069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10070 /* end confdefs.h.  */
10071 #undef $ac_tr_decl
10072 #define $ac_tr_decl 1
10073
10074 #include "ansidecl.h"
10075 #include "system.h"
10076
10077 int
10078 main ()
10079 {
10080 #ifndef $ac_func
10081 char *(*pfn) = (char *(*)) $ac_func ;
10082 #endif
10083   ;
10084   return 0;
10085 }
10086 _ACEOF
10087 if ac_fn_c_try_compile "$LINENO"; then :
10088   eval "gcc_cv_have_decl_$ac_func=yes"
10089 else
10090   eval "gcc_cv_have_decl_$ac_func=no"
10091 fi
10092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10093 fi
10094
10095 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10097 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10098 #define $ac_tr_decl 1
10099 _ACEOF
10100
10101 else
10102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10103 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10104 #define $ac_tr_decl 0
10105 _ACEOF
10106
10107 fi
10108
10109 done
10110
10111
10112 for ac_func in getrlimit setrlimit getrusage
10113 do
10114   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10116 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10117 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10118   $as_echo_n "(cached) " >&6
10119 else
10120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h.  */
10122 #undef $ac_tr_decl
10123 #define $ac_tr_decl 1
10124
10125 #include "ansidecl.h"
10126 #include "system.h"
10127 #ifdef HAVE_SYS_RESOURCE_H
10128 #include <sys/resource.h>
10129 #endif
10130
10131
10132 int
10133 main ()
10134 {
10135 #ifndef $ac_func
10136 char *(*pfn) = (char *(*)) $ac_func ;
10137 #endif
10138   ;
10139   return 0;
10140 }
10141 _ACEOF
10142 if ac_fn_c_try_compile "$LINENO"; then :
10143   eval "gcc_cv_have_decl_$ac_func=yes"
10144 else
10145   eval "gcc_cv_have_decl_$ac_func=no"
10146 fi
10147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10148 fi
10149
10150 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10152 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10153 #define $ac_tr_decl 1
10154 _ACEOF
10155
10156 else
10157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10158 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10159 #define $ac_tr_decl 0
10160 _ACEOF
10161
10162 fi
10163
10164 done
10165
10166
10167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168 /* end confdefs.h.  */
10169
10170 #include "ansidecl.h"
10171 #include "system.h"
10172 #ifdef HAVE_SYS_RESOURCE_H
10173 #include <sys/resource.h>
10174 #endif
10175
10176 int
10177 main ()
10178 {
10179 rlim_t l = 0;
10180   ;
10181   return 0;
10182 }
10183 _ACEOF
10184 if ac_fn_c_try_compile "$LINENO"; then :
10185
10186 else
10187
10188 $as_echo "#define rlim_t long" >>confdefs.h
10189
10190 fi
10191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10192
10193 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10194 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
10195 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10196 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10197 for ac_func in ldgetname
10198 do
10199   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10201 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10202 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10203   $as_echo_n "(cached) " >&6
10204 else
10205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206 /* end confdefs.h.  */
10207 #undef $ac_tr_decl
10208 #define $ac_tr_decl 1
10209
10210 #include "ansidecl.h"
10211 #include "system.h"
10212 #ifdef HAVE_LDFCN_H
10213 #undef FREAD
10214 #undef FWRITE
10215 #include <ldfcn.h>
10216 #endif
10217
10218
10219 int
10220 main ()
10221 {
10222 #ifndef $ac_func
10223 char *(*pfn) = (char *(*)) $ac_func ;
10224 #endif
10225   ;
10226   return 0;
10227 }
10228 _ACEOF
10229 if ac_fn_c_try_compile "$LINENO"; then :
10230   eval "gcc_cv_have_decl_$ac_func=yes"
10231 else
10232   eval "gcc_cv_have_decl_$ac_func=no"
10233 fi
10234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10235 fi
10236
10237 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10239 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10240 #define $ac_tr_decl 1
10241 _ACEOF
10242
10243 else
10244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10245 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10246 #define $ac_tr_decl 0
10247 _ACEOF
10248
10249 fi
10250
10251 done
10252
10253
10254 for ac_func in times
10255 do
10256   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10258 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10259 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10260   $as_echo_n "(cached) " >&6
10261 else
10262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10263 /* end confdefs.h.  */
10264 #undef $ac_tr_decl
10265 #define $ac_tr_decl 1
10266
10267 #include "ansidecl.h"
10268 #include "system.h"
10269 #ifdef HAVE_SYS_TIMES_H
10270 #include <sys/times.h>
10271 #endif
10272
10273
10274 int
10275 main ()
10276 {
10277 #ifndef $ac_func
10278 char *(*pfn) = (char *(*)) $ac_func ;
10279 #endif
10280   ;
10281   return 0;
10282 }
10283 _ACEOF
10284 if ac_fn_c_try_compile "$LINENO"; then :
10285   eval "gcc_cv_have_decl_$ac_func=yes"
10286 else
10287   eval "gcc_cv_have_decl_$ac_func=no"
10288 fi
10289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10290 fi
10291
10292 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10294 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10295 #define $ac_tr_decl 1
10296 _ACEOF
10297
10298 else
10299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10300 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10301 #define $ac_tr_decl 0
10302 _ACEOF
10303
10304 fi
10305
10306 done
10307
10308
10309 for ac_func in sigaltstack
10310 do
10311   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10313 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10314 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10315   $as_echo_n "(cached) " >&6
10316 else
10317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10318 /* end confdefs.h.  */
10319 #undef $ac_tr_decl
10320 #define $ac_tr_decl 1
10321
10322 #include "ansidecl.h"
10323 #include "system.h"
10324 #include <signal.h>
10325
10326
10327 int
10328 main ()
10329 {
10330 #ifndef $ac_func
10331 char *(*pfn) = (char *(*)) $ac_func ;
10332 #endif
10333   ;
10334   return 0;
10335 }
10336 _ACEOF
10337 if ac_fn_c_try_compile "$LINENO"; then :
10338   eval "gcc_cv_have_decl_$ac_func=yes"
10339 else
10340   eval "gcc_cv_have_decl_$ac_func=no"
10341 fi
10342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10343 fi
10344
10345 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10347 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10348 #define $ac_tr_decl 1
10349 _ACEOF
10350
10351 else
10352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10353 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10354 #define $ac_tr_decl 0
10355 _ACEOF
10356
10357 fi
10358
10359 done
10360
10361
10362 # More time-related stuff.
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10364 $as_echo_n "checking for struct tms... " >&6; }
10365 if test "${ac_cv_struct_tms+set}" = set; then :
10366   $as_echo_n "(cached) " >&6
10367 else
10368
10369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10370 /* end confdefs.h.  */
10371
10372 #include "ansidecl.h"
10373 #include "system.h"
10374 #ifdef HAVE_SYS_TIMES_H
10375 #include <sys/times.h>
10376 #endif
10377
10378 int
10379 main ()
10380 {
10381 struct tms tms;
10382   ;
10383   return 0;
10384 }
10385 _ACEOF
10386 if ac_fn_c_try_compile "$LINENO"; then :
10387   ac_cv_struct_tms=yes
10388 else
10389   ac_cv_struct_tms=no
10390 fi
10391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10392 fi
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10394 $as_echo "$ac_cv_struct_tms" >&6; }
10395 if test $ac_cv_struct_tms = yes; then
10396
10397 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10398
10399 fi
10400
10401 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10402 # revisit after autoconf 2.50.
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10404 $as_echo_n "checking for clock_t... " >&6; }
10405 if test "${gcc_cv_type_clock_t+set}" = set; then :
10406   $as_echo_n "(cached) " >&6
10407 else
10408
10409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h.  */
10411
10412 #include "ansidecl.h"
10413 #include "system.h"
10414
10415 int
10416 main ()
10417 {
10418 clock_t x;
10419   ;
10420   return 0;
10421 }
10422 _ACEOF
10423 if ac_fn_c_try_compile "$LINENO"; then :
10424   gcc_cv_type_clock_t=yes
10425 else
10426   gcc_cv_type_clock_t=no
10427 fi
10428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10429 fi
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10431 $as_echo "$gcc_cv_type_clock_t" >&6; }
10432 if test $gcc_cv_type_clock_t = yes; then
10433
10434 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10435
10436 fi
10437
10438 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10439 CFLAGS="$saved_CFLAGS"
10440
10441 # Check whether --enable-initfini-array was given.
10442 if test "${enable_initfini_array+set}" = set; then :
10443   enableval=$enable_initfini_array;
10444 else
10445
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10447 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10448 if test "${gcc_cv_initfini_array+set}" = set; then :
10449   $as_echo_n "(cached) " >&6
10450 else
10451     if test "$cross_compiling" = yes; then :
10452   gcc_cv_initfini_array=no
10453 else
10454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h.  */
10456
10457 static int x = -1;
10458 int main (void) { return x; }
10459 int foo (void) { x = 0; }
10460 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10461 _ACEOF
10462 if ac_fn_c_try_run "$LINENO"; then :
10463   gcc_cv_initfini_array=yes
10464 else
10465   gcc_cv_initfini_array=no
10466 fi
10467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10468   conftest.$ac_objext conftest.beam conftest.$ac_ext
10469 fi
10470
10471 fi
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10473 $as_echo "$gcc_cv_initfini_array" >&6; }
10474   enable_initfini_array=$gcc_cv_initfini_array
10475
10476 fi
10477
10478 if test $enable_initfini_array = yes; then
10479
10480 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10481
10482 fi
10483
10484 # mkdir takes a single argument on some systems.
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10486 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10487 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10488   $as_echo_n "(cached) " >&6
10489 else
10490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10491 /* end confdefs.h.  */
10492
10493 #include <sys/types.h>
10494 #ifdef HAVE_SYS_STAT_H
10495 # include <sys/stat.h>
10496 #endif
10497 #ifdef HAVE_UNISTD_H
10498 # include <unistd.h>
10499 #endif
10500 #ifdef HAVE_DIRECT_H
10501 # include <direct.h>
10502 #endif
10503 int
10504 main ()
10505 {
10506 mkdir ("foo", 0);
10507   ;
10508   return 0;
10509 }
10510 _ACEOF
10511 if ac_fn_c_try_compile "$LINENO"; then :
10512   gcc_cv_mkdir_takes_one_arg=no
10513 else
10514   gcc_cv_mkdir_takes_one_arg=yes
10515 fi
10516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10517 fi
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10519 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10520 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10521
10522 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10523
10524 fi
10525
10526
10527 # File extensions
10528 manext='.1'
10529 objext='.o'
10530
10531
10532
10533 # With Setjmp/Longjmp based exception handling.
10534 # Check whether --enable-sjlj-exceptions was given.
10535 if test "${enable_sjlj_exceptions+set}" = set; then :
10536   enableval=$enable_sjlj_exceptions; case $target in
10537   *-*-hpux10*)
10538     if test $enableval != yes; then
10539       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10540 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10541       enableval=yes
10542     fi
10543     ;;
10544 esac
10545 force_sjlj_exceptions=yes
10546 else
10547   case $target in
10548   *-*-hpux10*)
10549     force_sjlj_exceptions=yes
10550     enableval=yes
10551     ;;
10552   *)
10553     force_sjlj_exceptions=no
10554     ;;
10555 esac
10556 fi
10557
10558 if test $force_sjlj_exceptions = yes; then
10559   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10560
10561 cat >>confdefs.h <<_ACEOF
10562 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10563 _ACEOF
10564
10565 fi
10566
10567 # For platforms with the unwind ABI which includes an unwind library,
10568 # libunwind, we can choose to use the system libunwind.
10569 # config.gcc also contains tests of with_system_libunwind.
10570
10571
10572 # Check whether --with-system-libunwind was given.
10573 if test "${with_system_libunwind+set}" = set; then :
10574   withval=$with_system_libunwind;
10575 fi
10576
10577   # If system-libunwind was not specifically set, pick a default setting.
10578   if test x$with_system_libunwind = x; then
10579     case ${target} in
10580       ia64-*-hpux*) with_system_libunwind=yes ;;
10581       *) with_system_libunwind=no ;;
10582     esac
10583   fi
10584   # Based on system-libunwind and target, do we have ipinfo?
10585   if  test x$with_system_libunwind = xyes; then
10586     case ${target} in
10587       ia64-*-*) have_unwind_getipinfo=no ;;
10588       *) have_unwind_getipinfo=yes ;;
10589     esac
10590   else
10591     # Darwin before version 9 does not have _Unwind_GetIPInfo.
10592
10593     case ${target} in
10594       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10595       *) have_unwind_getipinfo=yes ;;
10596     esac
10597
10598   fi
10599
10600   if test x$have_unwind_getipinfo = xyes; then
10601
10602 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10603
10604   fi
10605
10606
10607 # --------------------------------------------------------
10608 # Build, host, and target specific configuration fragments
10609 # --------------------------------------------------------
10610
10611 # Collect build-machine-specific information.
10612 . ${srcdir}/config.build
10613
10614 # Collect host-machine-specific information.
10615 . ${srcdir}/config.host
10616
10617 target_gtfiles=
10618
10619 # Collect target-machine-specific information.
10620 . ${srcdir}/config.gcc
10621
10622 extra_objs="${host_extra_objs} ${extra_objs}"
10623 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10624
10625 # Default the target-machine variables that were not explicitly set.
10626 if test x"$tm_file" = x
10627 then tm_file=$cpu_type/$cpu_type.h; fi
10628
10629 if test x"$extra_headers" = x
10630 then extra_headers=; fi
10631
10632 if test x$md_file = x
10633 then md_file=$cpu_type/$cpu_type.md; fi
10634
10635 if test x$out_file = x
10636 then out_file=$cpu_type/$cpu_type.c; fi
10637
10638 if test x"$tmake_file" = x
10639 then tmake_file=$cpu_type/t-$cpu_type
10640 fi
10641
10642 if test x"$dwarf2" = xyes
10643 then tm_file="$tm_file tm-dwarf2.h"
10644 fi
10645
10646 # Say what files are being used for the output code and MD file.
10647 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10648 echo "Using \`$srcdir/config/$md_file' as machine description file."
10649
10650 # If any of the xm_file variables contain nonexistent files, warn
10651 # about them and drop them.
10652
10653 bx=
10654 for x in $build_xm_file; do
10655   if    test -f $srcdir/config/$x
10656   then      bx="$bx $x"
10657   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10658 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10659   fi
10660 done
10661 build_xm_file="$bx"
10662
10663 hx=
10664 for x in $host_xm_file; do
10665   if    test -f $srcdir/config/$x
10666   then      hx="$hx $x"
10667   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10668 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10669   fi
10670 done
10671 host_xm_file="$hx"
10672
10673 tx=
10674 for x in $xm_file; do
10675   if    test -f $srcdir/config/$x
10676   then      tx="$tx $x"
10677   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10678 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10679   fi
10680 done
10681 xm_file="$tx"
10682
10683 count=a
10684 for f in $tm_file; do
10685         count=${count}x
10686 done
10687 if test $count = ax; then
10688         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10689 else
10690         echo "Using the following target machine macro files:"
10691         for f in $tm_file; do
10692                 echo "  $srcdir/config/$f"
10693         done
10694 fi
10695
10696 if test x$need_64bit_hwint = xyes; then
10697
10698 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10699
10700 fi
10701
10702 if test x$use_long_long_for_widest_fast_int = xyes; then
10703
10704 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10705
10706 fi
10707
10708 count=a
10709 for f in $host_xm_file; do
10710         count=${count}x
10711 done
10712 if test $count = a; then
10713         :
10714 elif test $count = ax; then
10715         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10716 else
10717         echo "Using the following host machine macro files:"
10718         for f in $host_xm_file; do
10719                 echo "  $srcdir/config/$f"
10720         done
10721 fi
10722 echo "Using ${out_host_hook_obj} for host machine hooks."
10723
10724 if test "$host_xm_file" != "$build_xm_file"; then
10725         count=a
10726         for f in $build_xm_file; do
10727                 count=${count}x
10728         done
10729         if test $count = a; then
10730                 :
10731         elif test $count = ax; then
10732                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10733         else
10734                 echo "Using the following build machine macro files:"
10735                 for f in $build_xm_file; do
10736                         echo "  $srcdir/config/$f"
10737                 done
10738         fi
10739 fi
10740
10741 case ${host} in
10742   powerpc*-*-darwin*)
10743     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10744 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10745 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10746   $as_echo_n "(cached) " >&6
10747 else
10748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h.  */
10750
10751 #include <sys/cdefs.h>
10752 #include <sys/signal.h>
10753 #include <ucontext.h>
10754 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10755
10756 _ACEOF
10757 if ac_fn_c_try_compile "$LINENO"; then :
10758   gcc_cv_mcontext_underscores=no
10759 else
10760   gcc_cv_mcontext_underscores=yes
10761 fi
10762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10763 fi
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10765 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10766       if test $gcc_cv_mcontext_underscores = yes; then
10767
10768 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10769
10770       fi
10771     ;;
10772 esac
10773
10774 # ---------
10775 # Threading
10776 # ---------
10777
10778 # Check if a valid thread package
10779 case ${enable_threads} in
10780   "" | no)
10781     # No threads
10782     target_thread_file='single'
10783     ;;
10784   yes)
10785     # default
10786     target_thread_file='single'
10787     ;;
10788   aix | dce | gnat | irix | posix | posix95 | rtems | \
10789   single | solaris | vxworks | win32 | mipssde)
10790     target_thread_file=${enable_threads}
10791     ;;
10792   *)
10793     echo "${enable_threads} is an unknown thread package" 1>&2
10794     exit 1
10795     ;;
10796 esac
10797
10798 if test x${thread_file} = x; then
10799   # No thread file set by target-specific clauses in config.gcc,
10800   # so use file chosen by default logic above
10801   thread_file=${target_thread_file}
10802 fi
10803
10804 # Make gthr-default.h if we have a thread file.
10805 gthread_flags=
10806 if test $thread_file != single; then
10807   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10808   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10809     rm -f gthr-default.h-t
10810   else
10811     mv -f gthr-default.h-t gthr-default.h
10812   fi
10813   gthread_flags=-DHAVE_GTHR_DEFAULT
10814 fi
10815
10816
10817 # --------
10818 # UNSORTED
10819 # --------
10820
10821 use_cxa_atexit=no
10822 if test x$enable___cxa_atexit = xyes || \
10823    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10824   if test x$host = x$target; then
10825     case $host in
10826       # mingw32 doesn't have __cxa_atexit but uses atexit registration
10827       # keyed to flag_use_cxa_atexit
10828       *-*-mingw32*)
10829         use_cxa_atexit=yes
10830         ;;
10831       *)
10832         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10833 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10834   use_cxa_atexit=yes
10835 else
10836   echo "__cxa_atexit can't be enabled on this target"
10837 fi
10838
10839         ;;
10840     esac
10841   else
10842     # We can't check for __cxa_atexit when building a cross, so assume
10843     # it is available
10844     use_cxa_atexit=yes
10845   fi
10846   if test x$use_cxa_atexit = xyes; then
10847
10848 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10849
10850   fi
10851 fi
10852
10853 # Look for a file containing extra machine modes.
10854 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10855   extra_modes_file='$(srcdir)'/config/${extra_modes}
10856
10857
10858 cat >>confdefs.h <<_ACEOF
10859 #define EXTRA_MODES_FILE "config/$extra_modes"
10860 _ACEOF
10861
10862 fi
10863
10864 # Convert extra_options into a form suitable for Makefile use.
10865 extra_opt_files=
10866 all_opt_files=
10867 for f in $extra_options; do
10868   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10869   all_opt_files="$all_opt_files $srcdir/config/$f"
10870 done
10871
10872
10873 # auto-host.h is the file containing items generated by autoconf and is
10874 # the first file included by config.h.
10875 # If host=build, it is correct to have bconfig include auto-host.h
10876 # as well.  If host!=build, we are in error and need to do more
10877 # work to find out the build config parameters.
10878 if test x$host = x$build
10879 then
10880         build_auto=auto-host.h
10881 else
10882         # We create a subdir, then run autoconf in the subdir.
10883         # To prevent recursion we set host and build for the new
10884         # invocation of configure to the build for this invocation
10885         # of configure.
10886         tempdir=build.$$
10887         rm -rf $tempdir
10888         mkdir $tempdir
10889         cd $tempdir
10890         case ${srcdir} in
10891         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10892         *) realsrcdir=../${srcdir};;
10893         esac
10894         saved_CFLAGS="${CFLAGS}"
10895         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10896         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10897         ${realsrcdir}/configure \
10898                 --enable-languages=${enable_languages-all} \
10899                 --target=$target_alias --host=$build_alias --build=$build_alias
10900         CFLAGS="${saved_CFLAGS}"
10901
10902         # We just finished tests for the build machine, so rename
10903         # the file auto-build.h in the gcc directory.
10904         mv auto-host.h ../auto-build.h
10905         cd ..
10906         rm -rf $tempdir
10907         build_auto=auto-build.h
10908 fi
10909
10910
10911 tm_file="${tm_file} defaults.h"
10912 tm_p_file="${tm_p_file} tm-preds.h"
10913 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10914 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10915 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10916 # put this back in temporarily.
10917 xm_file="auto-host.h ansidecl.h ${xm_file}"
10918
10919 # --------
10920 # UNSORTED
10921 # --------
10922
10923 # Compile in configure arguments.
10924 if test -f configargs.h ; then
10925         # Being re-configured.
10926         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10927         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10928 else
10929         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10930 fi
10931
10932 # Double all backslashes and backslash all quotes to turn
10933 # gcc_config_arguments into a C string.
10934 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10935 $gcc_config_arguments
10936 EOF
10937 gcc_config_arguments_str=`cat conftest.out`
10938 rm -f conftest.out
10939
10940 cat > configargs.h <<EOF
10941 /* Generated automatically. */
10942 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10943 static const char thread_model[] = "$thread_file";
10944
10945 static const struct {
10946   const char *name, *value;
10947 } configure_default_options[] = $configure_default_options;
10948 EOF
10949
10950 gcc_BASEVER=`cat $srcdir/BASE-VER`
10951 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10952 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10953 if test -f $srcdir/REVISION ; then
10954         gcc_REVISION=`cat $srcdir/REVISION`
10955 else
10956         gcc_REVISION=""
10957 fi
10958 cat > plugin-version.h <<EOF
10959 #include "configargs.h"
10960
10961 static char basever[] = "$gcc_BASEVER";
10962 static char datestamp[] = "$gcc_DATESTAMP";
10963 static char devphase[] = "$gcc_DEVPHASE";
10964 static char revision[] = "$gcc_REVISION";
10965
10966 /* FIXME plugins: We should make the version information more precise.
10967    One way to do is to add a checksum. */
10968
10969 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10970                                                 devphase, revision,
10971                                                 configuration_arguments};
10972 EOF
10973
10974 # Internationalization
10975 # If we haven't got the data from the intl directory,
10976 # assume NLS is disabled.
10977 USE_NLS=no
10978 LIBINTL=
10979 LIBINTL_DEP=
10980 INCINTL=
10981 XGETTEXT=
10982 GMSGFMT=
10983 POSUB=
10984
10985 if test -f  ../intl/config.intl; then
10986   .  ../intl/config.intl
10987 fi
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10989 $as_echo_n "checking whether NLS is requested... " >&6; }
10990 if test x"$USE_NLS" != xyes; then
10991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10992 $as_echo "no" >&6; }
10993 else
10994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10995 $as_echo "yes" >&6; }
10996
10997 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10998
10999
11000   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11001 $as_echo_n "checking for catalogs to be installed... " >&6; }
11002   # Look for .po and .gmo files in the source directory.
11003   CATALOGS=
11004   XLINGUAS=
11005   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11006     # If there aren't any .gmo files the shell will give us the
11007     # literal string "../path/to/srcdir/po/*.gmo" which has to be
11008     # weeded out.
11009     case "$cat" in *\**)
11010       continue;;
11011     esac
11012     # The quadruple backslash is collapsed to a double backslash
11013     # by the backticks, then collapsed again by the double quotes,
11014     # leaving us with one backslash in the sed expression (right
11015     # before the dot that mustn't act as a wildcard).
11016     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11017     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11018     # The user is allowed to set LINGUAS to a list of languages to
11019     # install catalogs for.  If it's empty that means "all of them."
11020     if test "x$LINGUAS" = x; then
11021       CATALOGS="$CATALOGS $cat"
11022       XLINGUAS="$XLINGUAS $lang"
11023     else
11024       case "$LINGUAS" in *$lang*)
11025         CATALOGS="$CATALOGS $cat"
11026         XLINGUAS="$XLINGUAS $lang"
11027         ;;
11028       esac
11029     fi
11030   done
11031   LINGUAS="$XLINGUAS"
11032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11033 $as_echo "$LINGUAS" >&6; }
11034
11035
11036     DATADIRNAME=share
11037
11038   INSTOBJEXT=.mo
11039
11040   GENCAT=gencat
11041
11042   CATOBJEXT=.gmo
11043
11044 fi
11045
11046 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11047 # -liconv on the link line twice.
11048 case "$LIBINTL" in *$LIBICONV*)
11049         LIBICONV= ;;
11050 esac
11051
11052 # Check whether --enable-secureplt was given.
11053 if test "${enable_secureplt+set}" = set; then :
11054   enableval=$enable_secureplt;
11055 fi
11056
11057
11058 # Check whether --enable-leading-mingw64-underscores was given.
11059 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11060   enableval=$enable_leading_mingw64_underscores;
11061 fi
11062
11063 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
11064
11065 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11066
11067 fi
11068
11069 # Check whether --enable-cld was given.
11070 if test "${enable_cld+set}" = set; then :
11071   enableval=$enable_cld;
11072 else
11073   enable_cld=no
11074 fi
11075
11076
11077 # Check whether --enable-frame-pointer was given.
11078 if test "${enable_frame_pointer+set}" = set; then :
11079   enableval=$enable_frame_pointer;
11080 else
11081
11082 case $target_os in
11083 linux* | darwin[8912]*)
11084   # Enable -fomit-frame-pointer by default for Linux and Darwin with
11085   # DWARF2.
11086   enable_frame_pointer=no
11087   ;;
11088 *)
11089   enable_frame_pointer=yes
11090   ;;
11091 esac
11092
11093 fi
11094
11095
11096 # Windows32 Registry support for specifying GCC installation paths.
11097 # Check whether --enable-win32-registry was given.
11098 if test "${enable_win32_registry+set}" = set; then :
11099   enableval=$enable_win32_registry;
11100 fi
11101
11102
11103 case $host_os in
11104   win32 | pe | cygwin* | mingw32* | uwin*)
11105     if test "x$enable_win32_registry" != xno; then
11106       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11107 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11108 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11109   $as_echo_n "(cached) " >&6
11110 else
11111   ac_func_search_save_LIBS=$LIBS
11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h.  */
11114
11115 /* Override any GCC internal prototype to avoid an error.
11116    Use char because int might match the return type of a GCC
11117    builtin and then its argument prototype would still apply.  */
11118 #ifdef __cplusplus
11119 extern "C"
11120 #endif
11121 char RegOpenKeyExA ();
11122 int
11123 main ()
11124 {
11125 return RegOpenKeyExA ();
11126   ;
11127   return 0;
11128 }
11129 _ACEOF
11130 for ac_lib in '' advapi32; do
11131   if test -z "$ac_lib"; then
11132     ac_res="none required"
11133   else
11134     ac_res=-l$ac_lib
11135     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11136   fi
11137   if ac_fn_c_try_link "$LINENO"; then :
11138   ac_cv_search_RegOpenKeyExA=$ac_res
11139 fi
11140 rm -f core conftest.err conftest.$ac_objext \
11141     conftest$ac_exeext
11142   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11143   break
11144 fi
11145 done
11146 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11147
11148 else
11149   ac_cv_search_RegOpenKeyExA=no
11150 fi
11151 rm conftest.$ac_ext
11152 LIBS=$ac_func_search_save_LIBS
11153 fi
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11155 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11156 ac_res=$ac_cv_search_RegOpenKeyExA
11157 if test "$ac_res" != no; then :
11158   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11159
11160 else
11161   enable_win32_registry=no
11162 fi
11163
11164     fi
11165
11166     if test "x$enable_win32_registry" != xno; then
11167
11168 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11169
11170
11171       if test "x$enable_win32_registry" != xyes \
11172          && test "x$enable_win32_registry" != x; then
11173
11174 cat >>confdefs.h <<_ACEOF
11175 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11176 _ACEOF
11177
11178       fi
11179     fi
11180   ;;
11181 esac
11182
11183 # Get an absolute path to the GCC top-level source directory
11184 holddir=`${PWDCMD-pwd}`
11185 cd $srcdir
11186 topdir=`${PWDCMD-pwd}`
11187 cd $holddir
11188
11189 # Conditionalize the makefile for this host machine.
11190 xmake_file=
11191 for f in ${host_xmake_file}
11192 do
11193         if test -f ${srcdir}/config/$f
11194         then
11195                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11196         fi
11197 done
11198
11199 # Conditionalize the makefile for this target machine.
11200 tmake_file_=
11201 for f in ${tmake_file}
11202 do
11203         if test -f ${srcdir}/config/$f
11204         then
11205                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11206         fi
11207 done
11208 tmake_file="${tmake_file_}"
11209
11210 out_object_file=`basename $out_file .c`.o
11211
11212 tm_file_list="options.h"
11213 tm_include_list="options.h insn-constants.h"
11214 for f in $tm_file; do
11215   case $f in
11216     ./* )
11217        f=`echo $f | sed 's/^..//'`
11218        tm_file_list="${tm_file_list} $f"
11219        tm_include_list="${tm_include_list} $f"
11220        ;;
11221     defaults.h )
11222        tm_file_list="${tm_file_list} \$(srcdir)/$f"
11223        tm_include_list="${tm_include_list} $f"
11224        ;;
11225     * )
11226        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11227        tm_include_list="${tm_include_list} config/$f"
11228        ;;
11229   esac
11230 done
11231
11232 tm_p_file_list=
11233 tm_p_include_list=
11234 for f in $tm_p_file; do
11235   case $f in
11236     tm-preds.h )
11237        tm_p_file_list="${tm_p_file_list} $f"
11238        tm_p_include_list="${tm_p_include_list} $f"
11239        ;;
11240     * )
11241        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11242        tm_p_include_list="${tm_p_include_list} config/$f"
11243   esac
11244 done
11245
11246 xm_file_list=
11247 xm_include_list=
11248 for f in $xm_file; do
11249   case $f in
11250     ansidecl.h )
11251        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11252        xm_include_list="${xm_include_list} $f"
11253        ;;
11254     auto-host.h )
11255        xm_file_list="${xm_file_list} $f"
11256        xm_include_list="${xm_include_list} $f"
11257        ;;
11258     * )
11259        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11260        xm_include_list="${xm_include_list} config/$f"
11261        ;;
11262   esac
11263 done
11264
11265 host_xm_file_list=
11266 host_xm_include_list=
11267 for f in $host_xm_file; do
11268   case $f in
11269     ansidecl.h )
11270        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11271        host_xm_include_list="${host_xm_include_list} $f"
11272        ;;
11273     auto-host.h )
11274        host_xm_file_list="${host_xm_file_list} $f"
11275        host_xm_include_list="${host_xm_include_list} $f"
11276        ;;
11277     * )
11278        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11279        host_xm_include_list="${host_xm_include_list} config/$f"
11280        ;;
11281   esac
11282 done
11283
11284 build_xm_file_list=
11285 for f in $build_xm_file; do
11286   case $f in
11287     ansidecl.h )
11288        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11289        build_xm_include_list="${build_xm_include_list} $f"
11290        ;;
11291     auto-build.h | auto-host.h )
11292        build_xm_file_list="${build_xm_file_list} $f"
11293        build_xm_include_list="${build_xm_include_list} $f"
11294        ;;
11295     * )
11296        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11297        build_xm_include_list="${build_xm_include_list} config/$f"
11298        ;;
11299   esac
11300 done
11301
11302 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11303 # cross-compiler which does not use the native headers and libraries.
11304 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11305 CROSS=
11306 ALL=all.internal
11307 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11308
11309 if test "x$with_build_sysroot" != x; then
11310   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11311 else
11312   # This value is used, even on a native system, because
11313   # CROSS_SYSTEM_HEADER_DIR is just
11314   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11315   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11316 fi
11317
11318 if test x$host != x$target
11319 then
11320         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11321         ALL=all.cross
11322         SYSTEM_HEADER_DIR=$build_system_header_dir
11323         case "$host","$target" in
11324         # Darwin crosses can use the host system's libraries and headers,
11325         # because of the fat library support.  Of course, it must be the
11326         # same version of Darwin on both sides.  Allow the user to
11327         # just say --target=foo-darwin without a version number to mean
11328         # "the version on this system".
11329             *-*-darwin*,*-*-darwin*)
11330                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11331                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11332                 if test $hostos = $targetos -o $targetos = darwin ; then
11333                     CROSS=
11334                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11335                     with_headers=yes
11336                 fi
11337                 ;;
11338
11339             i?86-*-*,x86_64-*-* \
11340             | powerpc*-*-*,powerpc64*-*-*)
11341                 CROSS="$CROSS -DNATIVE_CROSS" ;;
11342         esac
11343
11344         case $target in
11345                 *-*-mingw*)
11346                         if test "x$with_headers" = x; then
11347                                 with_headers=yes
11348                         fi
11349                         ;;
11350                 *)
11351                         ;;
11352         esac
11353 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11354         SYSTEM_HEADER_DIR=$build_system_header_dir
11355 fi
11356
11357 # If this is a cross-compiler that does not
11358 # have its own set of headers then define
11359 # inhibit_libc
11360
11361 # If this is using newlib, without having the headers available now,
11362 # then define inhibit_libc in LIBGCC2_CFLAGS.
11363 # This prevents libgcc2 from containing any code which requires libc
11364 # support.
11365 : ${inhibit_libc=false}
11366 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11367        test x$with_newlib = xyes ; } &&
11368      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11369        inhibit_libc=true
11370 fi
11371
11372
11373 # When building gcc with a cross-compiler, we need to adjust things so
11374 # that the generator programs are still built with the native compiler.
11375 # Also, we cannot run fixincludes.
11376
11377 # These are the normal (build=host) settings:
11378 CC_FOR_BUILD='$(CC)'
11379 BUILD_CFLAGS='$(ALL_CFLAGS)'
11380 BUILD_LDFLAGS='$(LDFLAGS)'
11381 STMP_FIXINC=stmp-fixinc
11382
11383 # And these apply if build != host, or we are generating coverage data
11384 if test x$build != x$host || test "x$coverage_flags" != x
11385 then
11386     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11387     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11388 fi
11389
11390 # Expand extra_headers to include complete path.
11391 # This substitutes for lots of t-* files.
11392 extra_headers_list=
11393 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11394 for file in ${extra_headers} ; do
11395   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11396 done
11397
11398 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11399 if test x"$use_gcc_tgmath" = xyes
11400 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11401 fi
11402
11403 # Define collect2 in Makefile.
11404 case $host_can_use_collect2 in
11405   no) collect2= ;;
11406   *) collect2='collect2$(exeext)' ;;
11407 esac
11408
11409
11410 # Add a definition of USE_COLLECT2 if system wants one.
11411 case $use_collect2 in
11412   no) use_collect2= ;;
11413   "") ;;
11414   *)
11415     host_xm_defines="${host_xm_defines} USE_COLLECT2"
11416     xm_defines="${xm_defines} USE_COLLECT2"
11417     case $host_can_use_collect2 in
11418       no)
11419         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11420         ;;
11421     esac
11422     ;;
11423 esac
11424
11425
11426 cat >>confdefs.h <<_ACEOF
11427 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11428 _ACEOF
11429
11430
11431 # ---------------------------
11432 # Assembler & linker features
11433 # ---------------------------
11434
11435 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11436 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11437 # However when ld-new is first executed from the build tree, libtool will
11438 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11439 # to the build tree.  While doing this we need to use the previous-stage
11440 # linker, or we have an infinite loop.  The presence of a shell script as
11441 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11442 # the gcc/collect-ld script.  So we need to know how libtool works, or
11443 # exec-tool will fail.
11444
11445
11446 case `pwd` in
11447   *\ * | *\     *)
11448     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11449 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11450 esac
11451
11452
11453
11454 macro_version='2.2.7a'
11455 macro_revision='1.3134'
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469 ltmain="$ac_aux_dir/ltmain.sh"
11470
11471 # Backslashify metacharacters that are still active within
11472 # double-quoted strings.
11473 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11474
11475 # Same as above, but do not quote variable references.
11476 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11477
11478 # Sed substitution to delay expansion of an escaped shell variable in a
11479 # double_quote_subst'ed string.
11480 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11481
11482 # Sed substitution to delay expansion of an escaped single quote.
11483 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11484
11485 # Sed substitution to avoid accidental globbing in evaled expressions
11486 no_glob_subst='s/\*/\\\*/g'
11487
11488 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11489 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11490 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11491
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11493 $as_echo_n "checking how to print strings... " >&6; }
11494 # Test print first, because it will be a builtin if present.
11495 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11496    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11497   ECHO='print -r --'
11498 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11499   ECHO='printf %s\n'
11500 else
11501   # Use this function as a fallback that always works.
11502   func_fallback_echo ()
11503   {
11504     eval 'cat <<_LTECHO_EOF
11505 $1
11506 _LTECHO_EOF'
11507   }
11508   ECHO='func_fallback_echo'
11509 fi
11510
11511 # func_echo_all arg...
11512 # Invoke $ECHO with all args, space-separated.
11513 func_echo_all ()
11514 {
11515     $ECHO ""
11516 }
11517
11518 case "$ECHO" in
11519   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11520 $as_echo "printf" >&6; } ;;
11521   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11522 $as_echo "print -r" >&6; } ;;
11523   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11524 $as_echo "cat" >&6; } ;;
11525 esac
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11541 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11542 if test "${ac_cv_path_SED+set}" = set; then :
11543   $as_echo_n "(cached) " >&6
11544 else
11545             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11546      for ac_i in 1 2 3 4 5 6 7; do
11547        ac_script="$ac_script$as_nl$ac_script"
11548      done
11549      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11550      { ac_script=; unset ac_script;}
11551      if test -z "$SED"; then
11552   ac_path_SED_found=false
11553   # Loop through the user's path and test for each of PROGNAME-LIST
11554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555 for as_dir in $PATH
11556 do
11557   IFS=$as_save_IFS
11558   test -z "$as_dir" && as_dir=.
11559     for ac_prog in sed gsed; do
11560     for ac_exec_ext in '' $ac_executable_extensions; do
11561       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11562       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11563 # Check for GNU ac_path_SED and select it if it is found.
11564   # Check for GNU $ac_path_SED
11565 case `"$ac_path_SED" --version 2>&1` in
11566 *GNU*)
11567   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11568 *)
11569   ac_count=0
11570   $as_echo_n 0123456789 >"conftest.in"
11571   while :
11572   do
11573     cat "conftest.in" "conftest.in" >"conftest.tmp"
11574     mv "conftest.tmp" "conftest.in"
11575     cp "conftest.in" "conftest.nl"
11576     $as_echo '' >> "conftest.nl"
11577     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11578     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11579     as_fn_arith $ac_count + 1 && ac_count=$as_val
11580     if test $ac_count -gt ${ac_path_SED_max-0}; then
11581       # Best one so far, save it but keep looking for a better one
11582       ac_cv_path_SED="$ac_path_SED"
11583       ac_path_SED_max=$ac_count
11584     fi
11585     # 10*(2^10) chars as input seems more than enough
11586     test $ac_count -gt 10 && break
11587   done
11588   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11589 esac
11590
11591       $ac_path_SED_found && break 3
11592     done
11593   done
11594   done
11595 IFS=$as_save_IFS
11596   if test -z "$ac_cv_path_SED"; then
11597     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11598   fi
11599 else
11600   ac_cv_path_SED=$SED
11601 fi
11602
11603 fi
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11605 $as_echo "$ac_cv_path_SED" >&6; }
11606  SED="$ac_cv_path_SED"
11607   rm -f conftest.sed
11608
11609 test -z "$SED" && SED=sed
11610 Xsed="$SED -e 1s/^X//"
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11623 $as_echo_n "checking for fgrep... " >&6; }
11624 if test "${ac_cv_path_FGREP+set}" = set; then :
11625   $as_echo_n "(cached) " >&6
11626 else
11627   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11628    then ac_cv_path_FGREP="$GREP -F"
11629    else
11630      if test -z "$FGREP"; then
11631   ac_path_FGREP_found=false
11632   # Loop through the user's path and test for each of PROGNAME-LIST
11633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11635 do
11636   IFS=$as_save_IFS
11637   test -z "$as_dir" && as_dir=.
11638     for ac_prog in fgrep; do
11639     for ac_exec_ext in '' $ac_executable_extensions; do
11640       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11641       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11642 # Check for GNU ac_path_FGREP and select it if it is found.
11643   # Check for GNU $ac_path_FGREP
11644 case `"$ac_path_FGREP" --version 2>&1` in
11645 *GNU*)
11646   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11647 *)
11648   ac_count=0
11649   $as_echo_n 0123456789 >"conftest.in"
11650   while :
11651   do
11652     cat "conftest.in" "conftest.in" >"conftest.tmp"
11653     mv "conftest.tmp" "conftest.in"
11654     cp "conftest.in" "conftest.nl"
11655     $as_echo 'FGREP' >> "conftest.nl"
11656     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11657     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11658     as_fn_arith $ac_count + 1 && ac_count=$as_val
11659     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11660       # Best one so far, save it but keep looking for a better one
11661       ac_cv_path_FGREP="$ac_path_FGREP"
11662       ac_path_FGREP_max=$ac_count
11663     fi
11664     # 10*(2^10) chars as input seems more than enough
11665     test $ac_count -gt 10 && break
11666   done
11667   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11668 esac
11669
11670       $ac_path_FGREP_found && break 3
11671     done
11672   done
11673   done
11674 IFS=$as_save_IFS
11675   if test -z "$ac_cv_path_FGREP"; then
11676     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11677   fi
11678 else
11679   ac_cv_path_FGREP=$FGREP
11680 fi
11681
11682    fi
11683 fi
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11685 $as_echo "$ac_cv_path_FGREP" >&6; }
11686  FGREP="$ac_cv_path_FGREP"
11687
11688
11689 test -z "$GREP" && GREP=grep
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709 # Check whether --with-gnu-ld was given.
11710 if test "${with_gnu_ld+set}" = set; then :
11711   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11712 else
11713   with_gnu_ld=no
11714 fi
11715
11716 ac_prog=ld
11717 if test "$GCC" = yes; then
11718   # Check if gcc -print-prog-name=ld gives a path.
11719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11720 $as_echo_n "checking for ld used by $CC... " >&6; }
11721   case $host in
11722   *-*-mingw*)
11723     # gcc leaves a trailing carriage return which upsets mingw
11724     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11725   *)
11726     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11727   esac
11728   case $ac_prog in
11729     # Accept absolute paths.
11730     [\\/]* | ?:[\\/]*)
11731       re_direlt='/[^/][^/]*/\.\./'
11732       # Canonicalize the pathname of ld
11733       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11734       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11735         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11736       done
11737       test -z "$LD" && LD="$ac_prog"
11738       ;;
11739   "")
11740     # If it fails, then pretend we aren't using GCC.
11741     ac_prog=ld
11742     ;;
11743   *)
11744     # If it is relative, then search for the first ld in PATH.
11745     with_gnu_ld=unknown
11746     ;;
11747   esac
11748 elif test "$with_gnu_ld" = yes; then
11749   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11750 $as_echo_n "checking for GNU ld... " >&6; }
11751 else
11752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11753 $as_echo_n "checking for non-GNU ld... " >&6; }
11754 fi
11755 if test "${lt_cv_path_LD+set}" = set; then :
11756   $as_echo_n "(cached) " >&6
11757 else
11758   if test -z "$LD"; then
11759   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11760   for ac_dir in $PATH; do
11761     IFS="$lt_save_ifs"
11762     test -z "$ac_dir" && ac_dir=.
11763     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11764       lt_cv_path_LD="$ac_dir/$ac_prog"
11765       # Check to see if the program is GNU ld.  I'd rather use --version,
11766       # but apparently some variants of GNU ld only accept -v.
11767       # Break only if it was the GNU/non-GNU ld that we prefer.
11768       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11769       *GNU* | *'with BFD'*)
11770         test "$with_gnu_ld" != no && break
11771         ;;
11772       *)
11773         test "$with_gnu_ld" != yes && break
11774         ;;
11775       esac
11776     fi
11777   done
11778   IFS="$lt_save_ifs"
11779 else
11780   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11781 fi
11782 fi
11783
11784 LD="$lt_cv_path_LD"
11785 if test -n "$LD"; then
11786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11787 $as_echo "$LD" >&6; }
11788 else
11789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11790 $as_echo "no" >&6; }
11791 fi
11792 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11794 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11795 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11796   $as_echo_n "(cached) " >&6
11797 else
11798   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11799 case `$LD -v 2>&1 </dev/null` in
11800 *GNU* | *'with BFD'*)
11801   lt_cv_prog_gnu_ld=yes
11802   ;;
11803 *)
11804   lt_cv_prog_gnu_ld=no
11805   ;;
11806 esac
11807 fi
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11809 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11810 with_gnu_ld=$lt_cv_prog_gnu_ld
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11821 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11822 if test "${lt_cv_path_NM+set}" = set; then :
11823   $as_echo_n "(cached) " >&6
11824 else
11825   if test -n "$NM"; then
11826   # Let the user override the test.
11827   lt_cv_path_NM="$NM"
11828 else
11829   lt_nm_to_check="${ac_tool_prefix}nm"
11830   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11831     lt_nm_to_check="$lt_nm_to_check nm"
11832   fi
11833   for lt_tmp_nm in $lt_nm_to_check; do
11834     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11835     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11836       IFS="$lt_save_ifs"
11837       test -z "$ac_dir" && ac_dir=.
11838       tmp_nm="$ac_dir/$lt_tmp_nm"
11839       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11840         # Check to see if the nm accepts a BSD-compat flag.
11841         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11842         #   nm: unknown option "B" ignored
11843         # Tru64's nm complains that /dev/null is an invalid object file
11844         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11845         */dev/null* | *'Invalid file or object type'*)
11846           lt_cv_path_NM="$tmp_nm -B"
11847           break
11848           ;;
11849         *)
11850           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11851           */dev/null*)
11852             lt_cv_path_NM="$tmp_nm -p"
11853             break
11854             ;;
11855           *)
11856             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11857             continue # so that we can try to find one that supports BSD flags
11858             ;;
11859           esac
11860           ;;
11861         esac
11862       fi
11863     done
11864     IFS="$lt_save_ifs"
11865   done
11866   : ${lt_cv_path_NM=no}
11867 fi
11868 fi
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11870 $as_echo "$lt_cv_path_NM" >&6; }
11871 if test "$lt_cv_path_NM" != "no"; then
11872   NM="$lt_cv_path_NM"
11873 else
11874   # Didn't find any BSD compatible name lister, look for dumpbin.
11875   if test -n "$DUMPBIN"; then :
11876     # Let the user override the test.
11877   else
11878     if test -n "$ac_tool_prefix"; then
11879   for ac_prog in dumpbin "link -dump"
11880   do
11881     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11882 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11884 $as_echo_n "checking for $ac_word... " >&6; }
11885 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11886   $as_echo_n "(cached) " >&6
11887 else
11888   if test -n "$DUMPBIN"; then
11889   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11890 else
11891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892 for as_dir in $PATH
11893 do
11894   IFS=$as_save_IFS
11895   test -z "$as_dir" && as_dir=.
11896     for ac_exec_ext in '' $ac_executable_extensions; do
11897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11898     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11900     break 2
11901   fi
11902 done
11903   done
11904 IFS=$as_save_IFS
11905
11906 fi
11907 fi
11908 DUMPBIN=$ac_cv_prog_DUMPBIN
11909 if test -n "$DUMPBIN"; then
11910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11911 $as_echo "$DUMPBIN" >&6; }
11912 else
11913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914 $as_echo "no" >&6; }
11915 fi
11916
11917
11918     test -n "$DUMPBIN" && break
11919   done
11920 fi
11921 if test -z "$DUMPBIN"; then
11922   ac_ct_DUMPBIN=$DUMPBIN
11923   for ac_prog in dumpbin "link -dump"
11924 do
11925   # Extract the first word of "$ac_prog", so it can be a program name with args.
11926 set dummy $ac_prog; ac_word=$2
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11928 $as_echo_n "checking for $ac_word... " >&6; }
11929 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11930   $as_echo_n "(cached) " >&6
11931 else
11932   if test -n "$ac_ct_DUMPBIN"; then
11933   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11934 else
11935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11936 for as_dir in $PATH
11937 do
11938   IFS=$as_save_IFS
11939   test -z "$as_dir" && as_dir=.
11940     for ac_exec_ext in '' $ac_executable_extensions; do
11941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11942     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11944     break 2
11945   fi
11946 done
11947   done
11948 IFS=$as_save_IFS
11949
11950 fi
11951 fi
11952 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11953 if test -n "$ac_ct_DUMPBIN"; then
11954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11955 $as_echo "$ac_ct_DUMPBIN" >&6; }
11956 else
11957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958 $as_echo "no" >&6; }
11959 fi
11960
11961
11962   test -n "$ac_ct_DUMPBIN" && break
11963 done
11964
11965   if test "x$ac_ct_DUMPBIN" = x; then
11966     DUMPBIN=":"
11967   else
11968     case $cross_compiling:$ac_tool_warned in
11969 yes:)
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11972 ac_tool_warned=yes ;;
11973 esac
11974     DUMPBIN=$ac_ct_DUMPBIN
11975   fi
11976 fi
11977
11978     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11979     *COFF*)
11980       DUMPBIN="$DUMPBIN -symbols"
11981       ;;
11982     *)
11983       DUMPBIN=:
11984       ;;
11985     esac
11986   fi
11987
11988   if test "$DUMPBIN" != ":"; then
11989     NM="$DUMPBIN"
11990   fi
11991 fi
11992 test -z "$NM" && NM=nm
11993
11994
11995
11996
11997
11998
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12000 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12001 if test "${lt_cv_nm_interface+set}" = set; then :
12002   $as_echo_n "(cached) " >&6
12003 else
12004   lt_cv_nm_interface="BSD nm"
12005   echo "int some_variable = 0;" > conftest.$ac_ext
12006   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12007   (eval "$ac_compile" 2>conftest.err)
12008   cat conftest.err >&5
12009   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12010   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12011   cat conftest.err >&5
12012   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12013   cat conftest.out >&5
12014   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12015     lt_cv_nm_interface="MS dumpbin"
12016   fi
12017   rm -f conftest*
12018 fi
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12020 $as_echo "$lt_cv_nm_interface" >&6; }
12021
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12023 $as_echo_n "checking whether ln -s works... " >&6; }
12024 LN_S=$as_ln_s
12025 if test "$LN_S" = "ln -s"; then
12026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12027 $as_echo "yes" >&6; }
12028 else
12029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12030 $as_echo "no, using $LN_S" >&6; }
12031 fi
12032
12033 # find the maximum length of command line arguments
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12035 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12036 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12037   $as_echo_n "(cached) " >&6
12038 else
12039     i=0
12040   teststring="ABCD"
12041
12042   case $build_os in
12043   msdosdjgpp*)
12044     # On DJGPP, this test can blow up pretty badly due to problems in libc
12045     # (any single argument exceeding 2000 bytes causes a buffer overrun
12046     # during glob expansion).  Even if it were fixed, the result of this
12047     # check would be larger than it should be.
12048     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12049     ;;
12050
12051   gnu*)
12052     # Under GNU Hurd, this test is not required because there is
12053     # no limit to the length of command line arguments.
12054     # Libtool will interpret -1 as no limit whatsoever
12055     lt_cv_sys_max_cmd_len=-1;
12056     ;;
12057
12058   cygwin* | mingw* | cegcc*)
12059     # On Win9x/ME, this test blows up -- it succeeds, but takes
12060     # about 5 minutes as the teststring grows exponentially.
12061     # Worse, since 9x/ME are not pre-emptively multitasking,
12062     # you end up with a "frozen" computer, even though with patience
12063     # the test eventually succeeds (with a max line length of 256k).
12064     # Instead, let's just punt: use the minimum linelength reported by
12065     # all of the supported platforms: 8192 (on NT/2K/XP).
12066     lt_cv_sys_max_cmd_len=8192;
12067     ;;
12068
12069   mint*)
12070     # On MiNT this can take a long time and run out of memory.
12071     lt_cv_sys_max_cmd_len=8192;
12072     ;;
12073
12074   amigaos*)
12075     # On AmigaOS with pdksh, this test takes hours, literally.
12076     # So we just punt and use a minimum line length of 8192.
12077     lt_cv_sys_max_cmd_len=8192;
12078     ;;
12079
12080   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12081     # This has been around since 386BSD, at least.  Likely further.
12082     if test -x /sbin/sysctl; then
12083       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12084     elif test -x /usr/sbin/sysctl; then
12085       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12086     else
12087       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12088     fi
12089     # And add a safety zone
12090     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12091     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12092     ;;
12093
12094   interix*)
12095     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12096     lt_cv_sys_max_cmd_len=196608
12097     ;;
12098
12099   osf*)
12100     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12101     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12102     # nice to cause kernel panics so lets avoid the loop below.
12103     # First set a reasonable default.
12104     lt_cv_sys_max_cmd_len=16384
12105     #
12106     if test -x /sbin/sysconfig; then
12107       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12108         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12109       esac
12110     fi
12111     ;;
12112   sco3.2v5*)
12113     lt_cv_sys_max_cmd_len=102400
12114     ;;
12115   sysv5* | sco5v6* | sysv4.2uw2*)
12116     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12117     if test -n "$kargmax"; then
12118       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
12119     else
12120       lt_cv_sys_max_cmd_len=32768
12121     fi
12122     ;;
12123   *)
12124     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12125     if test -n "$lt_cv_sys_max_cmd_len"; then
12126       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12127       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12128     else
12129       # Make teststring a little bigger before we do anything with it.
12130       # a 1K string should be a reasonable start.
12131       for i in 1 2 3 4 5 6 7 8 ; do
12132         teststring=$teststring$teststring
12133       done
12134       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12135       # If test is not a shell built-in, we'll probably end up computing a
12136       # maximum length that is only half of the actual maximum length, but
12137       # we can't tell.
12138       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12139                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12140               test $i != 17 # 1/2 MB should be enough
12141       do
12142         i=`expr $i + 1`
12143         teststring=$teststring$teststring
12144       done
12145       # Only check the string length outside the loop.
12146       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12147       teststring=
12148       # Add a significant safety factor because C++ compilers can tack on
12149       # massive amounts of additional arguments before passing them to the
12150       # linker.  It appears as though 1/2 is a usable value.
12151       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12152     fi
12153     ;;
12154   esac
12155
12156 fi
12157
12158 if test -n $lt_cv_sys_max_cmd_len ; then
12159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12160 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12161 else
12162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12163 $as_echo "none" >&6; }
12164 fi
12165 max_cmd_len=$lt_cv_sys_max_cmd_len
12166
12167
12168
12169
12170
12171
12172 : ${CP="cp -f"}
12173 : ${MV="mv -f"}
12174 : ${RM="rm -f"}
12175
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12177 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12178 # Try some XSI features
12179 xsi_shell=no
12180 ( _lt_dummy="a/b/c"
12181   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12182       = c,a/b,, \
12183     && eval 'test $(( 1 + 1 )) -eq 2 \
12184     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12185   && xsi_shell=yes
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12187 $as_echo "$xsi_shell" >&6; }
12188
12189
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12191 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12192 lt_shell_append=no
12193 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12194     >/dev/null 2>&1 \
12195   && lt_shell_append=yes
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12197 $as_echo "$lt_shell_append" >&6; }
12198
12199
12200 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12201   lt_unset=unset
12202 else
12203   lt_unset=false
12204 fi
12205
12206
12207
12208
12209
12210 # test EBCDIC or ASCII
12211 case `echo X|tr X '\101'` in
12212  A) # ASCII based system
12213     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12214   lt_SP2NL='tr \040 \012'
12215   lt_NL2SP='tr \015\012 \040\040'
12216   ;;
12217  *) # EBCDIC based system
12218   lt_SP2NL='tr \100 \n'
12219   lt_NL2SP='tr \r\n \100\100'
12220   ;;
12221 esac
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12232 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12233 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12234   $as_echo_n "(cached) " >&6
12235 else
12236   lt_cv_ld_reload_flag='-r'
12237 fi
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12239 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12240 reload_flag=$lt_cv_ld_reload_flag
12241 case $reload_flag in
12242 "" | " "*) ;;
12243 *) reload_flag=" $reload_flag" ;;
12244 esac
12245 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12246 case $host_os in
12247   darwin*)
12248     if test "$GCC" = yes; then
12249       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12250     else
12251       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12252     fi
12253     ;;
12254 esac
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264 if test -n "$ac_tool_prefix"; then
12265   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12266 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12268 $as_echo_n "checking for $ac_word... " >&6; }
12269 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12270   $as_echo_n "(cached) " >&6
12271 else
12272   if test -n "$OBJDUMP"; then
12273   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12274 else
12275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12276 for as_dir in $PATH
12277 do
12278   IFS=$as_save_IFS
12279   test -z "$as_dir" && as_dir=.
12280     for ac_exec_ext in '' $ac_executable_extensions; do
12281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12282     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12284     break 2
12285   fi
12286 done
12287   done
12288 IFS=$as_save_IFS
12289
12290 fi
12291 fi
12292 OBJDUMP=$ac_cv_prog_OBJDUMP
12293 if test -n "$OBJDUMP"; then
12294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12295 $as_echo "$OBJDUMP" >&6; }
12296 else
12297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12298 $as_echo "no" >&6; }
12299 fi
12300
12301
12302 fi
12303 if test -z "$ac_cv_prog_OBJDUMP"; then
12304   ac_ct_OBJDUMP=$OBJDUMP
12305   # Extract the first word of "objdump", so it can be a program name with args.
12306 set dummy objdump; ac_word=$2
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12308 $as_echo_n "checking for $ac_word... " >&6; }
12309 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12310   $as_echo_n "(cached) " >&6
12311 else
12312   if test -n "$ac_ct_OBJDUMP"; then
12313   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12314 else
12315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316 for as_dir in $PATH
12317 do
12318   IFS=$as_save_IFS
12319   test -z "$as_dir" && as_dir=.
12320     for ac_exec_ext in '' $ac_executable_extensions; do
12321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12322     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12324     break 2
12325   fi
12326 done
12327   done
12328 IFS=$as_save_IFS
12329
12330 fi
12331 fi
12332 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12333 if test -n "$ac_ct_OBJDUMP"; then
12334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12335 $as_echo "$ac_ct_OBJDUMP" >&6; }
12336 else
12337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12338 $as_echo "no" >&6; }
12339 fi
12340
12341   if test "x$ac_ct_OBJDUMP" = x; then
12342     OBJDUMP="false"
12343   else
12344     case $cross_compiling:$ac_tool_warned in
12345 yes:)
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12348 ac_tool_warned=yes ;;
12349 esac
12350     OBJDUMP=$ac_ct_OBJDUMP
12351   fi
12352 else
12353   OBJDUMP="$ac_cv_prog_OBJDUMP"
12354 fi
12355
12356 test -z "$OBJDUMP" && OBJDUMP=objdump
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12367 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12368 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12369   $as_echo_n "(cached) " >&6
12370 else
12371   lt_cv_file_magic_cmd='$MAGIC_CMD'
12372 lt_cv_file_magic_test_file=
12373 lt_cv_deplibs_check_method='unknown'
12374 # Need to set the preceding variable on all platforms that support
12375 # interlibrary dependencies.
12376 # 'none' -- dependencies not supported.
12377 # `unknown' -- same as none, but documents that we really don't know.
12378 # 'pass_all' -- all dependencies passed with no checks.
12379 # 'test_compile' -- check by making test program.
12380 # 'file_magic [[regex]]' -- check by looking for files in library path
12381 # which responds to the $file_magic_cmd with a given extended regex.
12382 # If you have `file' or equivalent on your system and you're not sure
12383 # whether `pass_all' will *always* work, you probably want this one.
12384
12385 case $host_os in
12386 aix[4-9]*)
12387   lt_cv_deplibs_check_method=pass_all
12388   ;;
12389
12390 beos*)
12391   lt_cv_deplibs_check_method=pass_all
12392   ;;
12393
12394 bsdi[45]*)
12395   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12396   lt_cv_file_magic_cmd='/usr/bin/file -L'
12397   lt_cv_file_magic_test_file=/shlib/libc.so
12398   ;;
12399
12400 cygwin*)
12401   # func_win32_libid is a shell function defined in ltmain.sh
12402   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12403   lt_cv_file_magic_cmd='func_win32_libid'
12404   ;;
12405
12406 mingw* | pw32*)
12407   # Base MSYS/MinGW do not provide the 'file' command needed by
12408   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12409   # unless we find 'file', for example because we are cross-compiling.
12410   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12411   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12412     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12413     lt_cv_file_magic_cmd='func_win32_libid'
12414   else
12415     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12416     lt_cv_file_magic_cmd='$OBJDUMP -f'
12417   fi
12418   ;;
12419
12420 cegcc*)
12421   # use the weaker test based on 'objdump'. See mingw*.
12422   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12423   lt_cv_file_magic_cmd='$OBJDUMP -f'
12424   ;;
12425
12426 darwin* | rhapsody*)
12427   lt_cv_deplibs_check_method=pass_all
12428   ;;
12429
12430 freebsd* | dragonfly*)
12431   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12432     case $host_cpu in
12433     i*86 )
12434       # Not sure whether the presence of OpenBSD here was a mistake.
12435       # Let's accept both of them until this is cleared up.
12436       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12437       lt_cv_file_magic_cmd=/usr/bin/file
12438       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12439       ;;
12440     esac
12441   else
12442     lt_cv_deplibs_check_method=pass_all
12443   fi
12444   ;;
12445
12446 gnu*)
12447   lt_cv_deplibs_check_method=pass_all
12448   ;;
12449
12450 haiku*)
12451   lt_cv_deplibs_check_method=pass_all
12452   ;;
12453
12454 hpux10.20* | hpux11*)
12455   lt_cv_file_magic_cmd=/usr/bin/file
12456   case $host_cpu in
12457   ia64*)
12458     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12459     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12460     ;;
12461   hppa*64*)
12462     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]'
12463     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12464     ;;
12465   *)
12466     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12467     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12468     ;;
12469   esac
12470   ;;
12471
12472 interix[3-9]*)
12473   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12474   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12475   ;;
12476
12477 irix5* | irix6* | nonstopux*)
12478   case $LD in
12479   *-32|*"-32 ") libmagic=32-bit;;
12480   *-n32|*"-n32 ") libmagic=N32;;
12481   *-64|*"-64 ") libmagic=64-bit;;
12482   *) libmagic=never-match;;
12483   esac
12484   lt_cv_deplibs_check_method=pass_all
12485   ;;
12486
12487 # This must be Linux ELF.
12488 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12489   lt_cv_deplibs_check_method=pass_all
12490   ;;
12491
12492 netbsd*)
12493   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12494     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12495   else
12496     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12497   fi
12498   ;;
12499
12500 newos6*)
12501   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12502   lt_cv_file_magic_cmd=/usr/bin/file
12503   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12504   ;;
12505
12506 *nto* | *qnx*)
12507   lt_cv_deplibs_check_method=pass_all
12508   ;;
12509
12510 openbsd*)
12511   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12512     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12513   else
12514     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12515   fi
12516   ;;
12517
12518 osf3* | osf4* | osf5*)
12519   lt_cv_deplibs_check_method=pass_all
12520   ;;
12521
12522 rdos*)
12523   lt_cv_deplibs_check_method=pass_all
12524   ;;
12525
12526 solaris*)
12527   lt_cv_deplibs_check_method=pass_all
12528   ;;
12529
12530 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12531   lt_cv_deplibs_check_method=pass_all
12532   ;;
12533
12534 sysv4 | sysv4.3*)
12535   case $host_vendor in
12536   motorola)
12537     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]'
12538     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12539     ;;
12540   ncr)
12541     lt_cv_deplibs_check_method=pass_all
12542     ;;
12543   sequent)
12544     lt_cv_file_magic_cmd='/bin/file'
12545     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12546     ;;
12547   sni)
12548     lt_cv_file_magic_cmd='/bin/file'
12549     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12550     lt_cv_file_magic_test_file=/lib/libc.so
12551     ;;
12552   siemens)
12553     lt_cv_deplibs_check_method=pass_all
12554     ;;
12555   pc)
12556     lt_cv_deplibs_check_method=pass_all
12557     ;;
12558   esac
12559   ;;
12560
12561 tpf*)
12562   lt_cv_deplibs_check_method=pass_all
12563   ;;
12564 esac
12565
12566 fi
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12568 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12569 file_magic_cmd=$lt_cv_file_magic_cmd
12570 deplibs_check_method=$lt_cv_deplibs_check_method
12571 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584 if test -n "$ac_tool_prefix"; then
12585   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12586 set dummy ${ac_tool_prefix}ar; ac_word=$2
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588 $as_echo_n "checking for $ac_word... " >&6; }
12589 if test "${ac_cv_prog_AR+set}" = set; then :
12590   $as_echo_n "(cached) " >&6
12591 else
12592   if test -n "$AR"; then
12593   ac_cv_prog_AR="$AR" # Let the user override the test.
12594 else
12595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12596 for as_dir in $PATH
12597 do
12598   IFS=$as_save_IFS
12599   test -z "$as_dir" && as_dir=.
12600     for ac_exec_ext in '' $ac_executable_extensions; do
12601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12602     ac_cv_prog_AR="${ac_tool_prefix}ar"
12603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12604     break 2
12605   fi
12606 done
12607   done
12608 IFS=$as_save_IFS
12609
12610 fi
12611 fi
12612 AR=$ac_cv_prog_AR
12613 if test -n "$AR"; then
12614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12615 $as_echo "$AR" >&6; }
12616 else
12617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618 $as_echo "no" >&6; }
12619 fi
12620
12621
12622 fi
12623 if test -z "$ac_cv_prog_AR"; then
12624   ac_ct_AR=$AR
12625   # Extract the first word of "ar", so it can be a program name with args.
12626 set dummy ar; ac_word=$2
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12628 $as_echo_n "checking for $ac_word... " >&6; }
12629 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12630   $as_echo_n "(cached) " >&6
12631 else
12632   if test -n "$ac_ct_AR"; then
12633   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12634 else
12635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12636 for as_dir in $PATH
12637 do
12638   IFS=$as_save_IFS
12639   test -z "$as_dir" && as_dir=.
12640     for ac_exec_ext in '' $ac_executable_extensions; do
12641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12642     ac_cv_prog_ac_ct_AR="ar"
12643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12644     break 2
12645   fi
12646 done
12647   done
12648 IFS=$as_save_IFS
12649
12650 fi
12651 fi
12652 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12653 if test -n "$ac_ct_AR"; then
12654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12655 $as_echo "$ac_ct_AR" >&6; }
12656 else
12657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12658 $as_echo "no" >&6; }
12659 fi
12660
12661   if test "x$ac_ct_AR" = x; then
12662     AR="false"
12663   else
12664     case $cross_compiling:$ac_tool_warned in
12665 yes:)
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12668 ac_tool_warned=yes ;;
12669 esac
12670     AR=$ac_ct_AR
12671   fi
12672 else
12673   AR="$ac_cv_prog_AR"
12674 fi
12675
12676 test -z "$AR" && AR=ar
12677 test -z "$AR_FLAGS" && AR_FLAGS=cru
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689 if test -n "$ac_tool_prefix"; then
12690   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12691 set dummy ${ac_tool_prefix}strip; ac_word=$2
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12693 $as_echo_n "checking for $ac_word... " >&6; }
12694 if test "${ac_cv_prog_STRIP+set}" = set; then :
12695   $as_echo_n "(cached) " >&6
12696 else
12697   if test -n "$STRIP"; then
12698   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12699 else
12700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12701 for as_dir in $PATH
12702 do
12703   IFS=$as_save_IFS
12704   test -z "$as_dir" && as_dir=.
12705     for ac_exec_ext in '' $ac_executable_extensions; do
12706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12707     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12709     break 2
12710   fi
12711 done
12712   done
12713 IFS=$as_save_IFS
12714
12715 fi
12716 fi
12717 STRIP=$ac_cv_prog_STRIP
12718 if test -n "$STRIP"; then
12719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12720 $as_echo "$STRIP" >&6; }
12721 else
12722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12723 $as_echo "no" >&6; }
12724 fi
12725
12726
12727 fi
12728 if test -z "$ac_cv_prog_STRIP"; then
12729   ac_ct_STRIP=$STRIP
12730   # Extract the first word of "strip", so it can be a program name with args.
12731 set dummy strip; ac_word=$2
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12733 $as_echo_n "checking for $ac_word... " >&6; }
12734 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12735   $as_echo_n "(cached) " >&6
12736 else
12737   if test -n "$ac_ct_STRIP"; then
12738   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12739 else
12740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12741 for as_dir in $PATH
12742 do
12743   IFS=$as_save_IFS
12744   test -z "$as_dir" && as_dir=.
12745     for ac_exec_ext in '' $ac_executable_extensions; do
12746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12747     ac_cv_prog_ac_ct_STRIP="strip"
12748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12749     break 2
12750   fi
12751 done
12752   done
12753 IFS=$as_save_IFS
12754
12755 fi
12756 fi
12757 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12758 if test -n "$ac_ct_STRIP"; then
12759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12760 $as_echo "$ac_ct_STRIP" >&6; }
12761 else
12762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12763 $as_echo "no" >&6; }
12764 fi
12765
12766   if test "x$ac_ct_STRIP" = x; then
12767     STRIP=":"
12768   else
12769     case $cross_compiling:$ac_tool_warned in
12770 yes:)
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12773 ac_tool_warned=yes ;;
12774 esac
12775     STRIP=$ac_ct_STRIP
12776   fi
12777 else
12778   STRIP="$ac_cv_prog_STRIP"
12779 fi
12780
12781 test -z "$STRIP" && STRIP=:
12782
12783
12784
12785
12786
12787
12788 if test -n "$ac_tool_prefix"; then
12789   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12790 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12792 $as_echo_n "checking for $ac_word... " >&6; }
12793 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12794   $as_echo_n "(cached) " >&6
12795 else
12796   if test -n "$RANLIB"; then
12797   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12798 else
12799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12800 for as_dir in $PATH
12801 do
12802   IFS=$as_save_IFS
12803   test -z "$as_dir" && as_dir=.
12804     for ac_exec_ext in '' $ac_executable_extensions; do
12805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12806     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12808     break 2
12809   fi
12810 done
12811   done
12812 IFS=$as_save_IFS
12813
12814 fi
12815 fi
12816 RANLIB=$ac_cv_prog_RANLIB
12817 if test -n "$RANLIB"; then
12818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12819 $as_echo "$RANLIB" >&6; }
12820 else
12821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822 $as_echo "no" >&6; }
12823 fi
12824
12825
12826 fi
12827 if test -z "$ac_cv_prog_RANLIB"; then
12828   ac_ct_RANLIB=$RANLIB
12829   # Extract the first word of "ranlib", so it can be a program name with args.
12830 set dummy ranlib; ac_word=$2
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12832 $as_echo_n "checking for $ac_word... " >&6; }
12833 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12834   $as_echo_n "(cached) " >&6
12835 else
12836   if test -n "$ac_ct_RANLIB"; then
12837   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12838 else
12839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12840 for as_dir in $PATH
12841 do
12842   IFS=$as_save_IFS
12843   test -z "$as_dir" && as_dir=.
12844     for ac_exec_ext in '' $ac_executable_extensions; do
12845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12846     ac_cv_prog_ac_ct_RANLIB="ranlib"
12847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12848     break 2
12849   fi
12850 done
12851   done
12852 IFS=$as_save_IFS
12853
12854 fi
12855 fi
12856 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12857 if test -n "$ac_ct_RANLIB"; then
12858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12859 $as_echo "$ac_ct_RANLIB" >&6; }
12860 else
12861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862 $as_echo "no" >&6; }
12863 fi
12864
12865   if test "x$ac_ct_RANLIB" = x; then
12866     RANLIB=":"
12867   else
12868     case $cross_compiling:$ac_tool_warned in
12869 yes:)
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12872 ac_tool_warned=yes ;;
12873 esac
12874     RANLIB=$ac_ct_RANLIB
12875   fi
12876 else
12877   RANLIB="$ac_cv_prog_RANLIB"
12878 fi
12879
12880 test -z "$RANLIB" && RANLIB=:
12881
12882
12883
12884
12885
12886
12887 # Determine commands to create old-style static archives.
12888 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12889 old_postinstall_cmds='chmod 644 $oldlib'
12890 old_postuninstall_cmds=
12891
12892 if test -n "$RANLIB"; then
12893   case $host_os in
12894   openbsd*)
12895     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12896     ;;
12897   *)
12898     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12899     ;;
12900   esac
12901   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12902 fi
12903
12904 case $host_os in
12905   darwin*)
12906     lock_old_archive_extraction=yes ;;
12907   *)
12908     lock_old_archive_extraction=no ;;
12909 esac
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949 # If no C compiler was specified, use CC.
12950 LTCC=${LTCC-"$CC"}
12951
12952 # If no C compiler flags were specified, use CFLAGS.
12953 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12954
12955 # Allow CC to be a program name with arguments.
12956 compiler=$CC
12957
12958
12959 # Check for command to grab the raw symbol name followed by C symbol from nm.
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12961 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12962 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12963   $as_echo_n "(cached) " >&6
12964 else
12965
12966 # These are sane defaults that work on at least a few old systems.
12967 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12968
12969 # Character class describing NM global symbol codes.
12970 symcode='[BCDEGRST]'
12971
12972 # Regexp to match symbols that can be accessed directly from C.
12973 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12974
12975 # Define system-specific variables.
12976 case $host_os in
12977 aix*)
12978   symcode='[BCDT]'
12979   ;;
12980 cygwin* | mingw* | pw32* | cegcc*)
12981   symcode='[ABCDGISTW]'
12982   ;;
12983 hpux*)
12984   if test "$host_cpu" = ia64; then
12985     symcode='[ABCDEGRST]'
12986   fi
12987   ;;
12988 irix* | nonstopux*)
12989   symcode='[BCDEGRST]'
12990   ;;
12991 osf*)
12992   symcode='[BCDEGQRST]'
12993   ;;
12994 solaris*)
12995   symcode='[BDRT]'
12996   ;;
12997 sco3.2v5*)
12998   symcode='[DT]'
12999   ;;
13000 sysv4.2uw2*)
13001   symcode='[DT]'
13002   ;;
13003 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13004   symcode='[ABDT]'
13005   ;;
13006 sysv4)
13007   symcode='[DFNSTU]'
13008   ;;
13009 esac
13010
13011 # If we're using GNU nm, then use its standard symbol codes.
13012 case `$NM -V 2>&1` in
13013 *GNU* | *'with BFD'*)
13014   symcode='[ABCDGIRSTW]' ;;
13015 esac
13016
13017 # Transform an extracted symbol line into a proper C declaration.
13018 # Some systems (esp. on ia64) link data and code symbols differently,
13019 # so use this general approach.
13020 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13021
13022 # Transform an extracted symbol line into symbol name and symbol address
13023 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13024 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'"
13025
13026 # Handle CRLF in mingw tool chain
13027 opt_cr=
13028 case $build_os in
13029 mingw*)
13030   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13031   ;;
13032 esac
13033
13034 # Try without a prefix underscore, then with it.
13035 for ac_symprfx in "" "_"; do
13036
13037   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13038   symxfrm="\\1 $ac_symprfx\\2 \\2"
13039
13040   # Write the raw and C identifiers.
13041   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13042     # Fake it for dumpbin and say T for any non-static function
13043     # and D for any global variable.
13044     # Also find C++ and __fastcall symbols from MSVC++,
13045     # which start with @ or ?.
13046     lt_cv_sys_global_symbol_pipe="$AWK '"\
13047 "     {last_section=section; section=\$ 3};"\
13048 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13049 "     \$ 0!~/External *\|/{next};"\
13050 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13051 "     {if(hide[section]) next};"\
13052 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13053 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13054 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13055 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13056 "     ' prfx=^$ac_symprfx"
13057   else
13058     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13059   fi
13060
13061   # Check to see that the pipe works correctly.
13062   pipe_works=no
13063
13064   rm -f conftest*
13065   cat > conftest.$ac_ext <<_LT_EOF
13066 #ifdef __cplusplus
13067 extern "C" {
13068 #endif
13069 char nm_test_var;
13070 void nm_test_func(void);
13071 void nm_test_func(void){}
13072 #ifdef __cplusplus
13073 }
13074 #endif
13075 int main(){nm_test_var='a';nm_test_func();return(0);}
13076 _LT_EOF
13077
13078   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13079   (eval $ac_compile) 2>&5
13080   ac_status=$?
13081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13082   test $ac_status = 0; }; then
13083     # Now try to grab the symbols.
13084     nlist=conftest.nm
13085     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13086   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13087   ac_status=$?
13088   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13089   test $ac_status = 0; } && test -s "$nlist"; then
13090       # Try sorting and uniquifying the output.
13091       if sort "$nlist" | uniq > "$nlist"T; then
13092         mv -f "$nlist"T "$nlist"
13093       else
13094         rm -f "$nlist"T
13095       fi
13096
13097       # Make sure that we snagged all the symbols we need.
13098       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13099         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13100           cat <<_LT_EOF > conftest.$ac_ext
13101 #ifdef __cplusplus
13102 extern "C" {
13103 #endif
13104
13105 _LT_EOF
13106           # Now generate the symbol file.
13107           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13108
13109           cat <<_LT_EOF >> conftest.$ac_ext
13110
13111 /* The mapping between symbol names and symbols.  */
13112 const struct {
13113   const char *name;
13114   void       *address;
13115 }
13116 lt__PROGRAM__LTX_preloaded_symbols[] =
13117 {
13118   { "@PROGRAM@", (void *) 0 },
13119 _LT_EOF
13120           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13121           cat <<\_LT_EOF >> conftest.$ac_ext
13122   {0, (void *) 0}
13123 };
13124
13125 /* This works around a problem in FreeBSD linker */
13126 #ifdef FREEBSD_WORKAROUND
13127 static const void *lt_preloaded_setup() {
13128   return lt__PROGRAM__LTX_preloaded_symbols;
13129 }
13130 #endif
13131
13132 #ifdef __cplusplus
13133 }
13134 #endif
13135 _LT_EOF
13136           # Now try linking the two files.
13137           mv conftest.$ac_objext conftstm.$ac_objext
13138           lt_save_LIBS="$LIBS"
13139           lt_save_CFLAGS="$CFLAGS"
13140           LIBS="conftstm.$ac_objext"
13141           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13142           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13143   (eval $ac_link) 2>&5
13144   ac_status=$?
13145   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13146   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13147             pipe_works=yes
13148           fi
13149           LIBS="$lt_save_LIBS"
13150           CFLAGS="$lt_save_CFLAGS"
13151         else
13152           echo "cannot find nm_test_func in $nlist" >&5
13153         fi
13154       else
13155         echo "cannot find nm_test_var in $nlist" >&5
13156       fi
13157     else
13158       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13159     fi
13160   else
13161     echo "$progname: failed program was:" >&5
13162     cat conftest.$ac_ext >&5
13163   fi
13164   rm -rf conftest* conftst*
13165
13166   # Do not use the global_symbol_pipe unless it works.
13167   if test "$pipe_works" = yes; then
13168     break
13169   else
13170     lt_cv_sys_global_symbol_pipe=
13171   fi
13172 done
13173
13174 fi
13175
13176 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13177   lt_cv_sys_global_symbol_to_cdecl=
13178 fi
13179 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13181 $as_echo "failed" >&6; }
13182 else
13183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13184 $as_echo "ok" >&6; }
13185 fi
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208 # Check whether --enable-libtool-lock was given.
13209 if test "${enable_libtool_lock+set}" = set; then :
13210   enableval=$enable_libtool_lock;
13211 fi
13212
13213 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13214
13215 # Some flags need to be propagated to the compiler or linker for good
13216 # libtool support.
13217 case $host in
13218 ia64-*-hpux*)
13219   # Find out which ABI we are using.
13220   echo 'int i;' > conftest.$ac_ext
13221   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13222   (eval $ac_compile) 2>&5
13223   ac_status=$?
13224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13225   test $ac_status = 0; }; then
13226     case `/usr/bin/file conftest.$ac_objext` in
13227       *ELF-32*)
13228         HPUX_IA64_MODE="32"
13229         ;;
13230       *ELF-64*)
13231         HPUX_IA64_MODE="64"
13232         ;;
13233     esac
13234   fi
13235   rm -rf conftest*
13236   ;;
13237 *-*-irix6*)
13238   # Find out which ABI we are using.
13239   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13240   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13241   (eval $ac_compile) 2>&5
13242   ac_status=$?
13243   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13244   test $ac_status = 0; }; then
13245     if test "$lt_cv_prog_gnu_ld" = yes; then
13246       case `/usr/bin/file conftest.$ac_objext` in
13247         *32-bit*)
13248           LD="${LD-ld} -melf32bsmip"
13249           ;;
13250         *N32*)
13251           LD="${LD-ld} -melf32bmipn32"
13252           ;;
13253         *64-bit*)
13254           LD="${LD-ld} -melf64bmip"
13255         ;;
13256       esac
13257     else
13258       case `/usr/bin/file conftest.$ac_objext` in
13259         *32-bit*)
13260           LD="${LD-ld} -32"
13261           ;;
13262         *N32*)
13263           LD="${LD-ld} -n32"
13264           ;;
13265         *64-bit*)
13266           LD="${LD-ld} -64"
13267           ;;
13268       esac
13269     fi
13270   fi
13271   rm -rf conftest*
13272   ;;
13273
13274 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13275 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13276   # Find out which ABI we are using.
13277   echo 'int i;' > conftest.$ac_ext
13278   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13279   (eval $ac_compile) 2>&5
13280   ac_status=$?
13281   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13282   test $ac_status = 0; }; then
13283     case `/usr/bin/file conftest.o` in
13284       *32-bit*)
13285         case $host in
13286           x86_64-*kfreebsd*-gnu)
13287             LD="${LD-ld} -m elf_i386_fbsd"
13288             ;;
13289           x86_64-*linux*)
13290             LD="${LD-ld} -m elf_i386"
13291             ;;
13292           ppc64-*linux*|powerpc64-*linux*)
13293             LD="${LD-ld} -m elf32ppclinux"
13294             ;;
13295           s390x-*linux*)
13296             LD="${LD-ld} -m elf_s390"
13297             ;;
13298           sparc64-*linux*)
13299             LD="${LD-ld} -m elf32_sparc"
13300             ;;
13301         esac
13302         ;;
13303       *64-bit*)
13304         case $host in
13305           x86_64-*kfreebsd*-gnu)
13306             LD="${LD-ld} -m elf_x86_64_fbsd"
13307             ;;
13308           x86_64-*linux*)
13309             LD="${LD-ld} -m elf_x86_64"
13310             ;;
13311           ppc*-*linux*|powerpc*-*linux*)
13312             LD="${LD-ld} -m elf64ppc"
13313             ;;
13314           s390*-*linux*|s390*-*tpf*)
13315             LD="${LD-ld} -m elf64_s390"
13316             ;;
13317           sparc*-*linux*)
13318             LD="${LD-ld} -m elf64_sparc"
13319             ;;
13320         esac
13321         ;;
13322     esac
13323   fi
13324   rm -rf conftest*
13325   ;;
13326
13327 *-*-sco3.2v5*)
13328   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13329   SAVE_CFLAGS="$CFLAGS"
13330   CFLAGS="$CFLAGS -belf"
13331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13332 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13333 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13334   $as_echo_n "(cached) " >&6
13335 else
13336   ac_ext=c
13337 ac_cpp='$CPP $CPPFLAGS'
13338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13341
13342      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343 /* end confdefs.h.  */
13344
13345 int
13346 main ()
13347 {
13348
13349   ;
13350   return 0;
13351 }
13352 _ACEOF
13353 if ac_fn_c_try_link "$LINENO"; then :
13354   lt_cv_cc_needs_belf=yes
13355 else
13356   lt_cv_cc_needs_belf=no
13357 fi
13358 rm -f core conftest.err conftest.$ac_objext \
13359     conftest$ac_exeext conftest.$ac_ext
13360      ac_ext=c
13361 ac_cpp='$CPP $CPPFLAGS'
13362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13365
13366 fi
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13368 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13369   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13370     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13371     CFLAGS="$SAVE_CFLAGS"
13372   fi
13373   ;;
13374 sparc*-*solaris*)
13375   # Find out which ABI we are using.
13376   echo 'int i;' > conftest.$ac_ext
13377   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13378   (eval $ac_compile) 2>&5
13379   ac_status=$?
13380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13381   test $ac_status = 0; }; then
13382     case `/usr/bin/file conftest.o` in
13383     *64-bit*)
13384       case $lt_cv_prog_gnu_ld in
13385       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13386       *)
13387         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13388           LD="${LD-ld} -64"
13389         fi
13390         ;;
13391       esac
13392       ;;
13393     esac
13394   fi
13395   rm -rf conftest*
13396   ;;
13397 esac
13398
13399 need_locks="$enable_libtool_lock"
13400
13401
13402   case $host_os in
13403     rhapsody* | darwin*)
13404     if test -n "$ac_tool_prefix"; then
13405   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13406 set dummy ${ac_tool_prefix}dsymutil; 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_DSYMUTIL+set}" = set; then :
13410   $as_echo_n "(cached) " >&6
13411 else
13412   if test -n "$DSYMUTIL"; then
13413   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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_DSYMUTIL="${ac_tool_prefix}dsymutil"
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 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13433 if test -n "$DSYMUTIL"; then
13434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13435 $as_echo "$DSYMUTIL" >&6; }
13436 else
13437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13438 $as_echo "no" >&6; }
13439 fi
13440
13441
13442 fi
13443 if test -z "$ac_cv_prog_DSYMUTIL"; then
13444   ac_ct_DSYMUTIL=$DSYMUTIL
13445   # Extract the first word of "dsymutil", so it can be a program name with args.
13446 set dummy dsymutil; ac_word=$2
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13448 $as_echo_n "checking for $ac_word... " >&6; }
13449 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13450   $as_echo_n "(cached) " >&6
13451 else
13452   if test -n "$ac_ct_DSYMUTIL"; then
13453   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13454 else
13455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13456 for as_dir in $PATH
13457 do
13458   IFS=$as_save_IFS
13459   test -z "$as_dir" && as_dir=.
13460     for ac_exec_ext in '' $ac_executable_extensions; do
13461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13462     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13464     break 2
13465   fi
13466 done
13467   done
13468 IFS=$as_save_IFS
13469
13470 fi
13471 fi
13472 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13473 if test -n "$ac_ct_DSYMUTIL"; then
13474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13475 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13476 else
13477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13478 $as_echo "no" >&6; }
13479 fi
13480
13481   if test "x$ac_ct_DSYMUTIL" = x; then
13482     DSYMUTIL=":"
13483   else
13484     case $cross_compiling:$ac_tool_warned in
13485 yes:)
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13488 ac_tool_warned=yes ;;
13489 esac
13490     DSYMUTIL=$ac_ct_DSYMUTIL
13491   fi
13492 else
13493   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13494 fi
13495
13496     if test -n "$ac_tool_prefix"; then
13497   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13498 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13500 $as_echo_n "checking for $ac_word... " >&6; }
13501 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13502   $as_echo_n "(cached) " >&6
13503 else
13504   if test -n "$NMEDIT"; then
13505   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13506 else
13507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13508 for as_dir in $PATH
13509 do
13510   IFS=$as_save_IFS
13511   test -z "$as_dir" && as_dir=.
13512     for ac_exec_ext in '' $ac_executable_extensions; do
13513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13514     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13516     break 2
13517   fi
13518 done
13519   done
13520 IFS=$as_save_IFS
13521
13522 fi
13523 fi
13524 NMEDIT=$ac_cv_prog_NMEDIT
13525 if test -n "$NMEDIT"; then
13526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13527 $as_echo "$NMEDIT" >&6; }
13528 else
13529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530 $as_echo "no" >&6; }
13531 fi
13532
13533
13534 fi
13535 if test -z "$ac_cv_prog_NMEDIT"; then
13536   ac_ct_NMEDIT=$NMEDIT
13537   # Extract the first word of "nmedit", so it can be a program name with args.
13538 set dummy nmedit; ac_word=$2
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13540 $as_echo_n "checking for $ac_word... " >&6; }
13541 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13542   $as_echo_n "(cached) " >&6
13543 else
13544   if test -n "$ac_ct_NMEDIT"; then
13545   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13546 else
13547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13548 for as_dir in $PATH
13549 do
13550   IFS=$as_save_IFS
13551   test -z "$as_dir" && as_dir=.
13552     for ac_exec_ext in '' $ac_executable_extensions; do
13553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13554     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13556     break 2
13557   fi
13558 done
13559   done
13560 IFS=$as_save_IFS
13561
13562 fi
13563 fi
13564 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13565 if test -n "$ac_ct_NMEDIT"; then
13566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13567 $as_echo "$ac_ct_NMEDIT" >&6; }
13568 else
13569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13570 $as_echo "no" >&6; }
13571 fi
13572
13573   if test "x$ac_ct_NMEDIT" = x; then
13574     NMEDIT=":"
13575   else
13576     case $cross_compiling:$ac_tool_warned in
13577 yes:)
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13580 ac_tool_warned=yes ;;
13581 esac
13582     NMEDIT=$ac_ct_NMEDIT
13583   fi
13584 else
13585   NMEDIT="$ac_cv_prog_NMEDIT"
13586 fi
13587
13588     if test -n "$ac_tool_prefix"; then
13589   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13590 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13592 $as_echo_n "checking for $ac_word... " >&6; }
13593 if test "${ac_cv_prog_LIPO+set}" = set; then :
13594   $as_echo_n "(cached) " >&6
13595 else
13596   if test -n "$LIPO"; then
13597   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13598 else
13599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13600 for as_dir in $PATH
13601 do
13602   IFS=$as_save_IFS
13603   test -z "$as_dir" && as_dir=.
13604     for ac_exec_ext in '' $ac_executable_extensions; do
13605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13606     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13608     break 2
13609   fi
13610 done
13611   done
13612 IFS=$as_save_IFS
13613
13614 fi
13615 fi
13616 LIPO=$ac_cv_prog_LIPO
13617 if test -n "$LIPO"; then
13618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13619 $as_echo "$LIPO" >&6; }
13620 else
13621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13622 $as_echo "no" >&6; }
13623 fi
13624
13625
13626 fi
13627 if test -z "$ac_cv_prog_LIPO"; then
13628   ac_ct_LIPO=$LIPO
13629   # Extract the first word of "lipo", so it can be a program name with args.
13630 set dummy lipo; ac_word=$2
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13632 $as_echo_n "checking for $ac_word... " >&6; }
13633 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13634   $as_echo_n "(cached) " >&6
13635 else
13636   if test -n "$ac_ct_LIPO"; then
13637   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13638 else
13639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13640 for as_dir in $PATH
13641 do
13642   IFS=$as_save_IFS
13643   test -z "$as_dir" && as_dir=.
13644     for ac_exec_ext in '' $ac_executable_extensions; do
13645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13646     ac_cv_prog_ac_ct_LIPO="lipo"
13647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13648     break 2
13649   fi
13650 done
13651   done
13652 IFS=$as_save_IFS
13653
13654 fi
13655 fi
13656 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13657 if test -n "$ac_ct_LIPO"; then
13658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13659 $as_echo "$ac_ct_LIPO" >&6; }
13660 else
13661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13662 $as_echo "no" >&6; }
13663 fi
13664
13665   if test "x$ac_ct_LIPO" = x; then
13666     LIPO=":"
13667   else
13668     case $cross_compiling:$ac_tool_warned in
13669 yes:)
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13672 ac_tool_warned=yes ;;
13673 esac
13674     LIPO=$ac_ct_LIPO
13675   fi
13676 else
13677   LIPO="$ac_cv_prog_LIPO"
13678 fi
13679
13680     if test -n "$ac_tool_prefix"; then
13681   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13682 set dummy ${ac_tool_prefix}otool; ac_word=$2
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13684 $as_echo_n "checking for $ac_word... " >&6; }
13685 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13686   $as_echo_n "(cached) " >&6
13687 else
13688   if test -n "$OTOOL"; then
13689   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13690 else
13691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13692 for as_dir in $PATH
13693 do
13694   IFS=$as_save_IFS
13695   test -z "$as_dir" && as_dir=.
13696     for ac_exec_ext in '' $ac_executable_extensions; do
13697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13698     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13700     break 2
13701   fi
13702 done
13703   done
13704 IFS=$as_save_IFS
13705
13706 fi
13707 fi
13708 OTOOL=$ac_cv_prog_OTOOL
13709 if test -n "$OTOOL"; then
13710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13711 $as_echo "$OTOOL" >&6; }
13712 else
13713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13714 $as_echo "no" >&6; }
13715 fi
13716
13717
13718 fi
13719 if test -z "$ac_cv_prog_OTOOL"; then
13720   ac_ct_OTOOL=$OTOOL
13721   # Extract the first word of "otool", so it can be a program name with args.
13722 set dummy otool; ac_word=$2
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13724 $as_echo_n "checking for $ac_word... " >&6; }
13725 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13726   $as_echo_n "(cached) " >&6
13727 else
13728   if test -n "$ac_ct_OTOOL"; then
13729   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13730 else
13731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13732 for as_dir in $PATH
13733 do
13734   IFS=$as_save_IFS
13735   test -z "$as_dir" && as_dir=.
13736     for ac_exec_ext in '' $ac_executable_extensions; do
13737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13738     ac_cv_prog_ac_ct_OTOOL="otool"
13739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13740     break 2
13741   fi
13742 done
13743   done
13744 IFS=$as_save_IFS
13745
13746 fi
13747 fi
13748 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13749 if test -n "$ac_ct_OTOOL"; then
13750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13751 $as_echo "$ac_ct_OTOOL" >&6; }
13752 else
13753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13754 $as_echo "no" >&6; }
13755 fi
13756
13757   if test "x$ac_ct_OTOOL" = x; then
13758     OTOOL=":"
13759   else
13760     case $cross_compiling:$ac_tool_warned in
13761 yes:)
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13764 ac_tool_warned=yes ;;
13765 esac
13766     OTOOL=$ac_ct_OTOOL
13767   fi
13768 else
13769   OTOOL="$ac_cv_prog_OTOOL"
13770 fi
13771
13772     if test -n "$ac_tool_prefix"; then
13773   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13774 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13776 $as_echo_n "checking for $ac_word... " >&6; }
13777 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13778   $as_echo_n "(cached) " >&6
13779 else
13780   if test -n "$OTOOL64"; then
13781   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13782 else
13783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13784 for as_dir in $PATH
13785 do
13786   IFS=$as_save_IFS
13787   test -z "$as_dir" && as_dir=.
13788     for ac_exec_ext in '' $ac_executable_extensions; do
13789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13790     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13792     break 2
13793   fi
13794 done
13795   done
13796 IFS=$as_save_IFS
13797
13798 fi
13799 fi
13800 OTOOL64=$ac_cv_prog_OTOOL64
13801 if test -n "$OTOOL64"; then
13802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13803 $as_echo "$OTOOL64" >&6; }
13804 else
13805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13806 $as_echo "no" >&6; }
13807 fi
13808
13809
13810 fi
13811 if test -z "$ac_cv_prog_OTOOL64"; then
13812   ac_ct_OTOOL64=$OTOOL64
13813   # Extract the first word of "otool64", so it can be a program name with args.
13814 set dummy otool64; ac_word=$2
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13816 $as_echo_n "checking for $ac_word... " >&6; }
13817 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13818   $as_echo_n "(cached) " >&6
13819 else
13820   if test -n "$ac_ct_OTOOL64"; then
13821   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13822 else
13823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13824 for as_dir in $PATH
13825 do
13826   IFS=$as_save_IFS
13827   test -z "$as_dir" && as_dir=.
13828     for ac_exec_ext in '' $ac_executable_extensions; do
13829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13830     ac_cv_prog_ac_ct_OTOOL64="otool64"
13831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13832     break 2
13833   fi
13834 done
13835   done
13836 IFS=$as_save_IFS
13837
13838 fi
13839 fi
13840 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13841 if test -n "$ac_ct_OTOOL64"; then
13842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13843 $as_echo "$ac_ct_OTOOL64" >&6; }
13844 else
13845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13846 $as_echo "no" >&6; }
13847 fi
13848
13849   if test "x$ac_ct_OTOOL64" = x; then
13850     OTOOL64=":"
13851   else
13852     case $cross_compiling:$ac_tool_warned in
13853 yes:)
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13856 ac_tool_warned=yes ;;
13857 esac
13858     OTOOL64=$ac_ct_OTOOL64
13859   fi
13860 else
13861   OTOOL64="$ac_cv_prog_OTOOL64"
13862 fi
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13891 $as_echo_n "checking for -single_module linker flag... " >&6; }
13892 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13893   $as_echo_n "(cached) " >&6
13894 else
13895   lt_cv_apple_cc_single_mod=no
13896       if test -z "${LT_MULTI_MODULE}"; then
13897         # By default we will add the -single_module flag. You can override
13898         # by either setting the environment variable LT_MULTI_MODULE
13899         # non-empty at configure time, or by adding -multi_module to the
13900         # link flags.
13901         rm -rf libconftest.dylib*
13902         echo "int foo(void){return 1;}" > conftest.c
13903         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13904 -dynamiclib -Wl,-single_module conftest.c" >&5
13905         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13906           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13907         _lt_result=$?
13908         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13909           lt_cv_apple_cc_single_mod=yes
13910         else
13911           cat conftest.err >&5
13912         fi
13913         rm -rf libconftest.dylib*
13914         rm -f conftest.*
13915       fi
13916 fi
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13918 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13919     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13920 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13921 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13922   $as_echo_n "(cached) " >&6
13923 else
13924   lt_cv_ld_exported_symbols_list=no
13925       save_LDFLAGS=$LDFLAGS
13926       echo "_main" > conftest.sym
13927       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13928       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h.  */
13930
13931 int
13932 main ()
13933 {
13934
13935   ;
13936   return 0;
13937 }
13938 _ACEOF
13939 if ac_fn_c_try_link "$LINENO"; then :
13940   lt_cv_ld_exported_symbols_list=yes
13941 else
13942   lt_cv_ld_exported_symbols_list=no
13943 fi
13944 rm -f core conftest.err conftest.$ac_objext \
13945     conftest$ac_exeext conftest.$ac_ext
13946         LDFLAGS="$save_LDFLAGS"
13947
13948 fi
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13950 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13951     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13952 $as_echo_n "checking for -force_load linker flag... " >&6; }
13953 if test "${lt_cv_ld_force_load+set}" = set; then :
13954   $as_echo_n "(cached) " >&6
13955 else
13956   lt_cv_ld_force_load=no
13957       cat > conftest.c << _LT_EOF
13958 int forced_loaded() { return 2;}
13959 _LT_EOF
13960       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13961       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13962       echo "$AR cru libconftest.a conftest.o" >&5
13963       $AR cru libconftest.a conftest.o 2>&5
13964       cat > conftest.c << _LT_EOF
13965 int main() { return 0;}
13966 _LT_EOF
13967       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13968       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13969       _lt_result=$?
13970       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13971         lt_cv_ld_force_load=yes
13972       else
13973         cat conftest.err >&5
13974       fi
13975         rm -f conftest.err libconftest.a conftest conftest.c
13976         rm -rf conftest.dSYM
13977
13978 fi
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13980 $as_echo "$lt_cv_ld_force_load" >&6; }
13981     case $host_os in
13982     rhapsody* | darwin1.[012])
13983       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13984     darwin1.*)
13985       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13986     darwin*) # darwin 5.x on
13987       # if running on 10.5 or later, the deployment target defaults
13988       # to the OS version, if on x86, and 10.4, the deployment
13989       # target defaults to 10.4. Don't you love it?
13990       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13991         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13992           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13993         10.[012]*)
13994           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13995         10.*)
13996           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13997       esac
13998     ;;
13999   esac
14000     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14001       _lt_dar_single_mod='$single_module'
14002     fi
14003     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14004       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14005     else
14006       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14007     fi
14008     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14009       _lt_dsymutil='~$DSYMUTIL $lib || :'
14010     else
14011       _lt_dsymutil=
14012     fi
14013     ;;
14014   esac
14015
14016 for ac_header in dlfcn.h
14017 do :
14018   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14019 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14020   cat >>confdefs.h <<_ACEOF
14021 #define HAVE_DLFCN_H 1
14022 _ACEOF
14023
14024 fi
14025 done
14026
14027
14028
14029
14030
14031 # Set options
14032
14033
14034
14035         enable_dlopen=no
14036
14037
14038   enable_win32_dll=no
14039
14040
14041             # Check whether --enable-shared was given.
14042 if test "${enable_shared+set}" = set; then :
14043   enableval=$enable_shared; p=${PACKAGE-default}
14044     case $enableval in
14045     yes) enable_shared=yes ;;
14046     no) enable_shared=no ;;
14047     *)
14048       enable_shared=no
14049       # Look at the argument we got.  We use all the common list separators.
14050       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14051       for pkg in $enableval; do
14052         IFS="$lt_save_ifs"
14053         if test "X$pkg" = "X$p"; then
14054           enable_shared=yes
14055         fi
14056       done
14057       IFS="$lt_save_ifs"
14058       ;;
14059     esac
14060 else
14061   enable_shared=yes
14062 fi
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072   # Check whether --enable-static was given.
14073 if test "${enable_static+set}" = set; then :
14074   enableval=$enable_static; p=${PACKAGE-default}
14075     case $enableval in
14076     yes) enable_static=yes ;;
14077     no) enable_static=no ;;
14078     *)
14079      enable_static=no
14080       # Look at the argument we got.  We use all the common list separators.
14081       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14082       for pkg in $enableval; do
14083         IFS="$lt_save_ifs"
14084         if test "X$pkg" = "X$p"; then
14085           enable_static=yes
14086         fi
14087       done
14088       IFS="$lt_save_ifs"
14089       ;;
14090     esac
14091 else
14092   enable_static=yes
14093 fi
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104 # Check whether --with-pic was given.
14105 if test "${with_pic+set}" = set; then :
14106   withval=$with_pic; pic_mode="$withval"
14107 else
14108   pic_mode=default
14109 fi
14110
14111
14112 test -z "$pic_mode" && pic_mode=default
14113
14114
14115
14116
14117
14118
14119
14120   # Check whether --enable-fast-install was given.
14121 if test "${enable_fast_install+set}" = set; then :
14122   enableval=$enable_fast_install; p=${PACKAGE-default}
14123     case $enableval in
14124     yes) enable_fast_install=yes ;;
14125     no) enable_fast_install=no ;;
14126     *)
14127       enable_fast_install=no
14128       # Look at the argument we got.  We use all the common list separators.
14129       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14130       for pkg in $enableval; do
14131         IFS="$lt_save_ifs"
14132         if test "X$pkg" = "X$p"; then
14133           enable_fast_install=yes
14134         fi
14135       done
14136       IFS="$lt_save_ifs"
14137       ;;
14138     esac
14139 else
14140   enable_fast_install=yes
14141 fi
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153 # This can be used to rebuild libtool when needed
14154 LIBTOOL_DEPS="$ltmain"
14155
14156 # Always use our own libtool.
14157 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184 test -z "$LN_S" && LN_S="ln -s"
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199 if test -n "${ZSH_VERSION+set}" ; then
14200    setopt NO_GLOB_SUBST
14201 fi
14202
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14204 $as_echo_n "checking for objdir... " >&6; }
14205 if test "${lt_cv_objdir+set}" = set; then :
14206   $as_echo_n "(cached) " >&6
14207 else
14208   rm -f .libs 2>/dev/null
14209 mkdir .libs 2>/dev/null
14210 if test -d .libs; then
14211   lt_cv_objdir=.libs
14212 else
14213   # MS-DOS does not allow filenames that begin with a dot.
14214   lt_cv_objdir=_libs
14215 fi
14216 rmdir .libs 2>/dev/null
14217 fi
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14219 $as_echo "$lt_cv_objdir" >&6; }
14220 objdir=$lt_cv_objdir
14221
14222
14223
14224
14225
14226 cat >>confdefs.h <<_ACEOF
14227 #define LT_OBJDIR "$lt_cv_objdir/"
14228 _ACEOF
14229
14230
14231
14232
14233 case $host_os in
14234 aix3*)
14235   # AIX sometimes has problems with the GCC collect2 program.  For some
14236   # reason, if we set the COLLECT_NAMES environment variable, the problems
14237   # vanish in a puff of smoke.
14238   if test "X${COLLECT_NAMES+set}" != Xset; then
14239     COLLECT_NAMES=
14240     export COLLECT_NAMES
14241   fi
14242   ;;
14243 esac
14244
14245 # Global variables:
14246 ofile=libtool
14247 can_build_shared=yes
14248
14249 # All known linkers require a `.a' archive for static linking (except MSVC,
14250 # which needs '.lib').
14251 libext=a
14252
14253 with_gnu_ld="$lt_cv_prog_gnu_ld"
14254
14255 old_CC="$CC"
14256 old_CFLAGS="$CFLAGS"
14257
14258 # Set sane defaults for various variables
14259 test -z "$CC" && CC=cc
14260 test -z "$LTCC" && LTCC=$CC
14261 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14262 test -z "$LD" && LD=ld
14263 test -z "$ac_objext" && ac_objext=o
14264
14265 for cc_temp in $compiler""; do
14266   case $cc_temp in
14267     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14268     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14269     \-*) ;;
14270     *) break;;
14271   esac
14272 done
14273 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14274
14275
14276 # Only perform the check for file, if the check method requires it
14277 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14278 case $deplibs_check_method in
14279 file_magic*)
14280   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14281     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14282 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14283 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14284   $as_echo_n "(cached) " >&6
14285 else
14286   case $MAGIC_CMD in
14287 [\\/*] |  ?:[\\/]*)
14288   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14289   ;;
14290 *)
14291   lt_save_MAGIC_CMD="$MAGIC_CMD"
14292   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14293   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14294   for ac_dir in $ac_dummy; do
14295     IFS="$lt_save_ifs"
14296     test -z "$ac_dir" && ac_dir=.
14297     if test -f $ac_dir/${ac_tool_prefix}file; then
14298       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14299       if test -n "$file_magic_test_file"; then
14300         case $deplibs_check_method in
14301         "file_magic "*)
14302           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14303           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14304           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14305             $EGREP "$file_magic_regex" > /dev/null; then
14306             :
14307           else
14308             cat <<_LT_EOF 1>&2
14309
14310 *** Warning: the command libtool uses to detect shared libraries,
14311 *** $file_magic_cmd, produces output that libtool cannot recognize.
14312 *** The result is that libtool may fail to recognize shared libraries
14313 *** as such.  This will affect the creation of libtool libraries that
14314 *** depend on shared libraries, but programs linked with such libtool
14315 *** libraries will work regardless of this problem.  Nevertheless, you
14316 *** may want to report the problem to your system manager and/or to
14317 *** bug-libtool@gnu.org
14318
14319 _LT_EOF
14320           fi ;;
14321         esac
14322       fi
14323       break
14324     fi
14325   done
14326   IFS="$lt_save_ifs"
14327   MAGIC_CMD="$lt_save_MAGIC_CMD"
14328   ;;
14329 esac
14330 fi
14331
14332 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14333 if test -n "$MAGIC_CMD"; then
14334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14335 $as_echo "$MAGIC_CMD" >&6; }
14336 else
14337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14338 $as_echo "no" >&6; }
14339 fi
14340
14341
14342
14343
14344
14345 if test -z "$lt_cv_path_MAGIC_CMD"; then
14346   if test -n "$ac_tool_prefix"; then
14347     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14348 $as_echo_n "checking for file... " >&6; }
14349 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14350   $as_echo_n "(cached) " >&6
14351 else
14352   case $MAGIC_CMD in
14353 [\\/*] |  ?:[\\/]*)
14354   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14355   ;;
14356 *)
14357   lt_save_MAGIC_CMD="$MAGIC_CMD"
14358   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14359   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14360   for ac_dir in $ac_dummy; do
14361     IFS="$lt_save_ifs"
14362     test -z "$ac_dir" && ac_dir=.
14363     if test -f $ac_dir/file; then
14364       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14365       if test -n "$file_magic_test_file"; then
14366         case $deplibs_check_method in
14367         "file_magic "*)
14368           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14369           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14370           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14371             $EGREP "$file_magic_regex" > /dev/null; then
14372             :
14373           else
14374             cat <<_LT_EOF 1>&2
14375
14376 *** Warning: the command libtool uses to detect shared libraries,
14377 *** $file_magic_cmd, produces output that libtool cannot recognize.
14378 *** The result is that libtool may fail to recognize shared libraries
14379 *** as such.  This will affect the creation of libtool libraries that
14380 *** depend on shared libraries, but programs linked with such libtool
14381 *** libraries will work regardless of this problem.  Nevertheless, you
14382 *** may want to report the problem to your system manager and/or to
14383 *** bug-libtool@gnu.org
14384
14385 _LT_EOF
14386           fi ;;
14387         esac
14388       fi
14389       break
14390     fi
14391   done
14392   IFS="$lt_save_ifs"
14393   MAGIC_CMD="$lt_save_MAGIC_CMD"
14394   ;;
14395 esac
14396 fi
14397
14398 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14399 if test -n "$MAGIC_CMD"; then
14400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14401 $as_echo "$MAGIC_CMD" >&6; }
14402 else
14403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14404 $as_echo "no" >&6; }
14405 fi
14406
14407
14408   else
14409     MAGIC_CMD=:
14410   fi
14411 fi
14412
14413   fi
14414   ;;
14415 esac
14416
14417 # Use C for the default configuration in the libtool script
14418
14419 lt_save_CC="$CC"
14420 ac_ext=c
14421 ac_cpp='$CPP $CPPFLAGS'
14422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14425
14426
14427 # Source file extension for C test sources.
14428 ac_ext=c
14429
14430 # Object file extension for compiled C test sources.
14431 objext=o
14432 objext=$objext
14433
14434 # Code to be used in simple compile tests
14435 lt_simple_compile_test_code="int some_variable = 0;"
14436
14437 # Code to be used in simple link tests
14438 lt_simple_link_test_code='int main(){return(0);}'
14439
14440
14441
14442
14443
14444
14445
14446 # If no C compiler was specified, use CC.
14447 LTCC=${LTCC-"$CC"}
14448
14449 # If no C compiler flags were specified, use CFLAGS.
14450 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14451
14452 # Allow CC to be a program name with arguments.
14453 compiler=$CC
14454
14455 # Save the default compiler, since it gets overwritten when the other
14456 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14457 compiler_DEFAULT=$CC
14458
14459 # save warnings/boilerplate of simple test code
14460 ac_outfile=conftest.$ac_objext
14461 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14462 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14463 _lt_compiler_boilerplate=`cat conftest.err`
14464 $RM conftest*
14465
14466 ac_outfile=conftest.$ac_objext
14467 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14468 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14469 _lt_linker_boilerplate=`cat conftest.err`
14470 $RM -r conftest*
14471
14472
14473 ## CAVEAT EMPTOR:
14474 ## There is no encapsulation within the following macros, do not change
14475 ## the running order or otherwise move them around unless you know exactly
14476 ## what you are doing...
14477 if test -n "$compiler"; then
14478
14479 lt_prog_compiler_no_builtin_flag=
14480
14481 if test "$GCC" = yes; then
14482   case $cc_basename in
14483   nvcc*)
14484     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14485   *)
14486     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14487   esac
14488
14489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14490 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14491 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14492   $as_echo_n "(cached) " >&6
14493 else
14494   lt_cv_prog_compiler_rtti_exceptions=no
14495    ac_outfile=conftest.$ac_objext
14496    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14497    lt_compiler_flag="-fno-rtti -fno-exceptions"
14498    # Insert the option either (1) after the last *FLAGS variable, or
14499    # (2) before a word containing "conftest.", or (3) at the end.
14500    # Note that $ac_compile itself does not contain backslashes and begins
14501    # with a dollar sign (not a hyphen), so the echo should work correctly.
14502    # The option is referenced via a variable to avoid confusing sed.
14503    lt_compile=`echo "$ac_compile" | $SED \
14504    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14505    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14506    -e 's:$: $lt_compiler_flag:'`
14507    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14508    (eval "$lt_compile" 2>conftest.err)
14509    ac_status=$?
14510    cat conftest.err >&5
14511    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512    if (exit $ac_status) && test -s "$ac_outfile"; then
14513      # The compiler can only warn and ignore the option if not recognized
14514      # So say no if there are warnings other than the usual output.
14515      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14516      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14517      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14518        lt_cv_prog_compiler_rtti_exceptions=yes
14519      fi
14520    fi
14521    $RM conftest*
14522
14523 fi
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14525 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14526
14527 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14528     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14529 else
14530     :
14531 fi
14532
14533 fi
14534
14535
14536
14537
14538
14539
14540   lt_prog_compiler_wl=
14541 lt_prog_compiler_pic=
14542 lt_prog_compiler_static=
14543
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14545 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14546
14547   if test "$GCC" = yes; then
14548     lt_prog_compiler_wl='-Wl,'
14549     lt_prog_compiler_static='-static'
14550
14551     case $host_os in
14552       aix*)
14553       # All AIX code is PIC.
14554       if test "$host_cpu" = ia64; then
14555         # AIX 5 now supports IA64 processor
14556         lt_prog_compiler_static='-Bstatic'
14557       fi
14558       ;;
14559
14560     amigaos*)
14561       case $host_cpu in
14562       powerpc)
14563             # see comment about AmigaOS4 .so support
14564             lt_prog_compiler_pic='-fPIC'
14565         ;;
14566       m68k)
14567             # FIXME: we need at least 68020 code to build shared libraries, but
14568             # adding the `-m68020' flag to GCC prevents building anything better,
14569             # like `-m68040'.
14570             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14571         ;;
14572       esac
14573       ;;
14574
14575     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14576       # PIC is the default for these OSes.
14577       ;;
14578
14579     mingw* | cygwin* | pw32* | os2* | cegcc*)
14580       # This hack is so that the source file can tell whether it is being
14581       # built for inclusion in a dll (and should export symbols for example).
14582       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14583       # (--disable-auto-import) libraries
14584       lt_prog_compiler_pic='-DDLL_EXPORT'
14585       ;;
14586
14587     darwin* | rhapsody*)
14588       # PIC is the default on this platform
14589       # Common symbols not allowed in MH_DYLIB files
14590       lt_prog_compiler_pic='-fno-common'
14591       ;;
14592
14593     haiku*)
14594       # PIC is the default for Haiku.
14595       # The "-static" flag exists, but is broken.
14596       lt_prog_compiler_static=
14597       ;;
14598
14599     hpux*)
14600       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14601       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14602       # sets the default TLS model and affects inlining.
14603       case $host_cpu in
14604       hppa*64*)
14605         # +Z the default
14606         ;;
14607       *)
14608         lt_prog_compiler_pic='-fPIC'
14609         ;;
14610       esac
14611       ;;
14612
14613     interix[3-9]*)
14614       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14615       # Instead, we relocate shared libraries at runtime.
14616       ;;
14617
14618     msdosdjgpp*)
14619       # Just because we use GCC doesn't mean we suddenly get shared libraries
14620       # on systems that don't support them.
14621       lt_prog_compiler_can_build_shared=no
14622       enable_shared=no
14623       ;;
14624
14625     *nto* | *qnx*)
14626       # QNX uses GNU C++, but need to define -shared option too, otherwise
14627       # it will coredump.
14628       lt_prog_compiler_pic='-fPIC -shared'
14629       ;;
14630
14631     sysv4*MP*)
14632       if test -d /usr/nec; then
14633         lt_prog_compiler_pic=-Kconform_pic
14634       fi
14635       ;;
14636
14637     *)
14638       lt_prog_compiler_pic='-fPIC'
14639       ;;
14640     esac
14641
14642     case $cc_basename in
14643     nvcc*) # Cuda Compiler Driver 2.2
14644       lt_prog_compiler_wl='-Xlinker '
14645       lt_prog_compiler_pic='-Xcompiler -fPIC'
14646       ;;
14647     esac
14648   else
14649     # PORTME Check for flag to pass linker flags through the system compiler.
14650     case $host_os in
14651     aix*)
14652       lt_prog_compiler_wl='-Wl,'
14653       if test "$host_cpu" = ia64; then
14654         # AIX 5 now supports IA64 processor
14655         lt_prog_compiler_static='-Bstatic'
14656       else
14657         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14658       fi
14659       ;;
14660
14661     mingw* | cygwin* | pw32* | os2* | cegcc*)
14662       # This hack is so that the source file can tell whether it is being
14663       # built for inclusion in a dll (and should export symbols for example).
14664       lt_prog_compiler_pic='-DDLL_EXPORT'
14665       ;;
14666
14667     hpux9* | hpux10* | hpux11*)
14668       lt_prog_compiler_wl='-Wl,'
14669       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14670       # not for PA HP-UX.
14671       case $host_cpu in
14672       hppa*64*|ia64*)
14673         # +Z the default
14674         ;;
14675       *)
14676         lt_prog_compiler_pic='+Z'
14677         ;;
14678       esac
14679       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14680       lt_prog_compiler_static='${wl}-a ${wl}archive'
14681       ;;
14682
14683     irix5* | irix6* | nonstopux*)
14684       lt_prog_compiler_wl='-Wl,'
14685       # PIC (with -KPIC) is the default.
14686       lt_prog_compiler_static='-non_shared'
14687       ;;
14688
14689     linux* | k*bsd*-gnu | kopensolaris*-gnu)
14690       case $cc_basename in
14691       # old Intel for x86_64 which still supported -KPIC.
14692       ecc*)
14693         lt_prog_compiler_wl='-Wl,'
14694         lt_prog_compiler_pic='-KPIC'
14695         lt_prog_compiler_static='-static'
14696         ;;
14697       # icc used to be incompatible with GCC.
14698       # ICC 10 doesn't accept -KPIC any more.
14699       icc* | ifort*)
14700         lt_prog_compiler_wl='-Wl,'
14701         lt_prog_compiler_pic='-fPIC'
14702         lt_prog_compiler_static='-static'
14703         ;;
14704       # Lahey Fortran 8.1.
14705       lf95*)
14706         lt_prog_compiler_wl='-Wl,'
14707         lt_prog_compiler_pic='--shared'
14708         lt_prog_compiler_static='--static'
14709         ;;
14710       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14711         # Portland Group compilers (*not* the Pentium gcc compiler,
14712         # which looks to be a dead project)
14713         lt_prog_compiler_wl='-Wl,'
14714         lt_prog_compiler_pic='-fpic'
14715         lt_prog_compiler_static='-Bstatic'
14716         ;;
14717       ccc*)
14718         lt_prog_compiler_wl='-Wl,'
14719         # All Alpha code is PIC.
14720         lt_prog_compiler_static='-non_shared'
14721         ;;
14722       xl* | bgxl* | bgf* | mpixl*)
14723         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14724         lt_prog_compiler_wl='-Wl,'
14725         lt_prog_compiler_pic='-qpic'
14726         lt_prog_compiler_static='-qstaticlink'
14727         ;;
14728       *)
14729         case `$CC -V 2>&1 | sed 5q` in
14730         *Sun\ F* | *Sun*Fortran*)
14731           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14732           lt_prog_compiler_pic='-KPIC'
14733           lt_prog_compiler_static='-Bstatic'
14734           lt_prog_compiler_wl=''
14735           ;;
14736         *Sun\ C*)
14737           # Sun C 5.9
14738           lt_prog_compiler_pic='-KPIC'
14739           lt_prog_compiler_static='-Bstatic'
14740           lt_prog_compiler_wl='-Wl,'
14741           ;;
14742         esac
14743         ;;
14744       esac
14745       ;;
14746
14747     newsos6)
14748       lt_prog_compiler_pic='-KPIC'
14749       lt_prog_compiler_static='-Bstatic'
14750       ;;
14751
14752     *nto* | *qnx*)
14753       # QNX uses GNU C++, but need to define -shared option too, otherwise
14754       # it will coredump.
14755       lt_prog_compiler_pic='-fPIC -shared'
14756       ;;
14757
14758     osf3* | osf4* | osf5*)
14759       lt_prog_compiler_wl='-Wl,'
14760       # All OSF/1 code is PIC.
14761       lt_prog_compiler_static='-non_shared'
14762       ;;
14763
14764     rdos*)
14765       lt_prog_compiler_static='-non_shared'
14766       ;;
14767
14768     solaris*)
14769       lt_prog_compiler_pic='-KPIC'
14770       lt_prog_compiler_static='-Bstatic'
14771       case $cc_basename in
14772       f77* | f90* | f95*)
14773         lt_prog_compiler_wl='-Qoption ld ';;
14774       *)
14775         lt_prog_compiler_wl='-Wl,';;
14776       esac
14777       ;;
14778
14779     sunos4*)
14780       lt_prog_compiler_wl='-Qoption ld '
14781       lt_prog_compiler_pic='-PIC'
14782       lt_prog_compiler_static='-Bstatic'
14783       ;;
14784
14785     sysv4 | sysv4.2uw2* | sysv4.3*)
14786       lt_prog_compiler_wl='-Wl,'
14787       lt_prog_compiler_pic='-KPIC'
14788       lt_prog_compiler_static='-Bstatic'
14789       ;;
14790
14791     sysv4*MP*)
14792       if test -d /usr/nec ;then
14793         lt_prog_compiler_pic='-Kconform_pic'
14794         lt_prog_compiler_static='-Bstatic'
14795       fi
14796       ;;
14797
14798     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14799       lt_prog_compiler_wl='-Wl,'
14800       lt_prog_compiler_pic='-KPIC'
14801       lt_prog_compiler_static='-Bstatic'
14802       ;;
14803
14804     unicos*)
14805       lt_prog_compiler_wl='-Wl,'
14806       lt_prog_compiler_can_build_shared=no
14807       ;;
14808
14809     uts4*)
14810       lt_prog_compiler_pic='-pic'
14811       lt_prog_compiler_static='-Bstatic'
14812       ;;
14813
14814     *)
14815       lt_prog_compiler_can_build_shared=no
14816       ;;
14817     esac
14818   fi
14819
14820 case $host_os in
14821   # For platforms which do not support PIC, -DPIC is meaningless:
14822   *djgpp*)
14823     lt_prog_compiler_pic=
14824     ;;
14825   *)
14826     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14827     ;;
14828 esac
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14830 $as_echo "$lt_prog_compiler_pic" >&6; }
14831
14832
14833
14834
14835
14836
14837 #
14838 # Check to make sure the PIC flag actually works.
14839 #
14840 if test -n "$lt_prog_compiler_pic"; then
14841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14842 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14843 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14844   $as_echo_n "(cached) " >&6
14845 else
14846   lt_cv_prog_compiler_pic_works=no
14847    ac_outfile=conftest.$ac_objext
14848    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14849    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14850    # Insert the option either (1) after the last *FLAGS variable, or
14851    # (2) before a word containing "conftest.", or (3) at the end.
14852    # Note that $ac_compile itself does not contain backslashes and begins
14853    # with a dollar sign (not a hyphen), so the echo should work correctly.
14854    # The option is referenced via a variable to avoid confusing sed.
14855    lt_compile=`echo "$ac_compile" | $SED \
14856    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14857    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14858    -e 's:$: $lt_compiler_flag:'`
14859    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14860    (eval "$lt_compile" 2>conftest.err)
14861    ac_status=$?
14862    cat conftest.err >&5
14863    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864    if (exit $ac_status) && test -s "$ac_outfile"; then
14865      # The compiler can only warn and ignore the option if not recognized
14866      # So say no if there are warnings other than the usual output.
14867      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14868      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14869      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14870        lt_cv_prog_compiler_pic_works=yes
14871      fi
14872    fi
14873    $RM conftest*
14874
14875 fi
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14877 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14878
14879 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14880     case $lt_prog_compiler_pic in
14881      "" | " "*) ;;
14882      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14883      esac
14884 else
14885     lt_prog_compiler_pic=
14886      lt_prog_compiler_can_build_shared=no
14887 fi
14888
14889 fi
14890
14891
14892
14893
14894
14895
14896 #
14897 # Check to make sure the static flag actually works.
14898 #
14899 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14901 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14902 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14903   $as_echo_n "(cached) " >&6
14904 else
14905   lt_cv_prog_compiler_static_works=no
14906    save_LDFLAGS="$LDFLAGS"
14907    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14908    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14909    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14910      # The linker can only warn and ignore the option if not recognized
14911      # So say no if there are warnings
14912      if test -s conftest.err; then
14913        # Append any errors to the config.log.
14914        cat conftest.err 1>&5
14915        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14916        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14917        if diff conftest.exp conftest.er2 >/dev/null; then
14918          lt_cv_prog_compiler_static_works=yes
14919        fi
14920      else
14921        lt_cv_prog_compiler_static_works=yes
14922      fi
14923    fi
14924    $RM -r conftest*
14925    LDFLAGS="$save_LDFLAGS"
14926
14927 fi
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14929 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14930
14931 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14932     :
14933 else
14934     lt_prog_compiler_static=
14935 fi
14936
14937
14938
14939
14940
14941
14942
14943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14944 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14945 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14946   $as_echo_n "(cached) " >&6
14947 else
14948   lt_cv_prog_compiler_c_o=no
14949    $RM -r conftest 2>/dev/null
14950    mkdir conftest
14951    cd conftest
14952    mkdir out
14953    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14954
14955    lt_compiler_flag="-o out/conftest2.$ac_objext"
14956    # Insert the option either (1) after the last *FLAGS variable, or
14957    # (2) before a word containing "conftest.", or (3) at the end.
14958    # Note that $ac_compile itself does not contain backslashes and begins
14959    # with a dollar sign (not a hyphen), so the echo should work correctly.
14960    lt_compile=`echo "$ac_compile" | $SED \
14961    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14962    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14963    -e 's:$: $lt_compiler_flag:'`
14964    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14965    (eval "$lt_compile" 2>out/conftest.err)
14966    ac_status=$?
14967    cat out/conftest.err >&5
14968    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14970    then
14971      # The compiler can only warn and ignore the option if not recognized
14972      # So say no if there are warnings
14973      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14974      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14975      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14976        lt_cv_prog_compiler_c_o=yes
14977      fi
14978    fi
14979    chmod u+w . 2>&5
14980    $RM conftest*
14981    # SGI C++ compiler will create directory out/ii_files/ for
14982    # template instantiation
14983    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14984    $RM out/* && rmdir out
14985    cd ..
14986    $RM -r conftest
14987    $RM conftest*
14988
14989 fi
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14991 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14992
14993
14994
14995
14996
14997
14998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14999 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15000 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15001   $as_echo_n "(cached) " >&6
15002 else
15003   lt_cv_prog_compiler_c_o=no
15004    $RM -r conftest 2>/dev/null
15005    mkdir conftest
15006    cd conftest
15007    mkdir out
15008    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15009
15010    lt_compiler_flag="-o out/conftest2.$ac_objext"
15011    # Insert the option either (1) after the last *FLAGS variable, or
15012    # (2) before a word containing "conftest.", or (3) at the end.
15013    # Note that $ac_compile itself does not contain backslashes and begins
15014    # with a dollar sign (not a hyphen), so the echo should work correctly.
15015    lt_compile=`echo "$ac_compile" | $SED \
15016    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15017    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15018    -e 's:$: $lt_compiler_flag:'`
15019    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15020    (eval "$lt_compile" 2>out/conftest.err)
15021    ac_status=$?
15022    cat out/conftest.err >&5
15023    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15025    then
15026      # The compiler can only warn and ignore the option if not recognized
15027      # So say no if there are warnings
15028      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15029      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15030      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15031        lt_cv_prog_compiler_c_o=yes
15032      fi
15033    fi
15034    chmod u+w . 2>&5
15035    $RM conftest*
15036    # SGI C++ compiler will create directory out/ii_files/ for
15037    # template instantiation
15038    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15039    $RM out/* && rmdir out
15040    cd ..
15041    $RM -r conftest
15042    $RM conftest*
15043
15044 fi
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15046 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15047
15048
15049
15050
15051 hard_links="nottested"
15052 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15053   # do not overwrite the value of need_locks provided by the user
15054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15055 $as_echo_n "checking if we can lock with hard links... " >&6; }
15056   hard_links=yes
15057   $RM conftest*
15058   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15059   touch conftest.a
15060   ln conftest.a conftest.b 2>&5 || hard_links=no
15061   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15063 $as_echo "$hard_links" >&6; }
15064   if test "$hard_links" = no; then
15065     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15066 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15067     need_locks=warn
15068   fi
15069 else
15070   need_locks=no
15071 fi
15072
15073
15074
15075
15076
15077
15078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15079 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15080
15081   runpath_var=
15082   allow_undefined_flag=
15083   always_export_symbols=no
15084   archive_cmds=
15085   archive_expsym_cmds=
15086   compiler_needs_object=no
15087   enable_shared_with_static_runtimes=no
15088   export_dynamic_flag_spec=
15089   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15090   hardcode_automatic=no
15091   hardcode_direct=no
15092   hardcode_direct_absolute=no
15093   hardcode_libdir_flag_spec=
15094   hardcode_libdir_flag_spec_ld=
15095   hardcode_libdir_separator=
15096   hardcode_minus_L=no
15097   hardcode_shlibpath_var=unsupported
15098   inherit_rpath=no
15099   link_all_deplibs=unknown
15100   module_cmds=
15101   module_expsym_cmds=
15102   old_archive_from_new_cmds=
15103   old_archive_from_expsyms_cmds=
15104   thread_safe_flag_spec=
15105   whole_archive_flag_spec=
15106   # include_expsyms should be a list of space-separated symbols to be *always*
15107   # included in the symbol list
15108   include_expsyms=
15109   # exclude_expsyms can be an extended regexp of symbols to exclude
15110   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15111   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15112   # as well as any symbol that contains `d'.
15113   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15114   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15115   # platforms (ab)use it in PIC code, but their linkers get confused if
15116   # the symbol is explicitly referenced.  Since portable code cannot
15117   # rely on this symbol name, it's probably fine to never include it in
15118   # preloaded symbol tables.
15119   # Exclude shared library initialization/finalization symbols.
15120   extract_expsyms_cmds=
15121
15122   case $host_os in
15123   cygwin* | mingw* | pw32* | cegcc*)
15124     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15125     # When not using gcc, we currently assume that we are using
15126     # Microsoft Visual C++.
15127     if test "$GCC" != yes; then
15128       with_gnu_ld=no
15129     fi
15130     ;;
15131   interix*)
15132     # we just hope/assume this is gcc and not c89 (= MSVC++)
15133     with_gnu_ld=yes
15134     ;;
15135   openbsd*)
15136     with_gnu_ld=no
15137     ;;
15138   esac
15139
15140   ld_shlibs=yes
15141
15142   # On some targets, GNU ld is compatible enough with the native linker
15143   # that we're better off using the native interface for both.
15144   lt_use_gnu_ld_interface=no
15145   if test "$with_gnu_ld" = yes; then
15146     case $host_os in
15147       aix*)
15148         # The AIX port of GNU ld has always aspired to compatibility
15149         # with the native linker.  However, as the warning in the GNU ld
15150         # block says, versions before 2.19.5* couldn't really create working
15151         # shared libraries, regardless of the interface used.
15152         case `$LD -v 2>&1` in
15153           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15154           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15155           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15156           *)
15157             lt_use_gnu_ld_interface=yes
15158             ;;
15159         esac
15160         ;;
15161       *)
15162         lt_use_gnu_ld_interface=yes
15163         ;;
15164     esac
15165   fi
15166
15167   if test "$lt_use_gnu_ld_interface" = yes; then
15168     # If archive_cmds runs LD, not CC, wlarc should be empty
15169     wlarc='${wl}'
15170
15171     # Set some defaults for GNU ld with shared library support. These
15172     # are reset later if shared libraries are not supported. Putting them
15173     # here allows them to be overridden if necessary.
15174     runpath_var=LD_RUN_PATH
15175     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15176     export_dynamic_flag_spec='${wl}--export-dynamic'
15177     # ancient GNU ld didn't support --whole-archive et. al.
15178     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15179       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15180     else
15181       whole_archive_flag_spec=
15182     fi
15183     supports_anon_versioning=no
15184     case `$LD -v 2>&1` in
15185       *GNU\ gold*) supports_anon_versioning=yes ;;
15186       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15187       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15188       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15189       *\ 2.11.*) ;; # other 2.11 versions
15190       *) supports_anon_versioning=yes ;;
15191     esac
15192
15193     # See if GNU ld supports shared libraries.
15194     case $host_os in
15195     aix[3-9]*)
15196       # On AIX/PPC, the GNU linker is very broken
15197       if test "$host_cpu" != ia64; then
15198         ld_shlibs=no
15199         cat <<_LT_EOF 1>&2
15200
15201 *** Warning: the GNU linker, at least up to release 2.19, is reported
15202 *** to be unable to reliably create shared libraries on AIX.
15203 *** Therefore, libtool is disabling shared libraries support.  If you
15204 *** really care for shared libraries, you may want to install binutils
15205 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15206 *** You will then need to restart the configuration process.
15207
15208 _LT_EOF
15209       fi
15210       ;;
15211
15212     amigaos*)
15213       case $host_cpu in
15214       powerpc)
15215             # see comment about AmigaOS4 .so support
15216             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15217             archive_expsym_cmds=''
15218         ;;
15219       m68k)
15220             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)'
15221             hardcode_libdir_flag_spec='-L$libdir'
15222             hardcode_minus_L=yes
15223         ;;
15224       esac
15225       ;;
15226
15227     beos*)
15228       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15229         allow_undefined_flag=unsupported
15230         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15231         # support --undefined.  This deserves some investigation.  FIXME
15232         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15233       else
15234         ld_shlibs=no
15235       fi
15236       ;;
15237
15238     cygwin* | mingw* | pw32* | cegcc*)
15239       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15240       # as there is no search path for DLLs.
15241       hardcode_libdir_flag_spec='-L$libdir'
15242       export_dynamic_flag_spec='${wl}--export-all-symbols'
15243       allow_undefined_flag=unsupported
15244       always_export_symbols=no
15245       enable_shared_with_static_runtimes=yes
15246       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15247
15248       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15249         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15250         # If the export-symbols file already is a .def file (1st line
15251         # is EXPORTS), use it as is; otherwise, prepend...
15252         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15253           cp $export_symbols $output_objdir/$soname.def;
15254         else
15255           echo EXPORTS > $output_objdir/$soname.def;
15256           cat $export_symbols >> $output_objdir/$soname.def;
15257         fi~
15258         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15259       else
15260         ld_shlibs=no
15261       fi
15262       ;;
15263
15264     haiku*)
15265       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15266       link_all_deplibs=yes
15267       ;;
15268
15269     interix[3-9]*)
15270       hardcode_direct=no
15271       hardcode_shlibpath_var=no
15272       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15273       export_dynamic_flag_spec='${wl}-E'
15274       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15275       # Instead, shared libraries are loaded at an image base (0x10000000 by
15276       # default) and relocated if they conflict, which is a slow very memory
15277       # consuming and fragmenting process.  To avoid this, we pick a random,
15278       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15279       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15280       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15281       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'
15282       ;;
15283
15284     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15285       tmp_diet=no
15286       if test "$host_os" = linux-dietlibc; then
15287         case $cc_basename in
15288           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15289         esac
15290       fi
15291       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15292          && test "$tmp_diet" = no
15293       then
15294         tmp_addflag=
15295         tmp_sharedflag='-shared'
15296         case $cc_basename,$host_cpu in
15297         pgcc*)                          # Portland Group C compiler
15298           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'
15299           tmp_addflag=' $pic_flag'
15300           ;;
15301         pgf77* | pgf90* | pgf95* | pgfortran*)
15302                                         # Portland Group f77 and f90 compilers
15303           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'
15304           tmp_addflag=' $pic_flag -Mnomain' ;;
15305         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15306           tmp_addflag=' -i_dynamic' ;;
15307         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15308           tmp_addflag=' -i_dynamic -nofor_main' ;;
15309         ifc* | ifort*)                  # Intel Fortran compiler
15310           tmp_addflag=' -nofor_main' ;;
15311         lf95*)                          # Lahey Fortran 8.1
15312           whole_archive_flag_spec=
15313           tmp_sharedflag='--shared' ;;
15314         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15315           tmp_sharedflag='-qmkshrobj'
15316           tmp_addflag= ;;
15317         nvcc*)  # Cuda Compiler Driver 2.2
15318           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'
15319           compiler_needs_object=yes
15320           ;;
15321         esac
15322         case `$CC -V 2>&1 | sed 5q` in
15323         *Sun\ C*)                       # Sun C 5.9
15324           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'
15325           compiler_needs_object=yes
15326           tmp_sharedflag='-G' ;;
15327         *Sun\ F*)                       # Sun Fortran 8.3
15328           tmp_sharedflag='-G' ;;
15329         esac
15330         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15331
15332         if test "x$supports_anon_versioning" = xyes; then
15333           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15334             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15335             echo "local: *; };" >> $output_objdir/$libname.ver~
15336             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15337         fi
15338
15339         case $cc_basename in
15340         xlf* | bgf* | bgxlf* | mpixlf*)
15341           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15342           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15343           hardcode_libdir_flag_spec=
15344           hardcode_libdir_flag_spec_ld='-rpath $libdir'
15345           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15346           if test "x$supports_anon_versioning" = xyes; then
15347             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15348               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15349               echo "local: *; };" >> $output_objdir/$libname.ver~
15350               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15351           fi
15352           ;;
15353         esac
15354       else
15355         ld_shlibs=no
15356       fi
15357       ;;
15358
15359     netbsd*)
15360       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15361         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15362         wlarc=
15363       else
15364         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15365         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15366       fi
15367       ;;
15368
15369     solaris*)
15370       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15371         ld_shlibs=no
15372         cat <<_LT_EOF 1>&2
15373
15374 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15375 *** create shared libraries on Solaris systems.  Therefore, libtool
15376 *** is disabling shared libraries support.  We urge you to upgrade GNU
15377 *** binutils to release 2.9.1 or newer.  Another option is to modify
15378 *** your PATH or compiler configuration so that the native linker is
15379 *** used, and then restart.
15380
15381 _LT_EOF
15382       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15383         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15384         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15385       else
15386         ld_shlibs=no
15387       fi
15388       ;;
15389
15390     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15391       case `$LD -v 2>&1` in
15392         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15393         ld_shlibs=no
15394         cat <<_LT_EOF 1>&2
15395
15396 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15397 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15398 *** is disabling shared libraries support.  We urge you to upgrade GNU
15399 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15400 *** your PATH or compiler configuration so that the native linker is
15401 *** used, and then restart.
15402
15403 _LT_EOF
15404         ;;
15405         *)
15406           # For security reasons, it is highly recommended that you always
15407           # use absolute paths for naming shared libraries, and exclude the
15408           # DT_RUNPATH tag from executables and libraries.  But doing so
15409           # requires that you compile everything twice, which is a pain.
15410           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15411             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15412             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15413             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15414           else
15415             ld_shlibs=no
15416           fi
15417         ;;
15418       esac
15419       ;;
15420
15421     sunos4*)
15422       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15423       wlarc=
15424       hardcode_direct=yes
15425       hardcode_shlibpath_var=no
15426       ;;
15427
15428     *)
15429       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15430         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15431         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15432       else
15433         ld_shlibs=no
15434       fi
15435       ;;
15436     esac
15437
15438     if test "$ld_shlibs" = no; then
15439       runpath_var=
15440       hardcode_libdir_flag_spec=
15441       export_dynamic_flag_spec=
15442       whole_archive_flag_spec=
15443     fi
15444   else
15445     # PORTME fill in a description of your system's linker (not GNU ld)
15446     case $host_os in
15447     aix3*)
15448       allow_undefined_flag=unsupported
15449       always_export_symbols=yes
15450       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'
15451       # Note: this linker hardcodes the directories in LIBPATH if there
15452       # are no directories specified by -L.
15453       hardcode_minus_L=yes
15454       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15455         # Neither direct hardcoding nor static linking is supported with a
15456         # broken collect2.
15457         hardcode_direct=unsupported
15458       fi
15459       ;;
15460
15461     aix[4-9]*)
15462       if test "$host_cpu" = ia64; then
15463         # On IA64, the linker does run time linking by default, so we don't
15464         # have to do anything special.
15465         aix_use_runtimelinking=no
15466         exp_sym_flag='-Bexport'
15467         no_entry_flag=""
15468       else
15469         # If we're using GNU nm, then we don't want the "-C" option.
15470         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15471         # Also, AIX nm treats weak defined symbols like other global
15472         # defined symbols, whereas GNU nm marks them as "W".
15473         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15474           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'
15475         else
15476           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'
15477         fi
15478         aix_use_runtimelinking=no
15479
15480         # Test if we are trying to use run time linking or normal
15481         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15482         # need to do runtime linking.
15483         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15484           for ld_flag in $LDFLAGS; do
15485           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15486             aix_use_runtimelinking=yes
15487             break
15488           fi
15489           done
15490           ;;
15491         esac
15492
15493         exp_sym_flag='-bexport'
15494         no_entry_flag='-bnoentry'
15495       fi
15496
15497       # When large executables or shared objects are built, AIX ld can
15498       # have problems creating the table of contents.  If linking a library
15499       # or program results in "error TOC overflow" add -mminimal-toc to
15500       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15501       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15502
15503       archive_cmds=''
15504       hardcode_direct=yes
15505       hardcode_direct_absolute=yes
15506       hardcode_libdir_separator=':'
15507       link_all_deplibs=yes
15508       file_list_spec='${wl}-f,'
15509
15510       if test "$GCC" = yes; then
15511         case $host_os in aix4.[012]|aix4.[012].*)
15512         # We only want to do this on AIX 4.2 and lower, the check
15513         # below for broken collect2 doesn't work under 4.3+
15514           collect2name=`${CC} -print-prog-name=collect2`
15515           if test -f "$collect2name" &&
15516            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15517           then
15518           # We have reworked collect2
15519           :
15520           else
15521           # We have old collect2
15522           hardcode_direct=unsupported
15523           # It fails to find uninstalled libraries when the uninstalled
15524           # path is not listed in the libpath.  Setting hardcode_minus_L
15525           # to unsupported forces relinking
15526           hardcode_minus_L=yes
15527           hardcode_libdir_flag_spec='-L$libdir'
15528           hardcode_libdir_separator=
15529           fi
15530           ;;
15531         esac
15532         shared_flag='-shared'
15533         if test "$aix_use_runtimelinking" = yes; then
15534           shared_flag="$shared_flag "'${wl}-G'
15535         fi
15536       else
15537         # not using gcc
15538         if test "$host_cpu" = ia64; then
15539         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15540         # chokes on -Wl,-G. The following line is correct:
15541           shared_flag='-G'
15542         else
15543           if test "$aix_use_runtimelinking" = yes; then
15544             shared_flag='${wl}-G'
15545           else
15546             shared_flag='${wl}-bM:SRE'
15547           fi
15548         fi
15549       fi
15550
15551       export_dynamic_flag_spec='${wl}-bexpall'
15552       # It seems that -bexpall does not export symbols beginning with
15553       # underscore (_), so it is better to generate a list of symbols to export.
15554       always_export_symbols=yes
15555       if test "$aix_use_runtimelinking" = yes; then
15556         # Warning - without using the other runtime loading flags (-brtl),
15557         # -berok will link without error, but may produce a broken library.
15558         allow_undefined_flag='-berok'
15559         # Determine the default libpath from the value encoded in an
15560         # empty executable.
15561         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15562 /* end confdefs.h.  */
15563
15564 int
15565 main ()
15566 {
15567
15568   ;
15569   return 0;
15570 }
15571 _ACEOF
15572 if ac_fn_c_try_link "$LINENO"; then :
15573
15574 lt_aix_libpath_sed='
15575     /Import File Strings/,/^$/ {
15576         /^0/ {
15577             s/^0  *\(.*\)$/\1/
15578             p
15579         }
15580     }'
15581 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15582 # Check for a 64-bit object if we didn't find anything.
15583 if test -z "$aix_libpath"; then
15584   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15585 fi
15586 fi
15587 rm -f core conftest.err conftest.$ac_objext \
15588     conftest$ac_exeext conftest.$ac_ext
15589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15590
15591         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15592         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"
15593       else
15594         if test "$host_cpu" = ia64; then
15595           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15596           allow_undefined_flag="-z nodefs"
15597           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"
15598         else
15599          # Determine the default libpath from the value encoded in an
15600          # empty executable.
15601          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15602 /* end confdefs.h.  */
15603
15604 int
15605 main ()
15606 {
15607
15608   ;
15609   return 0;
15610 }
15611 _ACEOF
15612 if ac_fn_c_try_link "$LINENO"; then :
15613
15614 lt_aix_libpath_sed='
15615     /Import File Strings/,/^$/ {
15616         /^0/ {
15617             s/^0  *\(.*\)$/\1/
15618             p
15619         }
15620     }'
15621 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15622 # Check for a 64-bit object if we didn't find anything.
15623 if test -z "$aix_libpath"; then
15624   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15625 fi
15626 fi
15627 rm -f core conftest.err conftest.$ac_objext \
15628     conftest$ac_exeext conftest.$ac_ext
15629 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15630
15631          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15632           # Warning - without using the other run time loading flags,
15633           # -berok will link without error, but may produce a broken library.
15634           no_undefined_flag=' ${wl}-bernotok'
15635           allow_undefined_flag=' ${wl}-berok'
15636           if test "$with_gnu_ld" = yes; then
15637             # We only use this code for GNU lds that support --whole-archive.
15638             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15639           else
15640             # Exported symbols can be pulled into shared objects from archives
15641             whole_archive_flag_spec='$convenience'
15642           fi
15643           archive_cmds_need_lc=yes
15644           # This is similar to how AIX traditionally builds its shared libraries.
15645           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'
15646         fi
15647       fi
15648       ;;
15649
15650     amigaos*)
15651       case $host_cpu in
15652       powerpc)
15653             # see comment about AmigaOS4 .so support
15654             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15655             archive_expsym_cmds=''
15656         ;;
15657       m68k)
15658             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)'
15659             hardcode_libdir_flag_spec='-L$libdir'
15660             hardcode_minus_L=yes
15661         ;;
15662       esac
15663       ;;
15664
15665     bsdi[45]*)
15666       export_dynamic_flag_spec=-rdynamic
15667       ;;
15668
15669     cygwin* | mingw* | pw32* | cegcc*)
15670       # When not using gcc, we currently assume that we are using
15671       # Microsoft Visual C++.
15672       # hardcode_libdir_flag_spec is actually meaningless, as there is
15673       # no search path for DLLs.
15674       hardcode_libdir_flag_spec=' '
15675       allow_undefined_flag=unsupported
15676       # Tell ltmain to make .lib files, not .a files.
15677       libext=lib
15678       # Tell ltmain to make .dll files, not .so files.
15679       shrext_cmds=".dll"
15680       # FIXME: Setting linknames here is a bad hack.
15681       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15682       # The linker will automatically build a .lib file if we build a DLL.
15683       old_archive_from_new_cmds='true'
15684       # FIXME: Should let the user specify the lib program.
15685       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15686       fix_srcfile_path='`cygpath -w "$srcfile"`'
15687       enable_shared_with_static_runtimes=yes
15688       ;;
15689
15690     darwin* | rhapsody*)
15691
15692
15693   archive_cmds_need_lc=no
15694   hardcode_direct=no
15695   hardcode_automatic=yes
15696   hardcode_shlibpath_var=unsupported
15697   if test "$lt_cv_ld_force_load" = "yes"; then
15698     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\"`'
15699   else
15700     whole_archive_flag_spec=''
15701   fi
15702   link_all_deplibs=yes
15703   allow_undefined_flag="$_lt_dar_allow_undefined"
15704   case $cc_basename in
15705      ifort*) _lt_dar_can_shared=yes ;;
15706      *) _lt_dar_can_shared=$GCC ;;
15707   esac
15708   if test "$_lt_dar_can_shared" = "yes"; then
15709     output_verbose_link_cmd=func_echo_all
15710     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15711     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15712     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}"
15713     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}"
15714
15715   else
15716   ld_shlibs=no
15717   fi
15718
15719       ;;
15720
15721     dgux*)
15722       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15723       hardcode_libdir_flag_spec='-L$libdir'
15724       hardcode_shlibpath_var=no
15725       ;;
15726
15727     freebsd1*)
15728       ld_shlibs=no
15729       ;;
15730
15731     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15732     # support.  Future versions do this automatically, but an explicit c++rt0.o
15733     # does not break anything, and helps significantly (at the cost of a little
15734     # extra space).
15735     freebsd2.2*)
15736       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15737       hardcode_libdir_flag_spec='-R$libdir'
15738       hardcode_direct=yes
15739       hardcode_shlibpath_var=no
15740       ;;
15741
15742     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15743     freebsd2*)
15744       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15745       hardcode_direct=yes
15746       hardcode_minus_L=yes
15747       hardcode_shlibpath_var=no
15748       ;;
15749
15750     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15751     freebsd* | dragonfly*)
15752       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15753       hardcode_libdir_flag_spec='-R$libdir'
15754       hardcode_direct=yes
15755       hardcode_shlibpath_var=no
15756       ;;
15757
15758     hpux9*)
15759       if test "$GCC" = yes; then
15760         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'
15761       else
15762         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'
15763       fi
15764       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15765       hardcode_libdir_separator=:
15766       hardcode_direct=yes
15767
15768       # hardcode_minus_L: Not really in the search PATH,
15769       # but as the default location of the library.
15770       hardcode_minus_L=yes
15771       export_dynamic_flag_spec='${wl}-E'
15772       ;;
15773
15774     hpux10*)
15775       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15776         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15777       else
15778         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15779       fi
15780       if test "$with_gnu_ld" = no; then
15781         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15782         hardcode_libdir_flag_spec_ld='+b $libdir'
15783         hardcode_libdir_separator=:
15784         hardcode_direct=yes
15785         hardcode_direct_absolute=yes
15786         export_dynamic_flag_spec='${wl}-E'
15787         # hardcode_minus_L: Not really in the search PATH,
15788         # but as the default location of the library.
15789         hardcode_minus_L=yes
15790       fi
15791       ;;
15792
15793     hpux11*)
15794       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15795         case $host_cpu in
15796         hppa*64*)
15797           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15798           ;;
15799         ia64*)
15800           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15801           ;;
15802         *)
15803           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15804           ;;
15805         esac
15806       else
15807         case $host_cpu in
15808         hppa*64*)
15809           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15810           ;;
15811         ia64*)
15812           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15813           ;;
15814         *)
15815
15816           # Older versions of the 11.00 compiler do not understand -b yet
15817           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15818           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15819 $as_echo_n "checking if $CC understands -b... " >&6; }
15820 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15821   $as_echo_n "(cached) " >&6
15822 else
15823   lt_cv_prog_compiler__b=no
15824    save_LDFLAGS="$LDFLAGS"
15825    LDFLAGS="$LDFLAGS -b"
15826    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15827    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15828      # The linker can only warn and ignore the option if not recognized
15829      # So say no if there are warnings
15830      if test -s conftest.err; then
15831        # Append any errors to the config.log.
15832        cat conftest.err 1>&5
15833        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15834        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15835        if diff conftest.exp conftest.er2 >/dev/null; then
15836          lt_cv_prog_compiler__b=yes
15837        fi
15838      else
15839        lt_cv_prog_compiler__b=yes
15840      fi
15841    fi
15842    $RM -r conftest*
15843    LDFLAGS="$save_LDFLAGS"
15844
15845 fi
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15847 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15848
15849 if test x"$lt_cv_prog_compiler__b" = xyes; then
15850     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15851 else
15852     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15853 fi
15854
15855           ;;
15856         esac
15857       fi
15858       if test "$with_gnu_ld" = no; then
15859         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15860         hardcode_libdir_separator=:
15861
15862         case $host_cpu in
15863         hppa*64*|ia64*)
15864           hardcode_direct=no
15865           hardcode_shlibpath_var=no
15866           ;;
15867         *)
15868           hardcode_direct=yes
15869           hardcode_direct_absolute=yes
15870           export_dynamic_flag_spec='${wl}-E'
15871
15872           # hardcode_minus_L: Not really in the search PATH,
15873           # but as the default location of the library.
15874           hardcode_minus_L=yes
15875           ;;
15876         esac
15877       fi
15878       ;;
15879
15880     irix5* | irix6* | nonstopux*)
15881       if test "$GCC" = yes; then
15882         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'
15883         # Try to use the -exported_symbol ld option, if it does not
15884         # work, assume that -exports_file does not work either and
15885         # implicitly export all symbols.
15886         save_LDFLAGS="$LDFLAGS"
15887         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15888         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15889 /* end confdefs.h.  */
15890 int foo(void) {}
15891 _ACEOF
15892 if ac_fn_c_try_link "$LINENO"; then :
15893   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'
15894
15895 fi
15896 rm -f core conftest.err conftest.$ac_objext \
15897     conftest$ac_exeext conftest.$ac_ext
15898         LDFLAGS="$save_LDFLAGS"
15899       else
15900         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'
15901         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'
15902       fi
15903       archive_cmds_need_lc='no'
15904       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15905       hardcode_libdir_separator=:
15906       inherit_rpath=yes
15907       link_all_deplibs=yes
15908       ;;
15909
15910     netbsd*)
15911       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15912         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15913       else
15914         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15915       fi
15916       hardcode_libdir_flag_spec='-R$libdir'
15917       hardcode_direct=yes
15918       hardcode_shlibpath_var=no
15919       ;;
15920
15921     newsos6)
15922       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15923       hardcode_direct=yes
15924       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15925       hardcode_libdir_separator=:
15926       hardcode_shlibpath_var=no
15927       ;;
15928
15929     *nto* | *qnx*)
15930       ;;
15931
15932     openbsd*)
15933       if test -f /usr/libexec/ld.so; then
15934         hardcode_direct=yes
15935         hardcode_shlibpath_var=no
15936         hardcode_direct_absolute=yes
15937         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15938           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15939           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15940           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15941           export_dynamic_flag_spec='${wl}-E'
15942         else
15943           case $host_os in
15944            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15945              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15946              hardcode_libdir_flag_spec='-R$libdir'
15947              ;;
15948            *)
15949              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15950              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15951              ;;
15952           esac
15953         fi
15954       else
15955         ld_shlibs=no
15956       fi
15957       ;;
15958
15959     os2*)
15960       hardcode_libdir_flag_spec='-L$libdir'
15961       hardcode_minus_L=yes
15962       allow_undefined_flag=unsupported
15963       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'
15964       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15965       ;;
15966
15967     osf3*)
15968       if test "$GCC" = yes; then
15969         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15970         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'
15971       else
15972         allow_undefined_flag=' -expect_unresolved \*'
15973         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'
15974       fi
15975       archive_cmds_need_lc='no'
15976       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15977       hardcode_libdir_separator=:
15978       ;;
15979
15980     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15981       if test "$GCC" = yes; then
15982         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15983         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'
15984         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15985       else
15986         allow_undefined_flag=' -expect_unresolved \*'
15987         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'
15988         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~
15989         $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'
15990
15991         # Both c and cxx compiler support -rpath directly
15992         hardcode_libdir_flag_spec='-rpath $libdir'
15993       fi
15994       archive_cmds_need_lc='no'
15995       hardcode_libdir_separator=:
15996       ;;
15997
15998     solaris*)
15999       no_undefined_flag=' -z defs'
16000       if test "$GCC" = yes; then
16001         wlarc='${wl}'
16002         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16003         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16004           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16005       else
16006         case `$CC -V 2>&1` in
16007         *"Compilers 5.0"*)
16008           wlarc=''
16009           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16010           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16011           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16012           ;;
16013         *)
16014           wlarc='${wl}'
16015           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16016           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16017           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16018           ;;
16019         esac
16020       fi
16021       hardcode_libdir_flag_spec='-R$libdir'
16022       hardcode_shlibpath_var=no
16023       case $host_os in
16024       solaris2.[0-5] | solaris2.[0-5].*) ;;
16025       *)
16026         # The compiler driver will combine and reorder linker options,
16027         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16028         # but is careful enough not to reorder.
16029         # Supported since Solaris 2.6 (maybe 2.5.1?)
16030         if test "$GCC" = yes; then
16031           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16032         else
16033           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16034         fi
16035         ;;
16036       esac
16037       link_all_deplibs=yes
16038       ;;
16039
16040     sunos4*)
16041       if test "x$host_vendor" = xsequent; then
16042         # Use $CC to link under sequent, because it throws in some extra .o
16043         # files that make .init and .fini sections work.
16044         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16045       else
16046         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16047       fi
16048       hardcode_libdir_flag_spec='-L$libdir'
16049       hardcode_direct=yes
16050       hardcode_minus_L=yes
16051       hardcode_shlibpath_var=no
16052       ;;
16053
16054     sysv4)
16055       case $host_vendor in
16056         sni)
16057           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16058           hardcode_direct=yes # is this really true???
16059         ;;
16060         siemens)
16061           ## LD is ld it makes a PLAMLIB
16062           ## CC just makes a GrossModule.
16063           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16064           reload_cmds='$CC -r -o $output$reload_objs'
16065           hardcode_direct=no
16066         ;;
16067         motorola)
16068           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16069           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16070         ;;
16071       esac
16072       runpath_var='LD_RUN_PATH'
16073       hardcode_shlibpath_var=no
16074       ;;
16075
16076     sysv4.3*)
16077       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16078       hardcode_shlibpath_var=no
16079       export_dynamic_flag_spec='-Bexport'
16080       ;;
16081
16082     sysv4*MP*)
16083       if test -d /usr/nec; then
16084         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16085         hardcode_shlibpath_var=no
16086         runpath_var=LD_RUN_PATH
16087         hardcode_runpath_var=yes
16088         ld_shlibs=yes
16089       fi
16090       ;;
16091
16092     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16093       no_undefined_flag='${wl}-z,text'
16094       archive_cmds_need_lc=no
16095       hardcode_shlibpath_var=no
16096       runpath_var='LD_RUN_PATH'
16097
16098       if test "$GCC" = yes; then
16099         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16100         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16101       else
16102         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16103         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16104       fi
16105       ;;
16106
16107     sysv5* | sco3.2v5* | sco5v6*)
16108       # Note: We can NOT use -z defs as we might desire, because we do not
16109       # link with -lc, and that would cause any symbols used from libc to
16110       # always be unresolved, which means just about no library would
16111       # ever link correctly.  If we're not using GNU ld we use -z text
16112       # though, which does catch some bad symbols but isn't as heavy-handed
16113       # as -z defs.
16114       no_undefined_flag='${wl}-z,text'
16115       allow_undefined_flag='${wl}-z,nodefs'
16116       archive_cmds_need_lc=no
16117       hardcode_shlibpath_var=no
16118       hardcode_libdir_flag_spec='${wl}-R,$libdir'
16119       hardcode_libdir_separator=':'
16120       link_all_deplibs=yes
16121       export_dynamic_flag_spec='${wl}-Bexport'
16122       runpath_var='LD_RUN_PATH'
16123
16124       if test "$GCC" = yes; then
16125         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16126         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16127       else
16128         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16129         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16130       fi
16131       ;;
16132
16133     uts4*)
16134       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16135       hardcode_libdir_flag_spec='-L$libdir'
16136       hardcode_shlibpath_var=no
16137       ;;
16138
16139     *)
16140       ld_shlibs=no
16141       ;;
16142     esac
16143
16144     if test x$host_vendor = xsni; then
16145       case $host in
16146       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16147         export_dynamic_flag_spec='${wl}-Blargedynsym'
16148         ;;
16149       esac
16150     fi
16151   fi
16152
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16154 $as_echo "$ld_shlibs" >&6; }
16155 test "$ld_shlibs" = no && can_build_shared=no
16156
16157 with_gnu_ld=$with_gnu_ld
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173 #
16174 # Do we need to explicitly link libc?
16175 #
16176 case "x$archive_cmds_need_lc" in
16177 x|xyes)
16178   # Assume -lc should be added
16179   archive_cmds_need_lc=yes
16180
16181   if test "$enable_shared" = yes && test "$GCC" = yes; then
16182     case $archive_cmds in
16183     *'~'*)
16184       # FIXME: we may have to deal with multi-command sequences.
16185       ;;
16186     '$CC '*)
16187       # Test whether the compiler implicitly links with -lc since on some
16188       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16189       # to ld, don't add -lc before -lgcc.
16190       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16191 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16192 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16193   $as_echo_n "(cached) " >&6
16194 else
16195   $RM conftest*
16196         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16197
16198         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16199   (eval $ac_compile) 2>&5
16200   ac_status=$?
16201   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16202   test $ac_status = 0; } 2>conftest.err; then
16203           soname=conftest
16204           lib=conftest
16205           libobjs=conftest.$ac_objext
16206           deplibs=
16207           wl=$lt_prog_compiler_wl
16208           pic_flag=$lt_prog_compiler_pic
16209           compiler_flags=-v
16210           linker_flags=-v
16211           verstring=
16212           output_objdir=.
16213           libname=conftest
16214           lt_save_allow_undefined_flag=$allow_undefined_flag
16215           allow_undefined_flag=
16216           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16217   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16218   ac_status=$?
16219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16220   test $ac_status = 0; }
16221           then
16222             lt_cv_archive_cmds_need_lc=no
16223           else
16224             lt_cv_archive_cmds_need_lc=yes
16225           fi
16226           allow_undefined_flag=$lt_save_allow_undefined_flag
16227         else
16228           cat conftest.err 1>&5
16229         fi
16230         $RM conftest*
16231
16232 fi
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16234 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16235       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16236       ;;
16237     esac
16238   fi
16239   ;;
16240 esac
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16399 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16400
16401 if test "$GCC" = yes; then
16402   case $host_os in
16403     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16404     *) lt_awk_arg="/^libraries:/" ;;
16405   esac
16406   case $host_os in
16407     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16408     *) lt_sed_strip_eq="s,=/,/,g" ;;
16409   esac
16410   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16411   case $lt_search_path_spec in
16412   *\;*)
16413     # if the path contains ";" then we assume it to be the separator
16414     # otherwise default to the standard path separator (i.e. ":") - it is
16415     # assumed that no part of a normal pathname contains ";" but that should
16416     # okay in the real world where ";" in dirpaths is itself problematic.
16417     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16418     ;;
16419   *)
16420     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16421     ;;
16422   esac
16423   # Ok, now we have the path, separated by spaces, we can step through it
16424   # and add multilib dir if necessary.
16425   lt_tmp_lt_search_path_spec=
16426   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16427   for lt_sys_path in $lt_search_path_spec; do
16428     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16429       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16430     else
16431       test -d "$lt_sys_path" && \
16432         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16433     fi
16434   done
16435   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16436 BEGIN {RS=" "; FS="/|\n";} {
16437   lt_foo="";
16438   lt_count=0;
16439   for (lt_i = NF; lt_i > 0; lt_i--) {
16440     if ($lt_i != "" && $lt_i != ".") {
16441       if ($lt_i == "..") {
16442         lt_count++;
16443       } else {
16444         if (lt_count == 0) {
16445           lt_foo="/" $lt_i lt_foo;
16446         } else {
16447           lt_count--;
16448         }
16449       }
16450     }
16451   }
16452   if (lt_foo != "") { lt_freq[lt_foo]++; }
16453   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16454 }'`
16455   # AWK program above erroneously prepends '/' to C:/dos/paths
16456   # for these hosts.
16457   case $host_os in
16458     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16459       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16460   esac
16461   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16462 else
16463   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16464 fi
16465 library_names_spec=
16466 libname_spec='lib$name'
16467 soname_spec=
16468 shrext_cmds=".so"
16469 postinstall_cmds=
16470 postuninstall_cmds=
16471 finish_cmds=
16472 finish_eval=
16473 shlibpath_var=
16474 shlibpath_overrides_runpath=unknown
16475 version_type=none
16476 dynamic_linker="$host_os ld.so"
16477 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16478 need_lib_prefix=unknown
16479 hardcode_into_libs=no
16480
16481 # when you set need_version to no, make sure it does not cause -set_version
16482 # flags to be left without arguments
16483 need_version=unknown
16484
16485 case $host_os in
16486 aix3*)
16487   version_type=linux
16488   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16489   shlibpath_var=LIBPATH
16490
16491   # AIX 3 has no versioning support, so we append a major version to the name.
16492   soname_spec='${libname}${release}${shared_ext}$major'
16493   ;;
16494
16495 aix[4-9]*)
16496   version_type=linux
16497   need_lib_prefix=no
16498   need_version=no
16499   hardcode_into_libs=yes
16500   if test "$host_cpu" = ia64; then
16501     # AIX 5 supports IA64
16502     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16503     shlibpath_var=LD_LIBRARY_PATH
16504   else
16505     # With GCC up to 2.95.x, collect2 would create an import file
16506     # for dependence libraries.  The import file would start with
16507     # the line `#! .'.  This would cause the generated library to
16508     # depend on `.', always an invalid library.  This was fixed in
16509     # development snapshots of GCC prior to 3.0.
16510     case $host_os in
16511       aix4 | aix4.[01] | aix4.[01].*)
16512       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16513            echo ' yes '
16514            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16515         :
16516       else
16517         can_build_shared=no
16518       fi
16519       ;;
16520     esac
16521     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16522     # soname into executable. Probably we can add versioning support to
16523     # collect2, so additional links can be useful in future.
16524     if test "$aix_use_runtimelinking" = yes; then
16525       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16526       # instead of lib<name>.a to let people know that these are not
16527       # typical AIX shared libraries.
16528       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16529     else
16530       # We preserve .a as extension for shared libraries through AIX4.2
16531       # and later when we are not doing run time linking.
16532       library_names_spec='${libname}${release}.a $libname.a'
16533       soname_spec='${libname}${release}${shared_ext}$major'
16534     fi
16535     shlibpath_var=LIBPATH
16536   fi
16537   ;;
16538
16539 amigaos*)
16540   case $host_cpu in
16541   powerpc)
16542     # Since July 2007 AmigaOS4 officially supports .so libraries.
16543     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16544     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16545     ;;
16546   m68k)
16547     library_names_spec='$libname.ixlibrary $libname.a'
16548     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16549     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'
16550     ;;
16551   esac
16552   ;;
16553
16554 beos*)
16555   library_names_spec='${libname}${shared_ext}'
16556   dynamic_linker="$host_os ld.so"
16557   shlibpath_var=LIBRARY_PATH
16558   ;;
16559
16560 bsdi[45]*)
16561   version_type=linux
16562   need_version=no
16563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16564   soname_spec='${libname}${release}${shared_ext}$major'
16565   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16566   shlibpath_var=LD_LIBRARY_PATH
16567   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16568   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16569   # the default ld.so.conf also contains /usr/contrib/lib and
16570   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16571   # libtool to hard-code these into programs
16572   ;;
16573
16574 cygwin* | mingw* | pw32* | cegcc*)
16575   version_type=windows
16576   shrext_cmds=".dll"
16577   need_version=no
16578   need_lib_prefix=no
16579
16580   case $GCC,$host_os in
16581   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16582     library_names_spec='$libname.dll.a'
16583     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16584     postinstall_cmds='base_file=`basename \${file}`~
16585       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16586       dldir=$destdir/`dirname \$dlpath`~
16587       test -d \$dldir || mkdir -p \$dldir~
16588       $install_prog $dir/$dlname \$dldir/$dlname~
16589       chmod a+x \$dldir/$dlname~
16590       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16591         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16592       fi'
16593     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16594       dlpath=$dir/\$dldll~
16595        $RM \$dlpath'
16596     shlibpath_overrides_runpath=yes
16597
16598     case $host_os in
16599     cygwin*)
16600       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16601       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16602
16603       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16604       ;;
16605     mingw* | cegcc*)
16606       # MinGW DLLs use traditional 'lib' prefix
16607       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16608       ;;
16609     pw32*)
16610       # pw32 DLLs use 'pw' prefix rather than 'lib'
16611       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16612       ;;
16613     esac
16614     ;;
16615
16616   *)
16617     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16618     ;;
16619   esac
16620   dynamic_linker='Win32 ld.exe'
16621   # FIXME: first we should search . and the directory the executable is in
16622   shlibpath_var=PATH
16623   ;;
16624
16625 darwin* | rhapsody*)
16626   dynamic_linker="$host_os dyld"
16627   version_type=darwin
16628   need_lib_prefix=no
16629   need_version=no
16630   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16631   soname_spec='${libname}${release}${major}$shared_ext'
16632   shlibpath_overrides_runpath=yes
16633   shlibpath_var=DYLD_LIBRARY_PATH
16634   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16635
16636   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16637   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16638   ;;
16639
16640 dgux*)
16641   version_type=linux
16642   need_lib_prefix=no
16643   need_version=no
16644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16645   soname_spec='${libname}${release}${shared_ext}$major'
16646   shlibpath_var=LD_LIBRARY_PATH
16647   ;;
16648
16649 freebsd1*)
16650   dynamic_linker=no
16651   ;;
16652
16653 freebsd* | dragonfly*)
16654   # DragonFly does not have aout.  When/if they implement a new
16655   # versioning mechanism, adjust this.
16656   if test -x /usr/bin/objformat; then
16657     objformat=`/usr/bin/objformat`
16658   else
16659     case $host_os in
16660     freebsd[123]*) objformat=aout ;;
16661     *) objformat=elf ;;
16662     esac
16663   fi
16664   version_type=freebsd-$objformat
16665   case $version_type in
16666     freebsd-elf*)
16667       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16668       need_version=no
16669       need_lib_prefix=no
16670       ;;
16671     freebsd-*)
16672       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16673       need_version=yes
16674       ;;
16675   esac
16676   shlibpath_var=LD_LIBRARY_PATH
16677   case $host_os in
16678   freebsd2*)
16679     shlibpath_overrides_runpath=yes
16680     ;;
16681   freebsd3.[01]* | freebsdelf3.[01]*)
16682     shlibpath_overrides_runpath=yes
16683     hardcode_into_libs=yes
16684     ;;
16685   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16686   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16687     shlibpath_overrides_runpath=no
16688     hardcode_into_libs=yes
16689     ;;
16690   *) # from 4.6 on, and DragonFly
16691     shlibpath_overrides_runpath=yes
16692     hardcode_into_libs=yes
16693     ;;
16694   esac
16695   ;;
16696
16697 gnu*)
16698   version_type=linux
16699   need_lib_prefix=no
16700   need_version=no
16701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16702   soname_spec='${libname}${release}${shared_ext}$major'
16703   shlibpath_var=LD_LIBRARY_PATH
16704   hardcode_into_libs=yes
16705   ;;
16706
16707 haiku*)
16708   version_type=linux
16709   need_lib_prefix=no
16710   need_version=no
16711   dynamic_linker="$host_os runtime_loader"
16712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16713   soname_spec='${libname}${release}${shared_ext}$major'
16714   shlibpath_var=LIBRARY_PATH
16715   shlibpath_overrides_runpath=yes
16716   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16717   hardcode_into_libs=yes
16718   ;;
16719
16720 hpux9* | hpux10* | hpux11*)
16721   # Give a soname corresponding to the major version so that dld.sl refuses to
16722   # link against other versions.
16723   version_type=sunos
16724   need_lib_prefix=no
16725   need_version=no
16726   case $host_cpu in
16727   ia64*)
16728     shrext_cmds='.so'
16729     hardcode_into_libs=yes
16730     dynamic_linker="$host_os dld.so"
16731     shlibpath_var=LD_LIBRARY_PATH
16732     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16733     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16734     soname_spec='${libname}${release}${shared_ext}$major'
16735     if test "X$HPUX_IA64_MODE" = X32; then
16736       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16737     else
16738       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16739     fi
16740     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16741     ;;
16742   hppa*64*)
16743     shrext_cmds='.sl'
16744     hardcode_into_libs=yes
16745     dynamic_linker="$host_os dld.sl"
16746     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16747     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16748     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16749     soname_spec='${libname}${release}${shared_ext}$major'
16750     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16751     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16752     ;;
16753   *)
16754     shrext_cmds='.sl'
16755     dynamic_linker="$host_os dld.sl"
16756     shlibpath_var=SHLIB_PATH
16757     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16758     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16759     soname_spec='${libname}${release}${shared_ext}$major'
16760     ;;
16761   esac
16762   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16763   postinstall_cmds='chmod 555 $lib'
16764   # or fails outright, so override atomically:
16765   install_override_mode=555
16766   ;;
16767
16768 interix[3-9]*)
16769   version_type=linux
16770   need_lib_prefix=no
16771   need_version=no
16772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16773   soname_spec='${libname}${release}${shared_ext}$major'
16774   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16775   shlibpath_var=LD_LIBRARY_PATH
16776   shlibpath_overrides_runpath=no
16777   hardcode_into_libs=yes
16778   ;;
16779
16780 irix5* | irix6* | nonstopux*)
16781   case $host_os in
16782     nonstopux*) version_type=nonstopux ;;
16783     *)
16784         if test "$lt_cv_prog_gnu_ld" = yes; then
16785                 version_type=linux
16786         else
16787                 version_type=irix
16788         fi ;;
16789   esac
16790   need_lib_prefix=no
16791   need_version=no
16792   soname_spec='${libname}${release}${shared_ext}$major'
16793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16794   case $host_os in
16795   irix5* | nonstopux*)
16796     libsuff= shlibsuff=
16797     ;;
16798   *)
16799     case $LD in # libtool.m4 will add one of these switches to LD
16800     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16801       libsuff= shlibsuff= libmagic=32-bit;;
16802     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16803       libsuff=32 shlibsuff=N32 libmagic=N32;;
16804     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16805       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16806     *) libsuff= shlibsuff= libmagic=never-match;;
16807     esac
16808     ;;
16809   esac
16810   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16811   shlibpath_overrides_runpath=no
16812   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16813   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16814   hardcode_into_libs=yes
16815   ;;
16816
16817 # No shared lib support for Linux oldld, aout, or coff.
16818 linux*oldld* | linux*aout* | linux*coff*)
16819   dynamic_linker=no
16820   ;;
16821
16822 # This must be Linux ELF.
16823 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16824   version_type=linux
16825   need_lib_prefix=no
16826   need_version=no
16827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16828   soname_spec='${libname}${release}${shared_ext}$major'
16829   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16830   shlibpath_var=LD_LIBRARY_PATH
16831   shlibpath_overrides_runpath=no
16832
16833   # Some binutils ld are patched to set DT_RUNPATH
16834   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16835   $as_echo_n "(cached) " >&6
16836 else
16837   lt_cv_shlibpath_overrides_runpath=no
16838     save_LDFLAGS=$LDFLAGS
16839     save_libdir=$libdir
16840     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16841          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16842     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16843 /* end confdefs.h.  */
16844
16845 int
16846 main ()
16847 {
16848
16849   ;
16850   return 0;
16851 }
16852 _ACEOF
16853 if ac_fn_c_try_link "$LINENO"; then :
16854   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16855   lt_cv_shlibpath_overrides_runpath=yes
16856 fi
16857 fi
16858 rm -f core conftest.err conftest.$ac_objext \
16859     conftest$ac_exeext conftest.$ac_ext
16860     LDFLAGS=$save_LDFLAGS
16861     libdir=$save_libdir
16862
16863 fi
16864
16865   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16866
16867   # This implies no fast_install, which is unacceptable.
16868   # Some rework will be needed to allow for fast_install
16869   # before this can be enabled.
16870   hardcode_into_libs=yes
16871
16872   # Append ld.so.conf contents to the search path
16873   if test -f /etc/ld.so.conf; then
16874     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' ' '`
16875     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16876   fi
16877
16878   # We used to test for /lib/ld.so.1 and disable shared libraries on
16879   # powerpc, because MkLinux only supported shared libraries with the
16880   # GNU dynamic linker.  Since this was broken with cross compilers,
16881   # most powerpc-linux boxes support dynamic linking these days and
16882   # people can always --disable-shared, the test was removed, and we
16883   # assume the GNU/Linux dynamic linker is in use.
16884   dynamic_linker='GNU/Linux ld.so'
16885   ;;
16886
16887 netbsd*)
16888   version_type=sunos
16889   need_lib_prefix=no
16890   need_version=no
16891   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16892     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16893     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16894     dynamic_linker='NetBSD (a.out) ld.so'
16895   else
16896     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16897     soname_spec='${libname}${release}${shared_ext}$major'
16898     dynamic_linker='NetBSD ld.elf_so'
16899   fi
16900   shlibpath_var=LD_LIBRARY_PATH
16901   shlibpath_overrides_runpath=yes
16902   hardcode_into_libs=yes
16903   ;;
16904
16905 newsos6)
16906   version_type=linux
16907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908   shlibpath_var=LD_LIBRARY_PATH
16909   shlibpath_overrides_runpath=yes
16910   ;;
16911
16912 *nto* | *qnx*)
16913   version_type=qnx
16914   need_lib_prefix=no
16915   need_version=no
16916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16917   soname_spec='${libname}${release}${shared_ext}$major'
16918   shlibpath_var=LD_LIBRARY_PATH
16919   shlibpath_overrides_runpath=no
16920   hardcode_into_libs=yes
16921   dynamic_linker='ldqnx.so'
16922   ;;
16923
16924 openbsd*)
16925   version_type=sunos
16926   sys_lib_dlsearch_path_spec="/usr/lib"
16927   need_lib_prefix=no
16928   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16929   case $host_os in
16930     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16931     *)                          need_version=no  ;;
16932   esac
16933   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16934   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16935   shlibpath_var=LD_LIBRARY_PATH
16936   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16937     case $host_os in
16938       openbsd2.[89] | openbsd2.[89].*)
16939         shlibpath_overrides_runpath=no
16940         ;;
16941       *)
16942         shlibpath_overrides_runpath=yes
16943         ;;
16944       esac
16945   else
16946     shlibpath_overrides_runpath=yes
16947   fi
16948   ;;
16949
16950 os2*)
16951   libname_spec='$name'
16952   shrext_cmds=".dll"
16953   need_lib_prefix=no
16954   library_names_spec='$libname${shared_ext} $libname.a'
16955   dynamic_linker='OS/2 ld.exe'
16956   shlibpath_var=LIBPATH
16957   ;;
16958
16959 osf3* | osf4* | osf5*)
16960   version_type=osf
16961   need_lib_prefix=no
16962   need_version=no
16963   soname_spec='${libname}${release}${shared_ext}$major'
16964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16965   shlibpath_var=LD_LIBRARY_PATH
16966   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16967   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16968   ;;
16969
16970 rdos*)
16971   dynamic_linker=no
16972   ;;
16973
16974 solaris*)
16975   version_type=linux
16976   need_lib_prefix=no
16977   need_version=no
16978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16979   soname_spec='${libname}${release}${shared_ext}$major'
16980   shlibpath_var=LD_LIBRARY_PATH
16981   shlibpath_overrides_runpath=yes
16982   hardcode_into_libs=yes
16983   # ldd complains unless libraries are executable
16984   postinstall_cmds='chmod +x $lib'
16985   ;;
16986
16987 sunos4*)
16988   version_type=sunos
16989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16990   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16991   shlibpath_var=LD_LIBRARY_PATH
16992   shlibpath_overrides_runpath=yes
16993   if test "$with_gnu_ld" = yes; then
16994     need_lib_prefix=no
16995   fi
16996   need_version=yes
16997   ;;
16998
16999 sysv4 | sysv4.3*)
17000   version_type=linux
17001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17002   soname_spec='${libname}${release}${shared_ext}$major'
17003   shlibpath_var=LD_LIBRARY_PATH
17004   case $host_vendor in
17005     sni)
17006       shlibpath_overrides_runpath=no
17007       need_lib_prefix=no
17008       runpath_var=LD_RUN_PATH
17009       ;;
17010     siemens)
17011       need_lib_prefix=no
17012       ;;
17013     motorola)
17014       need_lib_prefix=no
17015       need_version=no
17016       shlibpath_overrides_runpath=no
17017       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17018       ;;
17019   esac
17020   ;;
17021
17022 sysv4*MP*)
17023   if test -d /usr/nec ;then
17024     version_type=linux
17025     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17026     soname_spec='$libname${shared_ext}.$major'
17027     shlibpath_var=LD_LIBRARY_PATH
17028   fi
17029   ;;
17030
17031 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17032   version_type=freebsd-elf
17033   need_lib_prefix=no
17034   need_version=no
17035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17036   soname_spec='${libname}${release}${shared_ext}$major'
17037   shlibpath_var=LD_LIBRARY_PATH
17038   shlibpath_overrides_runpath=yes
17039   hardcode_into_libs=yes
17040   if test "$with_gnu_ld" = yes; then
17041     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17042   else
17043     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17044     case $host_os in
17045       sco3.2v5*)
17046         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17047         ;;
17048     esac
17049   fi
17050   sys_lib_dlsearch_path_spec='/usr/lib'
17051   ;;
17052
17053 tpf*)
17054   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17055   version_type=linux
17056   need_lib_prefix=no
17057   need_version=no
17058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17059   shlibpath_var=LD_LIBRARY_PATH
17060   shlibpath_overrides_runpath=no
17061   hardcode_into_libs=yes
17062   ;;
17063
17064 uts4*)
17065   version_type=linux
17066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17067   soname_spec='${libname}${release}${shared_ext}$major'
17068   shlibpath_var=LD_LIBRARY_PATH
17069   ;;
17070
17071 *)
17072   dynamic_linker=no
17073   ;;
17074 esac
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17076 $as_echo "$dynamic_linker" >&6; }
17077 test "$dynamic_linker" = no && can_build_shared=no
17078
17079 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17080 if test "$GCC" = yes; then
17081   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17082 fi
17083
17084 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17085   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17086 fi
17087 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17088   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17089 fi
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17183 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17184 hardcode_action=
17185 if test -n "$hardcode_libdir_flag_spec" ||
17186    test -n "$runpath_var" ||
17187    test "X$hardcode_automatic" = "Xyes" ; then
17188
17189   # We can hardcode non-existent directories.
17190   if test "$hardcode_direct" != no &&
17191      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17192      # have to relink, otherwise we might link with an installed library
17193      # when we should be linking with a yet-to-be-installed one
17194      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17195      test "$hardcode_minus_L" != no; then
17196     # Linking always hardcodes the temporary library directory.
17197     hardcode_action=relink
17198   else
17199     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17200     hardcode_action=immediate
17201   fi
17202 else
17203   # We cannot hardcode anything, or else we can only hardcode existing
17204   # directories.
17205   hardcode_action=unsupported
17206 fi
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17208 $as_echo "$hardcode_action" >&6; }
17209
17210 if test "$hardcode_action" = relink ||
17211    test "$inherit_rpath" = yes; then
17212   # Fast installation is not supported
17213   enable_fast_install=no
17214 elif test "$shlibpath_overrides_runpath" = yes ||
17215      test "$enable_shared" = no; then
17216   # Fast installation is not necessary
17217   enable_fast_install=needless
17218 fi
17219
17220
17221
17222
17223
17224
17225   if test "x$enable_dlopen" != xyes; then
17226   enable_dlopen=unknown
17227   enable_dlopen_self=unknown
17228   enable_dlopen_self_static=unknown
17229 else
17230   lt_cv_dlopen=no
17231   lt_cv_dlopen_libs=
17232
17233   case $host_os in
17234   beos*)
17235     lt_cv_dlopen="load_add_on"
17236     lt_cv_dlopen_libs=
17237     lt_cv_dlopen_self=yes
17238     ;;
17239
17240   mingw* | pw32* | cegcc*)
17241     lt_cv_dlopen="LoadLibrary"
17242     lt_cv_dlopen_libs=
17243     ;;
17244
17245   cygwin*)
17246     lt_cv_dlopen="dlopen"
17247     lt_cv_dlopen_libs=
17248     ;;
17249
17250   darwin*)
17251   # if libdl is installed we need to link against it
17252     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17253 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17254 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17255   $as_echo_n "(cached) " >&6
17256 else
17257   ac_check_lib_save_LIBS=$LIBS
17258 LIBS="-ldl  $LIBS"
17259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17260 /* end confdefs.h.  */
17261
17262 /* Override any GCC internal prototype to avoid an error.
17263    Use char because int might match the return type of a GCC
17264    builtin and then its argument prototype would still apply.  */
17265 #ifdef __cplusplus
17266 extern "C"
17267 #endif
17268 char dlopen ();
17269 int
17270 main ()
17271 {
17272 return dlopen ();
17273   ;
17274   return 0;
17275 }
17276 _ACEOF
17277 if ac_fn_c_try_link "$LINENO"; then :
17278   ac_cv_lib_dl_dlopen=yes
17279 else
17280   ac_cv_lib_dl_dlopen=no
17281 fi
17282 rm -f core conftest.err conftest.$ac_objext \
17283     conftest$ac_exeext conftest.$ac_ext
17284 LIBS=$ac_check_lib_save_LIBS
17285 fi
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17287 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17288 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17289   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17290 else
17291
17292     lt_cv_dlopen="dyld"
17293     lt_cv_dlopen_libs=
17294     lt_cv_dlopen_self=yes
17295
17296 fi
17297
17298     ;;
17299
17300   *)
17301     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17302 if test "x$ac_cv_func_shl_load" = x""yes; then :
17303   lt_cv_dlopen="shl_load"
17304 else
17305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17306 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17307 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17308   $as_echo_n "(cached) " >&6
17309 else
17310   ac_check_lib_save_LIBS=$LIBS
17311 LIBS="-ldld  $LIBS"
17312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17313 /* end confdefs.h.  */
17314
17315 /* Override any GCC internal prototype to avoid an error.
17316    Use char because int might match the return type of a GCC
17317    builtin and then its argument prototype would still apply.  */
17318 #ifdef __cplusplus
17319 extern "C"
17320 #endif
17321 char shl_load ();
17322 int
17323 main ()
17324 {
17325 return shl_load ();
17326   ;
17327   return 0;
17328 }
17329 _ACEOF
17330 if ac_fn_c_try_link "$LINENO"; then :
17331   ac_cv_lib_dld_shl_load=yes
17332 else
17333   ac_cv_lib_dld_shl_load=no
17334 fi
17335 rm -f core conftest.err conftest.$ac_objext \
17336     conftest$ac_exeext conftest.$ac_ext
17337 LIBS=$ac_check_lib_save_LIBS
17338 fi
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17340 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17341 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17342   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17343 else
17344   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17345 if test "x$ac_cv_func_dlopen" = x""yes; then :
17346   lt_cv_dlopen="dlopen"
17347 else
17348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17349 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17350 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17351   $as_echo_n "(cached) " >&6
17352 else
17353   ac_check_lib_save_LIBS=$LIBS
17354 LIBS="-ldl  $LIBS"
17355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17356 /* end confdefs.h.  */
17357
17358 /* Override any GCC internal prototype to avoid an error.
17359    Use char because int might match the return type of a GCC
17360    builtin and then its argument prototype would still apply.  */
17361 #ifdef __cplusplus
17362 extern "C"
17363 #endif
17364 char dlopen ();
17365 int
17366 main ()
17367 {
17368 return dlopen ();
17369   ;
17370   return 0;
17371 }
17372 _ACEOF
17373 if ac_fn_c_try_link "$LINENO"; then :
17374   ac_cv_lib_dl_dlopen=yes
17375 else
17376   ac_cv_lib_dl_dlopen=no
17377 fi
17378 rm -f core conftest.err conftest.$ac_objext \
17379     conftest$ac_exeext conftest.$ac_ext
17380 LIBS=$ac_check_lib_save_LIBS
17381 fi
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17383 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17384 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17385   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17386 else
17387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17388 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17389 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17390   $as_echo_n "(cached) " >&6
17391 else
17392   ac_check_lib_save_LIBS=$LIBS
17393 LIBS="-lsvld  $LIBS"
17394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17395 /* end confdefs.h.  */
17396
17397 /* Override any GCC internal prototype to avoid an error.
17398    Use char because int might match the return type of a GCC
17399    builtin and then its argument prototype would still apply.  */
17400 #ifdef __cplusplus
17401 extern "C"
17402 #endif
17403 char dlopen ();
17404 int
17405 main ()
17406 {
17407 return dlopen ();
17408   ;
17409   return 0;
17410 }
17411 _ACEOF
17412 if ac_fn_c_try_link "$LINENO"; then :
17413   ac_cv_lib_svld_dlopen=yes
17414 else
17415   ac_cv_lib_svld_dlopen=no
17416 fi
17417 rm -f core conftest.err conftest.$ac_objext \
17418     conftest$ac_exeext conftest.$ac_ext
17419 LIBS=$ac_check_lib_save_LIBS
17420 fi
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17422 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17423 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17424   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17425 else
17426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17427 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17428 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17429   $as_echo_n "(cached) " >&6
17430 else
17431   ac_check_lib_save_LIBS=$LIBS
17432 LIBS="-ldld  $LIBS"
17433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17434 /* end confdefs.h.  */
17435
17436 /* Override any GCC internal prototype to avoid an error.
17437    Use char because int might match the return type of a GCC
17438    builtin and then its argument prototype would still apply.  */
17439 #ifdef __cplusplus
17440 extern "C"
17441 #endif
17442 char dld_link ();
17443 int
17444 main ()
17445 {
17446 return dld_link ();
17447   ;
17448   return 0;
17449 }
17450 _ACEOF
17451 if ac_fn_c_try_link "$LINENO"; then :
17452   ac_cv_lib_dld_dld_link=yes
17453 else
17454   ac_cv_lib_dld_dld_link=no
17455 fi
17456 rm -f core conftest.err conftest.$ac_objext \
17457     conftest$ac_exeext conftest.$ac_ext
17458 LIBS=$ac_check_lib_save_LIBS
17459 fi
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17461 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17462 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17463   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17464 fi
17465
17466
17467 fi
17468
17469
17470 fi
17471
17472
17473 fi
17474
17475
17476 fi
17477
17478
17479 fi
17480
17481     ;;
17482   esac
17483
17484   if test "x$lt_cv_dlopen" != xno; then
17485     enable_dlopen=yes
17486   else
17487     enable_dlopen=no
17488   fi
17489
17490   case $lt_cv_dlopen in
17491   dlopen)
17492     save_CPPFLAGS="$CPPFLAGS"
17493     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17494
17495     save_LDFLAGS="$LDFLAGS"
17496     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17497
17498     save_LIBS="$LIBS"
17499     LIBS="$lt_cv_dlopen_libs $LIBS"
17500
17501     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17502 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17503 if test "${lt_cv_dlopen_self+set}" = set; then :
17504   $as_echo_n "(cached) " >&6
17505 else
17506           if test "$cross_compiling" = yes; then :
17507   lt_cv_dlopen_self=cross
17508 else
17509   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17510   lt_status=$lt_dlunknown
17511   cat > conftest.$ac_ext <<_LT_EOF
17512 #line 17512 "configure"
17513 #include "confdefs.h"
17514
17515 #if HAVE_DLFCN_H
17516 #include <dlfcn.h>
17517 #endif
17518
17519 #include <stdio.h>
17520
17521 #ifdef RTLD_GLOBAL
17522 #  define LT_DLGLOBAL           RTLD_GLOBAL
17523 #else
17524 #  ifdef DL_GLOBAL
17525 #    define LT_DLGLOBAL         DL_GLOBAL
17526 #  else
17527 #    define LT_DLGLOBAL         0
17528 #  endif
17529 #endif
17530
17531 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17532    find out it does not work in some platform. */
17533 #ifndef LT_DLLAZY_OR_NOW
17534 #  ifdef RTLD_LAZY
17535 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17536 #  else
17537 #    ifdef DL_LAZY
17538 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17539 #    else
17540 #      ifdef RTLD_NOW
17541 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17542 #      else
17543 #        ifdef DL_NOW
17544 #          define LT_DLLAZY_OR_NOW      DL_NOW
17545 #        else
17546 #          define LT_DLLAZY_OR_NOW      0
17547 #        endif
17548 #      endif
17549 #    endif
17550 #  endif
17551 #endif
17552
17553 /* When -fvisbility=hidden is used, assume the code has been annotated
17554    correspondingly for the symbols needed.  */
17555 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17556 void fnord () __attribute__((visibility("default")));
17557 #endif
17558
17559 void fnord () { int i=42; }
17560 int main ()
17561 {
17562   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17563   int status = $lt_dlunknown;
17564
17565   if (self)
17566     {
17567       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17568       else
17569         {
17570           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17571           else puts (dlerror ());
17572         }
17573       /* dlclose (self); */
17574     }
17575   else
17576     puts (dlerror ());
17577
17578   return status;
17579 }
17580 _LT_EOF
17581   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17582   (eval $ac_link) 2>&5
17583   ac_status=$?
17584   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17585   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17586     (./conftest; exit; ) >&5 2>/dev/null
17587     lt_status=$?
17588     case x$lt_status in
17589       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17590       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17591       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17592     esac
17593   else :
17594     # compilation failed
17595     lt_cv_dlopen_self=no
17596   fi
17597 fi
17598 rm -fr conftest*
17599
17600
17601 fi
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17603 $as_echo "$lt_cv_dlopen_self" >&6; }
17604
17605     if test "x$lt_cv_dlopen_self" = xyes; then
17606       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17607       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17608 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17609 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17610   $as_echo_n "(cached) " >&6
17611 else
17612           if test "$cross_compiling" = yes; then :
17613   lt_cv_dlopen_self_static=cross
17614 else
17615   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17616   lt_status=$lt_dlunknown
17617   cat > conftest.$ac_ext <<_LT_EOF
17618 #line 17618 "configure"
17619 #include "confdefs.h"
17620
17621 #if HAVE_DLFCN_H
17622 #include <dlfcn.h>
17623 #endif
17624
17625 #include <stdio.h>
17626
17627 #ifdef RTLD_GLOBAL
17628 #  define LT_DLGLOBAL           RTLD_GLOBAL
17629 #else
17630 #  ifdef DL_GLOBAL
17631 #    define LT_DLGLOBAL         DL_GLOBAL
17632 #  else
17633 #    define LT_DLGLOBAL         0
17634 #  endif
17635 #endif
17636
17637 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17638    find out it does not work in some platform. */
17639 #ifndef LT_DLLAZY_OR_NOW
17640 #  ifdef RTLD_LAZY
17641 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17642 #  else
17643 #    ifdef DL_LAZY
17644 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17645 #    else
17646 #      ifdef RTLD_NOW
17647 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17648 #      else
17649 #        ifdef DL_NOW
17650 #          define LT_DLLAZY_OR_NOW      DL_NOW
17651 #        else
17652 #          define LT_DLLAZY_OR_NOW      0
17653 #        endif
17654 #      endif
17655 #    endif
17656 #  endif
17657 #endif
17658
17659 /* When -fvisbility=hidden is used, assume the code has been annotated
17660    correspondingly for the symbols needed.  */
17661 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17662 void fnord () __attribute__((visibility("default")));
17663 #endif
17664
17665 void fnord () { int i=42; }
17666 int main ()
17667 {
17668   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17669   int status = $lt_dlunknown;
17670
17671   if (self)
17672     {
17673       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17674       else
17675         {
17676           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17677           else puts (dlerror ());
17678         }
17679       /* dlclose (self); */
17680     }
17681   else
17682     puts (dlerror ());
17683
17684   return status;
17685 }
17686 _LT_EOF
17687   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17688   (eval $ac_link) 2>&5
17689   ac_status=$?
17690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17691   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17692     (./conftest; exit; ) >&5 2>/dev/null
17693     lt_status=$?
17694     case x$lt_status in
17695       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17696       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17697       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17698     esac
17699   else :
17700     # compilation failed
17701     lt_cv_dlopen_self_static=no
17702   fi
17703 fi
17704 rm -fr conftest*
17705
17706
17707 fi
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17709 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17710     fi
17711
17712     CPPFLAGS="$save_CPPFLAGS"
17713     LDFLAGS="$save_LDFLAGS"
17714     LIBS="$save_LIBS"
17715     ;;
17716   esac
17717
17718   case $lt_cv_dlopen_self in
17719   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17720   *) enable_dlopen_self=unknown ;;
17721   esac
17722
17723   case $lt_cv_dlopen_self_static in
17724   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17725   *) enable_dlopen_self_static=unknown ;;
17726   esac
17727 fi
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745 striplib=
17746 old_striplib=
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17748 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17749 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17750   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17751   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17753 $as_echo "yes" >&6; }
17754 else
17755 # FIXME - insert some real tests, host_os isn't really good enough
17756   case $host_os in
17757   darwin*)
17758     if test -n "$STRIP" ; then
17759       striplib="$STRIP -x"
17760       old_striplib="$STRIP -S"
17761       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17762 $as_echo "yes" >&6; }
17763     else
17764       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17765 $as_echo "no" >&6; }
17766     fi
17767     ;;
17768   *)
17769     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17770 $as_echo "no" >&6; }
17771     ;;
17772   esac
17773 fi
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786   # Report which library types will actually be built
17787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17788 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17790 $as_echo "$can_build_shared" >&6; }
17791
17792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17793 $as_echo_n "checking whether to build shared libraries... " >&6; }
17794   test "$can_build_shared" = "no" && enable_shared=no
17795
17796   # On AIX, shared libraries and static libraries use the same namespace, and
17797   # are all built from PIC.
17798   case $host_os in
17799   aix3*)
17800     test "$enable_shared" = yes && enable_static=no
17801     if test -n "$RANLIB"; then
17802       archive_cmds="$archive_cmds~\$RANLIB \$lib"
17803       postinstall_cmds='$RANLIB $lib'
17804     fi
17805     ;;
17806
17807   aix[4-9]*)
17808     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17809       test "$enable_shared" = yes && enable_static=no
17810     fi
17811     ;;
17812   esac
17813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17814 $as_echo "$enable_shared" >&6; }
17815
17816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17817 $as_echo_n "checking whether to build static libraries... " >&6; }
17818   # Make sure either enable_shared or enable_static is yes.
17819   test "$enable_shared" = yes || enable_static=yes
17820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17821 $as_echo "$enable_static" >&6; }
17822
17823
17824
17825
17826 fi
17827 ac_ext=c
17828 ac_cpp='$CPP $CPPFLAGS'
17829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17832
17833 CC="$lt_save_CC"
17834
17835       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17836     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17837     (test "X$CXX" != "Xg++"))) ; then
17838   ac_ext=cpp
17839 ac_cpp='$CXXCPP $CPPFLAGS'
17840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17844 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17845 if test -z "$CXXCPP"; then
17846   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17847   $as_echo_n "(cached) " >&6
17848 else
17849       # Double quotes because CXXCPP needs to be expanded
17850     for CXXCPP in "$CXX -E" "/lib/cpp"
17851     do
17852       ac_preproc_ok=false
17853 for ac_cxx_preproc_warn_flag in '' yes
17854 do
17855   # Use a header file that comes with gcc, so configuring glibc
17856   # with a fresh cross-compiler works.
17857   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17858   # <limits.h> exists even on freestanding compilers.
17859   # On the NeXT, cc -E runs the code through the compiler's parser,
17860   # not just through cpp. "Syntax error" is here to catch this case.
17861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17862 /* end confdefs.h.  */
17863 #ifdef __STDC__
17864 # include <limits.h>
17865 #else
17866 # include <assert.h>
17867 #endif
17868                      Syntax error
17869 _ACEOF
17870 if ac_fn_cxx_try_cpp "$LINENO"; then :
17871
17872 else
17873   # Broken: fails on valid input.
17874 continue
17875 fi
17876 rm -f conftest.err conftest.$ac_ext
17877
17878   # OK, works on sane cases.  Now check whether nonexistent headers
17879   # can be detected and how.
17880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17881 /* end confdefs.h.  */
17882 #include <ac_nonexistent.h>
17883 _ACEOF
17884 if ac_fn_cxx_try_cpp "$LINENO"; then :
17885   # Broken: success on invalid input.
17886 continue
17887 else
17888   # Passes both tests.
17889 ac_preproc_ok=:
17890 break
17891 fi
17892 rm -f conftest.err conftest.$ac_ext
17893
17894 done
17895 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17896 rm -f conftest.err conftest.$ac_ext
17897 if $ac_preproc_ok; then :
17898   break
17899 fi
17900
17901     done
17902     ac_cv_prog_CXXCPP=$CXXCPP
17903
17904 fi
17905   CXXCPP=$ac_cv_prog_CXXCPP
17906 else
17907   ac_cv_prog_CXXCPP=$CXXCPP
17908 fi
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17910 $as_echo "$CXXCPP" >&6; }
17911 ac_preproc_ok=false
17912 for ac_cxx_preproc_warn_flag in '' yes
17913 do
17914   # Use a header file that comes with gcc, so configuring glibc
17915   # with a fresh cross-compiler works.
17916   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17917   # <limits.h> exists even on freestanding compilers.
17918   # On the NeXT, cc -E runs the code through the compiler's parser,
17919   # not just through cpp. "Syntax error" is here to catch this case.
17920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17921 /* end confdefs.h.  */
17922 #ifdef __STDC__
17923 # include <limits.h>
17924 #else
17925 # include <assert.h>
17926 #endif
17927                      Syntax error
17928 _ACEOF
17929 if ac_fn_cxx_try_cpp "$LINENO"; then :
17930
17931 else
17932   # Broken: fails on valid input.
17933 continue
17934 fi
17935 rm -f conftest.err conftest.$ac_ext
17936
17937   # OK, works on sane cases.  Now check whether nonexistent headers
17938   # can be detected and how.
17939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17940 /* end confdefs.h.  */
17941 #include <ac_nonexistent.h>
17942 _ACEOF
17943 if ac_fn_cxx_try_cpp "$LINENO"; then :
17944   # Broken: success on invalid input.
17945 continue
17946 else
17947   # Passes both tests.
17948 ac_preproc_ok=:
17949 break
17950 fi
17951 rm -f conftest.err conftest.$ac_ext
17952
17953 done
17954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17955 rm -f conftest.err conftest.$ac_ext
17956 if $ac_preproc_ok; then :
17957
17958 else
17959   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17961 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17962 See \`config.log' for more details." "$LINENO" 5; }
17963 fi
17964
17965 ac_ext=c
17966 ac_cpp='$CPP $CPPFLAGS'
17967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17970
17971 else
17972   _lt_caught_CXX_error=yes
17973 fi
17974
17975 ac_ext=cpp
17976 ac_cpp='$CXXCPP $CPPFLAGS'
17977 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17978 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17979 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17980
17981 archive_cmds_need_lc_CXX=no
17982 allow_undefined_flag_CXX=
17983 always_export_symbols_CXX=no
17984 archive_expsym_cmds_CXX=
17985 compiler_needs_object_CXX=no
17986 export_dynamic_flag_spec_CXX=
17987 hardcode_direct_CXX=no
17988 hardcode_direct_absolute_CXX=no
17989 hardcode_libdir_flag_spec_CXX=
17990 hardcode_libdir_flag_spec_ld_CXX=
17991 hardcode_libdir_separator_CXX=
17992 hardcode_minus_L_CXX=no
17993 hardcode_shlibpath_var_CXX=unsupported
17994 hardcode_automatic_CXX=no
17995 inherit_rpath_CXX=no
17996 module_cmds_CXX=
17997 module_expsym_cmds_CXX=
17998 link_all_deplibs_CXX=unknown
17999 old_archive_cmds_CXX=$old_archive_cmds
18000 reload_flag_CXX=$reload_flag
18001 reload_cmds_CXX=$reload_cmds
18002 no_undefined_flag_CXX=
18003 whole_archive_flag_spec_CXX=
18004 enable_shared_with_static_runtimes_CXX=no
18005
18006 # Source file extension for C++ test sources.
18007 ac_ext=cpp
18008
18009 # Object file extension for compiled C++ test sources.
18010 objext=o
18011 objext_CXX=$objext
18012
18013 # No sense in running all these tests if we already determined that
18014 # the CXX compiler isn't working.  Some variables (like enable_shared)
18015 # are currently assumed to apply to all compilers on this platform,
18016 # and will be corrupted by setting them based on a non-working compiler.
18017 if test "$_lt_caught_CXX_error" != yes; then
18018   # Code to be used in simple compile tests
18019   lt_simple_compile_test_code="int some_variable = 0;"
18020
18021   # Code to be used in simple link tests
18022   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18023
18024   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18025
18026
18027
18028
18029
18030
18031 # If no C compiler was specified, use CC.
18032 LTCC=${LTCC-"$CC"}
18033
18034 # If no C compiler flags were specified, use CFLAGS.
18035 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18036
18037 # Allow CC to be a program name with arguments.
18038 compiler=$CC
18039
18040
18041   # save warnings/boilerplate of simple test code
18042   ac_outfile=conftest.$ac_objext
18043 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18044 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18045 _lt_compiler_boilerplate=`cat conftest.err`
18046 $RM conftest*
18047
18048   ac_outfile=conftest.$ac_objext
18049 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18050 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18051 _lt_linker_boilerplate=`cat conftest.err`
18052 $RM -r conftest*
18053
18054
18055   # Allow CC to be a program name with arguments.
18056   lt_save_CC=$CC
18057   lt_save_LD=$LD
18058   lt_save_GCC=$GCC
18059   GCC=$GXX
18060   lt_save_with_gnu_ld=$with_gnu_ld
18061   lt_save_path_LD=$lt_cv_path_LD
18062   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18063     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18064   else
18065     $as_unset lt_cv_prog_gnu_ld
18066   fi
18067   if test -n "${lt_cv_path_LDCXX+set}"; then
18068     lt_cv_path_LD=$lt_cv_path_LDCXX
18069   else
18070     $as_unset lt_cv_path_LD
18071   fi
18072   test -z "${LDCXX+set}" || LD=$LDCXX
18073   CC=${CXX-"c++"}
18074   compiler=$CC
18075   compiler_CXX=$CC
18076   for cc_temp in $compiler""; do
18077   case $cc_temp in
18078     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18079     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18080     \-*) ;;
18081     *) break;;
18082   esac
18083 done
18084 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18085
18086
18087   if test -n "$compiler"; then
18088     # We don't want -fno-exception when compiling C++ code, so set the
18089     # no_builtin_flag separately
18090     if test "$GXX" = yes; then
18091       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18092     else
18093       lt_prog_compiler_no_builtin_flag_CXX=
18094     fi
18095
18096     if test "$GXX" = yes; then
18097       # Set up default GNU C++ configuration
18098
18099
18100
18101 # Check whether --with-gnu-ld was given.
18102 if test "${with_gnu_ld+set}" = set; then :
18103   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18104 else
18105   with_gnu_ld=no
18106 fi
18107
18108 ac_prog=ld
18109 if test "$GCC" = yes; then
18110   # Check if gcc -print-prog-name=ld gives a path.
18111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18112 $as_echo_n "checking for ld used by $CC... " >&6; }
18113   case $host in
18114   *-*-mingw*)
18115     # gcc leaves a trailing carriage return which upsets mingw
18116     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18117   *)
18118     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18119   esac
18120   case $ac_prog in
18121     # Accept absolute paths.
18122     [\\/]* | ?:[\\/]*)
18123       re_direlt='/[^/][^/]*/\.\./'
18124       # Canonicalize the pathname of ld
18125       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18126       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18127         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18128       done
18129       test -z "$LD" && LD="$ac_prog"
18130       ;;
18131   "")
18132     # If it fails, then pretend we aren't using GCC.
18133     ac_prog=ld
18134     ;;
18135   *)
18136     # If it is relative, then search for the first ld in PATH.
18137     with_gnu_ld=unknown
18138     ;;
18139   esac
18140 elif test "$with_gnu_ld" = yes; then
18141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18142 $as_echo_n "checking for GNU ld... " >&6; }
18143 else
18144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18145 $as_echo_n "checking for non-GNU ld... " >&6; }
18146 fi
18147 if test "${lt_cv_path_LD+set}" = set; then :
18148   $as_echo_n "(cached) " >&6
18149 else
18150   if test -z "$LD"; then
18151   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18152   for ac_dir in $PATH; do
18153     IFS="$lt_save_ifs"
18154     test -z "$ac_dir" && ac_dir=.
18155     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18156       lt_cv_path_LD="$ac_dir/$ac_prog"
18157       # Check to see if the program is GNU ld.  I'd rather use --version,
18158       # but apparently some variants of GNU ld only accept -v.
18159       # Break only if it was the GNU/non-GNU ld that we prefer.
18160       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18161       *GNU* | *'with BFD'*)
18162         test "$with_gnu_ld" != no && break
18163         ;;
18164       *)
18165         test "$with_gnu_ld" != yes && break
18166         ;;
18167       esac
18168     fi
18169   done
18170   IFS="$lt_save_ifs"
18171 else
18172   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18173 fi
18174 fi
18175
18176 LD="$lt_cv_path_LD"
18177 if test -n "$LD"; then
18178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18179 $as_echo "$LD" >&6; }
18180 else
18181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18182 $as_echo "no" >&6; }
18183 fi
18184 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18186 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18187 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18188   $as_echo_n "(cached) " >&6
18189 else
18190   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18191 case `$LD -v 2>&1 </dev/null` in
18192 *GNU* | *'with BFD'*)
18193   lt_cv_prog_gnu_ld=yes
18194   ;;
18195 *)
18196   lt_cv_prog_gnu_ld=no
18197   ;;
18198 esac
18199 fi
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18201 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18202 with_gnu_ld=$lt_cv_prog_gnu_ld
18203
18204
18205
18206
18207
18208
18209
18210       # Check if GNU C++ uses GNU ld as the underlying linker, since the
18211       # archiving commands below assume that GNU ld is being used.
18212       if test "$with_gnu_ld" = yes; then
18213         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18214         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'
18215
18216         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18217         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18218
18219         # If archive_cmds runs LD, not CC, wlarc should be empty
18220         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18221         #     investigate it a little bit more. (MM)
18222         wlarc='${wl}'
18223
18224         # ancient GNU ld didn't support --whole-archive et. al.
18225         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18226           $GREP 'no-whole-archive' > /dev/null; then
18227           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18228         else
18229           whole_archive_flag_spec_CXX=
18230         fi
18231       else
18232         with_gnu_ld=no
18233         wlarc=
18234
18235         # A generic and very simple default shared library creation
18236         # command for GNU C++ for the case where it uses the native
18237         # linker, instead of GNU ld.  If possible, this setting should
18238         # overridden to take advantage of the native linker features on
18239         # the platform it is being used on.
18240         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18241       fi
18242
18243       # Commands to make compiler produce verbose output that lists
18244       # what "hidden" libraries, object files and flags are used when
18245       # linking a shared library.
18246       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18247
18248     else
18249       GXX=no
18250       with_gnu_ld=no
18251       wlarc=
18252     fi
18253
18254     # PORTME: fill in a description of your system's C++ link characteristics
18255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18256 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18257     ld_shlibs_CXX=yes
18258     case $host_os in
18259       aix3*)
18260         # FIXME: insert proper C++ library support
18261         ld_shlibs_CXX=no
18262         ;;
18263       aix[4-9]*)
18264         if test "$host_cpu" = ia64; then
18265           # On IA64, the linker does run time linking by default, so we don't
18266           # have to do anything special.
18267           aix_use_runtimelinking=no
18268           exp_sym_flag='-Bexport'
18269           no_entry_flag=""
18270         else
18271           aix_use_runtimelinking=no
18272
18273           # Test if we are trying to use run time linking or normal
18274           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18275           # need to do runtime linking.
18276           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18277             for ld_flag in $LDFLAGS; do
18278               case $ld_flag in
18279               *-brtl*)
18280                 aix_use_runtimelinking=yes
18281                 break
18282                 ;;
18283               esac
18284             done
18285             ;;
18286           esac
18287
18288           exp_sym_flag='-bexport'
18289           no_entry_flag='-bnoentry'
18290         fi
18291
18292         # When large executables or shared objects are built, AIX ld can
18293         # have problems creating the table of contents.  If linking a library
18294         # or program results in "error TOC overflow" add -mminimal-toc to
18295         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18296         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18297
18298         archive_cmds_CXX=''
18299         hardcode_direct_CXX=yes
18300         hardcode_direct_absolute_CXX=yes
18301         hardcode_libdir_separator_CXX=':'
18302         link_all_deplibs_CXX=yes
18303         file_list_spec_CXX='${wl}-f,'
18304
18305         if test "$GXX" = yes; then
18306           case $host_os in aix4.[012]|aix4.[012].*)
18307           # We only want to do this on AIX 4.2 and lower, the check
18308           # below for broken collect2 doesn't work under 4.3+
18309           collect2name=`${CC} -print-prog-name=collect2`
18310           if test -f "$collect2name" &&
18311              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18312           then
18313             # We have reworked collect2
18314             :
18315           else
18316             # We have old collect2
18317             hardcode_direct_CXX=unsupported
18318             # It fails to find uninstalled libraries when the uninstalled
18319             # path is not listed in the libpath.  Setting hardcode_minus_L
18320             # to unsupported forces relinking
18321             hardcode_minus_L_CXX=yes
18322             hardcode_libdir_flag_spec_CXX='-L$libdir'
18323             hardcode_libdir_separator_CXX=
18324           fi
18325           esac
18326           shared_flag='-shared'
18327           if test "$aix_use_runtimelinking" = yes; then
18328             shared_flag="$shared_flag "'${wl}-G'
18329           fi
18330         else
18331           # not using gcc
18332           if test "$host_cpu" = ia64; then
18333           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18334           # chokes on -Wl,-G. The following line is correct:
18335           shared_flag='-G'
18336           else
18337             if test "$aix_use_runtimelinking" = yes; then
18338               shared_flag='${wl}-G'
18339             else
18340               shared_flag='${wl}-bM:SRE'
18341             fi
18342           fi
18343         fi
18344
18345         export_dynamic_flag_spec_CXX='${wl}-bexpall'
18346         # It seems that -bexpall does not export symbols beginning with
18347         # underscore (_), so it is better to generate a list of symbols to
18348         # export.
18349         always_export_symbols_CXX=yes
18350         if test "$aix_use_runtimelinking" = yes; then
18351           # Warning - without using the other runtime loading flags (-brtl),
18352           # -berok will link without error, but may produce a broken library.
18353           allow_undefined_flag_CXX='-berok'
18354           # Determine the default libpath from the value encoded in an empty
18355           # executable.
18356           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18357 /* end confdefs.h.  */
18358
18359 int
18360 main ()
18361 {
18362
18363   ;
18364   return 0;
18365 }
18366 _ACEOF
18367 if ac_fn_cxx_try_link "$LINENO"; then :
18368
18369 lt_aix_libpath_sed='
18370     /Import File Strings/,/^$/ {
18371         /^0/ {
18372             s/^0  *\(.*\)$/\1/
18373             p
18374         }
18375     }'
18376 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18377 # Check for a 64-bit object if we didn't find anything.
18378 if test -z "$aix_libpath"; then
18379   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18380 fi
18381 fi
18382 rm -f core conftest.err conftest.$ac_objext \
18383     conftest$ac_exeext conftest.$ac_ext
18384 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18385
18386           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18387
18388           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"
18389         else
18390           if test "$host_cpu" = ia64; then
18391             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18392             allow_undefined_flag_CXX="-z nodefs"
18393             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"
18394           else
18395             # Determine the default libpath from the value encoded in an
18396             # empty executable.
18397             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18398 /* end confdefs.h.  */
18399
18400 int
18401 main ()
18402 {
18403
18404   ;
18405   return 0;
18406 }
18407 _ACEOF
18408 if ac_fn_cxx_try_link "$LINENO"; then :
18409
18410 lt_aix_libpath_sed='
18411     /Import File Strings/,/^$/ {
18412         /^0/ {
18413             s/^0  *\(.*\)$/\1/
18414             p
18415         }
18416     }'
18417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18418 # Check for a 64-bit object if we didn't find anything.
18419 if test -z "$aix_libpath"; then
18420   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18421 fi
18422 fi
18423 rm -f core conftest.err conftest.$ac_objext \
18424     conftest$ac_exeext conftest.$ac_ext
18425 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18426
18427             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18428             # Warning - without using the other run time loading flags,
18429             # -berok will link without error, but may produce a broken library.
18430             no_undefined_flag_CXX=' ${wl}-bernotok'
18431             allow_undefined_flag_CXX=' ${wl}-berok'
18432             if test "$with_gnu_ld" = yes; then
18433               # We only use this code for GNU lds that support --whole-archive.
18434               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18435             else
18436               # Exported symbols can be pulled into shared objects from archives
18437               whole_archive_flag_spec_CXX='$convenience'
18438             fi
18439             archive_cmds_need_lc_CXX=yes
18440             # This is similar to how AIX traditionally builds its shared
18441             # libraries.
18442             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'
18443           fi
18444         fi
18445         ;;
18446
18447       beos*)
18448         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18449           allow_undefined_flag_CXX=unsupported
18450           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18451           # support --undefined.  This deserves some investigation.  FIXME
18452           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18453         else
18454           ld_shlibs_CXX=no
18455         fi
18456         ;;
18457
18458       chorus*)
18459         case $cc_basename in
18460           *)
18461           # FIXME: insert proper C++ library support
18462           ld_shlibs_CXX=no
18463           ;;
18464         esac
18465         ;;
18466
18467       cygwin* | mingw* | pw32* | cegcc*)
18468         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18469         # as there is no search path for DLLs.
18470         hardcode_libdir_flag_spec_CXX='-L$libdir'
18471         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18472         allow_undefined_flag_CXX=unsupported
18473         always_export_symbols_CXX=no
18474         enable_shared_with_static_runtimes_CXX=yes
18475
18476         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18477           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'
18478           # If the export-symbols file already is a .def file (1st line
18479           # is EXPORTS), use it as is; otherwise, prepend...
18480           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18481             cp $export_symbols $output_objdir/$soname.def;
18482           else
18483             echo EXPORTS > $output_objdir/$soname.def;
18484             cat $export_symbols >> $output_objdir/$soname.def;
18485           fi~
18486           $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'
18487         else
18488           ld_shlibs_CXX=no
18489         fi
18490         ;;
18491       darwin* | rhapsody*)
18492
18493
18494   archive_cmds_need_lc_CXX=no
18495   hardcode_direct_CXX=no
18496   hardcode_automatic_CXX=yes
18497   hardcode_shlibpath_var_CXX=unsupported
18498   if test "$lt_cv_ld_force_load" = "yes"; then
18499     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\"`'
18500   else
18501     whole_archive_flag_spec_CXX=''
18502   fi
18503   link_all_deplibs_CXX=yes
18504   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18505   case $cc_basename in
18506      ifort*) _lt_dar_can_shared=yes ;;
18507      *) _lt_dar_can_shared=$GCC ;;
18508   esac
18509   if test "$_lt_dar_can_shared" = "yes"; then
18510     output_verbose_link_cmd=func_echo_all
18511     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}"
18512     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18513     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}"
18514     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}"
18515        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18516       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}"
18517       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}"
18518     fi
18519
18520   else
18521   ld_shlibs_CXX=no
18522   fi
18523
18524         ;;
18525
18526       dgux*)
18527         case $cc_basename in
18528           ec++*)
18529             # FIXME: insert proper C++ library support
18530             ld_shlibs_CXX=no
18531             ;;
18532           ghcx*)
18533             # Green Hills C++ Compiler
18534             # FIXME: insert proper C++ library support
18535             ld_shlibs_CXX=no
18536             ;;
18537           *)
18538             # FIXME: insert proper C++ library support
18539             ld_shlibs_CXX=no
18540             ;;
18541         esac
18542         ;;
18543
18544       freebsd[12]*)
18545         # C++ shared libraries reported to be fairly broken before
18546         # switch to ELF
18547         ld_shlibs_CXX=no
18548         ;;
18549
18550       freebsd-elf*)
18551         archive_cmds_need_lc_CXX=no
18552         ;;
18553
18554       freebsd* | dragonfly*)
18555         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18556         # conventions
18557         ld_shlibs_CXX=yes
18558         ;;
18559
18560       gnu*)
18561         ;;
18562
18563       haiku*)
18564         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18565         link_all_deplibs_CXX=yes
18566         ;;
18567
18568       hpux9*)
18569         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18570         hardcode_libdir_separator_CXX=:
18571         export_dynamic_flag_spec_CXX='${wl}-E'
18572         hardcode_direct_CXX=yes
18573         hardcode_minus_L_CXX=yes # Not in the search PATH,
18574                                              # but as the default
18575                                              # location of the library.
18576
18577         case $cc_basename in
18578           CC*)
18579             # FIXME: insert proper C++ library support
18580             ld_shlibs_CXX=no
18581             ;;
18582           aCC*)
18583             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'
18584             # Commands to make compiler produce verbose output that lists
18585             # what "hidden" libraries, object files and flags are used when
18586             # linking a shared library.
18587             #
18588             # There doesn't appear to be a way to prevent this compiler from
18589             # explicitly linking system object files so we need to strip them
18590             # from the output so that they don't get included in the library
18591             # dependencies.
18592             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"'
18593             ;;
18594           *)
18595             if test "$GXX" = yes; then
18596               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'
18597             else
18598               # FIXME: insert proper C++ library support
18599               ld_shlibs_CXX=no
18600             fi
18601             ;;
18602         esac
18603         ;;
18604
18605       hpux10*|hpux11*)
18606         if test $with_gnu_ld = no; then
18607           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18608           hardcode_libdir_separator_CXX=:
18609
18610           case $host_cpu in
18611             hppa*64*|ia64*)
18612               ;;
18613             *)
18614               export_dynamic_flag_spec_CXX='${wl}-E'
18615               ;;
18616           esac
18617         fi
18618         case $host_cpu in
18619           hppa*64*|ia64*)
18620             hardcode_direct_CXX=no
18621             hardcode_shlibpath_var_CXX=no
18622             ;;
18623           *)
18624             hardcode_direct_CXX=yes
18625             hardcode_direct_absolute_CXX=yes
18626             hardcode_minus_L_CXX=yes # Not in the search PATH,
18627                                                  # but as the default
18628                                                  # location of the library.
18629             ;;
18630         esac
18631
18632         case $cc_basename in
18633           CC*)
18634             # FIXME: insert proper C++ library support
18635             ld_shlibs_CXX=no
18636             ;;
18637           aCC*)
18638             case $host_cpu in
18639               hppa*64*)
18640                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18641                 ;;
18642               ia64*)
18643                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18644                 ;;
18645               *)
18646                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18647                 ;;
18648             esac
18649             # Commands to make compiler produce verbose output that lists
18650             # what "hidden" libraries, object files and flags are used when
18651             # linking a shared library.
18652             #
18653             # There doesn't appear to be a way to prevent this compiler from
18654             # explicitly linking system object files so we need to strip them
18655             # from the output so that they don't get included in the library
18656             # dependencies.
18657             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"'
18658             ;;
18659           *)
18660             if test "$GXX" = yes; then
18661               if test $with_gnu_ld = no; then
18662                 case $host_cpu in
18663                   hppa*64*)
18664                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18665                     ;;
18666                   ia64*)
18667                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18668                     ;;
18669                   *)
18670                     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'
18671                     ;;
18672                 esac
18673               fi
18674             else
18675               # FIXME: insert proper C++ library support
18676               ld_shlibs_CXX=no
18677             fi
18678             ;;
18679         esac
18680         ;;
18681
18682       interix[3-9]*)
18683         hardcode_direct_CXX=no
18684         hardcode_shlibpath_var_CXX=no
18685         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18686         export_dynamic_flag_spec_CXX='${wl}-E'
18687         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18688         # Instead, shared libraries are loaded at an image base (0x10000000 by
18689         # default) and relocated if they conflict, which is a slow very memory
18690         # consuming and fragmenting process.  To avoid this, we pick a random,
18691         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18692         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18693         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'
18694         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'
18695         ;;
18696       irix5* | irix6*)
18697         case $cc_basename in
18698           CC*)
18699             # SGI C++
18700             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'
18701
18702             # Archives containing C++ object files must be created using
18703             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18704             # necessary to make sure instantiated templates are included
18705             # in the archive.
18706             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18707             ;;
18708           *)
18709             if test "$GXX" = yes; then
18710               if test "$with_gnu_ld" = no; then
18711                 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'
18712               else
18713                 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'
18714               fi
18715             fi
18716             link_all_deplibs_CXX=yes
18717             ;;
18718         esac
18719         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18720         hardcode_libdir_separator_CXX=:
18721         inherit_rpath_CXX=yes
18722         ;;
18723
18724       linux* | k*bsd*-gnu | kopensolaris*-gnu)
18725         case $cc_basename in
18726           KCC*)
18727             # Kuck and Associates, Inc. (KAI) C++ Compiler
18728
18729             # KCC will only create a shared library if the output file
18730             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18731             # to its proper name (with version) after linking.
18732             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'
18733             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'
18734             # Commands to make compiler produce verbose output that lists
18735             # what "hidden" libraries, object files and flags are used when
18736             # linking a shared library.
18737             #
18738             # There doesn't appear to be a way to prevent this compiler from
18739             # explicitly linking system object files so we need to strip them
18740             # from the output so that they don't get included in the library
18741             # dependencies.
18742             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"'
18743
18744             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18745             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18746
18747             # Archives containing C++ object files must be created using
18748             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18749             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18750             ;;
18751           icpc* | ecpc* )
18752             # Intel C++
18753             with_gnu_ld=yes
18754             # version 8.0 and above of icpc choke on multiply defined symbols
18755             # if we add $predep_objects and $postdep_objects, however 7.1 and
18756             # earlier do not add the objects themselves.
18757             case `$CC -V 2>&1` in
18758               *"Version 7."*)
18759                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18760                 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'
18761                 ;;
18762               *)  # Version 8.0 or newer
18763                 tmp_idyn=
18764                 case $host_cpu in
18765                   ia64*) tmp_idyn=' -i_dynamic';;
18766                 esac
18767                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18768                 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'
18769                 ;;
18770             esac
18771             archive_cmds_need_lc_CXX=no
18772             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18773             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18774             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18775             ;;
18776           pgCC* | pgcpp*)
18777             # Portland Group C++ compiler
18778             case `$CC -V` in
18779             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18780               prelink_cmds_CXX='tpldir=Template.dir~
18781                 rm -rf $tpldir~
18782                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18783                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18784               old_archive_cmds_CXX='tpldir=Template.dir~
18785                 rm -rf $tpldir~
18786                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18787                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18788                 $RANLIB $oldlib'
18789               archive_cmds_CXX='tpldir=Template.dir~
18790                 rm -rf $tpldir~
18791                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18792                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18793               archive_expsym_cmds_CXX='tpldir=Template.dir~
18794                 rm -rf $tpldir~
18795                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18796                 $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'
18797               ;;
18798             *) # Version 6 and above use weak symbols
18799               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18800               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'
18801               ;;
18802             esac
18803
18804             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18805             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18806             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'
18807             ;;
18808           cxx*)
18809             # Compaq C++
18810             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18811             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'
18812
18813             runpath_var=LD_RUN_PATH
18814             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18815             hardcode_libdir_separator_CXX=:
18816
18817             # Commands to make compiler produce verbose output that lists
18818             # what "hidden" libraries, object files and flags are used when
18819             # linking a shared library.
18820             #
18821             # There doesn't appear to be a way to prevent this compiler from
18822             # explicitly linking system object files so we need to strip them
18823             # from the output so that they don't get included in the library
18824             # dependencies.
18825             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'
18826             ;;
18827           xl* | mpixl* | bgxl*)
18828             # IBM XL 8.0 on PPC, with GNU ld
18829             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18830             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18831             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18832             if test "x$supports_anon_versioning" = xyes; then
18833               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18834                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18835                 echo "local: *; };" >> $output_objdir/$libname.ver~
18836                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18837             fi
18838             ;;
18839           *)
18840             case `$CC -V 2>&1 | sed 5q` in
18841             *Sun\ C*)
18842               # Sun C++ 5.9
18843               no_undefined_flag_CXX=' -zdefs'
18844               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18845               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'
18846               hardcode_libdir_flag_spec_CXX='-R$libdir'
18847               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'
18848               compiler_needs_object_CXX=yes
18849
18850               # Not sure whether something based on
18851               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18852               # would be better.
18853               output_verbose_link_cmd='func_echo_all'
18854
18855               # Archives containing C++ object files must be created using
18856               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18857               # necessary to make sure instantiated templates are included
18858               # in the archive.
18859               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18860               ;;
18861             esac
18862             ;;
18863         esac
18864         ;;
18865
18866       lynxos*)
18867         # FIXME: insert proper C++ library support
18868         ld_shlibs_CXX=no
18869         ;;
18870
18871       m88k*)
18872         # FIXME: insert proper C++ library support
18873         ld_shlibs_CXX=no
18874         ;;
18875
18876       mvs*)
18877         case $cc_basename in
18878           cxx*)
18879             # FIXME: insert proper C++ library support
18880             ld_shlibs_CXX=no
18881             ;;
18882           *)
18883             # FIXME: insert proper C++ library support
18884             ld_shlibs_CXX=no
18885             ;;
18886         esac
18887         ;;
18888
18889       netbsd*)
18890         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18891           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18892           wlarc=
18893           hardcode_libdir_flag_spec_CXX='-R$libdir'
18894           hardcode_direct_CXX=yes
18895           hardcode_shlibpath_var_CXX=no
18896         fi
18897         # Workaround some broken pre-1.5 toolchains
18898         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18899         ;;
18900
18901       *nto* | *qnx*)
18902         ld_shlibs_CXX=yes
18903         ;;
18904
18905       openbsd2*)
18906         # C++ shared libraries are fairly broken
18907         ld_shlibs_CXX=no
18908         ;;
18909
18910       openbsd*)
18911         if test -f /usr/libexec/ld.so; then
18912           hardcode_direct_CXX=yes
18913           hardcode_shlibpath_var_CXX=no
18914           hardcode_direct_absolute_CXX=yes
18915           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18916           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18917           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18918             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18919             export_dynamic_flag_spec_CXX='${wl}-E'
18920             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18921           fi
18922           output_verbose_link_cmd=func_echo_all
18923         else
18924           ld_shlibs_CXX=no
18925         fi
18926         ;;
18927
18928       osf3* | osf4* | osf5*)
18929         case $cc_basename in
18930           KCC*)
18931             # Kuck and Associates, Inc. (KAI) C++ Compiler
18932
18933             # KCC will only create a shared library if the output file
18934             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18935             # to its proper name (with version) after linking.
18936             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'
18937
18938             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18939             hardcode_libdir_separator_CXX=:
18940
18941             # Archives containing C++ object files must be created using
18942             # the KAI C++ compiler.
18943             case $host in
18944               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18945               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18946             esac
18947             ;;
18948           RCC*)
18949             # Rational C++ 2.4.1
18950             # FIXME: insert proper C++ library support
18951             ld_shlibs_CXX=no
18952             ;;
18953           cxx*)
18954             case $host in
18955               osf3*)
18956                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18957                 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'
18958                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18959                 ;;
18960               *)
18961                 allow_undefined_flag_CXX=' -expect_unresolved \*'
18962                 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'
18963                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18964                   echo "-hidden">> $lib.exp~
18965                   $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~
18966                   $RM $lib.exp'
18967                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18968                 ;;
18969             esac
18970
18971             hardcode_libdir_separator_CXX=:
18972
18973             # Commands to make compiler produce verbose output that lists
18974             # what "hidden" libraries, object files and flags are used when
18975             # linking a shared library.
18976             #
18977             # There doesn't appear to be a way to prevent this compiler from
18978             # explicitly linking system object files so we need to strip them
18979             # from the output so that they don't get included in the library
18980             # dependencies.
18981             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"'
18982             ;;
18983           *)
18984             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18985               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18986               case $host in
18987                 osf3*)
18988                   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'
18989                   ;;
18990                 *)
18991                   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'
18992                   ;;
18993               esac
18994
18995               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18996               hardcode_libdir_separator_CXX=:
18997
18998               # Commands to make compiler produce verbose output that lists
18999               # what "hidden" libraries, object files and flags are used when
19000               # linking a shared library.
19001               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19002
19003             else
19004               # FIXME: insert proper C++ library support
19005               ld_shlibs_CXX=no
19006             fi
19007             ;;
19008         esac
19009         ;;
19010
19011       psos*)
19012         # FIXME: insert proper C++ library support
19013         ld_shlibs_CXX=no
19014         ;;
19015
19016       sunos4*)
19017         case $cc_basename in
19018           CC*)
19019             # Sun C++ 4.x
19020             # FIXME: insert proper C++ library support
19021             ld_shlibs_CXX=no
19022             ;;
19023           lcc*)
19024             # Lucid
19025             # FIXME: insert proper C++ library support
19026             ld_shlibs_CXX=no
19027             ;;
19028           *)
19029             # FIXME: insert proper C++ library support
19030             ld_shlibs_CXX=no
19031             ;;
19032         esac
19033         ;;
19034
19035       solaris*)
19036         case $cc_basename in
19037           CC*)
19038             # Sun C++ 4.2, 5.x and Centerline C++
19039             archive_cmds_need_lc_CXX=yes
19040             no_undefined_flag_CXX=' -zdefs'
19041             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19042             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19043               $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'
19044
19045             hardcode_libdir_flag_spec_CXX='-R$libdir'
19046             hardcode_shlibpath_var_CXX=no
19047             case $host_os in
19048               solaris2.[0-5] | solaris2.[0-5].*) ;;
19049               *)
19050                 # The compiler driver will combine and reorder linker options,
19051                 # but understands `-z linker_flag'.
19052                 # Supported since Solaris 2.6 (maybe 2.5.1?)
19053                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19054                 ;;
19055             esac
19056             link_all_deplibs_CXX=yes
19057
19058             output_verbose_link_cmd='func_echo_all'
19059
19060             # Archives containing C++ object files must be created using
19061             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19062             # necessary to make sure instantiated templates are included
19063             # in the archive.
19064             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19065             ;;
19066           gcx*)
19067             # Green Hills C++ Compiler
19068             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19069
19070             # The C++ compiler must be used to create the archive.
19071             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19072             ;;
19073           *)
19074             # GNU C++ compiler with Solaris linker
19075             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19076               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19077               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19078                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19079                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19080                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19081
19082                 # Commands to make compiler produce verbose output that lists
19083                 # what "hidden" libraries, object files and flags are used when
19084                 # linking a shared library.
19085                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19086               else
19087                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19088                 # platform.
19089                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19090                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19091                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19092
19093                 # Commands to make compiler produce verbose output that lists
19094                 # what "hidden" libraries, object files and flags are used when
19095                 # linking a shared library.
19096                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19097               fi
19098
19099               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19100               case $host_os in
19101                 solaris2.[0-5] | solaris2.[0-5].*) ;;
19102                 *)
19103                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19104                   ;;
19105               esac
19106             fi
19107             ;;
19108         esac
19109         ;;
19110
19111     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19112       no_undefined_flag_CXX='${wl}-z,text'
19113       archive_cmds_need_lc_CXX=no
19114       hardcode_shlibpath_var_CXX=no
19115       runpath_var='LD_RUN_PATH'
19116
19117       case $cc_basename in
19118         CC*)
19119           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19120           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19121           ;;
19122         *)
19123           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19124           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19125           ;;
19126       esac
19127       ;;
19128
19129       sysv5* | sco3.2v5* | sco5v6*)
19130         # Note: We can NOT use -z defs as we might desire, because we do not
19131         # link with -lc, and that would cause any symbols used from libc to
19132         # always be unresolved, which means just about no library would
19133         # ever link correctly.  If we're not using GNU ld we use -z text
19134         # though, which does catch some bad symbols but isn't as heavy-handed
19135         # as -z defs.
19136         no_undefined_flag_CXX='${wl}-z,text'
19137         allow_undefined_flag_CXX='${wl}-z,nodefs'
19138         archive_cmds_need_lc_CXX=no
19139         hardcode_shlibpath_var_CXX=no
19140         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19141         hardcode_libdir_separator_CXX=':'
19142         link_all_deplibs_CXX=yes
19143         export_dynamic_flag_spec_CXX='${wl}-Bexport'
19144         runpath_var='LD_RUN_PATH'
19145
19146         case $cc_basename in
19147           CC*)
19148             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19149             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19150             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19151               '"$old_archive_cmds_CXX"
19152             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19153               '"$reload_cmds_CXX"
19154             ;;
19155           *)
19156             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19157             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19158             ;;
19159         esac
19160       ;;
19161
19162       tandem*)
19163         case $cc_basename in
19164           NCC*)
19165             # NonStop-UX NCC 3.20
19166             # FIXME: insert proper C++ library support
19167             ld_shlibs_CXX=no
19168             ;;
19169           *)
19170             # FIXME: insert proper C++ library support
19171             ld_shlibs_CXX=no
19172             ;;
19173         esac
19174         ;;
19175
19176       vxworks*)
19177         # FIXME: insert proper C++ library support
19178         ld_shlibs_CXX=no
19179         ;;
19180
19181       *)
19182         # FIXME: insert proper C++ library support
19183         ld_shlibs_CXX=no
19184         ;;
19185     esac
19186
19187     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19188 $as_echo "$ld_shlibs_CXX" >&6; }
19189     test "$ld_shlibs_CXX" = no && can_build_shared=no
19190
19191     GCC_CXX="$GXX"
19192     LD_CXX="$LD"
19193
19194     ## CAVEAT EMPTOR:
19195     ## There is no encapsulation within the following macros, do not change
19196     ## the running order or otherwise move them around unless you know exactly
19197     ## what you are doing...
19198     # Dependencies to place before and after the object being linked:
19199 predep_objects_CXX=
19200 postdep_objects_CXX=
19201 predeps_CXX=
19202 postdeps_CXX=
19203 compiler_lib_search_path_CXX=
19204
19205 cat > conftest.$ac_ext <<_LT_EOF
19206 class Foo
19207 {
19208 public:
19209   Foo (void) { a = 0; }
19210 private:
19211   int a;
19212 };
19213 _LT_EOF
19214
19215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19216   (eval $ac_compile) 2>&5
19217   ac_status=$?
19218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19219   test $ac_status = 0; }; then
19220   # Parse the compiler output and extract the necessary
19221   # objects, libraries and library flags.
19222
19223   # Sentinel used to keep track of whether or not we are before
19224   # the conftest object file.
19225   pre_test_object_deps_done=no
19226
19227   for p in `eval "$output_verbose_link_cmd"`; do
19228     case $p in
19229
19230     -L* | -R* | -l*)
19231        # Some compilers place space between "-{L,R}" and the path.
19232        # Remove the space.
19233        if test $p = "-L" ||
19234           test $p = "-R"; then
19235          prev=$p
19236          continue
19237        else
19238          prev=
19239        fi
19240
19241        if test "$pre_test_object_deps_done" = no; then
19242          case $p in
19243          -L* | -R*)
19244            # Internal compiler library paths should come after those
19245            # provided the user.  The postdeps already come after the
19246            # user supplied libs so there is no need to process them.
19247            if test -z "$compiler_lib_search_path_CXX"; then
19248              compiler_lib_search_path_CXX="${prev}${p}"
19249            else
19250              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19251            fi
19252            ;;
19253          # The "-l" case would never come before the object being
19254          # linked, so don't bother handling this case.
19255          esac
19256        else
19257          if test -z "$postdeps_CXX"; then
19258            postdeps_CXX="${prev}${p}"
19259          else
19260            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19261          fi
19262        fi
19263        ;;
19264
19265     *.$objext)
19266        # This assumes that the test object file only shows up
19267        # once in the compiler output.
19268        if test "$p" = "conftest.$objext"; then
19269          pre_test_object_deps_done=yes
19270          continue
19271        fi
19272
19273        if test "$pre_test_object_deps_done" = no; then
19274          if test -z "$predep_objects_CXX"; then
19275            predep_objects_CXX="$p"
19276          else
19277            predep_objects_CXX="$predep_objects_CXX $p"
19278          fi
19279        else
19280          if test -z "$postdep_objects_CXX"; then
19281            postdep_objects_CXX="$p"
19282          else
19283            postdep_objects_CXX="$postdep_objects_CXX $p"
19284          fi
19285        fi
19286        ;;
19287
19288     *) ;; # Ignore the rest.
19289
19290     esac
19291   done
19292
19293   # Clean up.
19294   rm -f a.out a.exe
19295 else
19296   echo "libtool.m4: error: problem compiling CXX test program"
19297 fi
19298
19299 $RM -f confest.$objext
19300
19301 # PORTME: override above test on systems where it is broken
19302 case $host_os in
19303 interix[3-9]*)
19304   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19305   # hack all around it, let's just trust "g++" to DTRT.
19306   predep_objects_CXX=
19307   postdep_objects_CXX=
19308   postdeps_CXX=
19309   ;;
19310
19311 linux*)
19312   case `$CC -V 2>&1 | sed 5q` in
19313   *Sun\ C*)
19314     # Sun C++ 5.9
19315
19316     # The more standards-conforming stlport4 library is
19317     # incompatible with the Cstd library. Avoid specifying
19318     # it if it's in CXXFLAGS. Ignore libCrun as
19319     # -library=stlport4 depends on it.
19320     case " $CXX $CXXFLAGS " in
19321     *" -library=stlport4 "*)
19322       solaris_use_stlport4=yes
19323       ;;
19324     esac
19325
19326     if test "$solaris_use_stlport4" != yes; then
19327       postdeps_CXX='-library=Cstd -library=Crun'
19328     fi
19329     ;;
19330   esac
19331   ;;
19332
19333 solaris*)
19334   case $cc_basename in
19335   CC*)
19336     # The more standards-conforming stlport4 library is
19337     # incompatible with the Cstd library. Avoid specifying
19338     # it if it's in CXXFLAGS. Ignore libCrun as
19339     # -library=stlport4 depends on it.
19340     case " $CXX $CXXFLAGS " in
19341     *" -library=stlport4 "*)
19342       solaris_use_stlport4=yes
19343       ;;
19344     esac
19345
19346     # Adding this requires a known-good setup of shared libraries for
19347     # Sun compiler versions before 5.6, else PIC objects from an old
19348     # archive will be linked into the output, leading to subtle bugs.
19349     if test "$solaris_use_stlport4" != yes; then
19350       postdeps_CXX='-library=Cstd -library=Crun'
19351     fi
19352     ;;
19353   esac
19354   ;;
19355 esac
19356
19357
19358 case " $postdeps_CXX " in
19359 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19360 esac
19361  compiler_lib_search_dirs_CXX=
19362 if test -n "${compiler_lib_search_path_CXX}"; then
19363  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19364 fi
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396     lt_prog_compiler_wl_CXX=
19397 lt_prog_compiler_pic_CXX=
19398 lt_prog_compiler_static_CXX=
19399
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19401 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19402
19403   # C++ specific cases for pic, static, wl, etc.
19404   if test "$GXX" = yes; then
19405     lt_prog_compiler_wl_CXX='-Wl,'
19406     lt_prog_compiler_static_CXX='-static'
19407
19408     case $host_os in
19409     aix*)
19410       # All AIX code is PIC.
19411       if test "$host_cpu" = ia64; then
19412         # AIX 5 now supports IA64 processor
19413         lt_prog_compiler_static_CXX='-Bstatic'
19414       fi
19415       ;;
19416
19417     amigaos*)
19418       case $host_cpu in
19419       powerpc)
19420             # see comment about AmigaOS4 .so support
19421             lt_prog_compiler_pic_CXX='-fPIC'
19422         ;;
19423       m68k)
19424             # FIXME: we need at least 68020 code to build shared libraries, but
19425             # adding the `-m68020' flag to GCC prevents building anything better,
19426             # like `-m68040'.
19427             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19428         ;;
19429       esac
19430       ;;
19431
19432     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19433       # PIC is the default for these OSes.
19434       ;;
19435     mingw* | cygwin* | os2* | pw32* | cegcc*)
19436       # This hack is so that the source file can tell whether it is being
19437       # built for inclusion in a dll (and should export symbols for example).
19438       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19439       # (--disable-auto-import) libraries
19440       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19441       ;;
19442     darwin* | rhapsody*)
19443       # PIC is the default on this platform
19444       # Common symbols not allowed in MH_DYLIB files
19445       lt_prog_compiler_pic_CXX='-fno-common'
19446       ;;
19447     *djgpp*)
19448       # DJGPP does not support shared libraries at all
19449       lt_prog_compiler_pic_CXX=
19450       ;;
19451     haiku*)
19452       # PIC is the default for Haiku.
19453       # The "-static" flag exists, but is broken.
19454       lt_prog_compiler_static_CXX=
19455       ;;
19456     interix[3-9]*)
19457       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19458       # Instead, we relocate shared libraries at runtime.
19459       ;;
19460     sysv4*MP*)
19461       if test -d /usr/nec; then
19462         lt_prog_compiler_pic_CXX=-Kconform_pic
19463       fi
19464       ;;
19465     hpux*)
19466       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19467       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19468       # sets the default TLS model and affects inlining.
19469       case $host_cpu in
19470       hppa*64*)
19471         ;;
19472       *)
19473         lt_prog_compiler_pic_CXX='-fPIC'
19474         ;;
19475       esac
19476       ;;
19477     *qnx* | *nto*)
19478       # QNX uses GNU C++, but need to define -shared option too, otherwise
19479       # it will coredump.
19480       lt_prog_compiler_pic_CXX='-fPIC -shared'
19481       ;;
19482     *)
19483       lt_prog_compiler_pic_CXX='-fPIC'
19484       ;;
19485     esac
19486   else
19487     case $host_os in
19488       aix[4-9]*)
19489         # All AIX code is PIC.
19490         if test "$host_cpu" = ia64; then
19491           # AIX 5 now supports IA64 processor
19492           lt_prog_compiler_static_CXX='-Bstatic'
19493         else
19494           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19495         fi
19496         ;;
19497       chorus*)
19498         case $cc_basename in
19499         cxch68*)
19500           # Green Hills C++ Compiler
19501           # _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"
19502           ;;
19503         esac
19504         ;;
19505       dgux*)
19506         case $cc_basename in
19507           ec++*)
19508             lt_prog_compiler_pic_CXX='-KPIC'
19509             ;;
19510           ghcx*)
19511             # Green Hills C++ Compiler
19512             lt_prog_compiler_pic_CXX='-pic'
19513             ;;
19514           *)
19515             ;;
19516         esac
19517         ;;
19518       freebsd* | dragonfly*)
19519         # FreeBSD uses GNU C++
19520         ;;
19521       hpux9* | hpux10* | hpux11*)
19522         case $cc_basename in
19523           CC*)
19524             lt_prog_compiler_wl_CXX='-Wl,'
19525             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19526             if test "$host_cpu" != ia64; then
19527               lt_prog_compiler_pic_CXX='+Z'
19528             fi
19529             ;;
19530           aCC*)
19531             lt_prog_compiler_wl_CXX='-Wl,'
19532             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19533             case $host_cpu in
19534             hppa*64*|ia64*)
19535               # +Z the default
19536               ;;
19537             *)
19538               lt_prog_compiler_pic_CXX='+Z'
19539               ;;
19540             esac
19541             ;;
19542           *)
19543             ;;
19544         esac
19545         ;;
19546       interix*)
19547         # This is c89, which is MS Visual C++ (no shared libs)
19548         # Anyone wants to do a port?
19549         ;;
19550       irix5* | irix6* | nonstopux*)
19551         case $cc_basename in
19552           CC*)
19553             lt_prog_compiler_wl_CXX='-Wl,'
19554             lt_prog_compiler_static_CXX='-non_shared'
19555             # CC pic flag -KPIC is the default.
19556             ;;
19557           *)
19558             ;;
19559         esac
19560         ;;
19561       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19562         case $cc_basename in
19563           KCC*)
19564             # KAI C++ Compiler
19565             lt_prog_compiler_wl_CXX='--backend -Wl,'
19566             lt_prog_compiler_pic_CXX='-fPIC'
19567             ;;
19568           ecpc* )
19569             # old Intel C++ for x86_64 which still supported -KPIC.
19570             lt_prog_compiler_wl_CXX='-Wl,'
19571             lt_prog_compiler_pic_CXX='-KPIC'
19572             lt_prog_compiler_static_CXX='-static'
19573             ;;
19574           icpc* )
19575             # Intel C++, used to be incompatible with GCC.
19576             # ICC 10 doesn't accept -KPIC any more.
19577             lt_prog_compiler_wl_CXX='-Wl,'
19578             lt_prog_compiler_pic_CXX='-fPIC'
19579             lt_prog_compiler_static_CXX='-static'
19580             ;;
19581           pgCC* | pgcpp*)
19582             # Portland Group C++ compiler
19583             lt_prog_compiler_wl_CXX='-Wl,'
19584             lt_prog_compiler_pic_CXX='-fpic'
19585             lt_prog_compiler_static_CXX='-Bstatic'
19586             ;;
19587           cxx*)
19588             # Compaq C++
19589             # Make sure the PIC flag is empty.  It appears that all Alpha
19590             # Linux and Compaq Tru64 Unix objects are PIC.
19591             lt_prog_compiler_pic_CXX=
19592             lt_prog_compiler_static_CXX='-non_shared'
19593             ;;
19594           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19595             # IBM XL 8.0, 9.0 on PPC and BlueGene
19596             lt_prog_compiler_wl_CXX='-Wl,'
19597             lt_prog_compiler_pic_CXX='-qpic'
19598             lt_prog_compiler_static_CXX='-qstaticlink'
19599             ;;
19600           *)
19601             case `$CC -V 2>&1 | sed 5q` in
19602             *Sun\ C*)
19603               # Sun C++ 5.9
19604               lt_prog_compiler_pic_CXX='-KPIC'
19605               lt_prog_compiler_static_CXX='-Bstatic'
19606               lt_prog_compiler_wl_CXX='-Qoption ld '
19607               ;;
19608             esac
19609             ;;
19610         esac
19611         ;;
19612       lynxos*)
19613         ;;
19614       m88k*)
19615         ;;
19616       mvs*)
19617         case $cc_basename in
19618           cxx*)
19619             lt_prog_compiler_pic_CXX='-W c,exportall'
19620             ;;
19621           *)
19622             ;;
19623         esac
19624         ;;
19625       netbsd*)
19626         ;;
19627       *qnx* | *nto*)
19628         # QNX uses GNU C++, but need to define -shared option too, otherwise
19629         # it will coredump.
19630         lt_prog_compiler_pic_CXX='-fPIC -shared'
19631         ;;
19632       osf3* | osf4* | osf5*)
19633         case $cc_basename in
19634           KCC*)
19635             lt_prog_compiler_wl_CXX='--backend -Wl,'
19636             ;;
19637           RCC*)
19638             # Rational C++ 2.4.1
19639             lt_prog_compiler_pic_CXX='-pic'
19640             ;;
19641           cxx*)
19642             # Digital/Compaq C++
19643             lt_prog_compiler_wl_CXX='-Wl,'
19644             # Make sure the PIC flag is empty.  It appears that all Alpha
19645             # Linux and Compaq Tru64 Unix objects are PIC.
19646             lt_prog_compiler_pic_CXX=
19647             lt_prog_compiler_static_CXX='-non_shared'
19648             ;;
19649           *)
19650             ;;
19651         esac
19652         ;;
19653       psos*)
19654         ;;
19655       solaris*)
19656         case $cc_basename in
19657           CC*)
19658             # Sun C++ 4.2, 5.x and Centerline C++
19659             lt_prog_compiler_pic_CXX='-KPIC'
19660             lt_prog_compiler_static_CXX='-Bstatic'
19661             lt_prog_compiler_wl_CXX='-Qoption ld '
19662             ;;
19663           gcx*)
19664             # Green Hills C++ Compiler
19665             lt_prog_compiler_pic_CXX='-PIC'
19666             ;;
19667           *)
19668             ;;
19669         esac
19670         ;;
19671       sunos4*)
19672         case $cc_basename in
19673           CC*)
19674             # Sun C++ 4.x
19675             lt_prog_compiler_pic_CXX='-pic'
19676             lt_prog_compiler_static_CXX='-Bstatic'
19677             ;;
19678           lcc*)
19679             # Lucid
19680             lt_prog_compiler_pic_CXX='-pic'
19681             ;;
19682           *)
19683             ;;
19684         esac
19685         ;;
19686       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19687         case $cc_basename in
19688           CC*)
19689             lt_prog_compiler_wl_CXX='-Wl,'
19690             lt_prog_compiler_pic_CXX='-KPIC'
19691             lt_prog_compiler_static_CXX='-Bstatic'
19692             ;;
19693         esac
19694         ;;
19695       tandem*)
19696         case $cc_basename in
19697           NCC*)
19698             # NonStop-UX NCC 3.20
19699             lt_prog_compiler_pic_CXX='-KPIC'
19700             ;;
19701           *)
19702             ;;
19703         esac
19704         ;;
19705       vxworks*)
19706         ;;
19707       *)
19708         lt_prog_compiler_can_build_shared_CXX=no
19709         ;;
19710     esac
19711   fi
19712
19713 case $host_os in
19714   # For platforms which do not support PIC, -DPIC is meaningless:
19715   *djgpp*)
19716     lt_prog_compiler_pic_CXX=
19717     ;;
19718   *)
19719     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19720     ;;
19721 esac
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19723 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19724
19725
19726
19727 #
19728 # Check to make sure the PIC flag actually works.
19729 #
19730 if test -n "$lt_prog_compiler_pic_CXX"; then
19731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19732 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19733 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19734   $as_echo_n "(cached) " >&6
19735 else
19736   lt_cv_prog_compiler_pic_works_CXX=no
19737    ac_outfile=conftest.$ac_objext
19738    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19739    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19740    # Insert the option either (1) after the last *FLAGS variable, or
19741    # (2) before a word containing "conftest.", or (3) at the end.
19742    # Note that $ac_compile itself does not contain backslashes and begins
19743    # with a dollar sign (not a hyphen), so the echo should work correctly.
19744    # The option is referenced via a variable to avoid confusing sed.
19745    lt_compile=`echo "$ac_compile" | $SED \
19746    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19747    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19748    -e 's:$: $lt_compiler_flag:'`
19749    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19750    (eval "$lt_compile" 2>conftest.err)
19751    ac_status=$?
19752    cat conftest.err >&5
19753    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754    if (exit $ac_status) && test -s "$ac_outfile"; then
19755      # The compiler can only warn and ignore the option if not recognized
19756      # So say no if there are warnings other than the usual output.
19757      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19758      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19759      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19760        lt_cv_prog_compiler_pic_works_CXX=yes
19761      fi
19762    fi
19763    $RM conftest*
19764
19765 fi
19766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19767 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19768
19769 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19770     case $lt_prog_compiler_pic_CXX in
19771      "" | " "*) ;;
19772      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19773      esac
19774 else
19775     lt_prog_compiler_pic_CXX=
19776      lt_prog_compiler_can_build_shared_CXX=no
19777 fi
19778
19779 fi
19780
19781
19782
19783 #
19784 # Check to make sure the static flag actually works.
19785 #
19786 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19788 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19789 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19790   $as_echo_n "(cached) " >&6
19791 else
19792   lt_cv_prog_compiler_static_works_CXX=no
19793    save_LDFLAGS="$LDFLAGS"
19794    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19795    echo "$lt_simple_link_test_code" > conftest.$ac_ext
19796    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19797      # The linker can only warn and ignore the option if not recognized
19798      # So say no if there are warnings
19799      if test -s conftest.err; then
19800        # Append any errors to the config.log.
19801        cat conftest.err 1>&5
19802        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19803        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19804        if diff conftest.exp conftest.er2 >/dev/null; then
19805          lt_cv_prog_compiler_static_works_CXX=yes
19806        fi
19807      else
19808        lt_cv_prog_compiler_static_works_CXX=yes
19809      fi
19810    fi
19811    $RM -r conftest*
19812    LDFLAGS="$save_LDFLAGS"
19813
19814 fi
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19816 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19817
19818 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19819     :
19820 else
19821     lt_prog_compiler_static_CXX=
19822 fi
19823
19824
19825
19826
19827     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19828 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19829 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19830   $as_echo_n "(cached) " >&6
19831 else
19832   lt_cv_prog_compiler_c_o_CXX=no
19833    $RM -r conftest 2>/dev/null
19834    mkdir conftest
19835    cd conftest
19836    mkdir out
19837    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19838
19839    lt_compiler_flag="-o out/conftest2.$ac_objext"
19840    # Insert the option either (1) after the last *FLAGS variable, or
19841    # (2) before a word containing "conftest.", or (3) at the end.
19842    # Note that $ac_compile itself does not contain backslashes and begins
19843    # with a dollar sign (not a hyphen), so the echo should work correctly.
19844    lt_compile=`echo "$ac_compile" | $SED \
19845    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19846    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19847    -e 's:$: $lt_compiler_flag:'`
19848    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19849    (eval "$lt_compile" 2>out/conftest.err)
19850    ac_status=$?
19851    cat out/conftest.err >&5
19852    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19854    then
19855      # The compiler can only warn and ignore the option if not recognized
19856      # So say no if there are warnings
19857      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19858      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19859      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19860        lt_cv_prog_compiler_c_o_CXX=yes
19861      fi
19862    fi
19863    chmod u+w . 2>&5
19864    $RM conftest*
19865    # SGI C++ compiler will create directory out/ii_files/ for
19866    # template instantiation
19867    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19868    $RM out/* && rmdir out
19869    cd ..
19870    $RM -r conftest
19871    $RM conftest*
19872
19873 fi
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19875 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19876
19877
19878
19879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19880 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19881 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19882   $as_echo_n "(cached) " >&6
19883 else
19884   lt_cv_prog_compiler_c_o_CXX=no
19885    $RM -r conftest 2>/dev/null
19886    mkdir conftest
19887    cd conftest
19888    mkdir out
19889    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19890
19891    lt_compiler_flag="-o out/conftest2.$ac_objext"
19892    # Insert the option either (1) after the last *FLAGS variable, or
19893    # (2) before a word containing "conftest.", or (3) at the end.
19894    # Note that $ac_compile itself does not contain backslashes and begins
19895    # with a dollar sign (not a hyphen), so the echo should work correctly.
19896    lt_compile=`echo "$ac_compile" | $SED \
19897    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19898    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19899    -e 's:$: $lt_compiler_flag:'`
19900    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19901    (eval "$lt_compile" 2>out/conftest.err)
19902    ac_status=$?
19903    cat out/conftest.err >&5
19904    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19906    then
19907      # The compiler can only warn and ignore the option if not recognized
19908      # So say no if there are warnings
19909      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19910      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19911      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19912        lt_cv_prog_compiler_c_o_CXX=yes
19913      fi
19914    fi
19915    chmod u+w . 2>&5
19916    $RM conftest*
19917    # SGI C++ compiler will create directory out/ii_files/ for
19918    # template instantiation
19919    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19920    $RM out/* && rmdir out
19921    cd ..
19922    $RM -r conftest
19923    $RM conftest*
19924
19925 fi
19926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19927 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19928
19929
19930
19931
19932 hard_links="nottested"
19933 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19934   # do not overwrite the value of need_locks provided by the user
19935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19936 $as_echo_n "checking if we can lock with hard links... " >&6; }
19937   hard_links=yes
19938   $RM conftest*
19939   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19940   touch conftest.a
19941   ln conftest.a conftest.b 2>&5 || hard_links=no
19942   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19944 $as_echo "$hard_links" >&6; }
19945   if test "$hard_links" = no; then
19946     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19947 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19948     need_locks=warn
19949   fi
19950 else
19951   need_locks=no
19952 fi
19953
19954
19955
19956     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19957 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19958
19959   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19960   case $host_os in
19961   aix[4-9]*)
19962     # If we're using GNU nm, then we don't want the "-C" option.
19963     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19964     # Also, AIX nm treats weak defined symbols like other global defined
19965     # symbols, whereas GNU nm marks them as "W".
19966     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19967       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'
19968     else
19969       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'
19970     fi
19971     ;;
19972   pw32*)
19973     export_symbols_cmds_CXX="$ltdll_cmds"
19974   ;;
19975   cygwin* | mingw* | cegcc*)
19976     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'
19977   ;;
19978   *)
19979     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19980   ;;
19981   esac
19982   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19983
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19985 $as_echo "$ld_shlibs_CXX" >&6; }
19986 test "$ld_shlibs_CXX" = no && can_build_shared=no
19987
19988 with_gnu_ld_CXX=$with_gnu_ld
19989
19990
19991
19992
19993
19994
19995 #
19996 # Do we need to explicitly link libc?
19997 #
19998 case "x$archive_cmds_need_lc_CXX" in
19999 x|xyes)
20000   # Assume -lc should be added
20001   archive_cmds_need_lc_CXX=yes
20002
20003   if test "$enable_shared" = yes && test "$GCC" = yes; then
20004     case $archive_cmds_CXX in
20005     *'~'*)
20006       # FIXME: we may have to deal with multi-command sequences.
20007       ;;
20008     '$CC '*)
20009       # Test whether the compiler implicitly links with -lc since on some
20010       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20011       # to ld, don't add -lc before -lgcc.
20012       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20013 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20014 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20015   $as_echo_n "(cached) " >&6
20016 else
20017   $RM conftest*
20018         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20019
20020         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20021   (eval $ac_compile) 2>&5
20022   ac_status=$?
20023   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20024   test $ac_status = 0; } 2>conftest.err; then
20025           soname=conftest
20026           lib=conftest
20027           libobjs=conftest.$ac_objext
20028           deplibs=
20029           wl=$lt_prog_compiler_wl_CXX
20030           pic_flag=$lt_prog_compiler_pic_CXX
20031           compiler_flags=-v
20032           linker_flags=-v
20033           verstring=
20034           output_objdir=.
20035           libname=conftest
20036           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20037           allow_undefined_flag_CXX=
20038           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20039   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20040   ac_status=$?
20041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20042   test $ac_status = 0; }
20043           then
20044             lt_cv_archive_cmds_need_lc_CXX=no
20045           else
20046             lt_cv_archive_cmds_need_lc_CXX=yes
20047           fi
20048           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20049         else
20050           cat conftest.err 1>&5
20051         fi
20052         $RM conftest*
20053
20054 fi
20055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20056 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20057       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20058       ;;
20059     esac
20060   fi
20061   ;;
20062 esac
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20128 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20129
20130 library_names_spec=
20131 libname_spec='lib$name'
20132 soname_spec=
20133 shrext_cmds=".so"
20134 postinstall_cmds=
20135 postuninstall_cmds=
20136 finish_cmds=
20137 finish_eval=
20138 shlibpath_var=
20139 shlibpath_overrides_runpath=unknown
20140 version_type=none
20141 dynamic_linker="$host_os ld.so"
20142 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20143 need_lib_prefix=unknown
20144 hardcode_into_libs=no
20145
20146 # when you set need_version to no, make sure it does not cause -set_version
20147 # flags to be left without arguments
20148 need_version=unknown
20149
20150 case $host_os in
20151 aix3*)
20152   version_type=linux
20153   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20154   shlibpath_var=LIBPATH
20155
20156   # AIX 3 has no versioning support, so we append a major version to the name.
20157   soname_spec='${libname}${release}${shared_ext}$major'
20158   ;;
20159
20160 aix[4-9]*)
20161   version_type=linux
20162   need_lib_prefix=no
20163   need_version=no
20164   hardcode_into_libs=yes
20165   if test "$host_cpu" = ia64; then
20166     # AIX 5 supports IA64
20167     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20168     shlibpath_var=LD_LIBRARY_PATH
20169   else
20170     # With GCC up to 2.95.x, collect2 would create an import file
20171     # for dependence libraries.  The import file would start with
20172     # the line `#! .'.  This would cause the generated library to
20173     # depend on `.', always an invalid library.  This was fixed in
20174     # development snapshots of GCC prior to 3.0.
20175     case $host_os in
20176       aix4 | aix4.[01] | aix4.[01].*)
20177       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20178            echo ' yes '
20179            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20180         :
20181       else
20182         can_build_shared=no
20183       fi
20184       ;;
20185     esac
20186     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20187     # soname into executable. Probably we can add versioning support to
20188     # collect2, so additional links can be useful in future.
20189     if test "$aix_use_runtimelinking" = yes; then
20190       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20191       # instead of lib<name>.a to let people know that these are not
20192       # typical AIX shared libraries.
20193       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20194     else
20195       # We preserve .a as extension for shared libraries through AIX4.2
20196       # and later when we are not doing run time linking.
20197       library_names_spec='${libname}${release}.a $libname.a'
20198       soname_spec='${libname}${release}${shared_ext}$major'
20199     fi
20200     shlibpath_var=LIBPATH
20201   fi
20202   ;;
20203
20204 amigaos*)
20205   case $host_cpu in
20206   powerpc)
20207     # Since July 2007 AmigaOS4 officially supports .so libraries.
20208     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20209     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20210     ;;
20211   m68k)
20212     library_names_spec='$libname.ixlibrary $libname.a'
20213     # Create ${libname}_ixlibrary.a entries in /sys/libs.
20214     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'
20215     ;;
20216   esac
20217   ;;
20218
20219 beos*)
20220   library_names_spec='${libname}${shared_ext}'
20221   dynamic_linker="$host_os ld.so"
20222   shlibpath_var=LIBRARY_PATH
20223   ;;
20224
20225 bsdi[45]*)
20226   version_type=linux
20227   need_version=no
20228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20229   soname_spec='${libname}${release}${shared_ext}$major'
20230   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20231   shlibpath_var=LD_LIBRARY_PATH
20232   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20233   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20234   # the default ld.so.conf also contains /usr/contrib/lib and
20235   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20236   # libtool to hard-code these into programs
20237   ;;
20238
20239 cygwin* | mingw* | pw32* | cegcc*)
20240   version_type=windows
20241   shrext_cmds=".dll"
20242   need_version=no
20243   need_lib_prefix=no
20244
20245   case $GCC,$host_os in
20246   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20247     library_names_spec='$libname.dll.a'
20248     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20249     postinstall_cmds='base_file=`basename \${file}`~
20250       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20251       dldir=$destdir/`dirname \$dlpath`~
20252       test -d \$dldir || mkdir -p \$dldir~
20253       $install_prog $dir/$dlname \$dldir/$dlname~
20254       chmod a+x \$dldir/$dlname~
20255       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20256         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20257       fi'
20258     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20259       dlpath=$dir/\$dldll~
20260        $RM \$dlpath'
20261     shlibpath_overrides_runpath=yes
20262
20263     case $host_os in
20264     cygwin*)
20265       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20266       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20267
20268       ;;
20269     mingw* | cegcc*)
20270       # MinGW DLLs use traditional 'lib' prefix
20271       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20272       ;;
20273     pw32*)
20274       # pw32 DLLs use 'pw' prefix rather than 'lib'
20275       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20276       ;;
20277     esac
20278     ;;
20279
20280   *)
20281     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20282     ;;
20283   esac
20284   dynamic_linker='Win32 ld.exe'
20285   # FIXME: first we should search . and the directory the executable is in
20286   shlibpath_var=PATH
20287   ;;
20288
20289 darwin* | rhapsody*)
20290   dynamic_linker="$host_os dyld"
20291   version_type=darwin
20292   need_lib_prefix=no
20293   need_version=no
20294   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20295   soname_spec='${libname}${release}${major}$shared_ext'
20296   shlibpath_overrides_runpath=yes
20297   shlibpath_var=DYLD_LIBRARY_PATH
20298   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20299
20300   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20301   ;;
20302
20303 dgux*)
20304   version_type=linux
20305   need_lib_prefix=no
20306   need_version=no
20307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20308   soname_spec='${libname}${release}${shared_ext}$major'
20309   shlibpath_var=LD_LIBRARY_PATH
20310   ;;
20311
20312 freebsd1*)
20313   dynamic_linker=no
20314   ;;
20315
20316 freebsd* | dragonfly*)
20317   # DragonFly does not have aout.  When/if they implement a new
20318   # versioning mechanism, adjust this.
20319   if test -x /usr/bin/objformat; then
20320     objformat=`/usr/bin/objformat`
20321   else
20322     case $host_os in
20323     freebsd[123]*) objformat=aout ;;
20324     *) objformat=elf ;;
20325     esac
20326   fi
20327   version_type=freebsd-$objformat
20328   case $version_type in
20329     freebsd-elf*)
20330       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20331       need_version=no
20332       need_lib_prefix=no
20333       ;;
20334     freebsd-*)
20335       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20336       need_version=yes
20337       ;;
20338   esac
20339   shlibpath_var=LD_LIBRARY_PATH
20340   case $host_os in
20341   freebsd2*)
20342     shlibpath_overrides_runpath=yes
20343     ;;
20344   freebsd3.[01]* | freebsdelf3.[01]*)
20345     shlibpath_overrides_runpath=yes
20346     hardcode_into_libs=yes
20347     ;;
20348   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20349   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20350     shlibpath_overrides_runpath=no
20351     hardcode_into_libs=yes
20352     ;;
20353   *) # from 4.6 on, and DragonFly
20354     shlibpath_overrides_runpath=yes
20355     hardcode_into_libs=yes
20356     ;;
20357   esac
20358   ;;
20359
20360 gnu*)
20361   version_type=linux
20362   need_lib_prefix=no
20363   need_version=no
20364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20365   soname_spec='${libname}${release}${shared_ext}$major'
20366   shlibpath_var=LD_LIBRARY_PATH
20367   hardcode_into_libs=yes
20368   ;;
20369
20370 haiku*)
20371   version_type=linux
20372   need_lib_prefix=no
20373   need_version=no
20374   dynamic_linker="$host_os runtime_loader"
20375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20376   soname_spec='${libname}${release}${shared_ext}$major'
20377   shlibpath_var=LIBRARY_PATH
20378   shlibpath_overrides_runpath=yes
20379   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20380   hardcode_into_libs=yes
20381   ;;
20382
20383 hpux9* | hpux10* | hpux11*)
20384   # Give a soname corresponding to the major version so that dld.sl refuses to
20385   # link against other versions.
20386   version_type=sunos
20387   need_lib_prefix=no
20388   need_version=no
20389   case $host_cpu in
20390   ia64*)
20391     shrext_cmds='.so'
20392     hardcode_into_libs=yes
20393     dynamic_linker="$host_os dld.so"
20394     shlibpath_var=LD_LIBRARY_PATH
20395     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20396     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20397     soname_spec='${libname}${release}${shared_ext}$major'
20398     if test "X$HPUX_IA64_MODE" = X32; then
20399       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20400     else
20401       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20402     fi
20403     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20404     ;;
20405   hppa*64*)
20406     shrext_cmds='.sl'
20407     hardcode_into_libs=yes
20408     dynamic_linker="$host_os dld.sl"
20409     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20410     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20411     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20412     soname_spec='${libname}${release}${shared_ext}$major'
20413     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20414     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20415     ;;
20416   *)
20417     shrext_cmds='.sl'
20418     dynamic_linker="$host_os dld.sl"
20419     shlibpath_var=SHLIB_PATH
20420     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20421     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20422     soname_spec='${libname}${release}${shared_ext}$major'
20423     ;;
20424   esac
20425   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20426   postinstall_cmds='chmod 555 $lib'
20427   # or fails outright, so override atomically:
20428   install_override_mode=555
20429   ;;
20430
20431 interix[3-9]*)
20432   version_type=linux
20433   need_lib_prefix=no
20434   need_version=no
20435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20436   soname_spec='${libname}${release}${shared_ext}$major'
20437   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20438   shlibpath_var=LD_LIBRARY_PATH
20439   shlibpath_overrides_runpath=no
20440   hardcode_into_libs=yes
20441   ;;
20442
20443 irix5* | irix6* | nonstopux*)
20444   case $host_os in
20445     nonstopux*) version_type=nonstopux ;;
20446     *)
20447         if test "$lt_cv_prog_gnu_ld" = yes; then
20448                 version_type=linux
20449         else
20450                 version_type=irix
20451         fi ;;
20452   esac
20453   need_lib_prefix=no
20454   need_version=no
20455   soname_spec='${libname}${release}${shared_ext}$major'
20456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20457   case $host_os in
20458   irix5* | nonstopux*)
20459     libsuff= shlibsuff=
20460     ;;
20461   *)
20462     case $LD in # libtool.m4 will add one of these switches to LD
20463     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20464       libsuff= shlibsuff= libmagic=32-bit;;
20465     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20466       libsuff=32 shlibsuff=N32 libmagic=N32;;
20467     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20468       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20469     *) libsuff= shlibsuff= libmagic=never-match;;
20470     esac
20471     ;;
20472   esac
20473   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20474   shlibpath_overrides_runpath=no
20475   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20476   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20477   hardcode_into_libs=yes
20478   ;;
20479
20480 # No shared lib support for Linux oldld, aout, or coff.
20481 linux*oldld* | linux*aout* | linux*coff*)
20482   dynamic_linker=no
20483   ;;
20484
20485 # This must be Linux ELF.
20486 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20487   version_type=linux
20488   need_lib_prefix=no
20489   need_version=no
20490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20491   soname_spec='${libname}${release}${shared_ext}$major'
20492   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20493   shlibpath_var=LD_LIBRARY_PATH
20494   shlibpath_overrides_runpath=no
20495
20496   # Some binutils ld are patched to set DT_RUNPATH
20497   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20498   $as_echo_n "(cached) " >&6
20499 else
20500   lt_cv_shlibpath_overrides_runpath=no
20501     save_LDFLAGS=$LDFLAGS
20502     save_libdir=$libdir
20503     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20504          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20505     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20506 /* end confdefs.h.  */
20507
20508 int
20509 main ()
20510 {
20511
20512   ;
20513   return 0;
20514 }
20515 _ACEOF
20516 if ac_fn_cxx_try_link "$LINENO"; then :
20517   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20518   lt_cv_shlibpath_overrides_runpath=yes
20519 fi
20520 fi
20521 rm -f core conftest.err conftest.$ac_objext \
20522     conftest$ac_exeext conftest.$ac_ext
20523     LDFLAGS=$save_LDFLAGS
20524     libdir=$save_libdir
20525
20526 fi
20527
20528   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20529
20530   # This implies no fast_install, which is unacceptable.
20531   # Some rework will be needed to allow for fast_install
20532   # before this can be enabled.
20533   hardcode_into_libs=yes
20534
20535   # Append ld.so.conf contents to the search path
20536   if test -f /etc/ld.so.conf; then
20537     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' ' '`
20538     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20539   fi
20540
20541   # We used to test for /lib/ld.so.1 and disable shared libraries on
20542   # powerpc, because MkLinux only supported shared libraries with the
20543   # GNU dynamic linker.  Since this was broken with cross compilers,
20544   # most powerpc-linux boxes support dynamic linking these days and
20545   # people can always --disable-shared, the test was removed, and we
20546   # assume the GNU/Linux dynamic linker is in use.
20547   dynamic_linker='GNU/Linux ld.so'
20548   ;;
20549
20550 netbsd*)
20551   version_type=sunos
20552   need_lib_prefix=no
20553   need_version=no
20554   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20555     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20556     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20557     dynamic_linker='NetBSD (a.out) ld.so'
20558   else
20559     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20560     soname_spec='${libname}${release}${shared_ext}$major'
20561     dynamic_linker='NetBSD ld.elf_so'
20562   fi
20563   shlibpath_var=LD_LIBRARY_PATH
20564   shlibpath_overrides_runpath=yes
20565   hardcode_into_libs=yes
20566   ;;
20567
20568 newsos6)
20569   version_type=linux
20570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20571   shlibpath_var=LD_LIBRARY_PATH
20572   shlibpath_overrides_runpath=yes
20573   ;;
20574
20575 *nto* | *qnx*)
20576   version_type=qnx
20577   need_lib_prefix=no
20578   need_version=no
20579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20580   soname_spec='${libname}${release}${shared_ext}$major'
20581   shlibpath_var=LD_LIBRARY_PATH
20582   shlibpath_overrides_runpath=no
20583   hardcode_into_libs=yes
20584   dynamic_linker='ldqnx.so'
20585   ;;
20586
20587 openbsd*)
20588   version_type=sunos
20589   sys_lib_dlsearch_path_spec="/usr/lib"
20590   need_lib_prefix=no
20591   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20592   case $host_os in
20593     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
20594     *)                          need_version=no  ;;
20595   esac
20596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20597   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20598   shlibpath_var=LD_LIBRARY_PATH
20599   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20600     case $host_os in
20601       openbsd2.[89] | openbsd2.[89].*)
20602         shlibpath_overrides_runpath=no
20603         ;;
20604       *)
20605         shlibpath_overrides_runpath=yes
20606         ;;
20607       esac
20608   else
20609     shlibpath_overrides_runpath=yes
20610   fi
20611   ;;
20612
20613 os2*)
20614   libname_spec='$name'
20615   shrext_cmds=".dll"
20616   need_lib_prefix=no
20617   library_names_spec='$libname${shared_ext} $libname.a'
20618   dynamic_linker='OS/2 ld.exe'
20619   shlibpath_var=LIBPATH
20620   ;;
20621
20622 osf3* | osf4* | osf5*)
20623   version_type=osf
20624   need_lib_prefix=no
20625   need_version=no
20626   soname_spec='${libname}${release}${shared_ext}$major'
20627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20628   shlibpath_var=LD_LIBRARY_PATH
20629   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20630   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20631   ;;
20632
20633 rdos*)
20634   dynamic_linker=no
20635   ;;
20636
20637 solaris*)
20638   version_type=linux
20639   need_lib_prefix=no
20640   need_version=no
20641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20642   soname_spec='${libname}${release}${shared_ext}$major'
20643   shlibpath_var=LD_LIBRARY_PATH
20644   shlibpath_overrides_runpath=yes
20645   hardcode_into_libs=yes
20646   # ldd complains unless libraries are executable
20647   postinstall_cmds='chmod +x $lib'
20648   ;;
20649
20650 sunos4*)
20651   version_type=sunos
20652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20653   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20654   shlibpath_var=LD_LIBRARY_PATH
20655   shlibpath_overrides_runpath=yes
20656   if test "$with_gnu_ld" = yes; then
20657     need_lib_prefix=no
20658   fi
20659   need_version=yes
20660   ;;
20661
20662 sysv4 | sysv4.3*)
20663   version_type=linux
20664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20665   soname_spec='${libname}${release}${shared_ext}$major'
20666   shlibpath_var=LD_LIBRARY_PATH
20667   case $host_vendor in
20668     sni)
20669       shlibpath_overrides_runpath=no
20670       need_lib_prefix=no
20671       runpath_var=LD_RUN_PATH
20672       ;;
20673     siemens)
20674       need_lib_prefix=no
20675       ;;
20676     motorola)
20677       need_lib_prefix=no
20678       need_version=no
20679       shlibpath_overrides_runpath=no
20680       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20681       ;;
20682   esac
20683   ;;
20684
20685 sysv4*MP*)
20686   if test -d /usr/nec ;then
20687     version_type=linux
20688     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20689     soname_spec='$libname${shared_ext}.$major'
20690     shlibpath_var=LD_LIBRARY_PATH
20691   fi
20692   ;;
20693
20694 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20695   version_type=freebsd-elf
20696   need_lib_prefix=no
20697   need_version=no
20698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20699   soname_spec='${libname}${release}${shared_ext}$major'
20700   shlibpath_var=LD_LIBRARY_PATH
20701   shlibpath_overrides_runpath=yes
20702   hardcode_into_libs=yes
20703   if test "$with_gnu_ld" = yes; then
20704     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20705   else
20706     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20707     case $host_os in
20708       sco3.2v5*)
20709         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20710         ;;
20711     esac
20712   fi
20713   sys_lib_dlsearch_path_spec='/usr/lib'
20714   ;;
20715
20716 tpf*)
20717   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20718   version_type=linux
20719   need_lib_prefix=no
20720   need_version=no
20721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20722   shlibpath_var=LD_LIBRARY_PATH
20723   shlibpath_overrides_runpath=no
20724   hardcode_into_libs=yes
20725   ;;
20726
20727 uts4*)
20728   version_type=linux
20729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20730   soname_spec='${libname}${release}${shared_ext}$major'
20731   shlibpath_var=LD_LIBRARY_PATH
20732   ;;
20733
20734 *)
20735   dynamic_linker=no
20736   ;;
20737 esac
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20739 $as_echo "$dynamic_linker" >&6; }
20740 test "$dynamic_linker" = no && can_build_shared=no
20741
20742 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20743 if test "$GCC" = yes; then
20744   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20745 fi
20746
20747 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20748   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20749 fi
20750 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20751   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20752 fi
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20792 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20793 hardcode_action_CXX=
20794 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20795    test -n "$runpath_var_CXX" ||
20796    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20797
20798   # We can hardcode non-existent directories.
20799   if test "$hardcode_direct_CXX" != no &&
20800      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20801      # have to relink, otherwise we might link with an installed library
20802      # when we should be linking with a yet-to-be-installed one
20803      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20804      test "$hardcode_minus_L_CXX" != no; then
20805     # Linking always hardcodes the temporary library directory.
20806     hardcode_action_CXX=relink
20807   else
20808     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20809     hardcode_action_CXX=immediate
20810   fi
20811 else
20812   # We cannot hardcode anything, or else we can only hardcode existing
20813   # directories.
20814   hardcode_action_CXX=unsupported
20815 fi
20816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20817 $as_echo "$hardcode_action_CXX" >&6; }
20818
20819 if test "$hardcode_action_CXX" = relink ||
20820    test "$inherit_rpath_CXX" = yes; then
20821   # Fast installation is not supported
20822   enable_fast_install=no
20823 elif test "$shlibpath_overrides_runpath" = yes ||
20824      test "$enable_shared" = no; then
20825   # Fast installation is not necessary
20826   enable_fast_install=needless
20827 fi
20828
20829
20830
20831
20832
20833
20834
20835   fi # test -n "$compiler"
20836
20837   CC=$lt_save_CC
20838   LDCXX=$LD
20839   LD=$lt_save_LD
20840   GCC=$lt_save_GCC
20841   with_gnu_ld=$lt_save_with_gnu_ld
20842   lt_cv_path_LDCXX=$lt_cv_path_LD
20843   lt_cv_path_LD=$lt_save_path_LD
20844   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20845   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20846 fi # test "$_lt_caught_CXX_error" != yes
20847
20848 ac_ext=c
20849 ac_cpp='$CPP $CPPFLAGS'
20850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869 # Only expand once:
20870
20871
20872
20873
20874
20875 # Identify the assembler which will work hand-in-glove with the newly
20876 # built GCC, so that we can examine its features.  This is the assembler
20877 # which will be driven by the driver program.
20878 #
20879 # If build != host, and we aren't building gas in-tree, we identify a
20880 # build->target assembler and hope that it will have the same features
20881 # as the host->target assembler we'll be using.
20882 gcc_cv_gas_major_version=
20883 gcc_cv_gas_minor_version=
20884 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20885
20886 if test "${gcc_cv_as+set}" = set; then :
20887
20888 else
20889
20890 if test -x "$DEFAULT_ASSEMBLER"; then
20891         gcc_cv_as="$DEFAULT_ASSEMBLER"
20892 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20893      && test -f ../gas/Makefile \
20894      && test x$build = x$host; then
20895         gcc_cv_as=../gas/as-new$build_exeext
20896 elif test -x as$build_exeext; then
20897         # Build using assembler in the current directory.
20898         gcc_cv_as=./as$build_exeext
20899 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
20900         gcc_cv_as="$AS_FOR_TARGET"
20901 else
20902         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20903 set dummy $AS_FOR_TARGET; ac_word=$2
20904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20905 $as_echo_n "checking for $ac_word... " >&6; }
20906 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20907   $as_echo_n "(cached) " >&6
20908 else
20909   case $gcc_cv_as in
20910   [\\/]* | ?:[\\/]*)
20911   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20912   ;;
20913   *)
20914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20915 for as_dir in $PATH
20916 do
20917   IFS=$as_save_IFS
20918   test -z "$as_dir" && as_dir=.
20919     for ac_exec_ext in '' $ac_executable_extensions; do
20920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20921     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20923     break 2
20924   fi
20925 done
20926   done
20927 IFS=$as_save_IFS
20928
20929   ;;
20930 esac
20931 fi
20932 gcc_cv_as=$ac_cv_path_gcc_cv_as
20933 if test -n "$gcc_cv_as"; then
20934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20935 $as_echo "$gcc_cv_as" >&6; }
20936 else
20937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20938 $as_echo "no" >&6; }
20939 fi
20940
20941
20942 fi
20943 fi
20944
20945 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20946
20947 case "$ORIGINAL_AS_FOR_TARGET" in
20948   ./as | ./as$build_exeext) ;;
20949   *) ac_config_files="$ac_config_files as:exec-tool.in"
20950  ;;
20951 esac
20952
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20954 $as_echo_n "checking what assembler to use... " >&6; }
20955 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20956   # Single tree build which includes gas.  We want to prefer it
20957   # over whatever linker top-level may have detected, since
20958   # we'll use what we're building after installation anyway.
20959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20960 $as_echo "newly built gas" >&6; }
20961   in_tree_gas=yes
20962   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20963 for f in $gcc_cv_as_bfd_srcdir/configure \
20964          $gcc_cv_as_gas_srcdir/configure \
20965          $gcc_cv_as_gas_srcdir/configure.in \
20966          $gcc_cv_as_gas_srcdir/Makefile.in ; do
20967   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20968   if test x$gcc_cv_gas_version != x; then
20969     break
20970   fi
20971 done
20972 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20973 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20974 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20975 case $gcc_cv_gas_patch_version in
20976   "") gcc_cv_gas_patch_version="0" ;;
20977 esac
20978 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20979                             + $gcc_cv_gas_minor_version \) \* 1000 \
20980                             + $gcc_cv_gas_patch_version`
20981
20982   in_tree_gas_is_elf=no
20983   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20984      || (grep 'obj_format = multi' ../gas/Makefile \
20985          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20986   then
20987     in_tree_gas_is_elf=yes
20988   fi
20989 else
20990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20991 $as_echo "$gcc_cv_as" >&6; }
20992   in_tree_gas=no
20993 fi
20994
20995 # Identify the linker which will work hand-in-glove with the newly
20996 # built GCC, so that we can examine its features.  This is the linker
20997 # which will be driven by the driver program.
20998 #
20999 # If build != host, and we aren't building gas in-tree, we identify a
21000 # build->target linker and hope that it will have the same features
21001 # as the host->target linker we'll be using.
21002 gcc_cv_gld_major_version=
21003 gcc_cv_gld_minor_version=
21004 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21005 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21006
21007 if test "${gcc_cv_ld+set}" = set; then :
21008
21009 else
21010
21011 if test -x "$DEFAULT_LINKER"; then
21012         gcc_cv_ld="$DEFAULT_LINKER"
21013 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21014      && test -f ../ld/Makefile \
21015      && test x$build = x$host; then
21016         gcc_cv_ld=../ld/ld-new$build_exeext
21017 elif test -x collect-ld$build_exeext; then
21018         # Build using linker in the current directory.
21019         gcc_cv_ld=./collect-ld$build_exeext
21020 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21021         gcc_cv_ld="$LD_FOR_TARGET"
21022 else
21023         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21024 set dummy $LD_FOR_TARGET; ac_word=$2
21025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21026 $as_echo_n "checking for $ac_word... " >&6; }
21027 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21028   $as_echo_n "(cached) " >&6
21029 else
21030   case $gcc_cv_ld in
21031   [\\/]* | ?:[\\/]*)
21032   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21033   ;;
21034   *)
21035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21036 for as_dir in $PATH
21037 do
21038   IFS=$as_save_IFS
21039   test -z "$as_dir" && as_dir=.
21040     for ac_exec_ext in '' $ac_executable_extensions; do
21041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21042     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21044     break 2
21045   fi
21046 done
21047   done
21048 IFS=$as_save_IFS
21049
21050   ;;
21051 esac
21052 fi
21053 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21054 if test -n "$gcc_cv_ld"; then
21055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21056 $as_echo "$gcc_cv_ld" >&6; }
21057 else
21058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21059 $as_echo "no" >&6; }
21060 fi
21061
21062
21063 fi
21064 fi
21065
21066 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21067 PLUGIN_LD=`basename $gcc_cv_ld`
21068
21069 # Check whether --with-plugin-ld was given.
21070 if test "${with_plugin_ld+set}" = set; then :
21071   withval=$with_plugin_ld; if test x"$withval" != x; then
21072    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21073    PLUGIN_LD="$withval"
21074  fi
21075 fi
21076
21077
21078
21079 cat >>confdefs.h <<_ACEOF
21080 #define PLUGIN_LD "$PLUGIN_LD"
21081 _ACEOF
21082
21083
21084 # Check to see if we are using gold instead of ld
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21086 $as_echo_n "checking whether we are using gold... " >&6; }
21087 ld_is_gold=no
21088 if test x$gcc_cv_ld != x; then
21089   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21090      | grep "GNU gold" > /dev/null; then
21091     ld_is_gold=yes
21092   fi
21093 fi
21094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21095 $as_echo "$ld_is_gold" >&6; }
21096
21097 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21098
21099 case "$ORIGINAL_LD_FOR_TARGET" in
21100   ./collect-ld | ./collect-ld$build_exeext) ;;
21101   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21102  ;;
21103 esac
21104
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21106 $as_echo_n "checking what linker to use... " >&6; }
21107 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
21108         # Single tree build which includes ld.  We want to prefer it
21109         # over whatever linker top-level may have detected, since
21110         # we'll use what we're building after installation anyway.
21111         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21112 $as_echo "newly built ld" >&6; }
21113         in_tree_ld=yes
21114         in_tree_ld_is_elf=no
21115         if (grep 'EMUL = .*elf' ../ld/Makefile \
21116             || grep 'EMUL = .*linux' ../ld/Makefile \
21117             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21118           in_tree_ld_is_elf=yes
21119         fi
21120         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
21121         do
21122                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21123                 if test x$gcc_cv_gld_version != x; then
21124                         break
21125                 fi
21126         done
21127         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21128         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21129 else
21130         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21131 $as_echo "$gcc_cv_ld" >&6; }
21132         in_tree_ld=no
21133 fi
21134
21135 # Figure out what nm we will be using.
21136 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21137 if test "${gcc_cv_nm+set}" = set; then :
21138
21139 else
21140
21141 if test -f $gcc_cv_binutils_srcdir/configure.in \
21142      && test -f ../binutils/Makefile \
21143      && test x$build = x$host; then
21144         gcc_cv_nm=../binutils/nm-new$build_exeext
21145 elif test -x nm$build_exeext; then
21146         gcc_cv_nm=./nm$build_exeext
21147 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21148         gcc_cv_nm="$NM_FOR_TARGET"
21149 else
21150         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21151 set dummy $NM_FOR_TARGET; ac_word=$2
21152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21153 $as_echo_n "checking for $ac_word... " >&6; }
21154 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21155   $as_echo_n "(cached) " >&6
21156 else
21157   case $gcc_cv_nm in
21158   [\\/]* | ?:[\\/]*)
21159   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21160   ;;
21161   *)
21162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21163 for as_dir in $PATH
21164 do
21165   IFS=$as_save_IFS
21166   test -z "$as_dir" && as_dir=.
21167     for ac_exec_ext in '' $ac_executable_extensions; do
21168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21169     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21171     break 2
21172   fi
21173 done
21174   done
21175 IFS=$as_save_IFS
21176
21177   ;;
21178 esac
21179 fi
21180 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21181 if test -n "$gcc_cv_nm"; then
21182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21183 $as_echo "$gcc_cv_nm" >&6; }
21184 else
21185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21186 $as_echo "no" >&6; }
21187 fi
21188
21189
21190 fi
21191 fi
21192
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21194 $as_echo_n "checking what nm to use... " >&6; }
21195 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21196         # Single tree build which includes binutils.
21197         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21198 $as_echo "newly built nm" >&6; }
21199         in_tree_nm=yes
21200 else
21201         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21202 $as_echo "$gcc_cv_nm" >&6; }
21203         in_tree_nm=no
21204 fi
21205
21206 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21207
21208 case "$ORIGINAL_NM_FOR_TARGET" in
21209   ./nm | ./nm$build_exeext) ;;
21210   *) ac_config_files="$ac_config_files nm:exec-tool.in"
21211  ;;
21212 esac
21213
21214
21215 # Figure out what objdump we will be using.
21216 if test "${gcc_cv_objdump+set}" = set; then :
21217
21218 else
21219
21220 if test -f $gcc_cv_binutils_srcdir/configure.in \
21221      && test -f ../binutils/Makefile \
21222      && test x$build = x$host; then
21223         # Single tree build which includes binutils.
21224         gcc_cv_objdump=../binutils/objdump$build_exeext
21225 elif test -x objdump$build_exeext; then
21226         gcc_cv_objdump=./objdump$build_exeext
21227 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21228         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21229 else
21230         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21231 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21233 $as_echo_n "checking for $ac_word... " >&6; }
21234 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21235   $as_echo_n "(cached) " >&6
21236 else
21237   case $gcc_cv_objdump in
21238   [\\/]* | ?:[\\/]*)
21239   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21240   ;;
21241   *)
21242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21243 for as_dir in $PATH
21244 do
21245   IFS=$as_save_IFS
21246   test -z "$as_dir" && as_dir=.
21247     for ac_exec_ext in '' $ac_executable_extensions; do
21248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21249     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21251     break 2
21252   fi
21253 done
21254   done
21255 IFS=$as_save_IFS
21256
21257   ;;
21258 esac
21259 fi
21260 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21261 if test -n "$gcc_cv_objdump"; then
21262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21263 $as_echo "$gcc_cv_objdump" >&6; }
21264 else
21265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21266 $as_echo "no" >&6; }
21267 fi
21268
21269
21270 fi
21271 fi
21272
21273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21274 $as_echo_n "checking what objdump to use... " >&6; }
21275 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21276         # Single tree build which includes binutils.
21277         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21278 $as_echo "newly built objdump" >&6; }
21279 elif test x$gcc_cv_objdump = x; then
21280         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21281 $as_echo "not found" >&6; }
21282 else
21283         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21284 $as_echo "$gcc_cv_objdump" >&6; }
21285 fi
21286
21287 # Figure out what readelf we will be using.
21288 if test "${gcc_cv_readelf+set}" = set; then :
21289
21290 else
21291
21292 if test -f $gcc_cv_binutils_srcdir/configure.in \
21293      && test -f ../binutils/Makefile \
21294      && test x$build = x$host; then
21295         # Single tree build which includes binutils.
21296         gcc_cv_readelf=../binutils/readelf$build_exeext
21297 elif test -x readelf$build_exeext; then
21298         gcc_cv_readelf=./readelf$build_exeext
21299 else
21300         # Extract the first word of "readelf", so it can be a program name with args.
21301 set dummy readelf; ac_word=$2
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21303 $as_echo_n "checking for $ac_word... " >&6; }
21304 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21305   $as_echo_n "(cached) " >&6
21306 else
21307   case $gcc_cv_readelf in
21308   [\\/]* | ?:[\\/]*)
21309   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21310   ;;
21311   *)
21312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21313 for as_dir in $PATH
21314 do
21315   IFS=$as_save_IFS
21316   test -z "$as_dir" && as_dir=.
21317     for ac_exec_ext in '' $ac_executable_extensions; do
21318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21319     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21321     break 2
21322   fi
21323 done
21324   done
21325 IFS=$as_save_IFS
21326
21327   ;;
21328 esac
21329 fi
21330 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21331 if test -n "$gcc_cv_readelf"; then
21332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21333 $as_echo "$gcc_cv_readelf" >&6; }
21334 else
21335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21336 $as_echo "no" >&6; }
21337 fi
21338
21339
21340 fi
21341 fi
21342
21343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21344 $as_echo_n "checking what readelf to use... " >&6; }
21345 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21346         # Single tree build which includes binutils.
21347         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21348 $as_echo "newly built readelf" >&6; }
21349 elif test x$gcc_cv_readelf = x; then
21350         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21351 $as_echo "not found" >&6; }
21352 else
21353         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21354 $as_echo "$gcc_cv_readelf" >&6; }
21355 fi
21356
21357 # Figure out what assembler alignment features are present.
21358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21359 $as_echo_n "checking assembler flags... " >&6; }
21360 if test "${gcc_cv_as_flags+set}" = set; then :
21361   $as_echo_n "(cached) " >&6
21362 else
21363    case "$target" in
21364   i[34567]86-*-linux*)
21365         gcc_cv_as_flags="--32"
21366     ;;
21367   *)
21368     gcc_cv_as_flags=" "
21369     ;;
21370   esac
21371 fi
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21373 $as_echo "$gcc_cv_as_flags" >&6; }
21374
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21376 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21377 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21378   $as_echo_n "(cached) " >&6
21379 else
21380   gcc_cv_as_balign_and_p2align=no
21381     if test $in_tree_gas = yes; then
21382     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21383   then gcc_cv_as_balign_and_p2align=yes
21384 fi
21385   elif test x$gcc_cv_as != x; then
21386     echo '.balign 4
21387 .p2align 2' > conftest.s
21388     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21389   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21390   (eval $ac_try) 2>&5
21391   ac_status=$?
21392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21393   test $ac_status = 0; }; }
21394     then
21395         gcc_cv_as_balign_and_p2align=yes
21396     else
21397       echo "configure: failed program was" >&5
21398       cat conftest.s >&5
21399     fi
21400     rm -f conftest.o conftest.s
21401   fi
21402 fi
21403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21404 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21405 if test $gcc_cv_as_balign_and_p2align = yes; then
21406
21407 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21408
21409 fi
21410
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21412 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21413 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21414   $as_echo_n "(cached) " >&6
21415 else
21416   gcc_cv_as_max_skip_p2align=no
21417     if test $in_tree_gas = yes; then
21418     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21419   then gcc_cv_as_max_skip_p2align=yes
21420 fi
21421   elif test x$gcc_cv_as != x; then
21422     echo '.p2align 4,,7' > conftest.s
21423     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21424   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21425   (eval $ac_try) 2>&5
21426   ac_status=$?
21427   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21428   test $ac_status = 0; }; }
21429     then
21430         gcc_cv_as_max_skip_p2align=yes
21431     else
21432       echo "configure: failed program was" >&5
21433       cat conftest.s >&5
21434     fi
21435     rm -f conftest.o conftest.s
21436   fi
21437 fi
21438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21439 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21440 if test $gcc_cv_as_max_skip_p2align = yes; then
21441
21442 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21443
21444 fi
21445
21446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21447 $as_echo_n "checking assembler for .literal16... " >&6; }
21448 if test "${gcc_cv_as_literal16+set}" = set; then :
21449   $as_echo_n "(cached) " >&6
21450 else
21451   gcc_cv_as_literal16=no
21452     if test $in_tree_gas = yes; then
21453     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21454   then gcc_cv_as_literal16=yes
21455 fi
21456   elif test x$gcc_cv_as != x; then
21457     echo '.literal16' > conftest.s
21458     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21459   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21460   (eval $ac_try) 2>&5
21461   ac_status=$?
21462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21463   test $ac_status = 0; }; }
21464     then
21465         gcc_cv_as_literal16=yes
21466     else
21467       echo "configure: failed program was" >&5
21468       cat conftest.s >&5
21469     fi
21470     rm -f conftest.o conftest.s
21471   fi
21472 fi
21473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21474 $as_echo "$gcc_cv_as_literal16" >&6; }
21475 if test $gcc_cv_as_literal16 = yes; then
21476
21477 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21478
21479 fi
21480
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21482 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21483 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21484   $as_echo_n "(cached) " >&6
21485 else
21486   gcc_cv_as_subsection_m1=no
21487     if test $in_tree_gas = yes; then
21488     if test $in_tree_gas_is_elf = yes \
21489   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21490   then gcc_cv_as_subsection_m1=yes
21491 fi
21492   elif test x$gcc_cv_as != x; then
21493     echo 'conftest_label1: .word 0
21494 .subsection -1
21495 conftest_label2: .word 0
21496 .previous' > conftest.s
21497     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21498   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21499   (eval $ac_try) 2>&5
21500   ac_status=$?
21501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21502   test $ac_status = 0; }; }
21503     then
21504         if test x$gcc_cv_nm != x; then
21505     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21506     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21507     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21508     then :
21509     else gcc_cv_as_subsection_m1=yes
21510     fi
21511     rm -f conftest.nm1 conftest.nm2
21512   fi
21513     else
21514       echo "configure: failed program was" >&5
21515       cat conftest.s >&5
21516     fi
21517     rm -f conftest.o conftest.s
21518   fi
21519 fi
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21521 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21522 if test $gcc_cv_as_subsection_m1 = yes; then
21523
21524 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21525
21526 fi
21527
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21529 $as_echo_n "checking assembler for .weak... " >&6; }
21530 if test "${gcc_cv_as_weak+set}" = set; then :
21531   $as_echo_n "(cached) " >&6
21532 else
21533   gcc_cv_as_weak=no
21534     if test $in_tree_gas = yes; then
21535     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21536   then gcc_cv_as_weak=yes
21537 fi
21538   elif test x$gcc_cv_as != x; then
21539     echo '      .weak foobar' > conftest.s
21540     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21541   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21542   (eval $ac_try) 2>&5
21543   ac_status=$?
21544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21545   test $ac_status = 0; }; }
21546     then
21547         gcc_cv_as_weak=yes
21548     else
21549       echo "configure: failed program was" >&5
21550       cat conftest.s >&5
21551     fi
21552     rm -f conftest.o conftest.s
21553   fi
21554 fi
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21556 $as_echo "$gcc_cv_as_weak" >&6; }
21557 if test $gcc_cv_as_weak = yes; then
21558
21559 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21560
21561 fi
21562
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21564 $as_echo_n "checking assembler for .weakref... " >&6; }
21565 if test "${gcc_cv_as_weakref+set}" = set; then :
21566   $as_echo_n "(cached) " >&6
21567 else
21568   gcc_cv_as_weakref=no
21569     if test $in_tree_gas = yes; then
21570     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21571   then gcc_cv_as_weakref=yes
21572 fi
21573   elif test x$gcc_cv_as != x; then
21574     echo '      .weakref foobar, barfnot' > conftest.s
21575     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21576   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21577   (eval $ac_try) 2>&5
21578   ac_status=$?
21579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21580   test $ac_status = 0; }; }
21581     then
21582         gcc_cv_as_weakref=yes
21583     else
21584       echo "configure: failed program was" >&5
21585       cat conftest.s >&5
21586     fi
21587     rm -f conftest.o conftest.s
21588   fi
21589 fi
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21591 $as_echo "$gcc_cv_as_weakref" >&6; }
21592 if test $gcc_cv_as_weakref = yes; then
21593
21594 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21595
21596 fi
21597
21598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21599 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21600 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21601   $as_echo_n "(cached) " >&6
21602 else
21603   gcc_cv_as_nsubspa_comdat=no
21604     if test $in_tree_gas = yes; then
21605     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21606   then gcc_cv_as_nsubspa_comdat=yes
21607 fi
21608   elif test x$gcc_cv_as != x; then
21609     echo '      .SPACE $TEXT$
21610         .NSUBSPA $CODE$,COMDAT' > conftest.s
21611     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21612   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21613   (eval $ac_try) 2>&5
21614   ac_status=$?
21615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21616   test $ac_status = 0; }; }
21617     then
21618         gcc_cv_as_nsubspa_comdat=yes
21619     else
21620       echo "configure: failed program was" >&5
21621       cat conftest.s >&5
21622     fi
21623     rm -f conftest.o conftest.s
21624   fi
21625 fi
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21627 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21628 if test $gcc_cv_as_nsubspa_comdat = yes; then
21629
21630 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21631
21632 fi
21633
21634 # .hidden needs to be supported in both the assembler and the linker,
21635 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21636 # This is irritatingly difficult to feature test for; we have to check the
21637 # date string after the version number.  If we've got an in-tree
21638 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21639 # to be safe.
21640 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21642 $as_echo_n "checking assembler for .hidden... " >&6; }
21643 if test "${gcc_cv_as_hidden+set}" = set; then :
21644   $as_echo_n "(cached) " >&6
21645 else
21646   gcc_cv_as_hidden=no
21647     if test $in_tree_gas = yes; then
21648     if test $in_tree_gas_is_elf = yes \
21649   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21650   then gcc_cv_as_hidden=yes
21651 fi
21652   elif test x$gcc_cv_as != x; then
21653     echo '      .hidden foobar
21654 foobar:' > conftest.s
21655     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21656   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21657   (eval $ac_try) 2>&5
21658   ac_status=$?
21659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21660   test $ac_status = 0; }; }
21661     then
21662
21663 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21664 # STV_HIDDEN, so disable .hidden support if so.
21665 case "${target}" in
21666   i?86-*-solaris2*)
21667     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21668       cat > conftest.s <<EOF
21669 .globl hidden
21670         .hidden hidden
21671 hidden:
21672 .globl default
21673         .set    default,hidden
21674 EOF
21675       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21676         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21677         grep '\.hidden default' > /dev/null; then
21678         gcc_cv_as_hidden=no
21679       else
21680         gcc_cv_as_hidden=yes
21681       fi
21682     else
21683       # Assume bug is present if objdump is missing.
21684       gcc_cv_as_hidden=no
21685     fi
21686     ;;
21687   *)
21688     gcc_cv_as_hidden=yes
21689     ;;
21690 esac
21691     else
21692       echo "configure: failed program was" >&5
21693       cat conftest.s >&5
21694     fi
21695     rm -f conftest.o conftest.s
21696   fi
21697 fi
21698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21699 $as_echo "$gcc_cv_as_hidden" >&6; }
21700
21701
21702 # gnu_indirect_function type is an extension proposed at
21703 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21704 # selection of function implementation
21705 # Check whether --enable-gnu-indirect-function was given.
21706 if test "${enable_gnu_indirect_function+set}" = set; then :
21707   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21708     yes | no) ;;
21709     *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21710 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21711   esac
21712 else
21713   enable_gnu_indirect_function="$default_gnu_indirect_function"
21714 fi
21715
21716 if test x$enable_gnu_indirect_function = xyes; then
21717
21718 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
21719
21720 fi
21721
21722 if test $in_tree_ld != yes ; then
21723   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21724   if test x"$ld_is_gold" = xyes; then
21725     gcc_cv_ld_hidden=yes
21726   elif echo "$ld_ver" | grep GNU > /dev/null; then
21727     ld_vers=`echo $ld_ver | sed -n \
21728         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21729     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'`
21730     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21731     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21732     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21733   else
21734     case "${target}" in
21735       *-*-solaris2*)
21736         #
21737         # Solaris 2 ld -V output looks like this for a regular version:
21738         #
21739         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21740         #
21741         # but test versions add stuff at the end:
21742         #
21743         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21744         #
21745         ld_ver=`$gcc_cv_ld -V 2>&1`
21746         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21747           ld_vers=`echo $ld_ver | sed -n \
21748             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21749           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21750           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21751         fi
21752         ;;
21753     esac
21754   fi
21755 fi
21756
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21758 $as_echo_n "checking linker for .hidden support... " >&6; }
21759 if test "${gcc_cv_ld_hidden+set}" = set; then :
21760   $as_echo_n "(cached) " >&6
21761 else
21762   if test $in_tree_ld = yes ; then
21763   gcc_cv_ld_hidden=no
21764   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 \
21765      && test $in_tree_ld_is_elf = yes; then
21766      gcc_cv_ld_hidden=yes
21767   fi
21768 else
21769   gcc_cv_ld_hidden=yes
21770   if echo "$ld_ver" | grep GNU > /dev/null; then
21771     if test 0"$ld_date" -lt 20020404; then
21772       if test -n "$ld_date"; then
21773         # If there was date string, but was earlier than 2002-04-04, fail
21774         gcc_cv_ld_hidden=no
21775       elif test -z "$ld_vers"; then
21776         # If there was no date string nor ld version number, something is wrong
21777         gcc_cv_ld_hidden=no
21778       else
21779         test -z "$ld_vers_patch" && ld_vers_patch=0
21780         if test "$ld_vers_major" -lt 2; then
21781           gcc_cv_ld_hidden=no
21782         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21783           gcc_cv_ld_hidden="no"
21784         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21785           gcc_cv_ld_hidden=no
21786         fi
21787       fi
21788     fi
21789   else
21790     case "${target}" in
21791       hppa64*-*-hpux* | ia64*-*-hpux*)
21792         gcc_cv_ld_hidden=yes
21793         ;;
21794       *-*-solaris2.8*)
21795         # .hidden support was backported to Solaris 8, starting with ld
21796         # version 1.276.
21797         if test "$ld_vers_minor" -ge 276; then
21798           gcc_cv_ld_hidden=yes
21799         else
21800           gcc_cv_ld_hidden=no
21801         fi
21802         ;;
21803       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21804         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21805         # .symbolic was only added in Solaris 9 12/02.
21806         gcc_cv_ld_hidden=yes
21807         ;;
21808       *)
21809         gcc_cv_ld_hidden=no
21810         ;;
21811     esac
21812   fi
21813 fi
21814 fi
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21816 $as_echo "$gcc_cv_ld_hidden" >&6; }
21817 libgcc_visibility=no
21818
21819
21820 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21821   libgcc_visibility=yes
21822
21823 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21824
21825 fi
21826
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21828 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21829 gcc_cv_ld_ro_rw_mix=unknown
21830 if test $in_tree_ld = yes ; then
21831   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 \
21832      && test $in_tree_ld_is_elf = yes; then
21833     gcc_cv_ld_ro_rw_mix=read-write
21834   fi
21835 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21836   echo '.section myfoosect, "a"' > conftest1.s
21837   echo '.section myfoosect, "aw"' > conftest2.s
21838   echo '.byte 1' >> conftest2.s
21839   echo '.section myfoosect, "a"' > conftest3.s
21840   echo '.byte 0' >> conftest3.s
21841   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21842      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21843      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21844      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21845         conftest2.o conftest3.o > /dev/null 2>&1; then
21846     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21847                          | sed -e '/myfoosect/!d' -e N`
21848     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21849       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21850         gcc_cv_ld_ro_rw_mix=read-only
21851       else
21852         gcc_cv_ld_ro_rw_mix=read-write
21853       fi
21854     fi
21855   fi
21856   rm -f conftest.* conftest[123].*
21857 fi
21858 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21859
21860 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21861
21862 fi
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21864 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21865
21866 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21868 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21869 if test "${gcc_cv_as_leb128+set}" = set; then :
21870   $as_echo_n "(cached) " >&6
21871 else
21872   gcc_cv_as_leb128=no
21873     if test $in_tree_gas = yes; then
21874     if test $in_tree_gas_is_elf = yes \
21875   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21876   then gcc_cv_as_leb128=yes
21877 fi
21878   elif test x$gcc_cv_as != x; then
21879     echo '      .data
21880         .uleb128 L2 - L1
21881 L1:
21882         .uleb128 1280
21883         .sleb128 -1010
21884 L2:' > conftest.s
21885     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21886   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21887   (eval $ac_try) 2>&5
21888   ac_status=$?
21889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21890   test $ac_status = 0; }; }
21891     then
21892         # GAS versions before 2.11 do not support uleb128,
21893   # despite appearing to.
21894   # ??? There exists an elf-specific test that will crash
21895   # the assembler.  Perhaps it's better to figure out whether
21896   # arbitrary sections are supported and try the test.
21897   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21898   if echo "$as_ver" | grep GNU > /dev/null; then
21899     as_vers=`echo $as_ver | sed -n \
21900         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21901     as_major=`expr "$as_vers" : '\([0-9]*\)'`
21902     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21903     if test $as_major -eq 2 && test $as_minor -lt 11
21904     then :
21905     else gcc_cv_as_leb128=yes
21906     fi
21907   fi
21908     else
21909       echo "configure: failed program was" >&5
21910       cat conftest.s >&5
21911     fi
21912     rm -f conftest.o conftest.s
21913   fi
21914 fi
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21916 $as_echo "$gcc_cv_as_leb128" >&6; }
21917 if test $gcc_cv_as_leb128 = yes; then
21918
21919 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21920
21921 fi
21922
21923 # Check if we have assembler support for unwind directives.
21924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21925 $as_echo_n "checking assembler for cfi directives... " >&6; }
21926 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21927   $as_echo_n "(cached) " >&6
21928 else
21929   gcc_cv_as_cfi_directive=no
21930   if test x$gcc_cv_as != x; then
21931     echo '      .text
21932         .cfi_startproc
21933         .cfi_offset 0, 0
21934         .cfi_same_value 1
21935         .cfi_def_cfa 1, 2
21936         .cfi_escape 1, 2, 3, 4, 5
21937         .cfi_endproc' > conftest.s
21938     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21939   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21940   (eval $ac_try) 2>&5
21941   ac_status=$?
21942   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21943   test $ac_status = 0; }; }
21944     then
21945         case "$target" in
21946   *-*-solaris*)
21947     # If the linker used on Solaris (like Sun ld) isn't capable of merging
21948     # read-only and read-write sections, we need to make sure that the
21949     # assembler used emits read-write .eh_frame sections.
21950     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21951       if test "x$gcc_cv_objdump" != x; then
21952         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21953                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21954           gcc_cv_as_cfi_directive=no
21955         else
21956           case "$target" in
21957             i?86-*-solaris2.1[0-9]*)
21958               # On Solaris/x86, make sure that GCC and gas agree on using
21959               # read-only .eh_frame sections for 64-bit.
21960               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21961                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21962                         sed -e /.eh_frame/!d -e N | \
21963                         grep READONLY > /dev/null; then
21964                 gcc_cv_as_cfi_directive=yes
21965               else
21966                 gcc_cv_as_cfi_directive=no
21967               fi
21968               ;;
21969             *)
21970               gcc_cv_as_cfi_directive=yes
21971               ;;
21972           esac
21973         fi
21974       else
21975         # no objdump, err on the side of caution
21976         gcc_cv_as_cfi_directive=no
21977       fi
21978     else
21979       gcc_cv_as_cfi_directive=yes
21980     fi
21981     ;;
21982   *-*-*)
21983     gcc_cv_as_cfi_directive=yes
21984     ;;
21985 esac
21986     else
21987       echo "configure: failed program was" >&5
21988       cat conftest.s >&5
21989     fi
21990     rm -f conftest.o conftest.s
21991   fi
21992 fi
21993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21994 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21995
21996 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
21997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21998 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21999 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22000   $as_echo_n "(cached) " >&6
22001 else
22002   gcc_cv_as_cfi_advance_working=no
22003   if test x$gcc_cv_as != x; then
22004     echo '      .text
22005         .cfi_startproc
22006         .cfi_adjust_cfa_offset 64
22007         .skip 75040, 0
22008         .cfi_adjust_cfa_offset 128
22009         .cfi_endproc' > conftest.s
22010     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22011   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22012   (eval $ac_try) 2>&5
22013   ac_status=$?
22014   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22015   test $ac_status = 0; }; }
22016     then
22017
22018 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22019     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
22020    gcc_cv_as_cfi_advance_working=yes
22021 fi
22022
22023     else
22024       echo "configure: failed program was" >&5
22025       cat conftest.s >&5
22026     fi
22027     rm -f conftest.o conftest.s
22028   fi
22029 fi
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22031 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22032
22033 else
22034   # no objdump, err on the side of caution
22035   gcc_cv_as_cfi_advance_working=no
22036 fi
22037
22038
22039 cat >>confdefs.h <<_ACEOF
22040 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22041        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22042 _ACEOF
22043
22044
22045
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22047 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22048 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22049   $as_echo_n "(cached) " >&6
22050 else
22051   gcc_cv_as_cfi_personality_directive=no
22052   if test x$gcc_cv_as != x; then
22053     echo '      .text
22054         .cfi_startproc
22055         .cfi_personality 0, symbol
22056         .cfi_endproc' > conftest.s
22057     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22058   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22059   (eval $ac_try) 2>&5
22060   ac_status=$?
22061   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22062   test $ac_status = 0; }; }
22063     then
22064         gcc_cv_as_cfi_personality_directive=yes
22065     else
22066       echo "configure: failed program was" >&5
22067       cat conftest.s >&5
22068     fi
22069     rm -f conftest.o conftest.s
22070   fi
22071 fi
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22073 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22074
22075
22076 cat >>confdefs.h <<_ACEOF
22077 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22078     then echo 1; else echo 0; fi`
22079 _ACEOF
22080
22081
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22083 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22084 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22085   $as_echo_n "(cached) " >&6
22086 else
22087   gcc_cv_as_cfi_sections_directive=no
22088   if test x$gcc_cv_as != x; then
22089     echo '      .text
22090         .cfi_sections .debug_frame, .eh_frame
22091         .cfi_startproc
22092         .cfi_endproc' > conftest.s
22093     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22094   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22095   (eval $ac_try) 2>&5
22096   ac_status=$?
22097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22098   test $ac_status = 0; }; }
22099     then
22100         case $target_os in
22101   win32 | pe | cygwin* | mingw32* | uwin*)
22102     # Need to check that we generated the correct relocation for the
22103     # .debug_frame section.  This was fixed for binutils 2.21.
22104     gcc_cv_as_cfi_sections_directive=no
22105     if test "x$gcc_cv_objdump" != x; then
22106      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22107         grep secrel > /dev/null; then
22108       gcc_cv_as_cfi_sections_directive=yes
22109      fi
22110     fi
22111     ;;
22112   *)
22113     gcc_cv_as_cfi_sections_directive=yes
22114     ;;
22115 esac
22116     else
22117       echo "configure: failed program was" >&5
22118       cat conftest.s >&5
22119     fi
22120     rm -f conftest.o conftest.s
22121   fi
22122 fi
22123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22124 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22125
22126
22127
22128 cat >>confdefs.h <<_ACEOF
22129 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22130     then echo 1; else echo 0; fi`
22131 _ACEOF
22132
22133
22134 # GAS versions up to and including 2.11.0 may mis-optimize
22135 # .eh_frame data.
22136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22137 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22138 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22139   $as_echo_n "(cached) " >&6
22140 else
22141   gcc_cv_as_eh_frame=no
22142     if test $in_tree_gas = yes; then
22143     if test $in_tree_gas_is_elf = yes \
22144   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22145   then gcc_cv_as_eh_frame=yes
22146 fi
22147   elif test x$gcc_cv_as != x; then
22148     echo '      .text
22149 .LFB1:
22150         .4byte  0
22151 .L1:
22152         .4byte  0
22153 .LFE1:
22154         .section        .eh_frame,"aw",@progbits
22155 __FRAME_BEGIN__:
22156         .4byte  .LECIE1-.LSCIE1
22157 .LSCIE1:
22158         .4byte  0x0
22159         .byte   0x1
22160         .ascii "z\0"
22161         .byte   0x1
22162         .byte   0x78
22163         .byte   0x1a
22164         .byte   0x0
22165         .byte   0x4
22166         .4byte  1
22167         .p2align 1
22168 .LECIE1:
22169 .LSFDE1:
22170         .4byte  .LEFDE1-.LASFDE1
22171 .LASFDE1:
22172         .4byte  .LASFDE1-__FRAME_BEGIN__
22173         .4byte  .LFB1
22174         .4byte  .LFE1-.LFB1
22175         .byte   0x4
22176         .4byte  .LFE1-.LFB1
22177         .byte   0x4
22178         .4byte  .L1-.LFB1
22179 .LEFDE1:' > conftest.s
22180     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22181   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22182   (eval $ac_try) 2>&5
22183   ac_status=$?
22184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22185   test $ac_status = 0; }; }
22186     then
22187           cat > conftest.lit <<EOF
22188  0000 10000000 00000000 017a0001 781a0004  .........z..x...
22189  0010 01000000 12000000 18000000 00000000  ................
22190  0020 08000000 04080000 0044               .........D      
22191 EOF
22192 cat > conftest.big <<EOF
22193  0000 00000010 00000000 017a0001 781a0004  .........z..x...
22194  0010 00000001 00000012 00000018 00000000  ................
22195  0020 00000008 04000000 0844               .........D      
22196 EOF
22197   # If the assembler didn't choke, and we can objdump,
22198   # and we got the correct data, then succeed.
22199   # The text in the here-document typically retains its unix-style line
22200   # endings, while the output of objdump will use host line endings.
22201   # Therefore, use diff -b for the comparisons.
22202   if test x$gcc_cv_objdump != x \
22203   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22204      | tail -3 > conftest.got \
22205   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22206     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22207   then
22208     gcc_cv_as_eh_frame=yes
22209   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22210   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22211   (eval $ac_try) 2>&5
22212   ac_status=$?
22213   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22214   test $ac_status = 0; }; }; then
22215     gcc_cv_as_eh_frame=buggy
22216   else
22217     # Uh oh, what do we do now?
22218     gcc_cv_as_eh_frame=no
22219   fi
22220     else
22221       echo "configure: failed program was" >&5
22222       cat conftest.s >&5
22223     fi
22224     rm -f conftest.o conftest.s
22225   fi
22226 fi
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22228 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22229
22230
22231 if test $gcc_cv_as_eh_frame = buggy; then
22232
22233 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22234
22235 fi
22236
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22238 $as_echo_n "checking assembler for section merging support... " >&6; }
22239 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22240   $as_echo_n "(cached) " >&6
22241 else
22242   gcc_cv_as_shf_merge=no
22243     if test $in_tree_gas = yes; then
22244     if test $in_tree_gas_is_elf = yes \
22245   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22246   then gcc_cv_as_shf_merge=yes
22247 fi
22248   elif test x$gcc_cv_as != x; then
22249     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22250     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22251   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22252   (eval $ac_try) 2>&5
22253   ac_status=$?
22254   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22255   test $ac_status = 0; }; }
22256     then
22257         gcc_cv_as_shf_merge=yes
22258     else
22259       echo "configure: failed program was" >&5
22260       cat conftest.s >&5
22261     fi
22262     rm -f conftest.o conftest.s
22263   fi
22264 fi
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22266 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22267
22268 if test $gcc_cv_as_shf_merge = no; then
22269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22270 $as_echo_n "checking assembler for section merging support... " >&6; }
22271 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22272   $as_echo_n "(cached) " >&6
22273 else
22274   gcc_cv_as_shf_merge=no
22275     if test $in_tree_gas = yes; then
22276     if test $in_tree_gas_is_elf = yes \
22277   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22278   then gcc_cv_as_shf_merge=yes
22279 fi
22280   elif test x$gcc_cv_as != x; then
22281     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22282     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22283   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22284   (eval $ac_try) 2>&5
22285   ac_status=$?
22286   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22287   test $ac_status = 0; }; }
22288     then
22289         gcc_cv_as_shf_merge=yes
22290     else
22291       echo "configure: failed program was" >&5
22292       cat conftest.s >&5
22293     fi
22294     rm -f conftest.o conftest.s
22295   fi
22296 fi
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22298 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22299
22300 fi
22301
22302 cat >>confdefs.h <<_ACEOF
22303 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22304 _ACEOF
22305
22306
22307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22308 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22309 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22310   $as_echo_n "(cached) " >&6
22311 else
22312   gcc_cv_as_comdat_group=no
22313     if test $in_tree_gas = yes; then
22314     if test $in_tree_gas_is_elf = yes \
22315   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22316   then gcc_cv_as_comdat_group=yes
22317 fi
22318   elif test x$gcc_cv_as != x; then
22319     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22320     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22321   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22322   (eval $ac_try) 2>&5
22323   ac_status=$?
22324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22325   test $ac_status = 0; }; }
22326     then
22327         gcc_cv_as_comdat_group=yes
22328     else
22329       echo "configure: failed program was" >&5
22330       cat conftest.s >&5
22331     fi
22332     rm -f conftest.o conftest.s
22333   fi
22334 fi
22335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22336 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22337
22338 if test $gcc_cv_as_comdat_group = yes; then
22339   gcc_cv_as_comdat_group_percent=no
22340 else
22341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22342 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22343 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22344   $as_echo_n "(cached) " >&6
22345 else
22346   gcc_cv_as_comdat_group_percent=no
22347     if test $in_tree_gas = yes; then
22348     if test $in_tree_gas_is_elf = yes \
22349   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22350   then gcc_cv_as_comdat_group_percent=yes
22351 fi
22352   elif test x$gcc_cv_as != x; then
22353     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22354     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22355   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22356   (eval $ac_try) 2>&5
22357   ac_status=$?
22358   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22359   test $ac_status = 0; }; }
22360     then
22361         gcc_cv_as_comdat_group_percent=yes
22362     else
22363       echo "configure: failed program was" >&5
22364       cat conftest.s >&5
22365     fi
22366     rm -f conftest.o conftest.s
22367   fi
22368 fi
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22370 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22371
22372 fi
22373 if test x"$ld_is_gold" = xyes; then
22374   comdat_group=yes
22375 elif test $in_tree_ld = yes ; then
22376   comdat_group=no
22377   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 \
22378      && test $in_tree_ld_is_elf = yes; then
22379      comdat_group=yes
22380   fi
22381 elif echo "$ld_ver" | grep GNU > /dev/null; then
22382   comdat_group=yes
22383   if test 0"$ld_date" -lt 20050308; then
22384     if test -n "$ld_date"; then
22385       # If there was date string, but was earlier than 2005-03-08, fail
22386       comdat_group=no
22387     elif test "$ld_vers_major" -lt 2; then
22388       comdat_group=no
22389     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22390       comdat_group=no
22391     fi
22392   fi
22393 else
22394   case "${target}" in
22395     *-*-solaris2.1[1-9]*)
22396       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22397       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22398       # version 1.688.
22399       #
22400       # FIXME: Maybe need to refine later when COMDAT group support with
22401       # Sun as is implemented.
22402       if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
22403         comdat_group=yes
22404       else
22405         comdat_group=no
22406       fi
22407       ;;
22408     *)
22409       # Assume linkers other than GNU ld don't support COMDAT group.
22410       comdat_group=no
22411       ;;
22412   esac
22413 fi
22414 # Allow overriding the automatic COMDAT group tests above.
22415 # Check whether --enable-comdat was given.
22416 if test "${enable_comdat+set}" = set; then :
22417   enableval=$enable_comdat; comdat_group="$enable_comdat"
22418 fi
22419
22420 if test $comdat_group = no; then
22421   gcc_cv_as_comdat_group=no
22422   gcc_cv_as_comdat_group_percent=no
22423 fi
22424
22425 cat >>confdefs.h <<_ACEOF
22426 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
22427 _ACEOF
22428
22429
22430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22431 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22432 if test "${gcc_cv_as_discriminator+set}" = set; then :
22433   $as_echo_n "(cached) " >&6
22434 else
22435   gcc_cv_as_discriminator=no
22436     if test $in_tree_gas = yes; then
22437     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22438   then gcc_cv_as_discriminator=yes
22439 fi
22440   elif test x$gcc_cv_as != x; then
22441     echo '      .text
22442         .file 1 "conf.c"
22443         .loc 1 1 0 discriminator 1' > conftest.s
22444     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22445   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22446   (eval $ac_try) 2>&5
22447   ac_status=$?
22448   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22449   test $ac_status = 0; }; }
22450     then
22451         gcc_cv_as_discriminator=yes
22452     else
22453       echo "configure: failed program was" >&5
22454       cat conftest.s >&5
22455     fi
22456     rm -f conftest.o conftest.s
22457   fi
22458 fi
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22460 $as_echo "$gcc_cv_as_discriminator" >&6; }
22461 if test $gcc_cv_as_discriminator = yes; then
22462
22463 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22464
22465 fi
22466
22467 # Thread-local storage - the check is heavily parameterized.
22468 conftest_s=
22469 tls_first_major=
22470 tls_first_minor=
22471 tls_as_opt=
22472 case "$target" in
22473   alpha*-*-*)
22474     conftest_s='
22475         .section ".tdata","awT",@progbits
22476 foo:    .long   25
22477         .text
22478         ldq     $27,__tls_get_addr($29)         !literal!1
22479         lda     $16,foo($29)                    !tlsgd!1
22480         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
22481         ldq     $27,__tls_get_addr($29)         !literal!2
22482         lda     $16,foo($29)                    !tlsldm!2
22483         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
22484         ldq     $1,foo($29)                     !gotdtprel
22485         ldah    $2,foo($29)                     !dtprelhi
22486         lda     $3,foo($2)                      !dtprello
22487         lda     $4,foo($29)                     !dtprel
22488         ldq     $1,foo($29)                     !gottprel
22489         ldah    $2,foo($29)                     !tprelhi
22490         lda     $3,foo($2)                      !tprello
22491         lda     $4,foo($29)                     !tprel'
22492         tls_first_major=2
22493         tls_first_minor=13
22494         tls_as_opt=--fatal-warnings
22495         ;;
22496   cris-*-*|crisv32-*-*)
22497     conftest_s='
22498         .section ".tdata","awT",@progbits
22499 x:      .long   25
22500         .text
22501         move.d x:IE,$r10
22502         nop'
22503         tls_first_major=2
22504         tls_first_minor=20
22505         tls_as_opt=--fatal-warnings
22506         ;;
22507   frv*-*-*)
22508     conftest_s='
22509         .section ".tdata","awT",@progbits
22510 x:      .long   25
22511         .text
22512         call    #gettlsoff(x)'
22513         tls_first_major=2
22514         tls_first_minor=14
22515         ;;
22516   hppa*-*-linux*)
22517     conftest_s='
22518 t1:     .reg    %r20
22519 t2:     .reg    %r21
22520 gp:     .reg    %r19
22521         .section ".tdata","awT",@progbits
22522 foo:    .long   25
22523         .text
22524         .align  4
22525         addil LT%foo-$tls_gdidx$,gp
22526         ldo RT%foo-$tls_gdidx$(%r1),%arg0
22527         b __tls_get_addr
22528         nop
22529         addil LT%foo-$tls_ldidx$,gp
22530         b __tls_get_addr
22531         ldo RT%foo-$tls_ldidx$(%r1),%arg0
22532         addil LR%foo-$tls_dtpoff$,%ret0
22533         ldo RR%foo-$tls_dtpoff$(%r1),%t1
22534         mfctl %cr27,%t1
22535         addil LT%foo-$tls_ieoff$,gp
22536         ldw RT%foo-$tls_ieoff$(%r1),%t2
22537         add %t1,%t2,%t3
22538         mfctl %cr27,%t1
22539         addil LR%foo-$tls_leoff$,%t1
22540         ldo RR%foo-$tls_leoff$(%r1),%t2'
22541         tls_first_major=2
22542         tls_first_minor=15
22543         tls_as_opt=--fatal-warnings
22544         ;;
22545   arm*-*-*)
22546     conftest_s='
22547         .section ".tdata","awT",%progbits
22548 foo:    .long   25
22549         .text
22550 .word foo(gottpoff)
22551 .word foo(tpoff)
22552 .word foo(tlsgd)
22553 .word foo(tlsldm)
22554 .word foo(tlsldo)'
22555         tls_first_major=2
22556         tls_first_minor=17
22557         ;;
22558   i[34567]86-*-*)
22559     case "$target" in
22560       i[34567]86-*-solaris2.*)
22561         on_solaris=yes
22562         tga_func=___tls_get_addr
22563         ;;
22564       *)
22565         on_solaris=no
22566         ;;
22567     esac
22568     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22569       conftest_s='
22570         .section .tdata,"awt",@progbits'
22571       tls_first_major=0
22572       tls_first_minor=0
22573
22574 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22575
22576     else
22577       conftest_s='
22578         .section ".tdata","awT",@progbits'
22579       tls_first_major=2
22580       tls_first_minor=14
22581       tls_as_opt="--fatal-warnings"
22582     fi
22583     conftest_s="$conftest_s
22584 foo:    .long   25
22585         .text
22586         movl    %gs:0, %eax
22587         leal    foo@tlsgd(,%ebx,1), %eax
22588         leal    foo@tlsldm(%ebx), %eax
22589         leal    foo@dtpoff(%eax), %edx
22590         movl    foo@gottpoff(%ebx), %eax
22591         subl    foo@gottpoff(%ebx), %eax
22592         addl    foo@gotntpoff(%ebx), %eax
22593         movl    foo@indntpoff, %eax
22594         movl    \$foo@tpoff, %eax
22595         subl    \$foo@tpoff, %eax
22596         leal    foo@ntpoff(%ecx), %eax"
22597     ;;
22598   x86_64-*-*)
22599     conftest_s='
22600         .section ".tdata","awT",@progbits
22601 foo:    .long   25
22602         .text
22603         movq    %fs:0, %rax
22604         leaq    foo@TLSGD(%rip), %rdi
22605         leaq    foo@TLSLD(%rip), %rdi
22606         leaq    foo@DTPOFF(%rax), %rdx
22607         movq    foo@GOTTPOFF(%rip), %rax
22608         movq    $foo@TPOFF, %rax'
22609         tls_first_major=2
22610         tls_first_minor=14
22611         tls_as_opt=--fatal-warnings
22612         ;;
22613   ia64-*-*)
22614     conftest_s='
22615         .section ".tdata","awT",@progbits
22616 foo:    data8   25
22617         .text
22618         addl    r16 = @ltoff(@dtpmod(foo#)), gp
22619         addl    r17 = @ltoff(@dtprel(foo#)), gp
22620         addl    r18 = @ltoff(@tprel(foo#)), gp
22621         addl    r19 = @dtprel(foo#), gp
22622         adds    r21 = @dtprel(foo#), r13
22623         movl    r23 = @dtprel(foo#)
22624         addl    r20 = @tprel(foo#), gp
22625         adds    r22 = @tprel(foo#), r13
22626         movl    r24 = @tprel(foo#)'
22627         tls_first_major=2
22628         tls_first_minor=13
22629         tls_as_opt=--fatal-warnings
22630         ;;
22631   mips*-*-*)
22632     conftest_s='
22633         .section .tdata,"awT",@progbits
22634 x:
22635         .word 2
22636         .text
22637         addiu $4, $28, %tlsgd(x)
22638         addiu $4, $28, %tlsldm(x)
22639         lui $4, %dtprel_hi(x)
22640         addiu $4, $4, %dtprel_lo(x)
22641         lw $4, %gottprel(x)($28)
22642         lui $4, %tprel_hi(x)
22643         addiu $4, $4, %tprel_lo(x)'
22644         tls_first_major=2
22645         tls_first_minor=16
22646         tls_as_opt='-32 --fatal-warnings'
22647         ;;
22648   m68k-*-*)
22649     conftest_s='
22650         .section .tdata,"awT",@progbits
22651 x:
22652         .word 2
22653         .text
22654 foo:
22655         move.l x@TLSGD(%a5),%a0
22656         move.l x@TLSLDM(%a5),%a0
22657         move.l x@TLSLDO(%a5),%a0
22658         move.l x@TLSIE(%a5),%a0
22659         move.l x@TLSLE(%a5),%a0'
22660         tls_first_major=2
22661         tls_first_minor=19
22662         tls_as_opt='--fatal-warnings'
22663         ;;
22664   powerpc-*-*)
22665     conftest_s='
22666         .section ".tdata","awT",@progbits
22667         .align 2
22668 ld0:    .space 4
22669 ld1:    .space 4
22670 x1:     .space 4
22671 x2:     .space 4
22672 x3:     .space 4
22673         .text
22674         addi 3,31,ld0@got@tlsgd
22675         bl __tls_get_addr
22676         addi 3,31,x1@got@tlsld
22677         bl __tls_get_addr
22678         addi 9,3,x1@dtprel
22679         addis 9,3,x2@dtprel@ha
22680         addi 9,9,x2@dtprel@l
22681         lwz 9,x3@got@tprel(31)
22682         add 9,9,x@tls
22683         addi 9,2,x1@tprel
22684         addis 9,2,x2@tprel@ha
22685         addi 9,9,x2@tprel@l'
22686         tls_first_major=2
22687         tls_first_minor=14
22688         tls_as_opt="-a32 --fatal-warnings"
22689         ;;
22690   powerpc64-*-*)
22691     conftest_s='
22692         .section ".tdata","awT",@progbits
22693         .align 3
22694 ld0:    .space 8
22695 ld1:    .space 8
22696 x1:     .space 8
22697 x2:     .space 8
22698 x3:     .space 8
22699         .text
22700         addi 3,2,ld0@got@tlsgd
22701         bl .__tls_get_addr
22702         nop
22703         addi 3,2,ld1@toc
22704         bl .__tls_get_addr
22705         nop
22706         addi 3,2,x1@got@tlsld
22707         bl .__tls_get_addr
22708         nop
22709         addi 9,3,x1@dtprel
22710         bl .__tls_get_addr
22711         nop
22712         addis 9,3,x2@dtprel@ha
22713         addi 9,9,x2@dtprel@l
22714         bl .__tls_get_addr
22715         nop
22716         ld 9,x3@got@dtprel(2)
22717         add 9,9,3
22718         bl .__tls_get_addr
22719         nop'
22720         tls_first_major=2
22721         tls_first_minor=14
22722         tls_as_opt="-a64 --fatal-warnings"
22723         ;;
22724   s390-*-*)
22725     conftest_s='
22726         .section ".tdata","awT",@progbits
22727 foo:    .long   25
22728         .text
22729         .long   foo@TLSGD
22730         .long   foo@TLSLDM
22731         .long   foo@DTPOFF
22732         .long   foo@NTPOFF
22733         .long   foo@GOTNTPOFF
22734         .long   foo@INDNTPOFF
22735         l       %r1,foo@GOTNTPOFF(%r12)
22736         l       %r1,0(%r1):tls_load:foo
22737         bas     %r14,0(%r1,%r13):tls_gdcall:foo
22738         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
22739         tls_first_major=2
22740         tls_first_minor=14
22741         tls_as_opt="-m31 --fatal-warnings"
22742         ;;
22743   s390x-*-*)
22744     conftest_s='
22745         .section ".tdata","awT",@progbits
22746 foo:    .long   25
22747         .text
22748         .quad   foo@TLSGD
22749         .quad   foo@TLSLDM
22750         .quad   foo@DTPOFF
22751         .quad   foo@NTPOFF
22752         .quad   foo@GOTNTPOFF
22753         lg      %r1,foo@GOTNTPOFF(%r12)
22754         larl    %r1,foo@INDNTPOFF
22755         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
22756         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22757         tls_first_major=2
22758         tls_first_minor=14
22759         tls_as_opt="-m64 -Aesame --fatal-warnings"
22760         ;;
22761   sh-*-* | sh[34]-*-*)
22762     conftest_s='
22763         .section ".tdata","awT",@progbits
22764 foo:    .long   25
22765         .text
22766         .long   foo@TLSGD
22767         .long   foo@TLSLDM
22768         .long   foo@DTPOFF
22769         .long   foo@GOTTPOFF
22770         .long   foo@TPOFF'
22771         tls_first_major=2
22772         tls_first_minor=13
22773         tls_as_opt=--fatal-warnings
22774         ;;
22775   sparc*-*-*)
22776     case "$target" in
22777       sparc*-sun-solaris2.*)
22778         on_solaris=yes
22779         tga_func=__tls_get_addr
22780         ;;
22781       *)
22782         on_solaris=no
22783         ;;
22784     esac
22785     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22786       conftest_s='
22787         .section ".tdata",#alloc,#write,#tls'
22788         tls_first_major=0
22789         tls_first_minor=0
22790     else
22791       conftest_s='
22792         .section ".tdata","awT",@progbits'
22793         tls_first_major=2
22794         tls_first_minor=14
22795         tls_as_opt="-32 --fatal-warnings"
22796     fi
22797     conftest_s="$conftest_s
22798 foo:    .long   25
22799         .text
22800         sethi   %tgd_hi22(foo), %o0
22801         add     %o0, %tgd_lo10(foo), %o1
22802         add     %l7, %o1, %o0, %tgd_add(foo)
22803         call    __tls_get_addr, %tgd_call(foo)
22804         sethi   %tldm_hi22(foo), %l1
22805         add     %l1, %tldm_lo10(foo), %l2
22806         add     %l7, %l2, %o0, %tldm_add(foo)
22807         call    __tls_get_addr, %tldm_call(foo)
22808         sethi   %tldo_hix22(foo), %l3
22809         xor     %l3, %tldo_lox10(foo), %l4
22810         add     %o0, %l4, %l5, %tldo_add(foo)
22811         sethi   %tie_hi22(foo), %o3
22812         add     %o3, %tie_lo10(foo), %o3
22813         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22814         add     %g7, %o2, %o4, %tie_add(foo)
22815         sethi   %tle_hix22(foo), %l1
22816         xor     %l1, %tle_lox10(foo), %o5
22817         ld      [%g7 + %o5], %o1"
22818         ;;
22819   xtensa*-*-*)
22820     conftest_s='
22821         .section ".tdata","awT",@progbits
22822 foo:    .long   25
22823         .text
22824         movi    a8, foo@TLSFUNC
22825         movi    a10, foo@TLSARG
22826         callx8.tls a8, foo@TLSCALL'
22827         tls_first_major=2
22828         tls_first_minor=19
22829         ;;
22830 esac
22831 set_have_as_tls=no
22832 if test "x$enable_tls" = xno ; then
22833   : # TLS explicitly disabled.
22834 elif test "x$enable_tls" = xyes ; then
22835   set_have_as_tls=yes # TLS explicitly enabled.
22836 elif test -z "$tls_first_major"; then
22837   : # If we don't have a check, assume no support.
22838 else
22839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22840 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22841 if test "${gcc_cv_as_tls+set}" = set; then :
22842   $as_echo_n "(cached) " >&6
22843 else
22844   gcc_cv_as_tls=no
22845     if test $in_tree_gas = yes; then
22846     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22847   then gcc_cv_as_tls=yes
22848 fi
22849   elif test x$gcc_cv_as != x; then
22850     echo "$conftest_s" > conftest.s
22851     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22852   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22853   (eval $ac_try) 2>&5
22854   ac_status=$?
22855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22856   test $ac_status = 0; }; }
22857     then
22858         gcc_cv_as_tls=yes
22859     else
22860       echo "configure: failed program was" >&5
22861       cat conftest.s >&5
22862     fi
22863     rm -f conftest.o conftest.s
22864   fi
22865 fi
22866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22867 $as_echo "$gcc_cv_as_tls" >&6; }
22868 if test $gcc_cv_as_tls = yes; then
22869   set_have_as_tls=yes
22870 fi
22871 fi
22872 case "$target" in
22873   *-*-irix6*)
22874     # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
22875     # with TLS support are in use, native TLS cannot work.
22876     set_have_as_tls=no
22877     ;;
22878   *-*-osf*)
22879     # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
22880     # gld with TLS support are in use, native TLS cannot work.
22881     set_have_as_tls=no
22882     ;;
22883   # TLS was introduced in the Solaris 9 FCS release and backported to
22884   # Solaris 8 patches.  Support for GNU-style TLS on x86 was only
22885   # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22886   # ld and GCC don't support any longer.
22887   *-*-solaris2.*)
22888     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22889 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22890     ld_tls_support=no
22891     # Check ld and ld.so.1 TLS support.
22892     if echo "$ld_ver" | grep GNU > /dev/null; then
22893       # Assume all interesting versions of GNU ld have TLS support.
22894       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22895       ld_tls_support=yes
22896     else
22897       case "$target" in
22898         # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22899         i?86-*-solaris2.8)
22900           min_tls_ld_vers_minor=280
22901           ;;
22902         # Solaris 8/SPARC ld has TLS support since version 1.272.
22903         sparc*-*-solaris2.8)
22904           min_tls_ld_vers_minor=272
22905           ;;
22906         # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22907         i?86-*-solaris2.9)
22908           min_tls_ld_vers_minor=374
22909           ;;
22910         # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22911         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
22912           min_tls_ld_vers_minor=343
22913           ;;
22914       esac
22915       if test "$ld_vers_major" -gt 1 || \
22916         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
22917         ld_tls_support=yes
22918       else
22919         set_have_as_tls=no
22920       fi
22921     fi
22922     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
22923 $as_echo "$ld_tls_support" >&6; }
22924
22925     save_LIBS="$LIBS"
22926     save_LDFLAGS="$LDFLAGS"
22927     LIBS=
22928     LDFLAGS=
22929
22930     { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
22931 $as_echo_n "checking alternate thread library... " >&6; }
22932     case "$target" in
22933       # TLS support was backported to Solaris 8 patches, but only lives in
22934       # the alternate thread library which became the default in Solaris 9.
22935       # We want to always use that, irrespective of TLS support.
22936       *-*-solaris2.8)
22937         # Take multilib subdir into account.  There's no spec to handle
22938         # this.  The 64 symlink exists since Solaris 8.
22939         lwp_dir=/usr/lib/lwp
22940         lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
22941         LDFLAGS="-L$lwp_dir -R$lwp_dir"
22942         ;;
22943       *-*-solaris2*)
22944         lwp_dir="none"
22945         lwp_spec=""
22946         ;;
22947     esac
22948     # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
22949
22950 cat >>confdefs.h <<_ACEOF
22951 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
22952 _ACEOF
22953
22954     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
22955 $as_echo "$lwp_dir" >&6; }
22956
22957     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
22958 $as_echo_n "checking library containing $tga_func... " >&6; }
22959     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
22960     # (32-bit x86) only lived in libthread, so check for that.  Keep
22961     # set_have_as_tls if found, disable if not.
22962     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
22964 $as_echo_n "checking for library containing $tga_func... " >&6; }
22965 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22966   $as_echo_n "(cached) " >&6
22967 else
22968   ac_func_search_save_LIBS=$LIBS
22969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22970 /* end confdefs.h.  */
22971
22972 /* Override any GCC internal prototype to avoid an error.
22973    Use char because int might match the return type of a GCC
22974    builtin and then its argument prototype would still apply.  */
22975 #ifdef __cplusplus
22976 extern "C"
22977 #endif
22978 char $tga_func ();
22979 int
22980 main ()
22981 {
22982 return $tga_func ();
22983   ;
22984   return 0;
22985 }
22986 _ACEOF
22987 for ac_lib in '' thread; do
22988   if test -z "$ac_lib"; then
22989     ac_res="none required"
22990   else
22991     ac_res=-l$ac_lib
22992     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22993   fi
22994   if ac_fn_c_try_link "$LINENO"; then :
22995   eval "$as_ac_Search=\$ac_res"
22996 fi
22997 rm -f core conftest.err conftest.$ac_objext \
22998     conftest$ac_exeext
22999   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23000   break
23001 fi
23002 done
23003 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23004
23005 else
23006   eval "$as_ac_Search=no"
23007 fi
23008 rm conftest.$ac_ext
23009 LIBS=$ac_func_search_save_LIBS
23010 fi
23011 eval ac_res=\$$as_ac_Search
23012                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23013 $as_echo "$ac_res" >&6; }
23014 eval ac_res=\$$as_ac_Search
23015 if test "$ac_res" != no; then :
23016   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23017
23018 else
23019   set_have_as_tls=no
23020 fi
23021
23022     # Clear LIBS if we cannot support TLS.
23023     if test $set_have_as_tls = no; then
23024       LIBS=
23025     fi
23026     # Always define LIB_TLS_SPEC, even without TLS support.
23027
23028 cat >>confdefs.h <<_ACEOF
23029 #define LIB_TLS_SPEC "$LIBS"
23030 _ACEOF
23031
23032     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23033 $as_echo "$LIBS" >&6; }
23034
23035     LIBS="$save_LIBS"
23036     LDFLAGS="$save_LDFLAGS"
23037     ;;
23038 esac
23039 if test $set_have_as_tls = yes ; then
23040
23041 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23042
23043 fi
23044
23045 # Target-specific assembler checks.
23046
23047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23048 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23049 gcc_cv_ld_static_dynamic=no
23050 if test $in_tree_ld = yes ; then
23051   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
23052     gcc_cv_ld_static_dynamic=yes
23053   fi
23054 elif test x$gcc_cv_ld != x; then
23055         # Check if linker supports -Bstatic/-Bdynamic option
23056         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23057           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23058                 gcc_cv_ld_static_dynamic=yes
23059         fi
23060 fi
23061 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23062
23063 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23064
23065 fi
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23067 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23068
23069 if test x"$demangler_in_ld" = xyes; then
23070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23071 $as_echo_n "checking linker --demangle support... " >&6; }
23072   gcc_cv_ld_demangle=no
23073   if test $in_tree_ld = yes; then
23074     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 \
23075       gcc_cv_ld_demangle=yes
23076     fi
23077   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23078     # Check if the GNU linker supports --demangle option
23079     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23080       gcc_cv_ld_demangle=yes
23081     fi
23082   fi
23083   if test x"$gcc_cv_ld_demangle" = xyes; then
23084
23085 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23086
23087   fi
23088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23089 $as_echo "$gcc_cv_ld_demangle" >&6; }
23090 fi
23091
23092 case "$target" in
23093   # All TARGET_ABI_OSF targets.
23094   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23095     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23096 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23097 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23098   $as_echo_n "(cached) " >&6
23099 else
23100   gcc_cv_as_alpha_explicit_relocs=no
23101     if test $in_tree_gas = yes; then
23102     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23103   then gcc_cv_as_alpha_explicit_relocs=yes
23104 fi
23105   elif test x$gcc_cv_as != x; then
23106     echo '      .set nomacro
23107         .text
23108         extbl   $3, $2, $3      !lituse_bytoff!1
23109         ldq     $2, a($29)      !literal!1
23110         ldq     $4, b($29)      !literal!2
23111         ldq_u   $3, 0($2)       !lituse_base!1
23112         ldq     $27, f($29)     !literal!5
23113         jsr     $26, ($27), f   !lituse_jsr!5
23114         ldah    $29, 0($26)     !gpdisp!3
23115         lda     $0, c($29)      !gprel
23116         ldah    $1, d($29)      !gprelhigh
23117         lda     $1, d($1)       !gprellow
23118         lda     $29, 0($29)     !gpdisp!3' > conftest.s
23119     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23120   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23121   (eval $ac_try) 2>&5
23122   ac_status=$?
23123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23124   test $ac_status = 0; }; }
23125     then
23126         gcc_cv_as_alpha_explicit_relocs=yes
23127     else
23128       echo "configure: failed program was" >&5
23129       cat conftest.s >&5
23130     fi
23131     rm -f conftest.o conftest.s
23132   fi
23133 fi
23134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23135 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23136 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23137
23138 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23139
23140 fi
23141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23142 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23143 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23144   $as_echo_n "(cached) " >&6
23145 else
23146   gcc_cv_as_alpha_jsrdirect_relocs=no
23147     if test $in_tree_gas = yes; then
23148     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23149   then gcc_cv_as_alpha_jsrdirect_relocs=yes
23150 fi
23151   elif test x$gcc_cv_as != x; then
23152     echo '      .set nomacro
23153         .text
23154         ldq     $27, a($29)     !literal!1
23155         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
23156     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23157   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23158   (eval $ac_try) 2>&5
23159   ac_status=$?
23160   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23161   test $ac_status = 0; }; }
23162     then
23163         gcc_cv_as_alpha_jsrdirect_relocs=yes
23164     else
23165       echo "configure: failed program was" >&5
23166       cat conftest.s >&5
23167     fi
23168     rm -f conftest.o conftest.s
23169   fi
23170 fi
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23172 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23173 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23174
23175 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23176
23177 fi
23178     ;;
23179
23180   cris-*-*)
23181     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23182 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23183 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23184   $as_echo_n "(cached) " >&6
23185 else
23186   gcc_cv_as_cris_no_mul_bug=no
23187     if test $in_tree_gas = yes; then
23188     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23189   then gcc_cv_as_cris_no_mul_bug=yes
23190 fi
23191   elif test x$gcc_cv_as != x; then
23192     echo '.text' > conftest.s
23193     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23194   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23195   (eval $ac_try) 2>&5
23196   ac_status=$?
23197   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23198   test $ac_status = 0; }; }
23199     then
23200         gcc_cv_as_cris_no_mul_bug=yes
23201     else
23202       echo "configure: failed program was" >&5
23203       cat conftest.s >&5
23204     fi
23205     rm -f conftest.o conftest.s
23206   fi
23207 fi
23208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23209 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23210 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23211
23212 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23213
23214 fi
23215     ;;
23216
23217   sparc*-*-*)
23218     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23219 $as_echo_n "checking assembler for .register... " >&6; }
23220 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23221   $as_echo_n "(cached) " >&6
23222 else
23223   gcc_cv_as_sparc_register_op=no
23224   if test x$gcc_cv_as != x; then
23225     echo '.register %g2, #scratch' > conftest.s
23226     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23227   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23228   (eval $ac_try) 2>&5
23229   ac_status=$?
23230   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23231   test $ac_status = 0; }; }
23232     then
23233         gcc_cv_as_sparc_register_op=yes
23234     else
23235       echo "configure: failed program was" >&5
23236       cat conftest.s >&5
23237     fi
23238     rm -f conftest.o conftest.s
23239   fi
23240 fi
23241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23242 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23243 if test $gcc_cv_as_sparc_register_op = yes; then
23244
23245 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23246
23247 fi
23248
23249     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23250 $as_echo_n "checking assembler for -relax option... " >&6; }
23251 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23252   $as_echo_n "(cached) " >&6
23253 else
23254   gcc_cv_as_sparc_relax=no
23255   if test x$gcc_cv_as != x; then
23256     echo '.text' > conftest.s
23257     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23258   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23259   (eval $ac_try) 2>&5
23260   ac_status=$?
23261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23262   test $ac_status = 0; }; }
23263     then
23264         gcc_cv_as_sparc_relax=yes
23265     else
23266       echo "configure: failed program was" >&5
23267       cat conftest.s >&5
23268     fi
23269     rm -f conftest.o conftest.s
23270   fi
23271 fi
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23273 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23274 if test $gcc_cv_as_sparc_relax = yes; then
23275
23276 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23277
23278 fi
23279
23280     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23281 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23282 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23283   $as_echo_n "(cached) " >&6
23284 else
23285   gcc_cv_as_sparc_gotdata_op=no
23286   if test x$gcc_cv_as != x; then
23287     echo '.text
23288 foo:
23289         nop
23290 bar:
23291         sethi %gdop_hix22(foo), %g1
23292         xor    %g1, %gdop_lox10(foo), %g1
23293         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23294     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23295   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23296   (eval $ac_try) 2>&5
23297   ac_status=$?
23298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23299   test $ac_status = 0; }; }
23300     then
23301         if test x$gcc_cv_ld != x \
23302        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23303          if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
23304            if test x$gcc_cv_objdump != x; then
23305              if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23306                 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23307                gcc_cv_as_sparc_gotdata_op=no
23308              else
23309                gcc_cv_as_sparc_gotdata_op=yes
23310              fi
23311            fi
23312          else
23313            gcc_cv_as_sparc_gotdata_op=yes
23314          fi
23315        fi
23316        rm -f conftest
23317     else
23318       echo "configure: failed program was" >&5
23319       cat conftest.s >&5
23320     fi
23321     rm -f conftest.o conftest.s
23322   fi
23323 fi
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23325 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23326 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23327
23328 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23329
23330 fi
23331
23332     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23333 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23334 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23335   $as_echo_n "(cached) " >&6
23336 else
23337   gcc_cv_as_sparc_ua_pcrel=no
23338   if test x$gcc_cv_as != x; then
23339     echo '.text
23340 foo:
23341         nop
23342 .data
23343 .align 4
23344 .byte 0
23345 .uaword %r_disp32(foo)' > conftest.s
23346     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23347   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23348   (eval $ac_try) 2>&5
23349   ac_status=$?
23350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23351   test $ac_status = 0; }; }
23352     then
23353         if test x$gcc_cv_ld != x \
23354        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23355          gcc_cv_as_sparc_ua_pcrel=yes
23356        fi
23357        rm -f conftest
23358     else
23359       echo "configure: failed program was" >&5
23360       cat conftest.s >&5
23361     fi
23362     rm -f conftest.o conftest.s
23363   fi
23364 fi
23365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23366 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23367 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23368
23369 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23370
23371
23372       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23373 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23374 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23375   $as_echo_n "(cached) " >&6
23376 else
23377   gcc_cv_as_sparc_ua_pcrel_hidden=no
23378   if test x$gcc_cv_as != x; then
23379     echo '.data
23380 .align 4
23381 .byte 0x31
23382 .uaword %r_disp32(foo)
23383 .byte 0x32, 0x33, 0x34
23384 .global foo
23385 .hidden foo
23386 foo:
23387 .skip 4' > conftest.s
23388     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23389   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23390   (eval $ac_try) 2>&5
23391   ac_status=$?
23392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23393   test $ac_status = 0; }; }
23394     then
23395         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23396          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23397          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23398             | grep ' 31000000 07323334' > /dev/null 2>&1; then
23399             if $gcc_cv_objdump -R conftest 2> /dev/null \
23400                | grep 'DISP32' > /dev/null 2>&1; then
23401                 :
23402             else
23403                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23404             fi
23405          fi
23406          rm -f conftest
23407     else
23408       echo "configure: failed program was" >&5
23409       cat conftest.s >&5
23410     fi
23411     rm -f conftest.o conftest.s
23412   fi
23413 fi
23414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23415 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23416 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23417
23418 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23419
23420 fi
23421
23422 fi # unaligned pcrel relocs
23423
23424     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23425 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23426 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23427   $as_echo_n "(cached) " >&6
23428 else
23429   gcc_cv_as_sparc_offsetable_lo10=no
23430   if test x$gcc_cv_as != x; then
23431     echo '.text
23432         or %g1, %lo(ab) + 12, %g1
23433         or %g1, %lo(ab + 12), %g1' > conftest.s
23434     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23435   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23436   (eval $ac_try) 2>&5
23437   ac_status=$?
23438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23439   test $ac_status = 0; }; }
23440     then
23441         if test x$gcc_cv_objdump != x \
23442        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23443           | grep ' 82106000 82106000' > /dev/null 2>&1; then
23444          gcc_cv_as_sparc_offsetable_lo10=yes
23445        fi
23446     else
23447       echo "configure: failed program was" >&5
23448       cat conftest.s >&5
23449     fi
23450     rm -f conftest.o conftest.s
23451   fi
23452 fi
23453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23454 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23455 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23456
23457 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23458
23459 fi
23460     ;;
23461
23462   i[34567]86-*-* | x86_64-*-*)
23463     case $target_os in
23464       cygwin*)
23465         # Full C++ conformance when using a shared libstdc++-v3 requires some
23466         # support from the Cygwin DLL, which in more recent versions exports
23467         # wrappers to aid in interposing and redirecting operators new, delete,
23468         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
23469         # are configuring for a version of Cygwin that exports the wrappers.
23470         if test x$host = x$target; then
23471           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23472 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23473   gcc_ac_cygwin_dll_wrappers=yes
23474 else
23475   gcc_ac_cygwin_dll_wrappers=no
23476 fi
23477
23478         else
23479           # Can't check presence of libc functions during cross-compile, so
23480           # we just have to assume we're building for an up-to-date target.
23481           gcc_ac_cygwin_dll_wrappers=yes
23482         fi
23483
23484 cat >>confdefs.h <<_ACEOF
23485 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23486 _ACEOF
23487
23488     esac
23489     case $target_os in
23490       cygwin* | pe | mingw32*)
23491         # Recent binutils allows the three-operand form of ".comm" on PE.  This
23492         # definition is used unconditionally to initialise the default state of
23493         # the target option variable that governs usage of the feature.
23494         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23495 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23496 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23497   $as_echo_n "(cached) " >&6
23498 else
23499   gcc_cv_as_comm_has_align=no
23500     if test $in_tree_gas = yes; then
23501     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23502   then gcc_cv_as_comm_has_align=yes
23503 fi
23504   elif test x$gcc_cv_as != x; then
23505     echo '.comm foo,1,32' > conftest.s
23506     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23507   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23508   (eval $ac_try) 2>&5
23509   ac_status=$?
23510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23511   test $ac_status = 0; }; }
23512     then
23513         gcc_cv_as_comm_has_align=yes
23514     else
23515       echo "configure: failed program was" >&5
23516       cat conftest.s >&5
23517     fi
23518     rm -f conftest.o conftest.s
23519   fi
23520 fi
23521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23522 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23523
23524
23525 cat >>confdefs.h <<_ACEOF
23526 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23527 _ACEOF
23528
23529         # Used for DWARF 2 in PE
23530         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23531 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23532 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23533   $as_echo_n "(cached) " >&6
23534 else
23535   gcc_cv_as_ix86_pe_secrel32=no
23536     if test $in_tree_gas = yes; then
23537     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23538   then gcc_cv_as_ix86_pe_secrel32=yes
23539 fi
23540   elif test x$gcc_cv_as != x; then
23541     echo '.text
23542 foo:    nop
23543 .data
23544         .secrel32 foo' > conftest.s
23545     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23546   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23547   (eval $ac_try) 2>&5
23548   ac_status=$?
23549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23550   test $ac_status = 0; }; }
23551     then
23552         if test x$gcc_cv_ld != x \
23553            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23554              gcc_cv_as_ix86_pe_secrel32=yes
23555            fi
23556            rm -f conftest
23557     else
23558       echo "configure: failed program was" >&5
23559       cat conftest.s >&5
23560     fi
23561     rm -f conftest.o conftest.s
23562   fi
23563 fi
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23565 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23566 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23567
23568 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23569
23570 fi
23571         # Test if the assembler supports the extended form of the .section
23572         # directive that specifies section alignment.  LTO support uses this,
23573         # but normally only after installation, so we warn but don't fail the
23574         # configure if LTO is enabled but the assembler does not support it.
23575         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23576 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23577 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23578   $as_echo_n "(cached) " >&6
23579 else
23580   gcc_cv_as_section_has_align=no
23581     if test $in_tree_gas = yes; then
23582     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23583   then gcc_cv_as_section_has_align=yes
23584 fi
23585   elif test x$gcc_cv_as != x; then
23586     echo '.section lto_test,"dr0"' > conftest.s
23587     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23588   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23589   (eval $ac_try) 2>&5
23590   ac_status=$?
23591   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23592   test $ac_status = 0; }; }
23593     then
23594         gcc_cv_as_section_has_align=yes
23595     else
23596       echo "configure: failed program was" >&5
23597       cat conftest.s >&5
23598     fi
23599     rm -f conftest.o conftest.s
23600   fi
23601 fi
23602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23603 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23604
23605         if test x$gcc_cv_as_section_has_align != xyes; then
23606           case ",$enable_languages," in
23607             *,lto,*)
23608               { $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
23609 $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;}
23610               ;;
23611           esac
23612         fi
23613         ;;
23614     esac
23615
23616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23617 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23618 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23619   $as_echo_n "(cached) " >&6
23620 else
23621   gcc_cv_as_ix86_filds=no
23622   if test x$gcc_cv_as != x; then
23623     echo 'filds mem; fists mem' > conftest.s
23624     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23625   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23626   (eval $ac_try) 2>&5
23627   ac_status=$?
23628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23629   test $ac_status = 0; }; }
23630     then
23631         gcc_cv_as_ix86_filds=yes
23632     else
23633       echo "configure: failed program was" >&5
23634       cat conftest.s >&5
23635     fi
23636     rm -f conftest.o conftest.s
23637   fi
23638 fi
23639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23640 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23641 if test $gcc_cv_as_ix86_filds = yes; then
23642
23643 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23644
23645 fi
23646
23647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23648 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23649 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23650   $as_echo_n "(cached) " >&6
23651 else
23652   gcc_cv_as_ix86_fildq=no
23653   if test x$gcc_cv_as != x; then
23654     echo 'fildq mem; fistpq mem' > conftest.s
23655     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23656   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23657   (eval $ac_try) 2>&5
23658   ac_status=$?
23659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23660   test $ac_status = 0; }; }
23661     then
23662         gcc_cv_as_ix86_fildq=yes
23663     else
23664       echo "configure: failed program was" >&5
23665       cat conftest.s >&5
23666     fi
23667     rm -f conftest.o conftest.s
23668   fi
23669 fi
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23671 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23672 if test $gcc_cv_as_ix86_fildq = yes; then
23673
23674 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23675
23676 fi
23677
23678     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23679 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23680 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23681   $as_echo_n "(cached) " >&6
23682 else
23683   gcc_cv_as_ix86_cmov_sun_syntax=no
23684   if test x$gcc_cv_as != x; then
23685     echo 'cmovl.l %edx, %eax' > conftest.s
23686     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23687   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23688   (eval $ac_try) 2>&5
23689   ac_status=$?
23690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23691   test $ac_status = 0; }; }
23692     then
23693         gcc_cv_as_ix86_cmov_sun_syntax=yes
23694     else
23695       echo "configure: failed program was" >&5
23696       cat conftest.s >&5
23697     fi
23698     rm -f conftest.o conftest.s
23699   fi
23700 fi
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23702 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23703 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23704
23705 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23706
23707 fi
23708
23709     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23710 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23711 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23712   $as_echo_n "(cached) " >&6
23713 else
23714   gcc_cv_as_ix86_ffreep=no
23715   if test x$gcc_cv_as != x; then
23716     echo 'ffreep %st(1)' > conftest.s
23717     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23718   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23719   (eval $ac_try) 2>&5
23720   ac_status=$?
23721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23722   test $ac_status = 0; }; }
23723     then
23724         gcc_cv_as_ix86_ffreep=yes
23725     else
23726       echo "configure: failed program was" >&5
23727       cat conftest.s >&5
23728     fi
23729     rm -f conftest.o conftest.s
23730   fi
23731 fi
23732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23733 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23734 if test $gcc_cv_as_ix86_ffreep = yes; then
23735
23736 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23737
23738 fi
23739
23740     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23741 $as_echo_n "checking assembler for .quad directive... " >&6; }
23742 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23743   $as_echo_n "(cached) " >&6
23744 else
23745   gcc_cv_as_ix86_quad=no
23746   if test x$gcc_cv_as != x; then
23747     echo '.quad 0' > conftest.s
23748     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23749   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23750   (eval $ac_try) 2>&5
23751   ac_status=$?
23752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23753   test $ac_status = 0; }; }
23754     then
23755         gcc_cv_as_ix86_quad=yes
23756     else
23757       echo "configure: failed program was" >&5
23758       cat conftest.s >&5
23759     fi
23760     rm -f conftest.o conftest.s
23761   fi
23762 fi
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23764 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23765 if test $gcc_cv_as_ix86_quad = yes; then
23766
23767 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23768
23769 fi
23770
23771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23772 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23773 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23774   $as_echo_n "(cached) " >&6
23775 else
23776   gcc_cv_as_ix86_sahf=no
23777   if test x$gcc_cv_as != x; then
23778     echo '.code64
23779        sahf' > conftest.s
23780     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23781   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23782   (eval $ac_try) 2>&5
23783   ac_status=$?
23784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23785   test $ac_status = 0; }; }
23786     then
23787         gcc_cv_as_ix86_sahf=yes
23788     else
23789       echo "configure: failed program was" >&5
23790       cat conftest.s >&5
23791     fi
23792     rm -f conftest.o conftest.s
23793   fi
23794 fi
23795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23796 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23797 if test $gcc_cv_as_ix86_sahf = yes; then
23798
23799 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23800
23801 fi
23802
23803     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23804 $as_echo_n "checking assembler for swap suffix... " >&6; }
23805 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23806   $as_echo_n "(cached) " >&6
23807 else
23808   gcc_cv_as_ix86_swap=no
23809   if test x$gcc_cv_as != x; then
23810     echo 'movl.s %esp, %ebp' > conftest.s
23811     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23812   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23813   (eval $ac_try) 2>&5
23814   ac_status=$?
23815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23816   test $ac_status = 0; }; }
23817     then
23818         gcc_cv_as_ix86_swap=yes
23819     else
23820       echo "configure: failed program was" >&5
23821       cat conftest.s >&5
23822     fi
23823     rm -f conftest.o conftest.s
23824   fi
23825 fi
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23827 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23828 if test $gcc_cv_as_ix86_swap = yes; then
23829
23830 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23831
23832 fi
23833
23834     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23835 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23836 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23837   $as_echo_n "(cached) " >&6
23838 else
23839   gcc_cv_as_ix86_diff_sect_delta=no
23840   if test x$gcc_cv_as != x; then
23841     echo '.section .rodata
23842 .L1:
23843         .long .L2-.L1
23844         .long .L3-.L1
23845         .text
23846 .L3:    nop
23847 .L2:    nop' > conftest.s
23848     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23849   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23850   (eval $ac_try) 2>&5
23851   ac_status=$?
23852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23853   test $ac_status = 0; }; }
23854     then
23855         gcc_cv_as_ix86_diff_sect_delta=yes
23856     else
23857       echo "configure: failed program was" >&5
23858       cat conftest.s >&5
23859     fi
23860     rm -f conftest.o conftest.s
23861   fi
23862 fi
23863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23864 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23865 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23866
23867 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23868
23869 fi
23870
23871     # These two are used unconditionally by i386.[ch]; it is to be defined
23872     # to 1 if the feature is present, 0 otherwise.
23873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23874 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23875 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23876   $as_echo_n "(cached) " >&6
23877 else
23878   gcc_cv_as_ix86_gotoff_in_data=no
23879     if test $in_tree_gas = yes; then
23880     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23881   then gcc_cv_as_ix86_gotoff_in_data=yes
23882 fi
23883   elif test x$gcc_cv_as != x; then
23884     echo '      .text
23885 .L0:
23886         nop
23887         .data
23888         .long .L0@GOTOFF' > conftest.s
23889     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23890   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23891   (eval $ac_try) 2>&5
23892   ac_status=$?
23893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23894   test $ac_status = 0; }; }
23895     then
23896         gcc_cv_as_ix86_gotoff_in_data=yes
23897     else
23898       echo "configure: failed program was" >&5
23899       cat conftest.s >&5
23900     fi
23901     rm -f conftest.o conftest.s
23902   fi
23903 fi
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23905 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23906
23907
23908 cat >>confdefs.h <<_ACEOF
23909 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23910 _ACEOF
23911
23912
23913     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23914 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23915 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23916   $as_echo_n "(cached) " >&6
23917 else
23918   gcc_cv_as_ix86_rep_lock_prefix=no
23919   if test x$gcc_cv_as != x; then
23920     echo 'rep movsl
23921          lock addl %edi, (%eax,%esi)
23922          lock orl $0, (%esp)' > conftest.s
23923     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23924   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23925   (eval $ac_try) 2>&5
23926   ac_status=$?
23927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23928   test $ac_status = 0; }; }
23929     then
23930         gcc_cv_as_ix86_rep_lock_prefix=yes
23931     else
23932       echo "configure: failed program was" >&5
23933       cat conftest.s >&5
23934     fi
23935     rm -f conftest.o conftest.s
23936   fi
23937 fi
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
23939 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
23940 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
23941
23942 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
23943
23944 fi
23945
23946     ;;
23947
23948   ia64*-*-*)
23949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23950 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23951 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23952   $as_echo_n "(cached) " >&6
23953 else
23954   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23955     if test $in_tree_gas = yes; then
23956     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23957   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23958 fi
23959   elif test x$gcc_cv_as != x; then
23960     echo '      .text
23961         addl r15 = @ltoffx(x#), gp
23962         ;;
23963         ld8.mov r16 = [r15], x#' > conftest.s
23964     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23965   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23966   (eval $ac_try) 2>&5
23967   ac_status=$?
23968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23969   test $ac_status = 0; }; }
23970     then
23971         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23972     else
23973       echo "configure: failed program was" >&5
23974       cat conftest.s >&5
23975     fi
23976     rm -f conftest.o conftest.s
23977   fi
23978 fi
23979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23980 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23981 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23982
23983 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23984
23985 fi
23986
23987     ;;
23988
23989   powerpc*-*-*)
23990     case $target in
23991       *-*-aix*) conftest_s='    .machine "pwr5"
23992         .csect .text[PR]
23993         mfcr 3,128';;
23994       *-*-darwin*)
23995         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23996 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23997 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23998   $as_echo_n "(cached) " >&6
23999 else
24000   gcc_cv_as_machine_directive=no
24001   if test x$gcc_cv_as != x; then
24002     echo '      .machine ppc7400' > conftest.s
24003     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24004   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24005   (eval $ac_try) 2>&5
24006   ac_status=$?
24007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24008   test $ac_status = 0; }; }
24009     then
24010         gcc_cv_as_machine_directive=yes
24011     else
24012       echo "configure: failed program was" >&5
24013       cat conftest.s >&5
24014     fi
24015     rm -f conftest.o conftest.s
24016   fi
24017 fi
24018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24019 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24020
24021         if test x$gcc_cv_as_machine_directive != xyes; then
24022           echo "*** This target requires an assembler supporting \".machine\"" >&2
24023           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24024           test x$build = x$target && exit 1
24025         fi
24026         conftest_s='    .text
24027         mfcr r3,128';;
24028       *) conftest_s='   .machine power4
24029         .text
24030         mfcr 3,128';;
24031     esac
24032
24033     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24034 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24035 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24036   $as_echo_n "(cached) " >&6
24037 else
24038   gcc_cv_as_powerpc_mfcrf=no
24039     if test $in_tree_gas = yes; then
24040     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24041   then gcc_cv_as_powerpc_mfcrf=yes
24042 fi
24043   elif test x$gcc_cv_as != x; then
24044     echo "$conftest_s" > conftest.s
24045     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24046   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24047   (eval $ac_try) 2>&5
24048   ac_status=$?
24049   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24050   test $ac_status = 0; }; }
24051     then
24052         gcc_cv_as_powerpc_mfcrf=yes
24053     else
24054       echo "configure: failed program was" >&5
24055       cat conftest.s >&5
24056     fi
24057     rm -f conftest.o conftest.s
24058   fi
24059 fi
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24061 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24062 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24063
24064 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24065
24066 fi
24067
24068     case $target in
24069       *-*-aix*) conftest_s='    .machine "pwr5"
24070         .csect .text[PR]
24071         popcntb 3,3';;
24072       *) conftest_s='   .machine power5
24073         .text
24074         popcntb 3,3';;
24075     esac
24076
24077     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24078 $as_echo_n "checking assembler for popcntb support... " >&6; }
24079 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24080   $as_echo_n "(cached) " >&6
24081 else
24082   gcc_cv_as_powerpc_popcntb=no
24083     if test $in_tree_gas = yes; then
24084     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24085   then gcc_cv_as_powerpc_popcntb=yes
24086 fi
24087   elif test x$gcc_cv_as != x; then
24088     echo "$conftest_s" > conftest.s
24089     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24090   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24091   (eval $ac_try) 2>&5
24092   ac_status=$?
24093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24094   test $ac_status = 0; }; }
24095     then
24096         gcc_cv_as_powerpc_popcntb=yes
24097     else
24098       echo "configure: failed program was" >&5
24099       cat conftest.s >&5
24100     fi
24101     rm -f conftest.o conftest.s
24102   fi
24103 fi
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24105 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24106 if test $gcc_cv_as_powerpc_popcntb = yes; then
24107
24108 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24109
24110 fi
24111
24112     case $target in
24113       *-*-aix*) conftest_s='    .machine "pwr5x"
24114         .csect .text[PR]
24115         frin 1,1';;
24116       *) conftest_s='   .machine power5
24117         .text
24118         frin 1,1';;
24119     esac
24120
24121     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24122 $as_echo_n "checking assembler for fp round support... " >&6; }
24123 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24124   $as_echo_n "(cached) " >&6
24125 else
24126   gcc_cv_as_powerpc_fprnd=no
24127     if test $in_tree_gas = yes; then
24128     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24129   then gcc_cv_as_powerpc_fprnd=yes
24130 fi
24131   elif test x$gcc_cv_as != x; then
24132     echo "$conftest_s" > conftest.s
24133     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24134   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24135   (eval $ac_try) 2>&5
24136   ac_status=$?
24137   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24138   test $ac_status = 0; }; }
24139     then
24140         gcc_cv_as_powerpc_fprnd=yes
24141     else
24142       echo "configure: failed program was" >&5
24143       cat conftest.s >&5
24144     fi
24145     rm -f conftest.o conftest.s
24146   fi
24147 fi
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24149 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24150 if test $gcc_cv_as_powerpc_fprnd = yes; then
24151
24152 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24153
24154 fi
24155
24156     case $target in
24157       *-*-aix*) conftest_s='    .machine "pwr6"
24158         .csect .text[PR]
24159         mffgpr 1,3';;
24160       *) conftest_s='   .machine power6
24161         .text
24162         mffgpr 1,3';;
24163     esac
24164
24165     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24166 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24167 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24168   $as_echo_n "(cached) " >&6
24169 else
24170   gcc_cv_as_powerpc_mfpgpr=no
24171     if test $in_tree_gas = yes; then
24172     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24173   then gcc_cv_as_powerpc_mfpgpr=yes
24174 fi
24175   elif test x$gcc_cv_as != x; then
24176     echo "$conftest_s" > conftest.s
24177     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24178   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24179   (eval $ac_try) 2>&5
24180   ac_status=$?
24181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24182   test $ac_status = 0; }; }
24183     then
24184         gcc_cv_as_powerpc_mfpgpr=yes
24185     else
24186       echo "configure: failed program was" >&5
24187       cat conftest.s >&5
24188     fi
24189     rm -f conftest.o conftest.s
24190   fi
24191 fi
24192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24193 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24194 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24195
24196 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24197
24198 fi
24199
24200     case $target in
24201       *-*-aix*) conftest_s='    .csect .text[PR]
24202 LCF..0:
24203         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24204       *-*-darwin*)
24205         conftest_s='    .text
24206 LCF0:
24207         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24208       *) conftest_s='   .text
24209 .LCF0:
24210         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24211     esac
24212
24213     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24214 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24215 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24216   $as_echo_n "(cached) " >&6
24217 else
24218   gcc_cv_as_powerpc_rel16=no
24219     if test $in_tree_gas = yes; then
24220     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24221   then gcc_cv_as_powerpc_rel16=yes
24222 fi
24223   elif test x$gcc_cv_as != x; then
24224     echo "$conftest_s" > conftest.s
24225     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24226   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24227   (eval $ac_try) 2>&5
24228   ac_status=$?
24229   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24230   test $ac_status = 0; }; }
24231     then
24232         gcc_cv_as_powerpc_rel16=yes
24233     else
24234       echo "configure: failed program was" >&5
24235       cat conftest.s >&5
24236     fi
24237     rm -f conftest.o conftest.s
24238   fi
24239 fi
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24241 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24242 if test $gcc_cv_as_powerpc_rel16 = yes; then
24243
24244 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24245
24246 fi
24247
24248     case $target in
24249       *-*-aix*) conftest_s='    .machine "pwr6"
24250         .csect .text[PR]
24251         cmpb 3,4,5';;
24252       *) conftest_s='   .machine power6
24253         .text
24254         cmpb 3,4,5';;
24255     esac
24256
24257     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24258 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24259 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24260   $as_echo_n "(cached) " >&6
24261 else
24262   gcc_cv_as_powerpc_cmpb=no
24263     if test $in_tree_gas = yes; then
24264     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24265   then gcc_cv_as_powerpc_cmpb=yes
24266 fi
24267   elif test x$gcc_cv_as != x; then
24268     echo "$conftest_s" > conftest.s
24269     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24270   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24271   (eval $ac_try) 2>&5
24272   ac_status=$?
24273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24274   test $ac_status = 0; }; }
24275     then
24276         gcc_cv_as_powerpc_cmpb=yes
24277     else
24278       echo "configure: failed program was" >&5
24279       cat conftest.s >&5
24280     fi
24281     rm -f conftest.o conftest.s
24282   fi
24283 fi
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24285 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24286 if test $gcc_cv_as_powerpc_cmpb = yes; then
24287
24288 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24289
24290 fi
24291
24292     case $target in
24293       *-*-aix*) conftest_s='    .machine "pwr6"
24294         .csect .text[PR]
24295         dadd 1,2,3';;
24296       *) conftest_s='   .machine power6
24297         .text
24298         dadd 1,2,3';;
24299     esac
24300
24301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24302 $as_echo_n "checking assembler for decimal float support... " >&6; }
24303 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24304   $as_echo_n "(cached) " >&6
24305 else
24306   gcc_cv_as_powerpc_dfp=no
24307     if test $in_tree_gas = yes; then
24308     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24309   then gcc_cv_as_powerpc_dfp=yes
24310 fi
24311   elif test x$gcc_cv_as != x; then
24312     echo "$conftest_s" > conftest.s
24313     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24314   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24315   (eval $ac_try) 2>&5
24316   ac_status=$?
24317   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24318   test $ac_status = 0; }; }
24319     then
24320         gcc_cv_as_powerpc_dfp=yes
24321     else
24322       echo "configure: failed program was" >&5
24323       cat conftest.s >&5
24324     fi
24325     rm -f conftest.o conftest.s
24326   fi
24327 fi
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24329 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24330 if test $gcc_cv_as_powerpc_dfp = yes; then
24331
24332 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24333
24334 fi
24335
24336     case $target in
24337       *-*-aix*) conftest_s='    .machine "pwr7"
24338         .csect .text[PR]
24339         lxvd2x 1,2,3';;
24340       *) conftest_s='   .machine power7
24341         .text
24342         lxvd2x 1,2,3';;
24343     esac
24344
24345     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24346 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24347 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24348   $as_echo_n "(cached) " >&6
24349 else
24350   gcc_cv_as_powerpc_vsx=no
24351     if test $in_tree_gas = yes; then
24352     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24353   then gcc_cv_as_powerpc_vsx=yes
24354 fi
24355   elif test x$gcc_cv_as != x; then
24356     echo "$conftest_s" > conftest.s
24357     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24358   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24359   (eval $ac_try) 2>&5
24360   ac_status=$?
24361   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24362   test $ac_status = 0; }; }
24363     then
24364         gcc_cv_as_powerpc_vsx=yes
24365     else
24366       echo "configure: failed program was" >&5
24367       cat conftest.s >&5
24368     fi
24369     rm -f conftest.o conftest.s
24370   fi
24371 fi
24372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24373 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24374 if test $gcc_cv_as_powerpc_vsx = yes; then
24375
24376 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24377
24378 fi
24379
24380     case $target in
24381       *-*-aix*) conftest_s='    .machine "pwr7"
24382         .csect .text[PR]
24383         popcntd 3,3';;
24384       *) conftest_s='   .machine power7
24385         .text
24386         popcntd 3,3';;
24387     esac
24388
24389     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24390 $as_echo_n "checking assembler for popcntd support... " >&6; }
24391 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24392   $as_echo_n "(cached) " >&6
24393 else
24394   gcc_cv_as_powerpc_popcntd=no
24395     if test $in_tree_gas = yes; then
24396     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24397   then gcc_cv_as_powerpc_popcntd=yes
24398 fi
24399   elif test x$gcc_cv_as != x; then
24400     echo "$conftest_s" > conftest.s
24401     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24402   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24403   (eval $ac_try) 2>&5
24404   ac_status=$?
24405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24406   test $ac_status = 0; }; }
24407     then
24408         gcc_cv_as_powerpc_popcntd=yes
24409     else
24410       echo "configure: failed program was" >&5
24411       cat conftest.s >&5
24412     fi
24413     rm -f conftest.o conftest.s
24414   fi
24415 fi
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24417 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24418 if test $gcc_cv_as_powerpc_popcntd = yes; then
24419
24420 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24421
24422 fi
24423
24424     case $target in
24425       *-*-aix*) conftest_s='    .csect .text[PR]
24426         lwsync';;
24427       *) conftest_s='   .text
24428         lwsync';;
24429     esac
24430
24431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24432 $as_echo_n "checking assembler for lwsync support... " >&6; }
24433 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24434   $as_echo_n "(cached) " >&6
24435 else
24436   gcc_cv_as_powerpc_lwsync=no
24437     if test $in_tree_gas = yes; then
24438     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24439   then gcc_cv_as_powerpc_lwsync=yes
24440 fi
24441   elif test x$gcc_cv_as != x; then
24442     echo "$conftest_s" > conftest.s
24443     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24444   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24445   (eval $ac_try) 2>&5
24446   ac_status=$?
24447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24448   test $ac_status = 0; }; }
24449     then
24450         gcc_cv_as_powerpc_lwsync=yes
24451     else
24452       echo "configure: failed program was" >&5
24453       cat conftest.s >&5
24454     fi
24455     rm -f conftest.o conftest.s
24456   fi
24457 fi
24458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24459 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24460 if test $gcc_cv_as_powerpc_lwsync = yes; then
24461
24462 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24463
24464 fi
24465
24466     case $target in
24467       *-*-aix*) conftest_s='    .machine "476"
24468         .csect .text[PR]
24469         dci 0';;
24470       *) conftest_s='   .machine "476"
24471         .text
24472         dci 0';;
24473     esac
24474
24475     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24476 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24477 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24478   $as_echo_n "(cached) " >&6
24479 else
24480   gcc_cv_as_powerpc_dci=no
24481     if test $in_tree_gas = yes; then
24482     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24483   then gcc_cv_as_powerpc_dci=yes
24484 fi
24485   elif test x$gcc_cv_as != x; then
24486     echo "$conftest_s" > conftest.s
24487     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24488   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24489   (eval $ac_try) 2>&5
24490   ac_status=$?
24491   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24492   test $ac_status = 0; }; }
24493     then
24494         gcc_cv_as_powerpc_dci=yes
24495     else
24496       echo "configure: failed program was" >&5
24497       cat conftest.s >&5
24498     fi
24499     rm -f conftest.o conftest.s
24500   fi
24501 fi
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24503 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24504 if test $gcc_cv_as_powerpc_dci = yes; then
24505
24506 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24507
24508 fi
24509
24510     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24511 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24512 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24513   $as_echo_n "(cached) " >&6
24514 else
24515   gcc_cv_as_powerpc_gnu_attribute=no
24516     if test $in_tree_gas = yes; then
24517     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24518   then gcc_cv_as_powerpc_gnu_attribute=yes
24519 fi
24520   elif test x$gcc_cv_as != x; then
24521     echo '.gnu_attribute 4,1' > conftest.s
24522     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24523   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24524   (eval $ac_try) 2>&5
24525   ac_status=$?
24526   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24527   test $ac_status = 0; }; }
24528     then
24529         gcc_cv_as_powerpc_gnu_attribute=yes
24530     else
24531       echo "configure: failed program was" >&5
24532       cat conftest.s >&5
24533     fi
24534     rm -f conftest.o conftest.s
24535   fi
24536 fi
24537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24538 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24539 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24540
24541 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24542
24543 fi
24544
24545     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24546 $as_echo_n "checking assembler for tls marker support... " >&6; }
24547 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24548   $as_echo_n "(cached) " >&6
24549 else
24550   gcc_cv_as_powerpc_tls_markers=no
24551     if test $in_tree_gas = yes; then
24552     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24553   then gcc_cv_as_powerpc_tls_markers=yes
24554 fi
24555   elif test x$gcc_cv_as != x; then
24556     echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24557     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24558   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24559   (eval $ac_try) 2>&5
24560   ac_status=$?
24561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24562   test $ac_status = 0; }; }
24563     then
24564         gcc_cv_as_powerpc_tls_markers=yes
24565     else
24566       echo "configure: failed program was" >&5
24567       cat conftest.s >&5
24568     fi
24569     rm -f conftest.o conftest.s
24570   fi
24571 fi
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24573 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24574 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24575
24576 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24577
24578 fi
24579
24580     case $target in
24581       *-*-aix*)
24582         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24583 $as_echo_n "checking assembler for .ref support... " >&6; }
24584 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24585   $as_echo_n "(cached) " >&6
24586 else
24587   gcc_cv_as_aix_ref=no
24588     if test $in_tree_gas = yes; then
24589     if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24590   then :
24591 fi
24592   elif test x$gcc_cv_as != x; then
24593     echo '      .csect stuff[rw]
24594              stuff:
24595                 .long 1
24596                 .extern sym
24597                 .ref sym
24598           ' > conftest.s
24599     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24600   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24601   (eval $ac_try) 2>&5
24602   ac_status=$?
24603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24604   test $ac_status = 0; }; }
24605     then
24606         gcc_cv_as_aix_ref=yes
24607     else
24608       echo "configure: failed program was" >&5
24609       cat conftest.s >&5
24610     fi
24611     rm -f conftest.o conftest.s
24612   fi
24613 fi
24614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24615 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24616 if test $gcc_cv_as_aix_ref = yes; then
24617
24618 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24619
24620 fi
24621         ;;
24622     esac
24623     ;;
24624
24625   mips*-*-*)
24626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24627 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24628 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24629   $as_echo_n "(cached) " >&6
24630 else
24631   gcc_cv_as_mips_explicit_relocs=no
24632     if test $in_tree_gas = yes; then
24633     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24634   then gcc_cv_as_mips_explicit_relocs=yes
24635 fi
24636   elif test x$gcc_cv_as != x; then
24637     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
24638     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24639   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24640   (eval $ac_try) 2>&5
24641   ac_status=$?
24642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24643   test $ac_status = 0; }; }
24644     then
24645         gcc_cv_as_mips_explicit_relocs=yes
24646     else
24647       echo "configure: failed program was" >&5
24648       cat conftest.s >&5
24649     fi
24650     rm -f conftest.o conftest.s
24651   fi
24652 fi
24653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24654 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24655 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24656   if test x$target_cpu_default = x
24657        then target_cpu_default=MASK_EXPLICIT_RELOCS
24658        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24659        fi
24660 fi
24661     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24662 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24663 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24664   $as_echo_n "(cached) " >&6
24665 else
24666   gcc_cv_as_mips_no_shared=no
24667     if test $in_tree_gas = yes; then
24668     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24669   then gcc_cv_as_mips_no_shared=yes
24670 fi
24671   elif test x$gcc_cv_as != x; then
24672     echo 'nop' > conftest.s
24673     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24674   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24675   (eval $ac_try) 2>&5
24676   ac_status=$?
24677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24678   test $ac_status = 0; }; }
24679     then
24680         gcc_cv_as_mips_no_shared=yes
24681     else
24682       echo "configure: failed program was" >&5
24683       cat conftest.s >&5
24684     fi
24685     rm -f conftest.o conftest.s
24686   fi
24687 fi
24688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24689 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24690 if test $gcc_cv_as_mips_no_shared = yes; then
24691
24692 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24693
24694 fi
24695
24696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24697 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24698 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24699   $as_echo_n "(cached) " >&6
24700 else
24701   gcc_cv_as_mips_gnu_attribute=no
24702     if test $in_tree_gas = yes; then
24703     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24704   then gcc_cv_as_mips_gnu_attribute=yes
24705 fi
24706   elif test x$gcc_cv_as != x; then
24707     echo '.gnu_attribute 4,1' > conftest.s
24708     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24709   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24710   (eval $ac_try) 2>&5
24711   ac_status=$?
24712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24713   test $ac_status = 0; }; }
24714     then
24715         gcc_cv_as_mips_gnu_attribute=yes
24716     else
24717       echo "configure: failed program was" >&5
24718       cat conftest.s >&5
24719     fi
24720     rm -f conftest.o conftest.s
24721   fi
24722 fi
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24724 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24725 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24726
24727 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24728
24729 fi
24730
24731     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24732 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24733 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24734   $as_echo_n "(cached) " >&6
24735 else
24736   gcc_cv_as_mips_dtprelword=no
24737     if test $in_tree_gas = yes; then
24738     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24739   then gcc_cv_as_mips_dtprelword=yes
24740 fi
24741   elif test x$gcc_cv_as != x; then
24742     echo '.section .tdata,"awT",@progbits
24743 x:
24744         .word 2
24745         .text
24746         .dtprelword x+0x8000' > conftest.s
24747     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24748   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24749   (eval $ac_try) 2>&5
24750   ac_status=$?
24751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24752   test $ac_status = 0; }; }
24753     then
24754         gcc_cv_as_mips_dtprelword=yes
24755     else
24756       echo "configure: failed program was" >&5
24757       cat conftest.s >&5
24758     fi
24759     rm -f conftest.o conftest.s
24760   fi
24761 fi
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24763 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24764 if test $gcc_cv_as_mips_dtprelword = yes; then
24765
24766 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24767
24768 fi
24769
24770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
24771 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
24772 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
24773   $as_echo_n "(cached) " >&6
24774 else
24775   gcc_cv_as_mips_dspr1_mult=no
24776   if test x$gcc_cv_as != x; then
24777     echo '      .set    mips32r2
24778         .set    nodspr2
24779         .set    dsp
24780         madd    $ac3,$4,$5
24781         maddu   $ac3,$4,$5
24782         msub    $ac3,$4,$5
24783         msubu   $ac3,$4,$5
24784         mult    $ac3,$4,$5
24785         multu   $ac3,$4,$5' > conftest.s
24786     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24787   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24788   (eval $ac_try) 2>&5
24789   ac_status=$?
24790   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24791   test $ac_status = 0; }; }
24792     then
24793         gcc_cv_as_mips_dspr1_mult=yes
24794     else
24795       echo "configure: failed program was" >&5
24796       cat conftest.s >&5
24797     fi
24798     rm -f conftest.o conftest.s
24799   fi
24800 fi
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
24802 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
24803 if test $gcc_cv_as_mips_dspr1_mult = yes; then
24804
24805 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
24806
24807 fi
24808
24809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24810 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24811     gcc_cv_as_ld_jalr_reloc=no
24812     if test $gcc_cv_as_mips_explicit_relocs = yes; then
24813       if test $in_tree_ld = yes ; then
24814         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 \
24815            && test $in_tree_ld_is_elf = yes; then
24816           gcc_cv_as_ld_jalr_reloc=yes
24817         fi
24818       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24819         echo '  .ent x' > conftest.s
24820         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
24821         echo '  ld $25,%call16(y)($28)' >> conftest.s
24822         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
24823         echo '1:        jalr $25' >> conftest.s
24824         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
24825         echo '1:        jalr $25' >> conftest.s
24826         echo '  .end x' >> conftest.s
24827         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24828            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24829           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
24830              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
24831             gcc_cv_as_ld_jalr_reloc=yes
24832           fi
24833         fi
24834         rm -f conftest.*
24835       fi
24836     fi
24837     if test $gcc_cv_as_ld_jalr_reloc = yes; then
24838       if test x$target_cpu_default = x; then
24839         target_cpu_default=MASK_RELAX_PIC_CALLS
24840       else
24841         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24842       fi
24843     fi
24844     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24845 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24846
24847     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24848 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24849 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24850   $as_echo_n "(cached) " >&6
24851 else
24852   gcc_cv_ld_mips_personality_relaxation=no
24853        if test $in_tree_ld = yes ; then
24854          if test "$gcc_cv_gld_major_version" -eq 2 \
24855                  -a "$gcc_cv_gld_minor_version" -ge 21 \
24856                  -o "$gcc_cv_gld_major_version" -gt 2; then
24857            gcc_cv_ld_mips_personality_relaxation=yes
24858          fi
24859        elif test x$gcc_cv_as != x \
24860                  -a x$gcc_cv_ld != x \
24861                  -a x$gcc_cv_readelf != x ; then
24862          cat > conftest.s <<EOF
24863         .cfi_startproc
24864         .cfi_personality 0x80,indirect_ptr
24865         .ent test
24866 test:
24867         nop
24868         .end test
24869         .cfi_endproc
24870
24871         .section .data,"aw",@progbits
24872 indirect_ptr:
24873         .dc.a personality
24874 EOF
24875          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24876             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24877            if $gcc_cv_readelf -d conftest 2>&1 \
24878               | grep TEXTREL > /dev/null 2>&1; then
24879              :
24880            elif $gcc_cv_readelf --relocs conftest 2>&1 \
24881                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24882              :
24883            else
24884              gcc_cv_ld_mips_personality_relaxation=yes
24885            fi
24886          fi
24887        fi
24888        rm -f conftest.s conftest.o conftest
24889 fi
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24891 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24892     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24893
24894 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24895
24896     fi
24897     ;;
24898 esac
24899
24900 # Mips and HP-UX need the GNU assembler.
24901 # Linux on IA64 might be able to use the Intel assembler.
24902
24903 case "$target" in
24904   mips*-*-* | *-*-hpux* )
24905     if test x$gas_flag = xyes \
24906        || test x"$host" != x"$build" \
24907        || test ! -x "$gcc_cv_as" \
24908        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24909       :
24910     else
24911       echo "*** This configuration requires the GNU assembler" >&2
24912       exit 1
24913     fi
24914     ;;
24915 esac
24916
24917 # ??? Not all targets support dwarf2 debug_line, even within a version
24918 # of gas.  Moreover, we need to emit a valid instruction to trigger any
24919 # info to the output file.  So, as supported targets are added to gas 2.11,
24920 # add some instruction here to (also) show we expect this might work.
24921 # ??? Once 2.11 is released, probably need to add first known working
24922 # version to the per-target configury.
24923 case "$cpu_type" in
24924   alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
24925   | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
24926     insn="nop"
24927     ;;
24928   ia64 | s390)
24929     insn="nop 0"
24930     ;;
24931   mmix)
24932     insn="swym 0"
24933     ;;
24934 esac
24935 if test x"$insn" != x; then
24936  conftest_s="\
24937         .file 1 \"conftest.s\"
24938         .loc 1 3 0
24939         $insn"
24940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24941 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24942 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24943   $as_echo_n "(cached) " >&6
24944 else
24945   gcc_cv_as_dwarf2_debug_line=no
24946     if test $in_tree_gas = yes; then
24947     if test $in_tree_gas_is_elf = yes \
24948   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24949   then gcc_cv_as_dwarf2_debug_line=yes
24950 fi
24951   elif test x$gcc_cv_as != x; then
24952     echo "$conftest_s" > conftest.s
24953     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24954   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24955   (eval $ac_try) 2>&5
24956   ac_status=$?
24957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24958   test $ac_status = 0; }; }
24959     then
24960         if test x$gcc_cv_objdump != x \
24961    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
24962       | grep debug_line > /dev/null 2>&1; then
24963      gcc_cv_as_dwarf2_debug_line=yes
24964    fi
24965     else
24966       echo "configure: failed program was" >&5
24967       cat conftest.s >&5
24968     fi
24969     rm -f conftest.o conftest.s
24970   fi
24971 fi
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24973 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24974
24975
24976 # The .debug_line file table must be in the exact order that
24977 # we specified the files, since these indices are also used
24978 # by DW_AT_decl_file.  Approximate this test by testing if
24979 # the assembler bitches if the same index is assigned twice.
24980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24981 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24982 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24983   $as_echo_n "(cached) " >&6
24984 else
24985   gcc_cv_as_dwarf2_file_buggy=no
24986   if test x$gcc_cv_as != x; then
24987     echo '      .file 1 "foo.s"
24988         .file 1 "bar.s"' > conftest.s
24989     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24990   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24991   (eval $ac_try) 2>&5
24992   ac_status=$?
24993   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24994   test $ac_status = 0; }; }
24995     then
24996         gcc_cv_as_dwarf2_file_buggy=yes
24997     else
24998       echo "configure: failed program was" >&5
24999       cat conftest.s >&5
25000     fi
25001     rm -f conftest.o conftest.s
25002   fi
25003 fi
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25005 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25006
25007
25008  if test $gcc_cv_as_dwarf2_debug_line = yes \
25009  && test $gcc_cv_as_dwarf2_file_buggy = no; then
25010
25011 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25012
25013  fi
25014
25015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25016 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25017 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25018   $as_echo_n "(cached) " >&6
25019 else
25020   gcc_cv_as_gdwarf2_flag=no
25021     if test $in_tree_gas = yes; then
25022     if test $in_tree_gas_is_elf = yes \
25023   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25024   then gcc_cv_as_gdwarf2_flag=yes
25025 fi
25026   elif test x$gcc_cv_as != x; then
25027     echo "$insn" > conftest.s
25028     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25029   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25030   (eval $ac_try) 2>&5
25031   ac_status=$?
25032   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25033   test $ac_status = 0; }; }
25034     then
25035         gcc_cv_as_gdwarf2_flag=yes
25036     else
25037       echo "configure: failed program was" >&5
25038       cat conftest.s >&5
25039     fi
25040     rm -f conftest.o conftest.s
25041   fi
25042 fi
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25044 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25045 if test $gcc_cv_as_gdwarf2_flag = yes; then
25046
25047 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25048
25049 fi
25050
25051  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25052 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25053 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25054   $as_echo_n "(cached) " >&6
25055 else
25056   gcc_cv_as_gstabs_flag=no
25057     if test $in_tree_gas = yes; then
25058     if test $in_tree_gas_is_elf = yes \
25059   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25060   then gcc_cv_as_gstabs_flag=yes
25061 fi
25062   elif test x$gcc_cv_as != x; then
25063     echo "$insn" > conftest.s
25064     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25065   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25066   (eval $ac_try) 2>&5
25067   ac_status=$?
25068   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25069   test $ac_status = 0; }; }
25070     then
25071         # The native Solaris 9/Intel assembler doesn't understand --gstabs
25072    # and warns about it, but still exits successfully.  So check for
25073    # this.
25074    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25075   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25076   (eval $ac_try) 2>&5
25077   ac_status=$?
25078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25079   test $ac_status = 0; }; }
25080    then :
25081    else gcc_cv_as_gstabs_flag=yes
25082    fi
25083     else
25084       echo "configure: failed program was" >&5
25085       cat conftest.s >&5
25086     fi
25087     rm -f conftest.o conftest.s
25088   fi
25089 fi
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25091 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25092 if test $gcc_cv_as_gstabs_flag = yes; then
25093
25094 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25095
25096 fi
25097
25098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25099 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25100 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25101   $as_echo_n "(cached) " >&6
25102 else
25103   gcc_cv_as_debug_prefix_map_flag=no
25104     if test $in_tree_gas = yes; then
25105     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25106   then gcc_cv_as_debug_prefix_map_flag=yes
25107 fi
25108   elif test x$gcc_cv_as != x; then
25109     echo "$insn" > conftest.s
25110     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25111   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25112   (eval $ac_try) 2>&5
25113   ac_status=$?
25114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25115   test $ac_status = 0; }; }
25116     then
25117         gcc_cv_as_debug_prefix_map_flag=yes
25118     else
25119       echo "configure: failed program was" >&5
25120       cat conftest.s >&5
25121     fi
25122     rm -f conftest.o conftest.s
25123   fi
25124 fi
25125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25126 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25127 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25128
25129 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25130
25131 fi
25132 fi
25133
25134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25135 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25136 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25137   $as_echo_n "(cached) " >&6
25138 else
25139   gcc_cv_as_lcomm_with_alignment=no
25140   if test x$gcc_cv_as != x; then
25141     echo '.lcomm bar,4,16' > conftest.s
25142     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25143   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25144   (eval $ac_try) 2>&5
25145   ac_status=$?
25146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25147   test $ac_status = 0; }; }
25148     then
25149         gcc_cv_as_lcomm_with_alignment=yes
25150     else
25151       echo "configure: failed program was" >&5
25152       cat conftest.s >&5
25153     fi
25154     rm -f conftest.o conftest.s
25155   fi
25156 fi
25157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25158 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25159 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25160
25161 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25162
25163 fi
25164
25165 # Check whether --enable-gnu-unique-object was given.
25166 if test "${enable_gnu_unique_object+set}" = set; then :
25167   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25168     yes | no) ;;
25169     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25170 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25171   esac
25172 else
25173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25174 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25175 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25176   $as_echo_n "(cached) " >&6
25177 else
25178   gcc_cv_as_gnu_unique_object=no
25179     if test $in_tree_gas = yes; then
25180     if test $in_tree_gas_is_elf = yes \
25181   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25182   then gcc_cv_as_gnu_unique_object=yes
25183 fi
25184   elif test x$gcc_cv_as != x; then
25185     echo '.type foo, @gnu_unique_object' > conftest.s
25186     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25187   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25188   (eval $ac_try) 2>&5
25189   ac_status=$?
25190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25191   test $ac_status = 0; }; }
25192     then
25193         gcc_cv_as_gnu_unique_object=yes
25194     else
25195       echo "configure: failed program was" >&5
25196       cat conftest.s >&5
25197     fi
25198     rm -f conftest.o conftest.s
25199   fi
25200 fi
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25202 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25203 if test $gcc_cv_as_gnu_unique_object = yes; then
25204   # Also check for ld.so support, i.e. glibc 2.11 or higher.
25205    if test x$host = x$build -a x$host = x$target &&
25206        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25207       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25208       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25209       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25210       if test "$glibcnum" -ge 2011 ; then
25211         enable_gnu_unique_object=yes
25212       fi
25213     fi
25214 fi
25215 fi
25216
25217 if test x$enable_gnu_unique_object = xyes; then
25218
25219 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25220
25221 fi
25222
25223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25224 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25225 if test "${gcc_cv_as_line_zero+set}" = set; then :
25226   $as_echo_n "(cached) " >&6
25227 else
25228   gcc_cv_as_line_zero=no
25229   if test $in_tree_gas = yes; then
25230     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25231   then gcc_cv_as_line_zero=yes
25232 fi
25233   elif test "x$gcc_cv_as" != x; then
25234     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25235     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25236   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25237   (eval $ac_try) 2>&5
25238   ac_status=$?
25239   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25240   test $ac_status = 0; }; } &&
25241        test "x`cat conftest.out`" = x
25242     then
25243       gcc_cv_as_line_zero=yes
25244     else
25245       echo "configure: failed program was" >&5
25246       cat conftest.s >&5
25247       echo "configure: error output was" >&5
25248       cat conftest.out >&5
25249     fi
25250     rm -f conftest.o conftest.s conftest.out
25251   fi
25252 fi
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25254 $as_echo "$gcc_cv_as_line_zero" >&6; }
25255 if test "x$gcc_cv_as_line_zero" = xyes; then
25256
25257 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25258
25259 fi
25260
25261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25262 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25263 gcc_cv_ld_eh_frame_hdr=no
25264 if test $in_tree_ld = yes ; then
25265   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 \
25266      && test $in_tree_ld_is_elf = yes; then
25267     gcc_cv_ld_eh_frame_hdr=yes
25268   fi
25269 elif test x$gcc_cv_ld != x; then
25270         # Check if linker supports --eh-frame-hdr option
25271         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
25272                 gcc_cv_ld_eh_frame_hdr=yes
25273         fi
25274 fi
25275
25276 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
25277
25278 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25279
25280 fi
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25282 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25283
25284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25285 $as_echo_n "checking linker position independent executable support... " >&6; }
25286 gcc_cv_ld_pie=no
25287 if test $in_tree_ld = yes ; then
25288   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 \
25289      && test $in_tree_ld_is_elf = yes; then
25290     gcc_cv_ld_pie=yes
25291   fi
25292 elif test x$gcc_cv_ld != x; then
25293         # Check if linker supports -pie option
25294         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
25295                 gcc_cv_ld_pie=yes
25296         fi
25297 fi
25298 if test x"$gcc_cv_ld_pie" = xyes; then
25299
25300 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25301
25302 fi
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25304 $as_echo "$gcc_cv_ld_pie" >&6; }
25305
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25307 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25308 gcc_cv_ld_eh_gc_sections=no
25309 if test $in_tree_ld = yes ; then
25310   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 \
25311      && test $in_tree_ld_is_elf = yes; then
25312     gcc_cv_ld_eh_gc_sections=yes
25313   fi
25314 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
25315   cat > conftest.s <<EOF
25316         .section        .text
25317 .globl _start
25318         .type _start, @function
25319 _start:
25320         .long foo
25321         .size _start, .-_start
25322         .section        .text.foo,"ax",@progbits
25323         .type foo, @function
25324 foo:
25325         .long 0
25326         .size foo, .-foo
25327         .section        .gcc_except_table.foo,"a",@progbits
25328 .L0:
25329         .long 0
25330         .section        .eh_frame,"a",@progbits
25331         .long .L0
25332 EOF
25333   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25334     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25335          | grep "gc-sections option ignored" > /dev/null; then
25336       gcc_cv_ld_eh_gc_sections=no
25337     elif $gcc_cv_objdump -h conftest 2> /dev/null \
25338          | grep gcc_except_table > /dev/null; then
25339       gcc_cv_ld_eh_gc_sections=yes
25340       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25341       if test x$gcc_cv_as_comdat_group != xyes; then
25342         gcc_cv_ld_eh_gc_sections=no
25343         cat > conftest.s <<EOF
25344         .section        .text
25345 .globl _start
25346         .type _start, @function
25347 _start:
25348         .long foo
25349         .size _start, .-_start
25350         .section        .gnu.linkonce.t.foo,"ax",@progbits
25351         .type foo, @function
25352 foo:
25353         .long 0
25354         .size foo, .-foo
25355         .section        .gcc_except_table.foo,"a",@progbits
25356 .L0:
25357         .long 0
25358         .section        .eh_frame,"a",@progbits
25359         .long .L0
25360 EOF
25361         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25362           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25363                | grep "gc-sections option ignored" > /dev/null; then
25364             gcc_cv_ld_eh_gc_sections=no
25365           elif $gcc_cv_objdump -h conftest 2> /dev/null \
25366                | grep gcc_except_table > /dev/null; then
25367             gcc_cv_ld_eh_gc_sections=yes
25368           fi
25369         fi
25370       fi
25371     fi
25372   fi
25373   rm -f conftest.s conftest.o conftest
25374 fi
25375 case "$target" in
25376   hppa*-*-linux*)
25377     # ??? This apparently exposes a binutils bug with PC-relative relocations.
25378     gcc_cv_ld_eh_gc_sections=no
25379     ;;
25380 esac
25381 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
25382
25383 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25384
25385 fi
25386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25387 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25388
25389 # --------
25390 # UNSORTED
25391 # --------
25392
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
25394 $as_echo_n "checking linker --as-needed support... " >&6; }
25395 if test "${gcc_cv_ld_as_needed+set}" = set; then :
25396   $as_echo_n "(cached) " >&6
25397 else
25398   gcc_cv_ld_as_needed=no
25399 if test $in_tree_ld = yes ; then
25400   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 \
25401      && test $in_tree_ld_is_elf = yes; then
25402     gcc_cv_ld_as_needed=yes
25403   fi
25404 elif test x$gcc_cv_ld != x; then
25405         # Check if linker supports --as-needed and --no-as-needed options
25406         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
25407                 gcc_cv_ld_as_needed=yes
25408         fi
25409 fi
25410
25411 fi
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
25413 $as_echo "$gcc_cv_ld_as_needed" >&6; }
25414 if test x"$gcc_cv_ld_as_needed" = xyes; then
25415
25416 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25417
25418 fi
25419
25420 case "$target:$tm_file" in
25421   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
25422     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25423 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25424 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25425   $as_echo_n "(cached) " >&6
25426 else
25427   gcc_cv_ld_no_dot_syms=no
25428     if test $in_tree_ld = yes ; then
25429       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
25430         gcc_cv_ld_no_dot_syms=yes
25431       fi
25432     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25433       cat > conftest1.s <<EOF
25434         .text
25435         bl .foo
25436 EOF
25437       cat > conftest2.s <<EOF
25438         .section ".opd","aw"
25439         .align 3
25440         .globl foo
25441         .type foo,@function
25442 foo:
25443         .quad .LEfoo,.TOC.@tocbase,0
25444         .text
25445 .LEfoo:
25446         blr
25447         .size foo,.-.LEfoo
25448 EOF
25449       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
25450          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
25451          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
25452         gcc_cv_ld_no_dot_syms=yes
25453       fi
25454       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25455     fi
25456
25457 fi
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25459 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25460     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
25461
25462 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25463
25464     fi
25465
25466     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25467 $as_echo_n "checking linker large toc support... " >&6; }
25468 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25469   $as_echo_n "(cached) " >&6
25470 else
25471   gcc_cv_ld_large_toc=no
25472     if test $in_tree_ld = yes ; then
25473       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
25474         gcc_cv_ld_large_toc=yes
25475       fi
25476     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25477       cat > conftest.s <<EOF
25478         .section ".tbss","awT",@nobits
25479         .align 3
25480 ie0:    .space 8
25481         .global _start
25482         .text
25483 _start:
25484         addis 9,13,ie0@got@tprel@ha
25485         ld 9,ie0@got@tprel@l(9)
25486 EOF
25487       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
25488          && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
25489         gcc_cv_ld_large_toc=yes
25490       fi
25491       rm -f conftest conftest.o conftest.s
25492     fi
25493
25494 fi
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25496 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25497     if test x"$gcc_cv_ld_large_toc" = xyes; then
25498
25499 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25500
25501     fi
25502     ;;
25503 esac
25504
25505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25506 $as_echo_n "checking linker --build-id support... " >&6; }
25507 if test "${gcc_cv_ld_buildid+set}" = set; then :
25508   $as_echo_n "(cached) " >&6
25509 else
25510   gcc_cv_ld_buildid=no
25511   if test $in_tree_ld = yes ; then
25512     if test "$gcc_cv_gld_major_version" -eq 2 -a \
25513        "$gcc_cv_gld_minor_version" -ge 18 -o \
25514        "$gcc_cv_gld_major_version" -gt 2 \
25515        && test $in_tree_ld_is_elf = yes; then
25516       gcc_cv_ld_buildid=yes
25517     fi
25518   elif test x$gcc_cv_ld != x; then
25519     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
25520       gcc_cv_ld_buildid=yes
25521     fi
25522   fi
25523 fi
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25525 $as_echo "$gcc_cv_ld_buildid" >&6; }
25526 if test x"$gcc_cv_ld_buildid" = xyes; then
25527
25528 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25529
25530 fi
25531
25532 # Check whether --enable-linker-build-id was given.
25533 if test "${enable_linker_build_id+set}" = set; then :
25534   enableval=$enable_linker_build_id;
25535 else
25536   enable_linker_build_id=no
25537 fi
25538
25539
25540 if test x"$enable_linker_build_id" = xyes; then
25541   if test x"$gcc_cv_ld_buildid" = xyes; then
25542
25543 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25544
25545   else
25546     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25547 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25548   fi
25549 fi
25550
25551 # In binutils 2.21, GNU ld gained support for new emulations fully
25552 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25554 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25555 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25556   $as_echo_n "(cached) " >&6
25557 else
25558   gcc_cv_ld_sol2_emulation=no
25559   if test $in_tree_ld = yes ; then
25560     if test "$gcc_cv_gld_major_version" -eq 2 -a \
25561        "$gcc_cv_gld_minor_version" -ge 21 -o \
25562        "$gcc_cv_gld_major_version" -gt 2 \
25563        && test $in_tree_ld_is_elf = yes; then
25564       gcc_cv_ld_sol2_emulation=yes
25565     fi
25566   elif test x$gcc_cv_ld != x; then
25567     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
25568        grep _sol2 > /dev/null; then
25569       gcc_cv_ld_sol2_emulation=yes
25570     fi
25571   fi
25572 fi
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25574 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25575 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
25576
25577 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25578
25579 fi
25580
25581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25582 $as_echo_n "checking linker --sysroot support... " >&6; }
25583 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25584   $as_echo_n "(cached) " >&6
25585 else
25586   gcc_cv_ld_sysroot=no
25587   if test $in_tree_ld = yes ; then
25588       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
25589         gcc_cv_ld_sysroot=yes
25590       fi
25591   elif test x$gcc_cv_ld != x; then
25592     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
25593       gcc_cv_ld_sysroot=yes
25594     fi
25595   fi
25596 fi
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25598 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25599 if test x"$gcc_cv_ld_sysroot" = xyes; then
25600
25601 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25602
25603 fi
25604
25605 if test x$with_sysroot = x && test x$host = x$target \
25606    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25607    && test "$prefix" != "NONE"; then
25608
25609 cat >>confdefs.h <<_ACEOF
25610 #define PREFIX_INCLUDE_DIR "$prefix/include"
25611 _ACEOF
25612
25613 fi
25614
25615 # Test for stack protector support in target C library.
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25617 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25618 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25619   $as_echo_n "(cached) " >&6
25620 else
25621   gcc_cv_libc_provides_ssp=no
25622     case "$target" in
25623        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
25624       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25625         if test "x$with_headers" != x; then
25626           glibc_header_dir=$with_headers
25627         elif test "x$with_sysroot" = x; then
25628           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25629         elif test "x$with_build_sysroot" != "x"; then
25630           glibc_header_dir="${with_build_sysroot}/usr/include"
25631         elif test "x$with_sysroot" = xyes; then
25632           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25633         else
25634           glibc_header_dir="${with_sysroot}/usr/include"
25635         fi
25636       else
25637         glibc_header_dir=/usr/include
25638       fi
25639       # glibc 2.4 and later provides __stack_chk_fail and
25640       # either __stack_chk_guard, or TLS access to stack guard canary.
25641       if test -f $glibc_header_dir/features.h \
25642          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
25643             $glibc_header_dir/features.h > /dev/null; then
25644         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
25645            $glibc_header_dir/features.h > /dev/null; then
25646           gcc_cv_libc_provides_ssp=yes
25647         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
25648              $glibc_header_dir/features.h > /dev/null \
25649              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
25650              $glibc_header_dir/features.h > /dev/null; then
25651           gcc_cv_libc_provides_ssp=yes
25652         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
25653              $glibc_header_dir/features.h > /dev/null && \
25654              test -f $glibc_header_dir/bits/uClibc_config.h && \
25655              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
25656              $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
25657           gcc_cv_libc_provides_ssp=yes
25658         fi
25659       fi
25660         ;;
25661        *-*-gnu*)
25662          # Avoid complicated tests (see
25663          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25664          # simply assert that glibc does provide this, which is true for all
25665          # realistically usable GNU/Hurd configurations.
25666          gcc_cv_libc_provides_ssp=yes;;
25667        *-*-darwin* | *-*-freebsd*)
25668          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25669 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
25670   gcc_cv_libc_provides_ssp=yes
25671 else
25672   echo "no __stack_chk_fail on this target"
25673 fi
25674
25675         ;;
25676   *) gcc_cv_libc_provides_ssp=no ;;
25677     esac
25678 fi
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25680 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25681
25682 if test x$gcc_cv_libc_provides_ssp = xyes; then
25683
25684 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25685
25686 fi
25687
25688 # Check if TFmode long double should be used by default or not.
25689 # Some glibc targets used DFmode long double, but with glibc 2.4
25690 # and later they can use TFmode.
25691 case "$target" in
25692   powerpc*-*-linux* | \
25693   powerpc*-*-gnu* | \
25694   sparc*-*-linux* | \
25695   s390*-*-linux* | \
25696   alpha*-*-linux*)
25697
25698 # Check whether --with-long-double-128 was given.
25699 if test "${with_long_double_128+set}" = set; then :
25700   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
25701 else
25702   gcc_cv_target_ldbl128=no
25703       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25704         if test "x$with_sysroot" = x; then
25705           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25706         elif test "x$with_build_sysroot" != "x"; then
25707           glibc_header_dir="${with_build_sysroot}/usr/include"
25708         elif test "x$with_sysroot" = xyes; then
25709           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25710         else
25711           glibc_header_dir="${with_sysroot}/usr/include"
25712         fi
25713       else
25714         glibc_header_dir=/usr/include
25715       fi
25716       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25717         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
25718       && gcc_cv_target_ldbl128=yes
25719
25720 fi
25721
25722     ;;
25723 esac
25724 if test x$gcc_cv_target_ldbl128 = xyes; then
25725
25726 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25727
25728 fi
25729
25730 # Find out what GC implementation we want, or may, use.
25731
25732 # Check whether --with-gc was given.
25733 if test "${with_gc+set}" = set; then :
25734   withval=$with_gc; case "$withval" in
25735   page)
25736     GGC=ggc-$withval
25737     ;;
25738   zone)
25739     GGC=ggc-$withval
25740
25741 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25742
25743     ;;
25744   *)
25745     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
25746     ;;
25747 esac
25748 else
25749   GGC=ggc-page
25750 fi
25751
25752
25753 echo "Using $GGC for garbage collection."
25754
25755 # Libraries to use on the host.  This will normally be set by the top
25756 # level Makefile.  Here we simply capture the value for our Makefile.
25757 if test -z "${HOST_LIBS+set}"; then
25758   HOST_LIBS=
25759 fi
25760
25761
25762 # Use the system's zlib library.
25763 zlibdir=-L../zlib
25764 zlibinc="-I\$(srcdir)/../zlib"
25765
25766 # Check whether --with-system-zlib was given.
25767 if test "${with_system_zlib+set}" = set; then :
25768   withval=$with_system_zlib; zlibdir=
25769 zlibinc=
25770
25771 fi
25772
25773
25774
25775
25776
25777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25778 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25779     # Check whether --enable-maintainer-mode was given.
25780 if test "${enable_maintainer_mode+set}" = set; then :
25781   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
25782 else
25783   maintainer_mode=no
25784 fi
25785
25786
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25788 $as_echo "$maintainer_mode" >&6; }
25789
25790 if test "$maintainer_mode" = "yes"; then
25791   MAINT=''
25792 else
25793   MAINT='#'
25794 fi
25795
25796 # --------------
25797 # Language hooks
25798 # --------------
25799
25800 # Make empty files to contain the specs and options for each language.
25801 # Then add #include lines to for a compiler that has specs and/or options.
25802
25803 subdirs=
25804 lang_opt_files=
25805 lang_specs_files=
25806 lang_tree_files=
25807 # These (without "all_") are set in each config-lang.in.
25808 # `language' must be a single word so is spelled singularly.
25809 all_languages=
25810 all_compilers=
25811 all_outputs='Makefile'
25812 # List of language makefile fragments.
25813 all_lang_makefrags=
25814 # Additional files for gengtype
25815 all_gtfiles="$target_gtfiles"
25816
25817 # These are the languages that are set in --enable-languages,
25818 # and are available in the GCC tree.
25819 all_selected_languages=
25820
25821 # Add the language fragments.
25822 # Languages are added via two mechanisms.  Some information must be
25823 # recorded in makefile variables, these are defined in config-lang.in.
25824 # We accumulate them and plug them into the main Makefile.
25825 # The other mechanism is a set of hooks for each of the main targets
25826 # like `clean', `install', etc.
25827
25828 language_hooks="Make-hooks"
25829
25830 for lang in ${srcdir}/*/config-lang.in
25831 do
25832         test "$lang" = "${srcdir}/*/config-lang.in" && continue
25833
25834         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
25835         if test "x$lang_alias" = x
25836         then
25837               echo "$lang doesn't set \$language." 1>&2
25838               exit 1
25839         fi
25840         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25841         subdirs="$subdirs $subdir"
25842
25843         # $gcc_subdir is where the gcc integration files are to be found
25844         # for a language, both for internal compiler purposes (compiler
25845         # sources implementing front-end to GCC tree converters), and for
25846         # build infrastructure purposes (Make-lang.in, etc.)
25847         #
25848         # This will be <subdir> (relative to $srcdir) if a line like
25849         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25850         # is found in <langdir>/config-lang.in, and will remain <langdir>
25851         # otherwise.
25852         #
25853         # Except for the language alias (fetched above), the regular
25854         # "config-lang.in" contents are always retrieved from $gcc_subdir,
25855         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25856         # only this and the language alias.
25857
25858         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
25859         if [ "$gcc_subdir" = "" ]; then
25860            gcc_subdir="$subdir"
25861         fi
25862
25863         case ",$enable_languages," in
25864         *,$lang_alias,*)
25865             all_selected_languages="$all_selected_languages $lang_alias"
25866             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
25867                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25868             fi
25869             ;;
25870         esac
25871
25872         language=
25873         boot_language=
25874         compilers=
25875         outputs=
25876         gtfiles=
25877         subdir_requires=
25878         . ${srcdir}/$gcc_subdir/config-lang.in
25879         if test "x$language" = x
25880         then
25881                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25882                 exit 1
25883         fi
25884
25885         ok=:
25886         case ",$enable_languages," in
25887                 *,$lang_alias,*) ;;
25888                 *)
25889                         for i in $subdir_requires; do
25890                                 test -f "${srcdir}/$i/config-lang.in" && continue
25891                                 ok=false
25892                                 break
25893                         done
25894                 ;;
25895         esac
25896         $ok || continue
25897
25898         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25899         if test -f $srcdir/$gcc_subdir/lang.opt; then
25900             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25901             all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
25902         fi
25903         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
25904             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25905         fi
25906         all_languages="$all_languages $language"
25907         all_compilers="$all_compilers $compilers"
25908         all_outputs="$all_outputs $outputs"
25909         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
25910         case ",$enable_languages," in
25911                 *,lto,*)
25912
25913 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25914
25915                     enable_lto=yes
25916
25917                     ;;
25918                 *) ;;
25919         esac
25920 done
25921
25922 # Pick up gtfiles for c
25923 gtfiles=
25924 . ${srcdir}/c-config-lang.in
25925 all_gtfiles="$all_gtfiles [c] $gtfiles"
25926
25927 check_languages=
25928 for language in $all_selected_languages
25929 do
25930         check_languages="$check_languages check-$language"
25931 done
25932
25933 # We link each language in with a set of hooks, reached indirectly via
25934 # lang.${target}.  Only do so for selected languages.
25935
25936 rm -f Make-hooks
25937 touch Make-hooks
25938 target_list="all.cross start.encap rest.encap tags \
25939         install-common install-man install-info install-pdf install-html dvi \
25940         pdf html uninstall info man srcextra srcman srcinfo \
25941         mostlyclean clean distclean maintainer-clean install-plugin"
25942
25943 for t in $target_list
25944 do
25945         x=
25946         for lang in $all_selected_languages
25947         do
25948                 x="$x $lang.$t"
25949         done
25950         echo "lang.$t: $x" >> Make-hooks
25951 done
25952
25953 # --------
25954 # Option include files
25955 # --------
25956
25957 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
25958 option_includes="option-includes.mk"
25959
25960
25961 # --------
25962 # UNSORTED
25963 # --------
25964
25965 # Create .gdbinit.
25966
25967 echo "dir ." > .gdbinit
25968 echo "dir ${srcdir}" >> .gdbinit
25969 if test x$gdb_needs_out_file_path = xyes
25970 then
25971         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25972 fi
25973 if test "x$subdirs" != x; then
25974         for s in $subdirs
25975         do
25976                 echo "dir ${srcdir}/$s" >> .gdbinit
25977         done
25978 fi
25979 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25980
25981 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25982
25983
25984
25985 # Find a directory in which to install a shared libgcc.
25986
25987 # Check whether --enable-version-specific-runtime-libs was given.
25988 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25989   enableval=$enable_version_specific_runtime_libs;
25990 fi
25991
25992
25993
25994 # Check whether --with-slibdir was given.
25995 if test "${with_slibdir+set}" = set; then :
25996   withval=$with_slibdir; slibdir="$with_slibdir"
25997 else
25998   if test "${enable_version_specific_runtime_libs+set}" = set; then
25999   slibdir='$(libsubdir)'
26000 elif test "$host" != "$target"; then
26001   slibdir='$(build_tooldir)/lib'
26002 else
26003   slibdir='$(libdir)'
26004 fi
26005 fi
26006
26007
26008
26009 # Substitute configuration variables
26010
26011
26012
26013
26014
26015
26016
26017
26018
26019
26020
26021
26022
26023
26024
26025
26026
26027
26028
26029
26030
26031
26032
26033
26034
26035
26036
26037
26038
26039
26040
26041
26042
26043
26044
26045
26046
26047
26048
26049
26050
26051
26052
26053
26054
26055
26056
26057
26058
26059
26060
26061
26062
26063
26064
26065
26066
26067
26068
26069
26070
26071
26072 # Echo link setup.
26073 if test x${build} = x${host} ; then
26074   if test x${host} = x${target} ; then
26075     echo "Links are now set up to build a native compiler for ${target}." 1>&2
26076   else
26077     echo "Links are now set up to build a cross-compiler" 1>&2
26078     echo " from ${host} to ${target}." 1>&2
26079   fi
26080 else
26081   if test x${host} = x${target} ; then
26082     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26083     echo " for ${target}." 1>&2
26084   else
26085     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26086     echo " from ${host} to ${target}." 1>&2
26087   fi
26088 fi
26089
26090
26091
26092
26093
26094
26095
26096
26097
26098 if test "x${CLOOGLIBS}" != "x" ; then
26099
26100 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26101
26102 fi
26103
26104 # Check for plugin support
26105 # Check whether --enable-plugin was given.
26106 if test "${enable_plugin+set}" = set; then :
26107   enableval=$enable_plugin; enable_plugin=$enableval
26108 else
26109   enable_plugin=yes; default_plugin=yes
26110 fi
26111
26112
26113 pluginlibs=
26114
26115 case "${host}" in
26116   *-*-darwin*)
26117     if test x$build = x$host; then
26118       export_sym_check="nm${exeext} -g"
26119     elif test x$host = x$target; then
26120       export_sym_check="$gcc_cv_nm -g"
26121     else
26122       export_sym_check=
26123     fi
26124   ;;
26125   *)
26126     if test x$build = x$host; then
26127       export_sym_check="objdump${exeext} -T"
26128     elif test x$host = x$target; then
26129       export_sym_check="$gcc_cv_objdump -T"
26130     else
26131       export_sym_check=
26132     fi
26133   ;;
26134 esac
26135
26136 if test x"$enable_plugin" = x"yes"; then
26137
26138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26139 $as_echo_n "checking for exported symbols... " >&6; }
26140   if test "x$export_sym_check" != x; then
26141     echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26142     ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
26143     if $export_sym_check conftest | grep foobar > /dev/null; then
26144       : # No need to use a flag
26145       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26146 $as_echo "yes" >&6; }
26147     else
26148       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26149 $as_echo "yes" >&6; }
26150       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26151 $as_echo_n "checking for -rdynamic... " >&6; }
26152       ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
26153       if $export_sym_check conftest | grep foobar > /dev/null; then
26154         plugin_rdynamic=yes
26155         pluginlibs="-rdynamic"
26156       else
26157         plugin_rdynamic=no
26158         enable_plugin=no
26159       fi
26160       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26161 $as_echo "$plugin_rdynamic" >&6; }
26162     fi
26163   else
26164     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26165 $as_echo "unable to check" >&6; }
26166   fi
26167
26168   # Check -ldl
26169   saved_LIBS="$LIBS"
26170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26171 $as_echo_n "checking for library containing dlopen... " >&6; }
26172 if test "${ac_cv_search_dlopen+set}" = set; then :
26173   $as_echo_n "(cached) " >&6
26174 else
26175   ac_func_search_save_LIBS=$LIBS
26176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26177 /* end confdefs.h.  */
26178
26179 /* Override any GCC internal prototype to avoid an error.
26180    Use char because int might match the return type of a GCC
26181    builtin and then its argument prototype would still apply.  */
26182 #ifdef __cplusplus
26183 extern "C"
26184 #endif
26185 char dlopen ();
26186 int
26187 main ()
26188 {
26189 return dlopen ();
26190   ;
26191   return 0;
26192 }
26193 _ACEOF
26194 for ac_lib in '' dl; do
26195   if test -z "$ac_lib"; then
26196     ac_res="none required"
26197   else
26198     ac_res=-l$ac_lib
26199     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26200   fi
26201   if ac_fn_c_try_link "$LINENO"; then :
26202   ac_cv_search_dlopen=$ac_res
26203 fi
26204 rm -f core conftest.err conftest.$ac_objext \
26205     conftest$ac_exeext
26206   if test "${ac_cv_search_dlopen+set}" = set; then :
26207   break
26208 fi
26209 done
26210 if test "${ac_cv_search_dlopen+set}" = set; then :
26211
26212 else
26213   ac_cv_search_dlopen=no
26214 fi
26215 rm conftest.$ac_ext
26216 LIBS=$ac_func_search_save_LIBS
26217 fi
26218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26219 $as_echo "$ac_cv_search_dlopen" >&6; }
26220 ac_res=$ac_cv_search_dlopen
26221 if test "$ac_res" != no; then :
26222   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26223
26224 fi
26225
26226   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
26227     pluginlibs="$pluginlibs -ldl"
26228   fi
26229   LIBS="$saved_LIBS"
26230
26231   # Check that we can build shared objects with -fPIC -shared
26232   saved_LDFLAGS="$LDFLAGS"
26233   saved_CFLAGS="$CFLAGS"
26234   case "${host}" in
26235     *-*-darwin*)
26236       CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26237       CFLAGS="$CFLAGS -fPIC"
26238       LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
26239     ;;
26240     *)
26241       CFLAGS="$CFLAGS -fPIC"
26242       LDFLAGS="$LDFLAGS -fPIC -shared"
26243     ;;
26244   esac
26245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26246 $as_echo_n "checking for -fPIC -shared... " >&6; }
26247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26248 /* end confdefs.h.  */
26249 extern int X;
26250 int
26251 main ()
26252 {
26253 return X == 0;
26254   ;
26255   return 0;
26256 }
26257 _ACEOF
26258 if ac_fn_c_try_link "$LINENO"; then :
26259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26260 $as_echo "yes" >&6; }; have_pic_shared=yes
26261 else
26262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26263 $as_echo "no" >&6; }; have_pic_shared=no
26264 fi
26265 rm -f core conftest.err conftest.$ac_objext \
26266     conftest$ac_exeext conftest.$ac_ext
26267   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
26268     pluginlibs=
26269     enable_plugin=no
26270   fi
26271   LDFLAGS="$saved_LDFLAGS"
26272   CFLAGS="$saved_CFLAGS"
26273
26274   # If plugin support had been requested but not available, fail.
26275   if test x"$enable_plugin" = x"no" ; then
26276     if test x"$default_plugin" != x"yes"; then
26277       as_fn_error "
26278 Building GCC with plugin support requires a host that supports
26279 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26280     fi
26281   fi
26282 fi
26283
26284
26285
26286 if test x"$enable_plugin" = x"yes"; then
26287
26288 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26289
26290 fi
26291
26292 # Configure the subdirectories
26293 # AC_CONFIG_SUBDIRS($subdirs)
26294
26295 # Create the Makefile
26296 # and configure language subdirectories
26297 ac_config_files="$ac_config_files $all_outputs"
26298
26299
26300 ac_config_commands="$ac_config_commands default"
26301
26302 cat >confcache <<\_ACEOF
26303 # This file is a shell script that caches the results of configure
26304 # tests run on this system so they can be shared between configure
26305 # scripts and configure runs, see configure's option --config-cache.
26306 # It is not useful on other systems.  If it contains results you don't
26307 # want to keep, you may remove or edit it.
26308 #
26309 # config.status only pays attention to the cache file if you give it
26310 # the --recheck option to rerun configure.
26311 #
26312 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26313 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26314 # following values.
26315
26316 _ACEOF
26317
26318 # The following way of writing the cache mishandles newlines in values,
26319 # but we know of no workaround that is simple, portable, and efficient.
26320 # So, we kill variables containing newlines.
26321 # Ultrix sh set writes to stderr and can't be redirected directly,
26322 # and sets the high bit in the cache file unless we assign to the vars.
26323 (
26324   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26325     eval ac_val=\$$ac_var
26326     case $ac_val in #(
26327     *${as_nl}*)
26328       case $ac_var in #(
26329       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26330 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26331       esac
26332       case $ac_var in #(
26333       _ | IFS | as_nl) ;; #(
26334       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26335       *) { eval $ac_var=; unset $ac_var;} ;;
26336       esac ;;
26337     esac
26338   done
26339
26340   (set) 2>&1 |
26341     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26342     *${as_nl}ac_space=\ *)
26343       # `set' does not quote correctly, so add quotes: double-quote
26344       # substitution turns \\\\ into \\, and sed turns \\ into \.
26345       sed -n \
26346         "s/'/'\\\\''/g;
26347           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26348       ;; #(
26349     *)
26350       # `set' quotes correctly as required by POSIX, so do not add quotes.
26351       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26352       ;;
26353     esac |
26354     sort
26355 ) |
26356   sed '
26357      /^ac_cv_env_/b end
26358      t clear
26359      :clear
26360      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26361      t end
26362      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26363      :end' >>confcache
26364 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26365   if test -w "$cache_file"; then
26366     test "x$cache_file" != "x/dev/null" &&
26367       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26368 $as_echo "$as_me: updating cache $cache_file" >&6;}
26369     cat confcache >$cache_file
26370   else
26371     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26372 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26373   fi
26374 fi
26375 rm -f confcache
26376
26377 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26378 # Let make expand exec_prefix.
26379 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26380
26381 DEFS=-DHAVE_CONFIG_H
26382
26383 ac_libobjs=
26384 ac_ltlibobjs=
26385 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26386   # 1. Remove the extension, and $U if already installed.
26387   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26388   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26389   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26390   #    will be set to the directory where LIBOBJS objects are built.
26391   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26392   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26393 done
26394 LIBOBJS=$ac_libobjs
26395
26396 LTLIBOBJS=$ac_ltlibobjs
26397
26398
26399
26400
26401 : ${CONFIG_STATUS=./config.status}
26402 ac_write_fail=0
26403 ac_clean_files_save=$ac_clean_files
26404 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26406 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26407 as_write_fail=0
26408 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26409 #! $SHELL
26410 # Generated by $as_me.
26411 # Run this file to recreate the current configuration.
26412 # Compiler output produced by configure, useful for debugging
26413 # configure, is in config.log if it exists.
26414
26415 debug=false
26416 ac_cs_recheck=false
26417 ac_cs_silent=false
26418
26419 SHELL=\${CONFIG_SHELL-$SHELL}
26420 export SHELL
26421 _ASEOF
26422 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26423 ## -------------------- ##
26424 ## M4sh Initialization. ##
26425 ## -------------------- ##
26426
26427 # Be more Bourne compatible
26428 DUALCASE=1; export DUALCASE # for MKS sh
26429 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26430   emulate sh
26431   NULLCMD=:
26432   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26433   # is contrary to our usage.  Disable this feature.
26434   alias -g '${1+"$@"}'='"$@"'
26435   setopt NO_GLOB_SUBST
26436 else
26437   case `(set -o) 2>/dev/null` in #(
26438   *posix*) :
26439     set -o posix ;; #(
26440   *) :
26441      ;;
26442 esac
26443 fi
26444
26445
26446 as_nl='
26447 '
26448 export as_nl
26449 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26450 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26451 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26452 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26453 # Prefer a ksh shell builtin over an external printf program on Solaris,
26454 # but without wasting forks for bash or zsh.
26455 if test -z "$BASH_VERSION$ZSH_VERSION" \
26456     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26457   as_echo='print -r --'
26458   as_echo_n='print -rn --'
26459 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26460   as_echo='printf %s\n'
26461   as_echo_n='printf %s'
26462 else
26463   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26464     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26465     as_echo_n='/usr/ucb/echo -n'
26466   else
26467     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26468     as_echo_n_body='eval
26469       arg=$1;
26470       case $arg in #(
26471       *"$as_nl"*)
26472         expr "X$arg" : "X\\(.*\\)$as_nl";
26473         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26474       esac;
26475       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26476     '
26477     export as_echo_n_body
26478     as_echo_n='sh -c $as_echo_n_body as_echo'
26479   fi
26480   export as_echo_body
26481   as_echo='sh -c $as_echo_body as_echo'
26482 fi
26483
26484 # The user is always right.
26485 if test "${PATH_SEPARATOR+set}" != set; then
26486   PATH_SEPARATOR=:
26487   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26488     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26489       PATH_SEPARATOR=';'
26490   }
26491 fi
26492
26493
26494 # IFS
26495 # We need space, tab and new line, in precisely that order.  Quoting is
26496 # there to prevent editors from complaining about space-tab.
26497 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26498 # splitting by setting IFS to empty value.)
26499 IFS=" ""        $as_nl"
26500
26501 # Find who we are.  Look in the path if we contain no directory separator.
26502 case $0 in #((
26503   *[\\/]* ) as_myself=$0 ;;
26504   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26505 for as_dir in $PATH
26506 do
26507   IFS=$as_save_IFS
26508   test -z "$as_dir" && as_dir=.
26509     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26510   done
26511 IFS=$as_save_IFS
26512
26513      ;;
26514 esac
26515 # We did not find ourselves, most probably we were run as `sh COMMAND'
26516 # in which case we are not to be found in the path.
26517 if test "x$as_myself" = x; then
26518   as_myself=$0
26519 fi
26520 if test ! -f "$as_myself"; then
26521   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26522   exit 1
26523 fi
26524
26525 # Unset variables that we do not need and which cause bugs (e.g. in
26526 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26527 # suppresses any "Segmentation fault" message there.  '((' could
26528 # trigger a bug in pdksh 5.2.14.
26529 for as_var in BASH_ENV ENV MAIL MAILPATH
26530 do eval test x\${$as_var+set} = xset \
26531   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26532 done
26533 PS1='$ '
26534 PS2='> '
26535 PS4='+ '
26536
26537 # NLS nuisances.
26538 LC_ALL=C
26539 export LC_ALL
26540 LANGUAGE=C
26541 export LANGUAGE
26542
26543 # CDPATH.
26544 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26545
26546
26547 # as_fn_error ERROR [LINENO LOG_FD]
26548 # ---------------------------------
26549 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26550 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26551 # script with status $?, using 1 if that was 0.
26552 as_fn_error ()
26553 {
26554   as_status=$?; test $as_status -eq 0 && as_status=1
26555   if test "$3"; then
26556     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26557     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26558   fi
26559   $as_echo "$as_me: error: $1" >&2
26560   as_fn_exit $as_status
26561 } # as_fn_error
26562
26563
26564 # as_fn_set_status STATUS
26565 # -----------------------
26566 # Set $? to STATUS, without forking.
26567 as_fn_set_status ()
26568 {
26569   return $1
26570 } # as_fn_set_status
26571
26572 # as_fn_exit STATUS
26573 # -----------------
26574 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26575 as_fn_exit ()
26576 {
26577   set +e
26578   as_fn_set_status $1
26579   exit $1
26580 } # as_fn_exit
26581
26582 # as_fn_unset VAR
26583 # ---------------
26584 # Portably unset VAR.
26585 as_fn_unset ()
26586 {
26587   { eval $1=; unset $1;}
26588 }
26589 as_unset=as_fn_unset
26590 # as_fn_append VAR VALUE
26591 # ----------------------
26592 # Append the text in VALUE to the end of the definition contained in VAR. Take
26593 # advantage of any shell optimizations that allow amortized linear growth over
26594 # repeated appends, instead of the typical quadratic growth present in naive
26595 # implementations.
26596 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26597   eval 'as_fn_append ()
26598   {
26599     eval $1+=\$2
26600   }'
26601 else
26602   as_fn_append ()
26603   {
26604     eval $1=\$$1\$2
26605   }
26606 fi # as_fn_append
26607
26608 # as_fn_arith ARG...
26609 # ------------------
26610 # Perform arithmetic evaluation on the ARGs, and store the result in the
26611 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26612 # must be portable across $(()) and expr.
26613 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26614   eval 'as_fn_arith ()
26615   {
26616     as_val=$(( $* ))
26617   }'
26618 else
26619   as_fn_arith ()
26620   {
26621     as_val=`expr "$@" || test $? -eq 1`
26622   }
26623 fi # as_fn_arith
26624
26625
26626 if expr a : '\(a\)' >/dev/null 2>&1 &&
26627    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26628   as_expr=expr
26629 else
26630   as_expr=false
26631 fi
26632
26633 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26634   as_basename=basename
26635 else
26636   as_basename=false
26637 fi
26638
26639 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26640   as_dirname=dirname
26641 else
26642   as_dirname=false
26643 fi
26644
26645 as_me=`$as_basename -- "$0" ||
26646 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26647          X"$0" : 'X\(//\)$' \| \
26648          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26649 $as_echo X/"$0" |
26650     sed '/^.*\/\([^/][^/]*\)\/*$/{
26651             s//\1/
26652             q
26653           }
26654           /^X\/\(\/\/\)$/{
26655             s//\1/
26656             q
26657           }
26658           /^X\/\(\/\).*/{
26659             s//\1/
26660             q
26661           }
26662           s/.*/./; q'`
26663
26664 # Avoid depending upon Character Ranges.
26665 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26666 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26667 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26668 as_cr_digits='0123456789'
26669 as_cr_alnum=$as_cr_Letters$as_cr_digits
26670
26671 ECHO_C= ECHO_N= ECHO_T=
26672 case `echo -n x` in #(((((
26673 -n*)
26674   case `echo 'xy\c'` in
26675   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26676   xy)  ECHO_C='\c';;
26677   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26678        ECHO_T=' ';;
26679   esac;;
26680 *)
26681   ECHO_N='-n';;
26682 esac
26683
26684 rm -f conf$$ conf$$.exe conf$$.file
26685 if test -d conf$$.dir; then
26686   rm -f conf$$.dir/conf$$.file
26687 else
26688   rm -f conf$$.dir
26689   mkdir conf$$.dir 2>/dev/null
26690 fi
26691 if (echo >conf$$.file) 2>/dev/null; then
26692   if ln -s conf$$.file conf$$ 2>/dev/null; then
26693     as_ln_s='ln -s'
26694     # ... but there are two gotchas:
26695     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26696     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26697     # In both cases, we have to default to `cp -p'.
26698     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26699       as_ln_s='cp -p'
26700   elif ln conf$$.file conf$$ 2>/dev/null; then
26701     as_ln_s=ln
26702   else
26703     as_ln_s='cp -p'
26704   fi
26705 else
26706   as_ln_s='cp -p'
26707 fi
26708 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26709 rmdir conf$$.dir 2>/dev/null
26710
26711
26712 # as_fn_mkdir_p
26713 # -------------
26714 # Create "$as_dir" as a directory, including parents if necessary.
26715 as_fn_mkdir_p ()
26716 {
26717
26718   case $as_dir in #(
26719   -*) as_dir=./$as_dir;;
26720   esac
26721   test -d "$as_dir" || eval $as_mkdir_p || {
26722     as_dirs=
26723     while :; do
26724       case $as_dir in #(
26725       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26726       *) as_qdir=$as_dir;;
26727       esac
26728       as_dirs="'$as_qdir' $as_dirs"
26729       as_dir=`$as_dirname -- "$as_dir" ||
26730 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26731          X"$as_dir" : 'X\(//\)[^/]' \| \
26732          X"$as_dir" : 'X\(//\)$' \| \
26733          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26734 $as_echo X"$as_dir" |
26735     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26736             s//\1/
26737             q
26738           }
26739           /^X\(\/\/\)[^/].*/{
26740             s//\1/
26741             q
26742           }
26743           /^X\(\/\/\)$/{
26744             s//\1/
26745             q
26746           }
26747           /^X\(\/\).*/{
26748             s//\1/
26749             q
26750           }
26751           s/.*/./; q'`
26752       test -d "$as_dir" && break
26753     done
26754     test -z "$as_dirs" || eval "mkdir $as_dirs"
26755   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26756
26757
26758 } # as_fn_mkdir_p
26759 if mkdir -p . 2>/dev/null; then
26760   as_mkdir_p='mkdir -p "$as_dir"'
26761 else
26762   test -d ./-p && rmdir ./-p
26763   as_mkdir_p=false
26764 fi
26765
26766 if test -x / >/dev/null 2>&1; then
26767   as_test_x='test -x'
26768 else
26769   if ls -dL / >/dev/null 2>&1; then
26770     as_ls_L_option=L
26771   else
26772     as_ls_L_option=
26773   fi
26774   as_test_x='
26775     eval sh -c '\''
26776       if test -d "$1"; then
26777         test -d "$1/.";
26778       else
26779         case $1 in #(
26780         -*)set "./$1";;
26781         esac;
26782         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26783         ???[sx]*):;;*)false;;esac;fi
26784     '\'' sh
26785   '
26786 fi
26787 as_executable_p=$as_test_x
26788
26789 # Sed expression to map a string onto a valid CPP name.
26790 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26791
26792 # Sed expression to map a string onto a valid variable name.
26793 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26794
26795
26796 exec 6>&1
26797 ## ----------------------------------- ##
26798 ## Main body of $CONFIG_STATUS script. ##
26799 ## ----------------------------------- ##
26800 _ASEOF
26801 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26802
26803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26804 # Save the log message, to keep $0 and so on meaningful, and to
26805 # report actual input values of CONFIG_FILES etc. instead of their
26806 # values after options handling.
26807 ac_log="
26808 This file was extended by $as_me, which was
26809 generated by GNU Autoconf 2.64.  Invocation command line was
26810
26811   CONFIG_FILES    = $CONFIG_FILES
26812   CONFIG_HEADERS  = $CONFIG_HEADERS
26813   CONFIG_LINKS    = $CONFIG_LINKS
26814   CONFIG_COMMANDS = $CONFIG_COMMANDS
26815   $ $0 $@
26816
26817 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26818 "
26819
26820 _ACEOF
26821
26822 case $ac_config_files in *"
26823 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26824 esac
26825
26826 case $ac_config_headers in *"
26827 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26828 esac
26829
26830
26831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26832 # Files that config.status was made for.
26833 config_files="$ac_config_files"
26834 config_headers="$ac_config_headers"
26835 config_commands="$ac_config_commands"
26836
26837 _ACEOF
26838
26839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26840 ac_cs_usage="\
26841 \`$as_me' instantiates files and other configuration actions
26842 from templates according to the current configuration.  Unless the files
26843 and actions are specified as TAGs, all are instantiated by default.
26844
26845 Usage: $0 [OPTION]... [TAG]...
26846
26847   -h, --help       print this help, then exit
26848   -V, --version    print version number and configuration settings, then exit
26849   -q, --quiet, --silent
26850                    do not print progress messages
26851   -d, --debug      don't remove temporary files
26852       --recheck    update $as_me by reconfiguring in the same conditions
26853       --file=FILE[:TEMPLATE]
26854                    instantiate the configuration file FILE
26855       --header=FILE[:TEMPLATE]
26856                    instantiate the configuration header FILE
26857
26858 Configuration files:
26859 $config_files
26860
26861 Configuration headers:
26862 $config_headers
26863
26864 Configuration commands:
26865 $config_commands
26866
26867 Report bugs to the package provider."
26868
26869 _ACEOF
26870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26871 ac_cs_version="\\
26872 config.status
26873 configured by $0, generated by GNU Autoconf 2.64,
26874   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26875
26876 Copyright (C) 2009 Free Software Foundation, Inc.
26877 This config.status script is free software; the Free Software Foundation
26878 gives unlimited permission to copy, distribute and modify it."
26879
26880 ac_pwd='$ac_pwd'
26881 srcdir='$srcdir'
26882 AWK='$AWK'
26883 test -n "\$AWK" || AWK=awk
26884 _ACEOF
26885
26886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26887 # The default lists apply if the user does not specify any file.
26888 ac_need_defaults=:
26889 while test $# != 0
26890 do
26891   case $1 in
26892   --*=*)
26893     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26894     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26895     ac_shift=:
26896     ;;
26897   *)
26898     ac_option=$1
26899     ac_optarg=$2
26900     ac_shift=shift
26901     ;;
26902   esac
26903
26904   case $ac_option in
26905   # Handling of the options.
26906   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26907     ac_cs_recheck=: ;;
26908   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26909     $as_echo "$ac_cs_version"; exit ;;
26910   --debug | --debu | --deb | --de | --d | -d )
26911     debug=: ;;
26912   --file | --fil | --fi | --f )
26913     $ac_shift
26914     case $ac_optarg in
26915     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26916     esac
26917     as_fn_append CONFIG_FILES " '$ac_optarg'"
26918     ac_need_defaults=false;;
26919   --header | --heade | --head | --hea )
26920     $ac_shift
26921     case $ac_optarg in
26922     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26923     esac
26924     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26925     ac_need_defaults=false;;
26926   --he | --h)
26927     # Conflict between --help and --header
26928     as_fn_error "ambiguous option: \`$1'
26929 Try \`$0 --help' for more information.";;
26930   --help | --hel | -h )
26931     $as_echo "$ac_cs_usage"; exit ;;
26932   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26933   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26934     ac_cs_silent=: ;;
26935
26936   # This is an error.
26937   -*) as_fn_error "unrecognized option: \`$1'
26938 Try \`$0 --help' for more information." ;;
26939
26940   *) as_fn_append ac_config_targets " $1"
26941      ac_need_defaults=false ;;
26942
26943   esac
26944   shift
26945 done
26946
26947 ac_configure_extra_args=
26948
26949 if $ac_cs_silent; then
26950   exec 6>/dev/null
26951   ac_configure_extra_args="$ac_configure_extra_args --silent"
26952 fi
26953
26954 _ACEOF
26955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26956 if \$ac_cs_recheck; then
26957   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26958   shift
26959   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26960   CONFIG_SHELL='$SHELL'
26961   export CONFIG_SHELL
26962   exec "\$@"
26963 fi
26964
26965 _ACEOF
26966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26967 exec 5>>config.log
26968 {
26969   echo
26970   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26971 ## Running $as_me. ##
26972 _ASBOX
26973   $as_echo "$ac_log"
26974 } >&5
26975
26976 _ACEOF
26977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26978 #
26979 # INIT-COMMANDS
26980 #
26981 subdirs='$subdirs'
26982
26983 _ACEOF
26984
26985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26986
26987 # Handling of arguments.
26988 for ac_config_target in $ac_config_targets
26989 do
26990   case $ac_config_target in
26991     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
26992     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
26993     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26994     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
26995     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
26996     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26997
26998   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26999   esac
27000 done
27001
27002
27003 # If the user did not use the arguments to specify the items to instantiate,
27004 # then the envvar interface is used.  Set only those that are not.
27005 # We use the long form for the default assignment because of an extremely
27006 # bizarre bug on SunOS 4.1.3.
27007 if $ac_need_defaults; then
27008   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27009   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27010   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27011 fi
27012
27013 # Have a temporary directory for convenience.  Make it in the build tree
27014 # simply because there is no reason against having it here, and in addition,
27015 # creating and moving files from /tmp can sometimes cause problems.
27016 # Hook for its removal unless debugging.
27017 # Note that there is a small window in which the directory will not be cleaned:
27018 # after its creation but before its name has been assigned to `$tmp'.
27019 $debug ||
27020 {
27021   tmp=
27022   trap 'exit_status=$?
27023   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27024 ' 0
27025   trap 'as_fn_exit 1' 1 2 13 15
27026 }
27027 # Create a (secure) tmp directory for tmp files.
27028
27029 {
27030   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27031   test -n "$tmp" && test -d "$tmp"
27032 }  ||
27033 {
27034   tmp=./conf$$-$RANDOM
27035   (umask 077 && mkdir "$tmp")
27036 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27037
27038 # Set up the scripts for CONFIG_FILES section.
27039 # No need to generate them if there are no CONFIG_FILES.
27040 # This happens for instance with `./config.status config.h'.
27041 if test -n "$CONFIG_FILES"; then
27042
27043 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27044   ac_cs_awk_getline=:
27045   ac_cs_awk_pipe_init=
27046   ac_cs_awk_read_file='
27047       while ((getline aline < (F[key])) > 0)
27048         print(aline)
27049       close(F[key])'
27050   ac_cs_awk_pipe_fini=
27051 else
27052   ac_cs_awk_getline=false
27053   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27054   ac_cs_awk_read_file='
27055       print "|#_!!_#|"
27056       print "cat " F[key] " &&"
27057       '$ac_cs_awk_pipe_init
27058   # The final `:' finishes the AND list.
27059   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27060 fi
27061 ac_cr=`echo X | tr X '\015'`
27062 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27063 # But we know of no other shell where ac_cr would be empty at this
27064 # point, so we can use a bashism as a fallback.
27065 if test "x$ac_cr" = x; then
27066   eval ac_cr=\$\'\\r\'
27067 fi
27068 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27069 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27070   ac_cs_awk_cr='\r'
27071 else
27072   ac_cs_awk_cr=$ac_cr
27073 fi
27074
27075 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27076 _ACEOF
27077
27078 # Create commands to substitute file output variables.
27079 {
27080   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27081   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27082   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27083   echo "_ACAWK" &&
27084   echo "_ACEOF"
27085 } >conf$$files.sh &&
27086 . ./conf$$files.sh ||
27087   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27088 rm -f conf$$files.sh
27089
27090 {
27091   echo "cat >conf$$subs.awk <<_ACEOF" &&
27092   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27093   echo "_ACEOF"
27094 } >conf$$subs.sh ||
27095   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27096 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27097 ac_delim='%!_!# '
27098 for ac_last_try in false false false false false :; do
27099   . ./conf$$subs.sh ||
27100     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27101
27102   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27103   if test $ac_delim_n = $ac_delim_num; then
27104     break
27105   elif $ac_last_try; then
27106     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27107   else
27108     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27109   fi
27110 done
27111 rm -f conf$$subs.sh
27112
27113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27114 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27115 _ACEOF
27116 sed -n '
27117 h
27118 s/^/S["/; s/!.*/"]=/
27119 p
27120 g
27121 s/^[^!]*!//
27122 :repl
27123 t repl
27124 s/'"$ac_delim"'$//
27125 t delim
27126 :nl
27127 h
27128 s/\(.\{148\}\).*/\1/
27129 t more1
27130 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27131 p
27132 n
27133 b repl
27134 :more1
27135 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27136 p
27137 g
27138 s/.\{148\}//
27139 t nl
27140 :delim
27141 h
27142 s/\(.\{148\}\).*/\1/
27143 t more2
27144 s/["\\]/\\&/g; s/^/"/; s/$/"/
27145 p
27146 b
27147 :more2
27148 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27149 p
27150 g
27151 s/.\{148\}//
27152 t delim
27153 ' <conf$$subs.awk | sed '
27154 /^[^""]/{
27155   N
27156   s/\n//
27157 }
27158 ' >>$CONFIG_STATUS || ac_write_fail=1
27159 rm -f conf$$subs.awk
27160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27161 _ACAWK
27162 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27163   for (key in S) S_is_set[key] = 1
27164   FS = "\a"
27165   \$ac_cs_awk_pipe_init
27166 }
27167 {
27168   line = $ 0
27169   nfields = split(line, field, "@")
27170   substed = 0
27171   len = length(field[1])
27172   for (i = 2; i < nfields; i++) {
27173     key = field[i]
27174     keylen = length(key)
27175     if (S_is_set[key]) {
27176       value = S[key]
27177       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27178       len += length(value) + length(field[++i])
27179       substed = 1
27180     } else
27181       len += 1 + keylen
27182   }
27183   if (nfields == 3 && !substed) {
27184     key = field[2]
27185     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
27186       \$ac_cs_awk_read_file
27187       next
27188     }
27189   }
27190   print line
27191 }
27192 \$ac_cs_awk_pipe_fini
27193 _ACAWK
27194 _ACEOF
27195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27196 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27197   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27198 else
27199   cat
27200 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27201   || as_fn_error "could not setup config files machinery" "$LINENO" 5
27202 _ACEOF
27203
27204 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27205 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27206 # trailing colons and then remove the whole line if VPATH becomes empty
27207 # (actually we leave an empty line to preserve line numbers).
27208 if test "x$srcdir" = x.; then
27209   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27210 s/:*\$(srcdir):*/:/
27211 s/:*\${srcdir}:*/:/
27212 s/:*@srcdir@:*/:/
27213 s/^\([^=]*=[     ]*\):*/\1/
27214 s/:*$//
27215 s/^[^=]*=[       ]*$//
27216 }'
27217 fi
27218
27219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27220 fi # test -n "$CONFIG_FILES"
27221
27222 # Set up the scripts for CONFIG_HEADERS section.
27223 # No need to generate them if there are no CONFIG_HEADERS.
27224 # This happens for instance with `./config.status Makefile'.
27225 if test -n "$CONFIG_HEADERS"; then
27226 cat >"$tmp/defines.awk" <<\_ACAWK ||
27227 BEGIN {
27228 _ACEOF
27229
27230 # Transform confdefs.h into an awk script `defines.awk', embedded as
27231 # here-document in config.status, that substitutes the proper values into
27232 # config.h.in to produce config.h.
27233
27234 # Create a delimiter string that does not exist in confdefs.h, to ease
27235 # handling of long lines.
27236 ac_delim='%!_!# '
27237 for ac_last_try in false false :; do
27238   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27239   if test -z "$ac_t"; then
27240     break
27241   elif $ac_last_try; then
27242     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27243   else
27244     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27245   fi
27246 done
27247
27248 # For the awk script, D is an array of macro values keyed by name,
27249 # likewise P contains macro parameters if any.  Preserve backslash
27250 # newline sequences.
27251
27252 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27253 sed -n '
27254 s/.\{148\}/&'"$ac_delim"'/g
27255 t rset
27256 :rset
27257 s/^[     ]*#[    ]*define[       ][      ]*/ /
27258 t def
27259 d
27260 :def
27261 s/\\$//
27262 t bsnl
27263 s/["\\]/\\&/g
27264 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27265 D["\1"]=" \3"/p
27266 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
27267 d
27268 :bsnl
27269 s/["\\]/\\&/g
27270 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27271 D["\1"]=" \3\\\\\\n"\\/p
27272 t cont
27273 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27274 t cont
27275 d
27276 :cont
27277 n
27278 s/.\{148\}/&'"$ac_delim"'/g
27279 t clear
27280 :clear
27281 s/\\$//
27282 t bsnlc
27283 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27284 d
27285 :bsnlc
27286 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27287 b cont
27288 ' <confdefs.h | sed '
27289 s/'"$ac_delim"'/"\\\
27290 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27291
27292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27293   for (key in D) D_is_set[key] = 1
27294   FS = "\a"
27295 }
27296 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27297   line = \$ 0
27298   split(line, arg, " ")
27299   if (arg[1] == "#") {
27300     defundef = arg[2]
27301     mac1 = arg[3]
27302   } else {
27303     defundef = substr(arg[1], 2)
27304     mac1 = arg[2]
27305   }
27306   split(mac1, mac2, "(") #)
27307   macro = mac2[1]
27308   prefix = substr(line, 1, index(line, defundef) - 1)
27309   if (D_is_set[macro]) {
27310     # Preserve the white space surrounding the "#".
27311     print prefix "define", macro P[macro] D[macro]
27312     next
27313   } else {
27314     # Replace #undef with comments.  This is necessary, for example,
27315     # in the case of _POSIX_SOURCE, which is predefined and required
27316     # on some systems where configure will not decide to define it.
27317     if (defundef == "undef") {
27318       print "/*", prefix defundef, macro, "*/"
27319       next
27320     }
27321   }
27322 }
27323 { print }
27324 _ACAWK
27325 _ACEOF
27326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27327   as_fn_error "could not setup config headers machinery" "$LINENO" 5
27328 fi # test -n "$CONFIG_HEADERS"
27329
27330
27331 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27332 shift
27333 for ac_tag
27334 do
27335   case $ac_tag in
27336   :[FHLC]) ac_mode=$ac_tag; continue;;
27337   esac
27338   case $ac_mode$ac_tag in
27339   :[FHL]*:*);;
27340   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27341   :[FH]-) ac_tag=-:-;;
27342   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27343   esac
27344   ac_save_IFS=$IFS
27345   IFS=:
27346   set x $ac_tag
27347   IFS=$ac_save_IFS
27348   shift
27349   ac_file=$1
27350   shift
27351
27352   case $ac_mode in
27353   :L) ac_source=$1;;
27354   :[FH])
27355     ac_file_inputs=
27356     for ac_f
27357     do
27358       case $ac_f in
27359       -) ac_f="$tmp/stdin";;
27360       *) # Look for the file first in the build tree, then in the source tree
27361          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27362          # because $ac_f cannot contain `:'.
27363          test -f "$ac_f" ||
27364            case $ac_f in
27365            [\\/$]*) false;;
27366            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27367            esac ||
27368            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27369       esac
27370       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27371       as_fn_append ac_file_inputs " '$ac_f'"
27372     done
27373
27374     # Let's still pretend it is `configure' which instantiates (i.e., don't
27375     # use $as_me), people would be surprised to read:
27376     #    /* config.h.  Generated by config.status.  */
27377     configure_input='Generated from '`
27378           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27379         `' by configure.'
27380     if test x"$ac_file" != x-; then
27381       configure_input="$ac_file.  $configure_input"
27382       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27383 $as_echo "$as_me: creating $ac_file" >&6;}
27384     fi
27385     # Neutralize special characters interpreted by sed in replacement strings.
27386     case $configure_input in #(
27387     *\&* | *\|* | *\\* )
27388        ac_sed_conf_input=`$as_echo "$configure_input" |
27389        sed 's/[\\\\&|]/\\\\&/g'`;; #(
27390     *) ac_sed_conf_input=$configure_input;;
27391     esac
27392
27393     case $ac_tag in
27394     *:-:* | *:-) cat >"$tmp/stdin" \
27395       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27396     esac
27397     ;;
27398   esac
27399
27400   ac_dir=`$as_dirname -- "$ac_file" ||
27401 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27402          X"$ac_file" : 'X\(//\)[^/]' \| \
27403          X"$ac_file" : 'X\(//\)$' \| \
27404          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27405 $as_echo X"$ac_file" |
27406     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27407             s//\1/
27408             q
27409           }
27410           /^X\(\/\/\)[^/].*/{
27411             s//\1/
27412             q
27413           }
27414           /^X\(\/\/\)$/{
27415             s//\1/
27416             q
27417           }
27418           /^X\(\/\).*/{
27419             s//\1/
27420             q
27421           }
27422           s/.*/./; q'`
27423   as_dir="$ac_dir"; as_fn_mkdir_p
27424   ac_builddir=.
27425
27426 case "$ac_dir" in
27427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27428 *)
27429   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27430   # A ".." for each directory in $ac_dir_suffix.
27431   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27432   case $ac_top_builddir_sub in
27433   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27434   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27435   esac ;;
27436 esac
27437 ac_abs_top_builddir=$ac_pwd
27438 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27439 # for backward compatibility:
27440 ac_top_builddir=$ac_top_build_prefix
27441
27442 case $srcdir in
27443   .)  # We are building in place.
27444     ac_srcdir=.
27445     ac_top_srcdir=$ac_top_builddir_sub
27446     ac_abs_top_srcdir=$ac_pwd ;;
27447   [\\/]* | ?:[\\/]* )  # Absolute name.
27448     ac_srcdir=$srcdir$ac_dir_suffix;
27449     ac_top_srcdir=$srcdir
27450     ac_abs_top_srcdir=$srcdir ;;
27451   *) # Relative name.
27452     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27453     ac_top_srcdir=$ac_top_build_prefix$srcdir
27454     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27455 esac
27456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27457
27458
27459   case $ac_mode in
27460   :F)
27461   #
27462   # CONFIG_FILE
27463   #
27464
27465 _ACEOF
27466
27467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27468 # If the template does not know about datarootdir, expand it.
27469 # FIXME: This hack should be removed a few years after 2.60.
27470 ac_datarootdir_hack=; ac_datarootdir_seen=
27471 ac_sed_dataroot='
27472 /datarootdir/ {
27473   p
27474   q
27475 }
27476 /@datadir@/p
27477 /@docdir@/p
27478 /@infodir@/p
27479 /@localedir@/p
27480 /@mandir@/p'
27481 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27482 *datarootdir*) ac_datarootdir_seen=yes;;
27483 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27484   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27485 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27486 _ACEOF
27487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27488   ac_datarootdir_hack='
27489   s&@datadir@&$datadir&g
27490   s&@docdir@&$docdir&g
27491   s&@infodir@&$infodir&g
27492   s&@localedir@&$localedir&g
27493   s&@mandir@&$mandir&g
27494   s&\\\${datarootdir}&$datarootdir&g' ;;
27495 esac
27496 _ACEOF
27497
27498 # Neutralize VPATH when `$srcdir' = `.'.
27499 # Shell code in configure.ac might set extrasub.
27500 # FIXME: do we really want to maintain this feature?
27501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27502 ac_sed_extra="$ac_vpsub
27503 $extrasub
27504 _ACEOF
27505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27506 :t
27507 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27508 s|@configure_input@|$ac_sed_conf_input|;t t
27509 s&@top_builddir@&$ac_top_builddir_sub&;t t
27510 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27511 s&@srcdir@&$ac_srcdir&;t t
27512 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27513 s&@top_srcdir@&$ac_top_srcdir&;t t
27514 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27515 s&@builddir@&$ac_builddir&;t t
27516 s&@abs_builddir@&$ac_abs_builddir&;t t
27517 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27518 $ac_datarootdir_hack
27519 "
27520 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27521 if $ac_cs_awk_getline; then
27522   $AWK -f "$tmp/subs.awk"
27523 else
27524   $AWK -f "$tmp/subs.awk" | $SHELL
27525 fi >$tmp/out \
27526   || as_fn_error "could not create $ac_file" "$LINENO" 5
27527
27528 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27529   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27530   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27531   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27532 which seems to be undefined.  Please make sure it is defined." >&5
27533 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27534 which seems to be undefined.  Please make sure it is defined." >&2;}
27535
27536   rm -f "$tmp/stdin"
27537   case $ac_file in
27538   -) cat "$tmp/out" && rm -f "$tmp/out";;
27539   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27540   esac \
27541   || as_fn_error "could not create $ac_file" "$LINENO" 5
27542  ;;
27543   :H)
27544   #
27545   # CONFIG_HEADER
27546   #
27547   if test x"$ac_file" != x-; then
27548     {
27549       $as_echo "/* $configure_input  */" \
27550       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27551     } >"$tmp/config.h" \
27552       || as_fn_error "could not create $ac_file" "$LINENO" 5
27553     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27554       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27555 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27556     else
27557       rm -f "$ac_file"
27558       mv "$tmp/config.h" "$ac_file" \
27559         || as_fn_error "could not create $ac_file" "$LINENO" 5
27560     fi
27561   else
27562     $as_echo "/* $configure_input  */" \
27563       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27564       || as_fn_error "could not create -" "$LINENO" 5
27565   fi
27566  ;;
27567
27568   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27569 $as_echo "$as_me: executing $ac_file commands" >&6;}
27570  ;;
27571   esac
27572
27573
27574   case $ac_file$ac_mode in
27575     "as":F) chmod +x as ;;
27576     "collect-ld":F) chmod +x collect-ld ;;
27577     "nm":F) chmod +x nm ;;
27578     "default":C)
27579 case ${CONFIG_HEADERS} in
27580   *auto-host.h:config.in*)
27581   echo > cstamp-h ;;
27582 esac
27583 # Make sure all the subdirs exist.
27584 for d in $subdirs doc build c-family
27585 do
27586     test -d $d || mkdir $d
27587 done
27588  ;;
27589
27590   esac
27591 done # for ac_tag
27592
27593
27594 as_fn_exit 0
27595 _ACEOF
27596 ac_clean_files=$ac_clean_files_save
27597
27598 test $ac_write_fail = 0 ||
27599   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27600
27601
27602 # configure is writing to config.log, and then calls config.status.
27603 # config.status does its own redirection, appending to config.log.
27604 # Unfortunately, on DOS this fails, as config.log is still kept open
27605 # by configure, so config.status won't be able to write to it; its
27606 # output is simply discarded.  So we exec the FD to /dev/null,
27607 # effectively closing config.log, so it can be properly (re)opened and
27608 # appended to by config.status.  When coming back to configure, we
27609 # need to make the FD available again.
27610 if test "$no_create" != yes; then
27611   ac_cs_success=:
27612   ac_config_status_args=
27613   test "$silent" = yes &&
27614     ac_config_status_args="$ac_config_status_args --quiet"
27615   exec 5>/dev/null
27616   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27617   exec 5>>config.log
27618   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27619   # would make configure fail if this is the last instruction.
27620   $ac_cs_success || as_fn_exit $?
27621 fi
27622 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27623   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27624 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27625 fi
27626
27627