OSDN Git Service

* configure.ac: Add --with-native-system-header-dir. Set and
[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 libgcc_tm_include_list
622 libgcc_tm_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 thread_file
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir
644 gcc_config_arguments
645 float_h_file
646 extra_programs
647 extra_passes
648 extra_parts
649 extra_objs
650 extra_headers_list
651 user_headers_inc_next_post
652 user_headers_inc_next_pre
653 extra_gcc_objs
654 TM_MULTILIB_EXCEPTIONS_CONFIG
655 TM_MULTILIB_CONFIG
656 TM_ENDIAN_CONFIG
657 tmake_file
658 xmake_file
659 cpp_install_dir
660 check_languages
661 build_file_translate
662 build_xm_defines
663 build_xm_include_list
664 build_xm_file_list
665 build_install_headers_dir
666 build_exeext
667 all_selected_languages
668 all_languages
669 all_lang_makefrags
670 all_gtfiles
671 all_compilers
672 srcdir
673 subdirs
674 slibdir
675 dollar
676 gcc_tooldir
677 enable_lto
678 MAINT
679 zlibinc
680 zlibdir
681 HOST_LIBS
682 GGC
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 gcc_cv_ld
691 ORIGINAL_AS_FOR_TARGET
692 gcc_cv_as
693 enable_fast_install
694 objdir
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 STRIP
701 OBJDUMP
702 ac_ct_DUMPBIN
703 DUMPBIN
704 LD
705 FGREP
706 SED
707 LIBTOOL
708 collect2
709 STMP_FIXINC
710 BUILD_LDFLAGS
711 BUILD_CFLAGS
712 CC_FOR_BUILD
713 inhibit_libc
714 SYSTEM_HEADER_DIR
715 ALL
716 CROSS
717 CATOBJEXT
718 GENCAT
719 INSTOBJEXT
720 DATADIRNAME
721 CATALOGS
722 POSUB
723 GMSGFMT
724 XGETTEXT
725 INCINTL
726 LIBINTL_DEP
727 LIBINTL
728 USE_NLS
729 extra_opt_files
730 extra_modes_file
731 gthread_flags
732 NATIVE_SYSTEM_HEADER_DIR
733 objext
734 manext
735 LIBICONV_DEP
736 LTLIBICONV
737 LIBICONV
738 LDEXP_LIB
739 EXTRA_GCC_LIBS
740 GNAT_LIBEXC
741 COLLECT2_LIBS
742 CXXCPP
743 AR
744 NM
745 BISON
746 FLEX
747 GENERATED_MANPAGES
748 BUILD_INFO
749 MAKEINFO
750 have_mktemp_command
751 make_compare_target
752 INSTALL_DATA
753 INSTALL_PROGRAM
754 INSTALL
755 ranlib_flags
756 RANLIB
757 LN
758 LN_S
759 AWK
760 SET_MAKE
761 REPORT_BUGS_TEXI
762 REPORT_BUGS_TO
763 PKGVERSION
764 CONFIGURE_SPECS
765 CROSS_SYSTEM_HEADER_DIR
766 TARGET_SYSTEM_ROOT_DEFINE
767 TARGET_SYSTEM_ROOT
768 SYSROOT_CFLAGS_FOR_TARGET
769 enable_shared
770 enable_fixed_point
771 enable_decimal_float
772 enable_multilib
773 ENABLE_BUILD_WITH_CXX
774 coverage_flags
775 valgrind_command
776 valgrind_path_defines
777 valgrind_path
778 TREEBROWSER
779 nocommon_flag
780 warn_cxxflags
781 warn_cflags
782 c_strict_warn
783 strict_warn
784 c_loose_warn
785 loose_warn
786 EGREP
787 GREP
788 CPP
789 PICFLAG_FOR_TARGET
790 OUTPUT_OPTION
791 NO_MINUS_C_MINUS_O
792 GNATMAKE
793 GNATBIND
794 ac_ct_CXX
795 CXXFLAGS
796 CXX
797 OBJEXT
798 EXEEXT
799 ac_ct_CC
800 CPPFLAGS
801 LDFLAGS
802 CFLAGS
803 CC
804 GENINSRC
805 target_subdir
806 host_subdir
807 build_subdir
808 build_libsubdir
809 target_noncanonical
810 target_os
811 target_vendor
812 target_cpu
813 target
814 host_os
815 host_vendor
816 host_cpu
817 host
818 build_os
819 build_vendor
820 build_cpu
821 build
822 target_alias
823 host_alias
824 build_alias
825 LIBS
826 ECHO_T
827 ECHO_N
828 ECHO_C
829 DEFS
830 mandir
831 localedir
832 libdir
833 psdir
834 pdfdir
835 dvidir
836 htmldir
837 infodir
838 docdir
839 oldincludedir
840 includedir
841 localstatedir
842 sharedstatedir
843 sysconfdir
844 datadir
845 datarootdir
846 libexecdir
847 sbindir
848 bindir
849 program_transform_name
850 prefix
851 exec_prefix
852 PACKAGE_URL
853 PACKAGE_BUGREPORT
854 PACKAGE_STRING
855 PACKAGE_VERSION
856 PACKAGE_TARNAME
857 PACKAGE_NAME
858 PATH_SEPARATOR
859 SHELL'
860 ac_subst_files='option_includes
861 language_hooks'
862 ac_user_opts='
863 enable_option_checking
864 with_build_libsubdir
865 with_local_prefix
866 with_gxx_include_dir
867 with_cpp_install_dir
868 enable_generated_files_in_srcdir
869 with_gnu_ld
870 with_ld
871 with_demangler_in_ld
872 with_gnu_as
873 with_as
874 enable_largefile
875 enable_werror_always
876 enable_checking
877 enable_coverage
878 enable_gather_detailed_mem_stats
879 enable_build_with_cxx
880 with_stabs
881 enable_multilib
882 enable___cxa_atexit
883 enable_decimal_float
884 enable_fixed_point
885 enable_threads
886 enable_tls
887 enable_objc_gc
888 with_dwarf2
889 enable_shared
890 with_native_system_header_dir
891 with_build_sysroot
892 with_sysroot
893 with_specs
894 with_pkgversion
895 with_bugurl
896 enable_languages
897 with_multilib_list
898 enable_rpath
899 with_libiconv_prefix
900 enable_initfini_array
901 enable_sjlj_exceptions
902 enable_secureplt
903 enable_leading_mingw64_underscores
904 enable_cld
905 enable_frame_pointer
906 enable_win32_registry
907 enable_static
908 with_pic
909 enable_fast_install
910 enable_libtool_lock
911 with_plugin_ld
912 enable_gnu_indirect_function
913 enable_comdat
914 enable_gnu_unique_object
915 enable_linker_build_id
916 with_long_double_128
917 with_gc
918 with_system_zlib
919 enable_maintainer_mode
920 enable_version_specific_runtime_libs
921 with_slibdir
922 enable_plugin
923 enable_libquadmath_support
924 with_linker_hash_style
925 '
926       ac_precious_vars='build_alias
927 host_alias
928 target_alias
929 CC
930 CFLAGS
931 LDFLAGS
932 LIBS
933 CPPFLAGS
934 CXX
935 CXXFLAGS
936 CCC
937 CPP
938 CXXCPP
939 GMPLIBS
940 GMPINC
941 PPLLIBS
942 PPLINC
943 CLOOGLIBS
944 CLOOGINC'
945
946
947 # Initialize some variables set by options.
948 ac_init_help=
949 ac_init_version=false
950 ac_unrecognized_opts=
951 ac_unrecognized_sep=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
954 cache_file=/dev/null
955 exec_prefix=NONE
956 no_create=
957 no_recursion=
958 prefix=NONE
959 program_prefix=NONE
960 program_suffix=NONE
961 program_transform_name=s,x,x,
962 silent=
963 site=
964 srcdir=
965 verbose=
966 x_includes=NONE
967 x_libraries=NONE
968
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir='${exec_prefix}/bin'
976 sbindir='${exec_prefix}/sbin'
977 libexecdir='${exec_prefix}/libexec'
978 datarootdir='${prefix}/share'
979 datadir='${datarootdir}'
980 sysconfdir='${prefix}/etc'
981 sharedstatedir='${prefix}/com'
982 localstatedir='${prefix}/var'
983 includedir='${prefix}/include'
984 oldincludedir='/usr/include'
985 docdir='${datarootdir}/doc/${PACKAGE}'
986 infodir='${datarootdir}/info'
987 htmldir='${docdir}'
988 dvidir='${docdir}'
989 pdfdir='${docdir}'
990 psdir='${docdir}'
991 libdir='${exec_prefix}/lib'
992 localedir='${datarootdir}/locale'
993 mandir='${datarootdir}/man'
994
995 ac_prev=
996 ac_dashdash=
997 for ac_option
998 do
999   # If the previous option needs an argument, assign it.
1000   if test -n "$ac_prev"; then
1001     eval $ac_prev=\$ac_option
1002     ac_prev=
1003     continue
1004   fi
1005
1006   case $ac_option in
1007   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008   *)    ac_optarg=yes ;;
1009   esac
1010
1011   # Accept the important Cygnus configure options, so we can diagnose typos.
1012
1013   case $ac_dashdash$ac_option in
1014   --)
1015     ac_dashdash=yes ;;
1016
1017   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1018     ac_prev=bindir ;;
1019   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1020     bindir=$ac_optarg ;;
1021
1022   -build | --build | --buil | --bui | --bu)
1023     ac_prev=build_alias ;;
1024   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1025     build_alias=$ac_optarg ;;
1026
1027   -cache-file | --cache-file | --cache-fil | --cache-fi \
1028   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1029     ac_prev=cache_file ;;
1030   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1031   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1032     cache_file=$ac_optarg ;;
1033
1034   --config-cache | -C)
1035     cache_file=config.cache ;;
1036
1037   -datadir | --datadir | --datadi | --datad)
1038     ac_prev=datadir ;;
1039   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1040     datadir=$ac_optarg ;;
1041
1042   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1043   | --dataroo | --dataro | --datar)
1044     ac_prev=datarootdir ;;
1045   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1046   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1047     datarootdir=$ac_optarg ;;
1048
1049   -disable-* | --disable-*)
1050     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1051     # Reject names that are not valid shell variable names.
1052     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053       as_fn_error "invalid feature name: $ac_useropt"
1054     ac_useropt_orig=$ac_useropt
1055     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056     case $ac_user_opts in
1057       *"
1058 "enable_$ac_useropt"
1059 "*) ;;
1060       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1061          ac_unrecognized_sep=', ';;
1062     esac
1063     eval enable_$ac_useropt=no ;;
1064
1065   -docdir | --docdir | --docdi | --doc | --do)
1066     ac_prev=docdir ;;
1067   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068     docdir=$ac_optarg ;;
1069
1070   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1071     ac_prev=dvidir ;;
1072   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073     dvidir=$ac_optarg ;;
1074
1075   -enable-* | --enable-*)
1076     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077     # Reject names that are not valid shell variable names.
1078     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079       as_fn_error "invalid feature name: $ac_useropt"
1080     ac_useropt_orig=$ac_useropt
1081     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082     case $ac_user_opts in
1083       *"
1084 "enable_$ac_useropt"
1085 "*) ;;
1086       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1087          ac_unrecognized_sep=', ';;
1088     esac
1089     eval enable_$ac_useropt=\$ac_optarg ;;
1090
1091   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093   | --exec | --exe | --ex)
1094     ac_prev=exec_prefix ;;
1095   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097   | --exec=* | --exe=* | --ex=*)
1098     exec_prefix=$ac_optarg ;;
1099
1100   -gas | --gas | --ga | --g)
1101     # Obsolete; use --with-gas.
1102     with_gas=yes ;;
1103
1104   -help | --help | --hel | --he | -h)
1105     ac_init_help=long ;;
1106   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107     ac_init_help=recursive ;;
1108   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109     ac_init_help=short ;;
1110
1111   -host | --host | --hos | --ho)
1112     ac_prev=host_alias ;;
1113   -host=* | --host=* | --hos=* | --ho=*)
1114     host_alias=$ac_optarg ;;
1115
1116   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117     ac_prev=htmldir ;;
1118   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119   | --ht=*)
1120     htmldir=$ac_optarg ;;
1121
1122   -includedir | --includedir | --includedi | --included | --include \
1123   | --includ | --inclu | --incl | --inc)
1124     ac_prev=includedir ;;
1125   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126   | --includ=* | --inclu=* | --incl=* | --inc=*)
1127     includedir=$ac_optarg ;;
1128
1129   -infodir | --infodir | --infodi | --infod | --info | --inf)
1130     ac_prev=infodir ;;
1131   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132     infodir=$ac_optarg ;;
1133
1134   -libdir | --libdir | --libdi | --libd)
1135     ac_prev=libdir ;;
1136   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137     libdir=$ac_optarg ;;
1138
1139   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140   | --libexe | --libex | --libe)
1141     ac_prev=libexecdir ;;
1142   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143   | --libexe=* | --libex=* | --libe=*)
1144     libexecdir=$ac_optarg ;;
1145
1146   -localedir | --localedir | --localedi | --localed | --locale)
1147     ac_prev=localedir ;;
1148   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149     localedir=$ac_optarg ;;
1150
1151   -localstatedir | --localstatedir | --localstatedi | --localstated \
1152   | --localstate | --localstat | --localsta | --localst | --locals)
1153     ac_prev=localstatedir ;;
1154   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1155   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1156     localstatedir=$ac_optarg ;;
1157
1158   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159     ac_prev=mandir ;;
1160   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161     mandir=$ac_optarg ;;
1162
1163   -nfp | --nfp | --nf)
1164     # Obsolete; use --without-fp.
1165     with_fp=no ;;
1166
1167   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168   | --no-cr | --no-c | -n)
1169     no_create=yes ;;
1170
1171   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173     no_recursion=yes ;;
1174
1175   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177   | --oldin | --oldi | --old | --ol | --o)
1178     ac_prev=oldincludedir ;;
1179   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182     oldincludedir=$ac_optarg ;;
1183
1184   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185     ac_prev=prefix ;;
1186   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187     prefix=$ac_optarg ;;
1188
1189   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190   | --program-pre | --program-pr | --program-p)
1191     ac_prev=program_prefix ;;
1192   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194     program_prefix=$ac_optarg ;;
1195
1196   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197   | --program-suf | --program-su | --program-s)
1198     ac_prev=program_suffix ;;
1199   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201     program_suffix=$ac_optarg ;;
1202
1203   -program-transform-name | --program-transform-name \
1204   | --program-transform-nam | --program-transform-na \
1205   | --program-transform-n | --program-transform- \
1206   | --program-transform | --program-transfor \
1207   | --program-transfo | --program-transf \
1208   | --program-trans | --program-tran \
1209   | --progr-tra | --program-tr | --program-t)
1210     ac_prev=program_transform_name ;;
1211   -program-transform-name=* | --program-transform-name=* \
1212   | --program-transform-nam=* | --program-transform-na=* \
1213   | --program-transform-n=* | --program-transform-=* \
1214   | --program-transform=* | --program-transfor=* \
1215   | --program-transfo=* | --program-transf=* \
1216   | --program-trans=* | --program-tran=* \
1217   | --progr-tra=* | --program-tr=* | --program-t=*)
1218     program_transform_name=$ac_optarg ;;
1219
1220   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221     ac_prev=pdfdir ;;
1222   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223     pdfdir=$ac_optarg ;;
1224
1225   -psdir | --psdir | --psdi | --psd | --ps)
1226     ac_prev=psdir ;;
1227   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228     psdir=$ac_optarg ;;
1229
1230   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231   | -silent | --silent | --silen | --sile | --sil)
1232     silent=yes ;;
1233
1234   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235     ac_prev=sbindir ;;
1236   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237   | --sbi=* | --sb=*)
1238     sbindir=$ac_optarg ;;
1239
1240   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242   | --sharedst | --shareds | --shared | --share | --shar \
1243   | --sha | --sh)
1244     ac_prev=sharedstatedir ;;
1245   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248   | --sha=* | --sh=*)
1249     sharedstatedir=$ac_optarg ;;
1250
1251   -site | --site | --sit)
1252     ac_prev=site ;;
1253   -site=* | --site=* | --sit=*)
1254     site=$ac_optarg ;;
1255
1256   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257     ac_prev=srcdir ;;
1258   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259     srcdir=$ac_optarg ;;
1260
1261   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262   | --syscon | --sysco | --sysc | --sys | --sy)
1263     ac_prev=sysconfdir ;;
1264   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266     sysconfdir=$ac_optarg ;;
1267
1268   -target | --target | --targe | --targ | --tar | --ta | --t)
1269     ac_prev=target_alias ;;
1270   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271     target_alias=$ac_optarg ;;
1272
1273   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274     verbose=yes ;;
1275
1276   -version | --version | --versio | --versi | --vers | -V)
1277     ac_init_version=: ;;
1278
1279   -with-* | --with-*)
1280     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281     # Reject names that are not valid shell variable names.
1282     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283       as_fn_error "invalid package name: $ac_useropt"
1284     ac_useropt_orig=$ac_useropt
1285     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286     case $ac_user_opts in
1287       *"
1288 "with_$ac_useropt"
1289 "*) ;;
1290       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1291          ac_unrecognized_sep=', ';;
1292     esac
1293     eval with_$ac_useropt=\$ac_optarg ;;
1294
1295   -without-* | --without-*)
1296     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1297     # Reject names that are not valid shell variable names.
1298     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1299       as_fn_error "invalid package name: $ac_useropt"
1300     ac_useropt_orig=$ac_useropt
1301     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1302     case $ac_user_opts in
1303       *"
1304 "with_$ac_useropt"
1305 "*) ;;
1306       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1307          ac_unrecognized_sep=', ';;
1308     esac
1309     eval with_$ac_useropt=no ;;
1310
1311   --x)
1312     # Obsolete; use --with-x.
1313     with_x=yes ;;
1314
1315   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316   | --x-incl | --x-inc | --x-in | --x-i)
1317     ac_prev=x_includes ;;
1318   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320     x_includes=$ac_optarg ;;
1321
1322   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324     ac_prev=x_libraries ;;
1325   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327     x_libraries=$ac_optarg ;;
1328
1329   -*) as_fn_error "unrecognized option: \`$ac_option'
1330 Try \`$0 --help' for more information."
1331     ;;
1332
1333   *=*)
1334     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335     # Reject names that are not valid shell variable names.
1336     case $ac_envvar in #(
1337       '' | [0-9]* | *[!_$as_cr_alnum]* )
1338       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1339     esac
1340     eval $ac_envvar=\$ac_optarg
1341     export $ac_envvar ;;
1342
1343   *)
1344     # FIXME: should be removed in autoconf 3.0.
1345     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349     ;;
1350
1351   esac
1352 done
1353
1354 if test -n "$ac_prev"; then
1355   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356   as_fn_error "missing argument to $ac_option"
1357 fi
1358
1359 if test -n "$ac_unrecognized_opts"; then
1360   case $enable_option_checking in
1361     no) ;;
1362     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1363     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364   esac
1365 fi
1366
1367 # Check all directory arguments for consistency.
1368 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369                 datadir sysconfdir sharedstatedir localstatedir includedir \
1370                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371                 libdir localedir mandir
1372 do
1373   eval ac_val=\$$ac_var
1374   # Remove trailing slashes.
1375   case $ac_val in
1376     */ )
1377       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378       eval $ac_var=\$ac_val;;
1379   esac
1380   # Be sure to have absolute directory names.
1381   case $ac_val in
1382     [\\/$]* | ?:[\\/]* )  continue;;
1383     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1384   esac
1385   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1386 done
1387
1388 # There might be people who depend on the old broken behavior: `$host'
1389 # used to hold the argument of --host etc.
1390 # FIXME: To remove some day.
1391 build=$build_alias
1392 host=$host_alias
1393 target=$target_alias
1394
1395 # FIXME: To remove some day.
1396 if test "x$host_alias" != x; then
1397   if test "x$build_alias" = x; then
1398     cross_compiling=maybe
1399     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1400     If a cross compiler is detected then cross compile mode will be used." >&2
1401   elif test "x$build_alias" != "x$host_alias"; then
1402     cross_compiling=yes
1403   fi
1404 fi
1405
1406 ac_tool_prefix=
1407 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408
1409 test "$silent" = yes && exec 6>/dev/null
1410
1411
1412 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413 ac_ls_di=`ls -di .` &&
1414 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1415   as_fn_error "working directory cannot be determined"
1416 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1417   as_fn_error "pwd does not report name of working directory"
1418
1419
1420 # Find the source files, if location was not specified.
1421 if test -z "$srcdir"; then
1422   ac_srcdir_defaulted=yes
1423   # Try the directory containing this script, then the parent directory.
1424   ac_confdir=`$as_dirname -- "$as_myself" ||
1425 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426          X"$as_myself" : 'X\(//\)[^/]' \| \
1427          X"$as_myself" : 'X\(//\)$' \| \
1428          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429 $as_echo X"$as_myself" |
1430     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431             s//\1/
1432             q
1433           }
1434           /^X\(\/\/\)[^/].*/{
1435             s//\1/
1436             q
1437           }
1438           /^X\(\/\/\)$/{
1439             s//\1/
1440             q
1441           }
1442           /^X\(\/\).*/{
1443             s//\1/
1444             q
1445           }
1446           s/.*/./; q'`
1447   srcdir=$ac_confdir
1448   if test ! -r "$srcdir/$ac_unique_file"; then
1449     srcdir=..
1450   fi
1451 else
1452   ac_srcdir_defaulted=no
1453 fi
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1455   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1457 fi
1458 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459 ac_abs_confdir=`(
1460         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1461         pwd)`
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1464   srcdir=.
1465 fi
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1469 case $srcdir in
1470 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471 esac
1472 for ac_var in $ac_precious_vars; do
1473   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474   eval ac_env_${ac_var}_value=\$${ac_var}
1475   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477 done
1478
1479 #
1480 # Report the --help message.
1481 #
1482 if test "$ac_init_help" = "long"; then
1483   # Omit some internal or obsolete options to make the list less imposing.
1484   # This message is too long to be a string in the A/UX 3.1 sh.
1485   cat <<_ACEOF
1486 \`configure' configures this package to adapt to many kinds of systems.
1487
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1489
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE.  See below for descriptions of some of the useful variables.
1492
1493 Defaults for the options are specified in brackets.
1494
1495 Configuration:
1496   -h, --help              display this help and exit
1497       --help=short        display options specific to this package
1498       --help=recursive    display the short help of all the included packages
1499   -V, --version           display version information and exit
1500   -q, --quiet, --silent   do not print \`checking...' messages
1501       --cache-file=FILE   cache test results in FILE [disabled]
1502   -C, --config-cache      alias for \`--cache-file=config.cache'
1503   -n, --no-create         do not create output files
1504       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1505
1506 Installation directories:
1507   --prefix=PREFIX         install architecture-independent files in PREFIX
1508                           [$ac_default_prefix]
1509   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1510                           [PREFIX]
1511
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1516
1517 For better control, use the options below.
1518
1519 Fine tuning of the installation directories:
1520   --bindir=DIR            user executables [EPREFIX/bin]
1521   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1522   --libexecdir=DIR        program executables [EPREFIX/libexec]
1523   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1524   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1525   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1526   --libdir=DIR            object code libraries [EPREFIX/lib]
1527   --includedir=DIR        C header files [PREFIX/include]
1528   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1529   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1530   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1531   --infodir=DIR           info documentation [DATAROOTDIR/info]
1532   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1533   --mandir=DIR            man documentation [DATAROOTDIR/man]
1534   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1535   --htmldir=DIR           html documentation [DOCDIR]
1536   --dvidir=DIR            dvi documentation [DOCDIR]
1537   --pdfdir=DIR            pdf documentation [DOCDIR]
1538   --psdir=DIR             ps documentation [DOCDIR]
1539 _ACEOF
1540
1541   cat <<\_ACEOF
1542
1543 Program names:
1544   --program-prefix=PREFIX            prepend PREFIX to installed program names
1545   --program-suffix=SUFFIX            append SUFFIX to installed program names
1546   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1547
1548 System types:
1549   --build=BUILD     configure for building on BUILD [guessed]
1550   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1551   --target=TARGET   configure for building compilers for TARGET [HOST]
1552 _ACEOF
1553 fi
1554
1555 if test -n "$ac_init_help"; then
1556
1557   cat <<\_ACEOF
1558
1559 Optional Features:
1560   --disable-option-checking  ignore unrecognized --enable/--with options
1561   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1562   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1563   --enable-generated-files-in-srcdir
1564                           put copies of generated files in source dir intended
1565                           for creating source tarballs for users without
1566                           texinfo bison or flex
1567   --disable-largefile     omit support for large files
1568   --enable-werror-always  enable -Werror despite compiler version
1569   --enable-checking[=LIST]
1570                           enable expensive run-time checks. With LIST, enable
1571                           only specific categories of checks. Categories are:
1572                           yes,no,all,none,release. Flags are:
1573                           assert,df,fold,gc,gcac,gimple,misc,
1574                           rtlflag,rtl,runtime,tree,valgrind,types
1575   --enable-coverage[=LEVEL]
1576                           enable compiler's code coverage collection. Use to
1577                           measure compiler performance and locate unused parts
1578                           of the compiler. With LEVEL, specify optimization.
1579                           Values are opt, noopt, default is noopt
1580   --enable-gather-detailed-mem-stats
1581                           enable detailed memory allocation stats gathering
1582   --enable-build-with-cxx build with C++ compiler instead of C compiler
1583   --enable-multilib       enable library support for multiple ABIs
1584   --enable-__cxa_atexit   enable __cxa_atexit for C++
1585   --enable-decimal-float={no,yes,bid,dpd}
1586                         enable decimal float extension to C.  Selecting 'bid'
1587                         or 'dpd' choses which decimal floating point format
1588                         to use
1589   --enable-fixed-point    enable fixed-point arithmetic extension to C
1590   --enable-threads[=LIB]  enable thread usage for target GCC, using LIB thread
1591                           package
1592   --enable-tls            enable or disable generation of tls code overriding
1593                           the assembler check for tls support
1594   --enable-objc-gc        enable the use of Boehm's garbage collector with the
1595                           GNU Objective-C runtime
1596   --disable-shared        don't provide a shared libgcc
1597   --enable-languages=LIST specify which front-ends to build
1598   --disable-rpath         do not hardcode runtime library paths
1599   --enable-initfini-array       use .init_array/.fini_array sections
1600   --enable-sjlj-exceptions
1601                           arrange to use setjmp/longjmp exception handling
1602   --enable-secureplt      enable -msecure-plt by default for PowerPC
1603   --enable-leading-mingw64-underscores
1604                           enable leading underscores on 64 bit mingw targets
1605   --enable-cld            enable -mcld by default for 32bit x86
1606   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit
1607                           x86
1608   --disable-win32-registry
1609                           disable lookup of installation paths in the Registry
1610                           on Windows hosts
1611   --enable-win32-registry enable registry lookup (default)
1612   --enable-win32-registry=KEY
1613                           use KEY instead of GCC version as the last portion
1614                           of the registry key
1615   --enable-shared[=PKGS]  build shared libraries [default=yes]
1616   --enable-static[=PKGS]  build static libraries [default=yes]
1617   --enable-fast-install[=PKGS]
1618                           optimize for fast installation [default=yes]
1619   --disable-libtool-lock  avoid locking (might break parallel builds)
1620   --enable-gnu-indirect-function
1621                           enable the use of the @gnu_indirect_function to
1622                           glibc systems
1623   --enable-comdat         enable COMDAT group support
1624   --enable-gnu-unique-object
1625                           enable the use of the @gnu_unique_object ELF
1626                           extension on glibc systems
1627   --enable-linker-build-id
1628                           compiler will always pass --build-id to linker
1629   --enable-maintainer-mode
1630                           enable make rules and dependencies not useful (and
1631                           sometimes confusing) to the casual installer
1632   --enable-version-specific-runtime-libs
1633                           specify that runtime libraries should be installed
1634                           in a compiler-specific directory
1635   --enable-plugin         enable plugin support
1636   --disable-libquadmath-support
1637                           disable libquadmath support for Fortran
1638
1639 Optional Packages:
1640   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1641   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1642   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1643   --with-local-prefix=DIR specifies directory to put local include
1644   --with-gxx-include-dir=DIR
1645                           specifies directory to put g++ header files
1646   --with-cpp-install-dir=DIR
1647                           install the user visible C preprocessor in DIR
1648                           (relative to PREFIX) as well as PREFIX/bin
1649   --with-gnu-ld           arrange to work with GNU ld
1650   --with-ld               arrange to use the specified ld (full pathname)
1651   --with-demangler-in-ld  try to use demangler in GNU ld
1652   --with-gnu-as           arrange to work with GNU as
1653   --with-as               arrange to use the specified as (full pathname)
1654   --with-stabs            arrange to use stabs instead of host debug format
1655   --with-dwarf2           force the default debug format to be DWARF 2
1656   --with-native-system-header-dir=dir
1657                           use dir as the directory to look for standard
1658                           system header files in.  Defaults to /usr/include.
1659   --with-build-sysroot=sysroot
1660                           use sysroot as the system root during the build
1661   --with-sysroot[=DIR]    search for usr/lib, usr/include, et al, within DIR
1662   --with-specs=SPECS      add SPECS to driver command-line processing
1663   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1664   --with-bugurl=URL       Direct users to URL to report a bug
1665   --with-multilib-list    select multilibs (SH and x86-64 only)
1666   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1667   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1668   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1669   --with-pic              try to use only PIC/non-PIC objects [default=use
1670                           both]
1671   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1672   --with-plugin-ld=[ARG]  specify the plugin linker
1673   --with-long-double-128  use 128-bit long double by default
1674   --with-gc={page,zone}   choose the garbage collection mechanism to use with
1675                           the compiler
1676   --with-system-zlib      use installed libz
1677   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1678   --with-linker-hash-style={sysv,gnu,both}
1679                           specify the linker hash style
1680
1681 Some influential environment variables:
1682   CC          C compiler command
1683   CFLAGS      C compiler flags
1684   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1685               nonstandard directory <lib dir>
1686   LIBS        libraries to pass to the linker, e.g. -l<library>
1687   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1688               you have headers in a nonstandard directory <include dir>
1689   CXX         C++ compiler command
1690   CXXFLAGS    C++ compiler flags
1691   CPP         C preprocessor
1692   CXXCPP      C++ preprocessor
1693   GMPLIBS     How to link GMP
1694   GMPINC      How to find GMP include files
1695   PPLLIBS     How to link PPL
1696   PPLINC      How to find PPL include files
1697   CLOOGLIBS   How to link CLOOG
1698   CLOOGINC    How to find CLOOG include files
1699
1700 Use these variables to override the choices made by `configure' or to help
1701 it to find libraries and programs with nonstandard names/locations.
1702
1703 Report bugs to the package provider.
1704 _ACEOF
1705 ac_status=$?
1706 fi
1707
1708 if test "$ac_init_help" = "recursive"; then
1709   # If there are subdirs, report their specific --help.
1710   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1711     test -d "$ac_dir" ||
1712       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1713       continue
1714     ac_builddir=.
1715
1716 case "$ac_dir" in
1717 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *)
1719   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1720   # A ".." for each directory in $ac_dir_suffix.
1721   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1722   case $ac_top_builddir_sub in
1723   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1724   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1725   esac ;;
1726 esac
1727 ac_abs_top_builddir=$ac_pwd
1728 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1729 # for backward compatibility:
1730 ac_top_builddir=$ac_top_build_prefix
1731
1732 case $srcdir in
1733   .)  # We are building in place.
1734     ac_srcdir=.
1735     ac_top_srcdir=$ac_top_builddir_sub
1736     ac_abs_top_srcdir=$ac_pwd ;;
1737   [\\/]* | ?:[\\/]* )  # Absolute name.
1738     ac_srcdir=$srcdir$ac_dir_suffix;
1739     ac_top_srcdir=$srcdir
1740     ac_abs_top_srcdir=$srcdir ;;
1741   *) # Relative name.
1742     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1743     ac_top_srcdir=$ac_top_build_prefix$srcdir
1744     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1745 esac
1746 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1747
1748     cd "$ac_dir" || { ac_status=$?; continue; }
1749     # Check for guested configure.
1750     if test -f "$ac_srcdir/configure.gnu"; then
1751       echo &&
1752       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1753     elif test -f "$ac_srcdir/configure"; then
1754       echo &&
1755       $SHELL "$ac_srcdir/configure" --help=recursive
1756     else
1757       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1758     fi || ac_status=$?
1759     cd "$ac_pwd" || { ac_status=$?; break; }
1760   done
1761 fi
1762
1763 test -n "$ac_init_help" && exit $ac_status
1764 if $ac_init_version; then
1765   cat <<\_ACEOF
1766 configure
1767 generated by GNU Autoconf 2.64
1768
1769 Copyright (C) 2009 Free Software Foundation, Inc.
1770 This configure script is free software; the Free Software Foundation
1771 gives unlimited permission to copy, distribute and modify it.
1772 _ACEOF
1773   exit
1774 fi
1775
1776 ## ------------------------ ##
1777 ## Autoconf initialization. ##
1778 ## ------------------------ ##
1779
1780 # ac_fn_c_try_compile LINENO
1781 # --------------------------
1782 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_c_try_compile ()
1784 {
1785   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786   rm -f conftest.$ac_objext
1787   if { { ac_try="$ac_compile"
1788 case "(($ac_try" in
1789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790   *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794   (eval "$ac_compile") 2>conftest.err
1795   ac_status=$?
1796   if test -s conftest.err; then
1797     grep -v '^ *+' conftest.err >conftest.er1
1798     cat conftest.er1 >&5
1799     mv -f conftest.er1 conftest.err
1800   fi
1801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802   test $ac_status = 0; } && {
1803          test -z "$ac_c_werror_flag" ||
1804          test ! -s conftest.err
1805        } && test -s conftest.$ac_objext; then :
1806   ac_retval=0
1807 else
1808   $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.$ac_ext >&5
1810
1811         ac_retval=1
1812 fi
1813   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1814   return $ac_retval
1815
1816 } # ac_fn_c_try_compile
1817
1818 # ac_fn_cxx_try_compile LINENO
1819 # ----------------------------
1820 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1821 ac_fn_cxx_try_compile ()
1822 {
1823   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824   rm -f conftest.$ac_objext
1825   if { { ac_try="$ac_compile"
1826 case "(($ac_try" in
1827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828   *) ac_try_echo=$ac_try;;
1829 esac
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832   (eval "$ac_compile") 2>conftest.err
1833   ac_status=$?
1834   if test -s conftest.err; then
1835     grep -v '^ *+' conftest.err >conftest.er1
1836     cat conftest.er1 >&5
1837     mv -f conftest.er1 conftest.err
1838   fi
1839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840   test $ac_status = 0; } && {
1841          test -z "$ac_cxx_werror_flag" ||
1842          test ! -s conftest.err
1843        } && test -s conftest.$ac_objext; then :
1844   ac_retval=0
1845 else
1846   $as_echo "$as_me: failed program was:" >&5
1847 sed 's/^/| /' conftest.$ac_ext >&5
1848
1849         ac_retval=1
1850 fi
1851   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852   return $ac_retval
1853
1854 } # ac_fn_cxx_try_compile
1855
1856 # ac_fn_c_try_cpp LINENO
1857 # ----------------------
1858 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1859 ac_fn_c_try_cpp ()
1860 {
1861   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862   if { { ac_try="$ac_cpp conftest.$ac_ext"
1863 case "(($ac_try" in
1864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865   *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1870   ac_status=$?
1871   if test -s conftest.err; then
1872     grep -v '^ *+' conftest.err >conftest.er1
1873     cat conftest.er1 >&5
1874     mv -f conftest.er1 conftest.err
1875   fi
1876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877   test $ac_status = 0; } >/dev/null && {
1878          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1879          test ! -s conftest.err
1880        }; then :
1881   ac_retval=0
1882 else
1883   $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1885
1886     ac_retval=1
1887 fi
1888   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1889   return $ac_retval
1890
1891 } # ac_fn_c_try_cpp
1892
1893 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1894 # -------------------------------------------------------
1895 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1896 # the include files in INCLUDES and setting the cache variable VAR
1897 # accordingly.
1898 ac_fn_c_check_header_mongrel ()
1899 {
1900   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903 $as_echo_n "checking for $2... " >&6; }
1904 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1905   $as_echo_n "(cached) " >&6
1906 fi
1907 eval ac_res=\$$3
1908                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1910 else
1911   # Is the header compilable?
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1913 $as_echo_n "checking $2 usability... " >&6; }
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h.  */
1916 $4
1917 #include <$2>
1918 _ACEOF
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920   ac_header_compiler=yes
1921 else
1922   ac_header_compiler=no
1923 fi
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1926 $as_echo "$ac_header_compiler" >&6; }
1927
1928 # Is the header present?
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1930 $as_echo_n "checking $2 presence... " >&6; }
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h.  */
1933 #include <$2>
1934 _ACEOF
1935 if ac_fn_c_try_cpp "$LINENO"; then :
1936   ac_header_preproc=yes
1937 else
1938   ac_header_preproc=no
1939 fi
1940 rm -f conftest.err conftest.$ac_ext
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1942 $as_echo "$ac_header_preproc" >&6; }
1943
1944 # So?  What about this header?
1945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1946   yes:no: )
1947     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1948 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1949     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1950 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1951     ;;
1952   no:yes:* )
1953     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1954 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1955     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1956 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1957     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1958 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1959     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1960 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1961     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1962 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1963     ;;
1964 esac
1965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966 $as_echo_n "checking for $2... " >&6; }
1967 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1968   $as_echo_n "(cached) " >&6
1969 else
1970   eval "$3=\$ac_header_compiler"
1971 fi
1972 eval ac_res=\$$3
1973                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974 $as_echo "$ac_res" >&6; }
1975 fi
1976   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1977
1978 } # ac_fn_c_check_header_mongrel
1979
1980 # ac_fn_c_try_run LINENO
1981 # ----------------------
1982 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1983 # that executables *can* be run.
1984 ac_fn_c_try_run ()
1985 {
1986   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987   if { { ac_try="$ac_link"
1988 case "(($ac_try" in
1989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1990   *) ac_try_echo=$ac_try;;
1991 esac
1992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1993 $as_echo "$ac_try_echo"; } >&5
1994   (eval "$ac_link") 2>&5
1995   ac_status=$?
1996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1998   { { case "(($ac_try" in
1999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2000   *) ac_try_echo=$ac_try;;
2001 esac
2002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2003 $as_echo "$ac_try_echo"; } >&5
2004   (eval "$ac_try") 2>&5
2005   ac_status=$?
2006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007   test $ac_status = 0; }; }; then :
2008   ac_retval=0
2009 else
2010   $as_echo "$as_me: program exited with status $ac_status" >&5
2011        $as_echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2013
2014        ac_retval=$ac_status
2015 fi
2016   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2017   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2018   return $ac_retval
2019
2020 } # ac_fn_c_try_run
2021
2022 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2023 # -------------------------------------------------------
2024 # Tests whether HEADER exists and can be compiled using the include files in
2025 # INCLUDES, setting the cache variable VAR accordingly.
2026 ac_fn_c_check_header_compile ()
2027 {
2028   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030 $as_echo_n "checking for $2... " >&6; }
2031 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2032   $as_echo_n "(cached) " >&6
2033 else
2034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h.  */
2036 $4
2037 #include <$2>
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040   eval "$3=yes"
2041 else
2042   eval "$3=no"
2043 fi
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 fi
2046 eval ac_res=\$$3
2047                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2050
2051 } # ac_fn_c_check_header_compile
2052
2053 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2054 # --------------------------------------------
2055 # Tries to find the compile-time value of EXPR in a program that includes
2056 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2057 # computed
2058 ac_fn_c_compute_int ()
2059 {
2060   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061   if test "$cross_compiling" = yes; then
2062     # Depending upon the size, compute the lo and hi bounds.
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h.  */
2065 $4
2066 int
2067 main ()
2068 {
2069 static int test_array [1 - 2 * !(($2) >= 0)];
2070 test_array [0] = 0
2071
2072   ;
2073   return 0;
2074 }
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077   ac_lo=0 ac_mid=0
2078   while :; do
2079     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h.  */
2081 $4
2082 int
2083 main ()
2084 {
2085 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2086 test_array [0] = 0
2087
2088   ;
2089   return 0;
2090 }
2091 _ACEOF
2092 if ac_fn_c_try_compile "$LINENO"; then :
2093   ac_hi=$ac_mid; break
2094 else
2095   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2096                         if test $ac_lo -le $ac_mid; then
2097                           ac_lo= ac_hi=
2098                           break
2099                         fi
2100                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103   done
2104 else
2105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h.  */
2107 $4
2108 int
2109 main ()
2110 {
2111 static int test_array [1 - 2 * !(($2) < 0)];
2112 test_array [0] = 0
2113
2114   ;
2115   return 0;
2116 }
2117 _ACEOF
2118 if ac_fn_c_try_compile "$LINENO"; then :
2119   ac_hi=-1 ac_mid=-1
2120   while :; do
2121     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h.  */
2123 $4
2124 int
2125 main ()
2126 {
2127 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2128 test_array [0] = 0
2129
2130   ;
2131   return 0;
2132 }
2133 _ACEOF
2134 if ac_fn_c_try_compile "$LINENO"; then :
2135   ac_lo=$ac_mid; break
2136 else
2137   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2138                         if test $ac_mid -le $ac_hi; then
2139                           ac_lo= ac_hi=
2140                           break
2141                         fi
2142                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2143 fi
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145   done
2146 else
2147   ac_lo= ac_hi=
2148 fi
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 fi
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 # Binary search between lo and hi bounds.
2153 while test "x$ac_lo" != "x$ac_hi"; do
2154   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156 /* end confdefs.h.  */
2157 $4
2158 int
2159 main ()
2160 {
2161 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2162 test_array [0] = 0
2163
2164   ;
2165   return 0;
2166 }
2167 _ACEOF
2168 if ac_fn_c_try_compile "$LINENO"; then :
2169   ac_hi=$ac_mid
2170 else
2171   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2172 fi
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 done
2175 case $ac_lo in #((
2176 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2177 '') ac_retval=1 ;;
2178 esac
2179   else
2180     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h.  */
2182 $4
2183 static long int longval () { return $2; }
2184 static unsigned long int ulongval () { return $2; }
2185 #include <stdio.h>
2186 #include <stdlib.h>
2187 int
2188 main ()
2189 {
2190
2191   FILE *f = fopen ("conftest.val", "w");
2192   if (! f)
2193     return 1;
2194   if (($2) < 0)
2195     {
2196       long int i = longval ();
2197       if (i != ($2))
2198         return 1;
2199       fprintf (f, "%ld", i);
2200     }
2201   else
2202     {
2203       unsigned long int i = ulongval ();
2204       if (i != ($2))
2205         return 1;
2206       fprintf (f, "%lu", i);
2207     }
2208   /* Do not output a trailing newline, as this causes \r\n confusion
2209      on some platforms.  */
2210   return ferror (f) || fclose (f) != 0;
2211
2212   ;
2213   return 0;
2214 }
2215 _ACEOF
2216 if ac_fn_c_try_run "$LINENO"; then :
2217   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2218 else
2219   ac_retval=1
2220 fi
2221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2222   conftest.$ac_objext conftest.beam conftest.$ac_ext
2223 rm -f conftest.val
2224
2225   fi
2226   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2227   return $ac_retval
2228
2229 } # ac_fn_c_compute_int
2230
2231 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2232 # -------------------------------------------
2233 # Tests whether TYPE exists after having included INCLUDES, setting cache
2234 # variable VAR accordingly.
2235 ac_fn_c_check_type ()
2236 {
2237   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2239 $as_echo_n "checking for $2... " >&6; }
2240 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2241   $as_echo_n "(cached) " >&6
2242 else
2243   eval "$3=no"
2244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h.  */
2246 $4
2247 int
2248 main ()
2249 {
2250 if (sizeof ($2))
2251          return 0;
2252   ;
2253   return 0;
2254 }
2255 _ACEOF
2256 if ac_fn_c_try_compile "$LINENO"; then :
2257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h.  */
2259 $4
2260 int
2261 main ()
2262 {
2263 if (sizeof (($2)))
2264             return 0;
2265   ;
2266   return 0;
2267 }
2268 _ACEOF
2269 if ac_fn_c_try_compile "$LINENO"; then :
2270
2271 else
2272   eval "$3=yes"
2273 fi
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 fi
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 fi
2278 eval ac_res=\$$3
2279                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2280 $as_echo "$ac_res" >&6; }
2281   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2282
2283 } # ac_fn_c_check_type
2284
2285 # ac_fn_c_find_intX_t LINENO BITS VAR
2286 # -----------------------------------
2287 # Finds a signed integer type with width BITS, setting cache variable VAR
2288 # accordingly.
2289 ac_fn_c_find_intX_t ()
2290 {
2291   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2293 $as_echo_n "checking for int$2_t... " >&6; }
2294 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2295   $as_echo_n "(cached) " >&6
2296 else
2297   eval "$3=no"
2298      for ac_type in int$2_t 'int' 'long int' \
2299          'long long int' 'short int' 'signed char'; do
2300        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h.  */
2302 $ac_includes_default
2303 int
2304 main ()
2305 {
2306 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2307 test_array [0] = 0
2308
2309   ;
2310   return 0;
2311 }
2312 _ACEOF
2313 if ac_fn_c_try_compile "$LINENO"; then :
2314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h.  */
2316 $ac_includes_default
2317 int
2318 main ()
2319 {
2320 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2321                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2322 test_array [0] = 0
2323
2324   ;
2325   return 0;
2326 }
2327 _ACEOF
2328 if ac_fn_c_try_compile "$LINENO"; then :
2329
2330 else
2331   case $ac_type in #(
2332   int$2_t) :
2333     eval "$3=yes" ;; #(
2334   *) :
2335     eval "$3=\$ac_type" ;;
2336 esac
2337 fi
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 fi
2340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2341        eval as_val=\$$3
2342    if test "x$as_val" = x""no; then :
2343
2344 else
2345   break
2346 fi
2347      done
2348 fi
2349 eval ac_res=\$$3
2350                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2351 $as_echo "$ac_res" >&6; }
2352   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2353
2354 } # ac_fn_c_find_intX_t
2355
2356 # ac_fn_c_try_link LINENO
2357 # -----------------------
2358 # Try to link conftest.$ac_ext, and return whether this succeeded.
2359 ac_fn_c_try_link ()
2360 {
2361   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362   rm -f conftest.$ac_objext conftest$ac_exeext
2363   if { { ac_try="$ac_link"
2364 case "(($ac_try" in
2365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366   *) ac_try_echo=$ac_try;;
2367 esac
2368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2369 $as_echo "$ac_try_echo"; } >&5
2370   (eval "$ac_link") 2>conftest.err
2371   ac_status=$?
2372   if test -s conftest.err; then
2373     grep -v '^ *+' conftest.err >conftest.er1
2374     cat conftest.er1 >&5
2375     mv -f conftest.er1 conftest.err
2376   fi
2377   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2378   test $ac_status = 0; } && {
2379          test -z "$ac_c_werror_flag" ||
2380          test ! -s conftest.err
2381        } && test -s conftest$ac_exeext && {
2382          test "$cross_compiling" = yes ||
2383          $as_test_x conftest$ac_exeext
2384        }; then :
2385   ac_retval=0
2386 else
2387   $as_echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2389
2390         ac_retval=1
2391 fi
2392   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2393   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2394   # interfere with the next link command; also delete a directory that is
2395   # left behind by Apple's compiler.  We do this before executing the actions.
2396   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2397   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2398   return $ac_retval
2399
2400 } # ac_fn_c_try_link
2401
2402 # ac_fn_c_find_uintX_t LINENO BITS VAR
2403 # ------------------------------------
2404 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2405 # accordingly.
2406 ac_fn_c_find_uintX_t ()
2407 {
2408   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2410 $as_echo_n "checking for uint$2_t... " >&6; }
2411 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2412   $as_echo_n "(cached) " >&6
2413 else
2414   eval "$3=no"
2415      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2416          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2417        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h.  */
2419 $ac_includes_default
2420 int
2421 main ()
2422 {
2423 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2424 test_array [0] = 0
2425
2426   ;
2427   return 0;
2428 }
2429 _ACEOF
2430 if ac_fn_c_try_compile "$LINENO"; then :
2431   case $ac_type in #(
2432   uint$2_t) :
2433     eval "$3=yes" ;; #(
2434   *) :
2435     eval "$3=\$ac_type" ;;
2436 esac
2437 fi
2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2439        eval as_val=\$$3
2440    if test "x$as_val" = x""no; then :
2441
2442 else
2443   break
2444 fi
2445      done
2446 fi
2447 eval ac_res=\$$3
2448                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2449 $as_echo "$ac_res" >&6; }
2450   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2451
2452 } # ac_fn_c_find_uintX_t
2453
2454 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2455 # ----------------------------------------------
2456 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2457 ac_fn_c_check_header_preproc ()
2458 {
2459   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2461 $as_echo_n "checking for $2... " >&6; }
2462 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2463   $as_echo_n "(cached) " >&6
2464 else
2465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466 /* end confdefs.h.  */
2467 #include <$2>
2468 _ACEOF
2469 if ac_fn_c_try_cpp "$LINENO"; then :
2470   eval "$3=yes"
2471 else
2472   eval "$3=no"
2473 fi
2474 rm -f conftest.err conftest.$ac_ext
2475 fi
2476 eval ac_res=\$$3
2477                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2478 $as_echo "$ac_res" >&6; }
2479   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2480
2481 } # ac_fn_c_check_header_preproc
2482
2483 # ac_fn_cxx_try_cpp LINENO
2484 # ------------------------
2485 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2486 ac_fn_cxx_try_cpp ()
2487 {
2488   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2489   if { { ac_try="$ac_cpp conftest.$ac_ext"
2490 case "(($ac_try" in
2491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2492   *) ac_try_echo=$ac_try;;
2493 esac
2494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2495 $as_echo "$ac_try_echo"; } >&5
2496   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2497   ac_status=$?
2498   if test -s conftest.err; then
2499     grep -v '^ *+' conftest.err >conftest.er1
2500     cat conftest.er1 >&5
2501     mv -f conftest.er1 conftest.err
2502   fi
2503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2504   test $ac_status = 0; } >/dev/null && {
2505          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2506          test ! -s conftest.err
2507        }; then :
2508   ac_retval=0
2509 else
2510   $as_echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2512
2513     ac_retval=1
2514 fi
2515   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2516   return $ac_retval
2517
2518 } # ac_fn_cxx_try_cpp
2519
2520 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2521 # ------------------------------------------------
2522 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2523 ac_fn_cxx_check_header_preproc ()
2524 {
2525   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2527 $as_echo_n "checking for $2... " >&6; }
2528 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2529   $as_echo_n "(cached) " >&6
2530 else
2531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532 /* end confdefs.h.  */
2533 #include <$2>
2534 _ACEOF
2535 if ac_fn_cxx_try_cpp "$LINENO"; then :
2536   eval "$3=yes"
2537 else
2538   eval "$3=no"
2539 fi
2540 rm -f conftest.err conftest.$ac_ext
2541 fi
2542 eval ac_res=\$$3
2543                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2544 $as_echo "$ac_res" >&6; }
2545   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2546
2547 } # ac_fn_cxx_check_header_preproc
2548
2549 # ac_fn_c_check_func LINENO FUNC VAR
2550 # ----------------------------------
2551 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2552 ac_fn_c_check_func ()
2553 {
2554   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2556 $as_echo_n "checking for $2... " >&6; }
2557 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2558   $as_echo_n "(cached) " >&6
2559 else
2560   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2561 /* end confdefs.h.  */
2562 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2563    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2564 #define $2 innocuous_$2
2565
2566 /* System header to define __stub macros and hopefully few prototypes,
2567     which can conflict with char $2 (); below.
2568     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2569     <limits.h> exists even on freestanding compilers.  */
2570
2571 #ifdef __STDC__
2572 # include <limits.h>
2573 #else
2574 # include <assert.h>
2575 #endif
2576
2577 #undef $2
2578
2579 /* Override any GCC internal prototype to avoid an error.
2580    Use char because int might match the return type of a GCC
2581    builtin and then its argument prototype would still apply.  */
2582 #ifdef __cplusplus
2583 extern "C"
2584 #endif
2585 char $2 ();
2586 /* The GNU C library defines this for functions which it implements
2587     to always fail with ENOSYS.  Some functions are actually named
2588     something starting with __ and the normal name is an alias.  */
2589 #if defined __stub_$2 || defined __stub___$2
2590 choke me
2591 #endif
2592
2593 int
2594 main ()
2595 {
2596 return $2 ();
2597   ;
2598   return 0;
2599 }
2600 _ACEOF
2601 if ac_fn_c_try_link "$LINENO"; then :
2602   eval "$3=yes"
2603 else
2604   eval "$3=no"
2605 fi
2606 rm -f core conftest.err conftest.$ac_objext \
2607     conftest$ac_exeext conftest.$ac_ext
2608 fi
2609 eval ac_res=\$$3
2610                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2611 $as_echo "$ac_res" >&6; }
2612   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2613
2614 } # ac_fn_c_check_func
2615
2616 # ac_fn_cxx_try_link LINENO
2617 # -------------------------
2618 # Try to link conftest.$ac_ext, and return whether this succeeded.
2619 ac_fn_cxx_try_link ()
2620 {
2621   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2622   rm -f conftest.$ac_objext conftest$ac_exeext
2623   if { { ac_try="$ac_link"
2624 case "(($ac_try" in
2625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2626   *) ac_try_echo=$ac_try;;
2627 esac
2628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2629 $as_echo "$ac_try_echo"; } >&5
2630   (eval "$ac_link") 2>conftest.err
2631   ac_status=$?
2632   if test -s conftest.err; then
2633     grep -v '^ *+' conftest.err >conftest.er1
2634     cat conftest.er1 >&5
2635     mv -f conftest.er1 conftest.err
2636   fi
2637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2638   test $ac_status = 0; } && {
2639          test -z "$ac_cxx_werror_flag" ||
2640          test ! -s conftest.err
2641        } && test -s conftest$ac_exeext && {
2642          test "$cross_compiling" = yes ||
2643          $as_test_x conftest$ac_exeext
2644        }; then :
2645   ac_retval=0
2646 else
2647   $as_echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2649
2650         ac_retval=1
2651 fi
2652   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2653   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2654   # interfere with the next link command; also delete a directory that is
2655   # left behind by Apple's compiler.  We do this before executing the actions.
2656   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2657   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2658   return $ac_retval
2659
2660 } # ac_fn_cxx_try_link
2661 cat >config.log <<_ACEOF
2662 This file contains any messages produced by compilers while
2663 running configure, to aid debugging if configure makes a mistake.
2664
2665 It was created by $as_me, which was
2666 generated by GNU Autoconf 2.64.  Invocation command line was
2667
2668   $ $0 $@
2669
2670 _ACEOF
2671 exec 5>>config.log
2672 {
2673 cat <<_ASUNAME
2674 ## --------- ##
2675 ## Platform. ##
2676 ## --------- ##
2677
2678 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2679 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2680 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2681 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2682 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2683
2684 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2685 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2686
2687 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2688 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2689 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2690 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2691 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2692 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2693 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2694
2695 _ASUNAME
2696
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2699 do
2700   IFS=$as_save_IFS
2701   test -z "$as_dir" && as_dir=.
2702     $as_echo "PATH: $as_dir"
2703   done
2704 IFS=$as_save_IFS
2705
2706 } >&5
2707
2708 cat >&5 <<_ACEOF
2709
2710
2711 ## ----------- ##
2712 ## Core tests. ##
2713 ## ----------- ##
2714
2715 _ACEOF
2716
2717
2718 # Keep a trace of the command line.
2719 # Strip out --no-create and --no-recursion so they do not pile up.
2720 # Strip out --silent because we don't want to record it for future runs.
2721 # Also quote any args containing shell meta-characters.
2722 # Make two passes to allow for proper duplicate-argument suppression.
2723 ac_configure_args=
2724 ac_configure_args0=
2725 ac_configure_args1=
2726 ac_must_keep_next=false
2727 for ac_pass in 1 2
2728 do
2729   for ac_arg
2730   do
2731     case $ac_arg in
2732     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2733     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2734     | -silent | --silent | --silen | --sile | --sil)
2735       continue ;;
2736     *\'*)
2737       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2738     esac
2739     case $ac_pass in
2740     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2741     2)
2742       as_fn_append ac_configure_args1 " '$ac_arg'"
2743       if test $ac_must_keep_next = true; then
2744         ac_must_keep_next=false # Got value, back to normal.
2745       else
2746         case $ac_arg in
2747           *=* | --config-cache | -C | -disable-* | --disable-* \
2748           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2749           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2750           | -with-* | --with-* | -without-* | --without-* | --x)
2751             case "$ac_configure_args0 " in
2752               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2753             esac
2754             ;;
2755           -* ) ac_must_keep_next=true ;;
2756         esac
2757       fi
2758       as_fn_append ac_configure_args " '$ac_arg'"
2759       ;;
2760     esac
2761   done
2762 done
2763 { ac_configure_args0=; unset ac_configure_args0;}
2764 { ac_configure_args1=; unset ac_configure_args1;}
2765
2766 # When interrupted or exit'd, cleanup temporary files, and complete
2767 # config.log.  We remove comments because anyway the quotes in there
2768 # would cause problems or look ugly.
2769 # WARNING: Use '\'' to represent an apostrophe within the trap.
2770 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2771 trap 'exit_status=$?
2772   # Save into config.log some information that might help in debugging.
2773   {
2774     echo
2775
2776     cat <<\_ASBOX
2777 ## ---------------- ##
2778 ## Cache variables. ##
2779 ## ---------------- ##
2780 _ASBOX
2781     echo
2782     # The following way of writing the cache mishandles newlines in values,
2783 (
2784   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2785     eval ac_val=\$$ac_var
2786     case $ac_val in #(
2787     *${as_nl}*)
2788       case $ac_var in #(
2789       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2790 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2791       esac
2792       case $ac_var in #(
2793       _ | IFS | as_nl) ;; #(
2794       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2795       *) { eval $ac_var=; unset $ac_var;} ;;
2796       esac ;;
2797     esac
2798   done
2799   (set) 2>&1 |
2800     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2801     *${as_nl}ac_space=\ *)
2802       sed -n \
2803         "s/'\''/'\''\\\\'\'''\''/g;
2804           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2805       ;; #(
2806     *)
2807       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2808       ;;
2809     esac |
2810     sort
2811 )
2812     echo
2813
2814     cat <<\_ASBOX
2815 ## ----------------- ##
2816 ## Output variables. ##
2817 ## ----------------- ##
2818 _ASBOX
2819     echo
2820     for ac_var in $ac_subst_vars
2821     do
2822       eval ac_val=\$$ac_var
2823       case $ac_val in
2824       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2825       esac
2826       $as_echo "$ac_var='\''$ac_val'\''"
2827     done | sort
2828     echo
2829
2830     if test -n "$ac_subst_files"; then
2831       cat <<\_ASBOX
2832 ## ------------------- ##
2833 ## File substitutions. ##
2834 ## ------------------- ##
2835 _ASBOX
2836       echo
2837       for ac_var in $ac_subst_files
2838       do
2839         eval ac_val=\$$ac_var
2840         case $ac_val in
2841         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2842         esac
2843         $as_echo "$ac_var='\''$ac_val'\''"
2844       done | sort
2845       echo
2846     fi
2847
2848     if test -s confdefs.h; then
2849       cat <<\_ASBOX
2850 ## ----------- ##
2851 ## confdefs.h. ##
2852 ## ----------- ##
2853 _ASBOX
2854       echo
2855       cat confdefs.h
2856       echo
2857     fi
2858     test "$ac_signal" != 0 &&
2859       $as_echo "$as_me: caught signal $ac_signal"
2860     $as_echo "$as_me: exit $exit_status"
2861   } >&5
2862   rm -f core *.core core.conftest.* &&
2863     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2864     exit $exit_status
2865 ' 0
2866 for ac_signal in 1 2 13 15; do
2867   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2868 done
2869 ac_signal=0
2870
2871 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2872 rm -f -r conftest* confdefs.h
2873
2874 $as_echo "/* confdefs.h */" > confdefs.h
2875
2876 # Predefined preprocessor variables.
2877
2878 cat >>confdefs.h <<_ACEOF
2879 #define PACKAGE_NAME "$PACKAGE_NAME"
2880 _ACEOF
2881
2882 cat >>confdefs.h <<_ACEOF
2883 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2884 _ACEOF
2885
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2888 _ACEOF
2889
2890 cat >>confdefs.h <<_ACEOF
2891 #define PACKAGE_STRING "$PACKAGE_STRING"
2892 _ACEOF
2893
2894 cat >>confdefs.h <<_ACEOF
2895 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2896 _ACEOF
2897
2898 cat >>confdefs.h <<_ACEOF
2899 #define PACKAGE_URL "$PACKAGE_URL"
2900 _ACEOF
2901
2902
2903 # Let the site file select an alternate cache file if it wants to.
2904 # Prefer an explicitly selected file to automatically selected ones.
2905 ac_site_file1=NONE
2906 ac_site_file2=NONE
2907 if test -n "$CONFIG_SITE"; then
2908   ac_site_file1=$CONFIG_SITE
2909 elif test "x$prefix" != xNONE; then
2910   ac_site_file1=$prefix/share/config.site
2911   ac_site_file2=$prefix/etc/config.site
2912 else
2913   ac_site_file1=$ac_default_prefix/share/config.site
2914   ac_site_file2=$ac_default_prefix/etc/config.site
2915 fi
2916 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2917 do
2918   test "x$ac_site_file" = xNONE && continue
2919   if test -r "$ac_site_file"; then
2920     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2921 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2922     sed 's/^/| /' "$ac_site_file" >&5
2923     . "$ac_site_file"
2924   fi
2925 done
2926
2927 if test -r "$cache_file"; then
2928   # Some versions of bash will fail to source /dev/null (special
2929   # files actually), so we avoid doing that.
2930   if test -f "$cache_file"; then
2931     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2932 $as_echo "$as_me: loading cache $cache_file" >&6;}
2933     case $cache_file in
2934       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2935       *)                      . "./$cache_file";;
2936     esac
2937   fi
2938 else
2939   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2940 $as_echo "$as_me: creating cache $cache_file" >&6;}
2941   >$cache_file
2942 fi
2943
2944 # Check that the precious variables saved in the cache have kept the same
2945 # value.
2946 ac_cache_corrupted=false
2947 for ac_var in $ac_precious_vars; do
2948   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2949   eval ac_new_set=\$ac_env_${ac_var}_set
2950   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2951   eval ac_new_val=\$ac_env_${ac_var}_value
2952   case $ac_old_set,$ac_new_set in
2953     set,)
2954       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2955 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2956       ac_cache_corrupted=: ;;
2957     ,set)
2958       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2959 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2960       ac_cache_corrupted=: ;;
2961     ,);;
2962     *)
2963       if test "x$ac_old_val" != "x$ac_new_val"; then
2964         # differences in whitespace do not lead to failure.
2965         ac_old_val_w=`echo x $ac_old_val`
2966         ac_new_val_w=`echo x $ac_new_val`
2967         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2968           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2969 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2970           ac_cache_corrupted=:
2971         else
2972           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2973 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2974           eval $ac_var=\$ac_old_val
2975         fi
2976         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2977 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2978         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2979 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2980       fi;;
2981   esac
2982   # Pass precious variables to config.status.
2983   if test "$ac_new_set" = set; then
2984     case $ac_new_val in
2985     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2986     *) ac_arg=$ac_var=$ac_new_val ;;
2987     esac
2988     case " $ac_configure_args " in
2989       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2990       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2991     esac
2992   fi
2993 done
2994 if $ac_cache_corrupted; then
2995   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2997   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2998 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2999   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3000 fi
3001 ## -------------------- ##
3002 ## Main body of script. ##
3003 ## -------------------- ##
3004
3005 ac_ext=c
3006 ac_cpp='$CPP $CPPFLAGS'
3007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010
3011
3012
3013
3014
3015
3016 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3017
3018
3019 gcc_version=`cat $srcdir/BASE-VER`
3020
3021 # Determine the host, build, and target systems
3022 ac_aux_dir=
3023 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3024   for ac_t in install-sh install.sh shtool; do
3025     if test -f "$ac_dir/$ac_t"; then
3026       ac_aux_dir=$ac_dir
3027       ac_install_sh="$ac_aux_dir/$ac_t -c"
3028       break 2
3029     fi
3030   done
3031 done
3032 if test -z "$ac_aux_dir"; then
3033   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3034 fi
3035
3036 # These three variables are undocumented and unsupported,
3037 # and are intended to be withdrawn in a future Autoconf release.
3038 # They can cause serious problems if a builder's source tree is in a directory
3039 # whose full name contains unusual characters.
3040 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3041 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3042 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3043
3044
3045 # Make sure we can run config.sub.
3046 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3047   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3048
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3050 $as_echo_n "checking build system type... " >&6; }
3051 if test "${ac_cv_build+set}" = set; then :
3052   $as_echo_n "(cached) " >&6
3053 else
3054   ac_build_alias=$build_alias
3055 test "x$ac_build_alias" = x &&
3056   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3057 test "x$ac_build_alias" = x &&
3058   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3059 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3060   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3061
3062 fi
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3064 $as_echo "$ac_cv_build" >&6; }
3065 case $ac_cv_build in
3066 *-*-*) ;;
3067 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3068 esac
3069 build=$ac_cv_build
3070 ac_save_IFS=$IFS; IFS='-'
3071 set x $ac_cv_build
3072 shift
3073 build_cpu=$1
3074 build_vendor=$2
3075 shift; shift
3076 # Remember, the first character of IFS is used to create $*,
3077 # except with old shells:
3078 build_os=$*
3079 IFS=$ac_save_IFS
3080 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3081
3082
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3084 $as_echo_n "checking host system type... " >&6; }
3085 if test "${ac_cv_host+set}" = set; then :
3086   $as_echo_n "(cached) " >&6
3087 else
3088   if test "x$host_alias" = x; then
3089   ac_cv_host=$ac_cv_build
3090 else
3091   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3092     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3093 fi
3094
3095 fi
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3097 $as_echo "$ac_cv_host" >&6; }
3098 case $ac_cv_host in
3099 *-*-*) ;;
3100 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3101 esac
3102 host=$ac_cv_host
3103 ac_save_IFS=$IFS; IFS='-'
3104 set x $ac_cv_host
3105 shift
3106 host_cpu=$1
3107 host_vendor=$2
3108 shift; shift
3109 # Remember, the first character of IFS is used to create $*,
3110 # except with old shells:
3111 host_os=$*
3112 IFS=$ac_save_IFS
3113 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3114
3115
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3117 $as_echo_n "checking target system type... " >&6; }
3118 if test "${ac_cv_target+set}" = set; then :
3119   $as_echo_n "(cached) " >&6
3120 else
3121   if test "x$target_alias" = x; then
3122   ac_cv_target=$ac_cv_host
3123 else
3124   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3125     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3126 fi
3127
3128 fi
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3130 $as_echo "$ac_cv_target" >&6; }
3131 case $ac_cv_target in
3132 *-*-*) ;;
3133 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3134 esac
3135 target=$ac_cv_target
3136 ac_save_IFS=$IFS; IFS='-'
3137 set x $ac_cv_target
3138 shift
3139 target_cpu=$1
3140 target_vendor=$2
3141 shift; shift
3142 # Remember, the first character of IFS is used to create $*,
3143 # except with old shells:
3144 target_os=$*
3145 IFS=$ac_save_IFS
3146 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3147
3148
3149 # The aliases save the names the user supplied, while $host etc.
3150 # will get canonicalized.
3151 test -n "$target_alias" &&
3152   test "$program_prefix$program_suffix$program_transform_name" = \
3153     NONENONEs,x,x, &&
3154   program_prefix=${target_alias}-
3155
3156 # Determine the noncanonical target name, for directory use.
3157  case ${build_alias} in
3158   "") build_noncanonical=${build} ;;
3159   *) build_noncanonical=${build_alias} ;;
3160 esac
3161
3162  case ${host_alias} in
3163   "") host_noncanonical=${build_noncanonical} ;;
3164   *) host_noncanonical=${host_alias} ;;
3165 esac
3166
3167  case ${target_alias} in
3168   "") target_noncanonical=${host_noncanonical} ;;
3169   *) target_noncanonical=${target_alias} ;;
3170 esac
3171
3172
3173
3174
3175 # Determine the target- and build-specific subdirectories
3176
3177 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3178 # have matching libraries, they should use host libraries: Makefile.tpl
3179 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3180 # However, they still use the build modules, because the corresponding
3181 # host modules (e.g. bison) are only built for the host when bootstrap
3182 # finishes. So:
3183 # - build_subdir is where we find build modules, and never changes.
3184 # - build_libsubdir is where we find build libraries, and can be overridden.
3185
3186 # Prefix 'build-' so this never conflicts with target_subdir.
3187 build_subdir="build-${build_noncanonical}"
3188
3189 # Check whether --with-build-libsubdir was given.
3190 if test "${with_build_libsubdir+set}" = set; then :
3191   withval=$with_build_libsubdir; build_libsubdir="$withval"
3192 else
3193   build_libsubdir="$build_subdir"
3194 fi
3195
3196 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3197 if ( test $srcdir = . && test -d gcc ) \
3198    || test -d $srcdir/../host-${host_noncanonical}; then
3199   host_subdir="host-${host_noncanonical}"
3200 else
3201   host_subdir=.
3202 fi
3203 # No prefix.
3204 target_subdir=${target_noncanonical}
3205
3206
3207 # Set program_transform_name
3208 test "$program_prefix" != NONE &&
3209   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3210 # Use a double $ so make ignores it.
3211 test "$program_suffix" != NONE &&
3212   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3213 # Double any \ or $.
3214 # By default was `s,x,x', remove it if useless.
3215 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3216 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3217
3218
3219 # Check for bogus environment variables.
3220 # Test if LIBRARY_PATH contains the notation for the current directory
3221 # since this would lead to problems installing/building glibc.
3222 # LIBRARY_PATH contains the current directory if one of the following
3223 # is true:
3224 # - one of the terminals (":" and ";") is the first or last sign
3225 # - two terminals occur directly after each other
3226 # - the path contains an element with a dot in it
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3228 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3229 case ${LIBRARY_PATH} in
3230   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3231     library_path_setting="contains current directory"
3232     ;;
3233   *)
3234     library_path_setting="ok"
3235     ;;
3236 esac
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3238 $as_echo "$library_path_setting" >&6; }
3239 if test "$library_path_setting" != "ok"; then
3240 as_fn_error "
3241 *** LIBRARY_PATH shouldn't contain the current directory when
3242 *** building gcc. Please change the environment variable
3243 *** and run configure again." "$LINENO" 5
3244 fi
3245
3246 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3247 # since this would lead to problems installing/building glibc.
3248 # GCC_EXEC_PREFIX contains the current directory if one of the following
3249 # is true:
3250 # - one of the terminals (":" and ";") is the first or last sign
3251 # - two terminals occur directly after each other
3252 # - the path contains an element with a dot in it
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3254 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3255 case ${GCC_EXEC_PREFIX} in
3256   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3257     gcc_exec_prefix_setting="contains current directory"
3258     ;;
3259   *)
3260     gcc_exec_prefix_setting="ok"
3261     ;;
3262 esac
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3264 $as_echo "$gcc_exec_prefix_setting" >&6; }
3265 if test "$gcc_exec_prefix_setting" != "ok"; then
3266 as_fn_error "
3267 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3268 *** building gcc. Please change the environment variable
3269 *** and run configure again." "$LINENO" 5
3270 fi
3271
3272 # -----------
3273 # Directories
3274 # -----------
3275
3276 # Specify the local prefix
3277 local_prefix=
3278
3279 # Check whether --with-local-prefix was given.
3280 if test "${with_local_prefix+set}" = set; then :
3281   withval=$with_local_prefix; case "${withval}" in
3282 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3283 no)     ;;
3284 *)      local_prefix=$with_local_prefix ;;
3285 esac
3286 fi
3287
3288
3289 # Default local prefix if it is empty
3290 if test x$local_prefix = x; then
3291         local_prefix=/usr/local
3292 fi
3293
3294 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3295 # passed in by the toplevel make and thus we'd get different behavior
3296 # depending on where we built the sources.
3297 gcc_gxx_include_dir=
3298 # Specify the g++ header file directory
3299
3300 # Check whether --with-gxx-include-dir was given.
3301 if test "${with_gxx_include_dir+set}" = set; then :
3302   withval=$with_gxx_include_dir; case "${withval}" in
3303 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3304 no)     ;;
3305 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3306 esac
3307 fi
3308
3309
3310 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3311 if test x${gcc_gxx_include_dir} = x; then
3312   if test x${enable_version_specific_runtime_libs} = xyes; then
3313     gcc_gxx_include_dir='${libsubdir}/include/c++'
3314   else
3315     libstdcxx_incdir='include/c++/$(version)'
3316     if test x$host != x$target; then
3317        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3318     fi
3319     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3320   fi
3321 fi
3322
3323
3324 # Check whether --with-cpp_install_dir was given.
3325 if test "${with_cpp_install_dir+set}" = set; then :
3326   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3327   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3328 elif test x$withval != xno; then
3329   cpp_install_dir=$withval
3330 fi
3331 fi
3332
3333
3334 # We would like to our source tree to be readonly.  However when releases or
3335 # pre-releases are generated, the flex/bison generated files as well as the
3336 # various formats of manuals need to be included along with the rest of the
3337 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3338 # just that.
3339
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3341 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3342     # Check whether --enable-generated-files-in-srcdir was given.
3343 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3344   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3345 else
3346   generated_files_in_srcdir=no
3347 fi
3348
3349
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3351 $as_echo "$generated_files_in_srcdir" >&6; }
3352
3353 if test "$generated_files_in_srcdir" = "yes"; then
3354   GENINSRC=''
3355 else
3356   GENINSRC='#'
3357 fi
3358
3359
3360 # -------------------
3361 # Find default linker
3362 # -------------------
3363
3364 # With GNU ld
3365
3366 # Check whether --with-gnu-ld was given.
3367 if test "${with_gnu_ld+set}" = set; then :
3368   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3369 else
3370   gnu_ld_flag=no
3371 fi
3372
3373
3374 # With pre-defined ld
3375
3376 # Check whether --with-ld was given.
3377 if test "${with_ld+set}" = set; then :
3378   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3379 fi
3380
3381 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3382   if test ! -x "$DEFAULT_LINKER"; then
3383     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3384   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3385     gnu_ld_flag=yes
3386   fi
3387
3388 cat >>confdefs.h <<_ACEOF
3389 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3390 _ACEOF
3391
3392 fi
3393
3394 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3395
3396 cat >>confdefs.h <<_ACEOF
3397 #define HAVE_GNU_LD $gnu_ld
3398 _ACEOF
3399
3400
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3402 $as_echo_n "checking whether a default linker was specified... " >&6; }
3403 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3404   if test x"$gnu_ld_flag" = x"no"; then
3405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3406 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3407   else
3408     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3409 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3410   fi
3411 else
3412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3414 fi
3415
3416 # With demangler in GNU ld
3417
3418 # Check whether --with-demangler-in-ld was given.
3419 if test "${with_demangler_in_ld+set}" = set; then :
3420   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3421 else
3422   demangler_in_ld=yes
3423 fi
3424
3425
3426 # ----------------------
3427 # Find default assembler
3428 # ----------------------
3429
3430 # With GNU as
3431
3432 # Check whether --with-gnu-as was given.
3433 if test "${with_gnu_as+set}" = set; then :
3434   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3435 else
3436   gas_flag=no
3437 fi
3438
3439
3440
3441 # Check whether --with-as was given.
3442 if test "${with_as+set}" = set; then :
3443   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3444 fi
3445
3446 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3447   if test ! -x "$DEFAULT_ASSEMBLER"; then
3448     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3449   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3450     gas_flag=yes
3451   fi
3452
3453 cat >>confdefs.h <<_ACEOF
3454 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3455 _ACEOF
3456
3457 fi
3458
3459 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3460
3461 cat >>confdefs.h <<_ACEOF
3462 #define HAVE_GNU_AS $gnu_as
3463 _ACEOF
3464
3465
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3467 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3468 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3469   if test x"$gas_flag" = x"no"; then
3470     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3471 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3472   else
3473     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3474 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3475   fi
3476 else
3477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 $as_echo "no" >&6; }
3479 fi
3480
3481 # ---------------
3482 # Find C compiler
3483 # ---------------
3484
3485 # If a non-executable a.out is present (e.g. created by GNU as above even if
3486 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3487 # file, even when creating an executable, so an execution test fails.
3488 # Remove possible default executable files to avoid this.
3489 #
3490 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3491 # Autoconf includes it.
3492 rm -f a.out a.exe b.out
3493
3494 # Find the native compiler
3495 ac_ext=c
3496 ac_cpp='$CPP $CPPFLAGS'
3497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500 if test -n "$ac_tool_prefix"; then
3501   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3502 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 $as_echo_n "checking for $ac_word... " >&6; }
3505 if test "${ac_cv_prog_CC+set}" = set; then :
3506   $as_echo_n "(cached) " >&6
3507 else
3508   if test -n "$CC"; then
3509   ac_cv_prog_CC="$CC" # Let the user override the test.
3510 else
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 for as_dir in $PATH
3513 do
3514   IFS=$as_save_IFS
3515   test -z "$as_dir" && as_dir=.
3516     for ac_exec_ext in '' $ac_executable_extensions; do
3517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3518     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3520     break 2
3521   fi
3522 done
3523   done
3524 IFS=$as_save_IFS
3525
3526 fi
3527 fi
3528 CC=$ac_cv_prog_CC
3529 if test -n "$CC"; then
3530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3531 $as_echo "$CC" >&6; }
3532 else
3533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3535 fi
3536
3537
3538 fi
3539 if test -z "$ac_cv_prog_CC"; then
3540   ac_ct_CC=$CC
3541   # Extract the first word of "gcc", so it can be a program name with args.
3542 set dummy gcc; ac_word=$2
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544 $as_echo_n "checking for $ac_word... " >&6; }
3545 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3546   $as_echo_n "(cached) " >&6
3547 else
3548   if test -n "$ac_ct_CC"; then
3549   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3550 else
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3553 do
3554   IFS=$as_save_IFS
3555   test -z "$as_dir" && as_dir=.
3556     for ac_exec_ext in '' $ac_executable_extensions; do
3557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3558     ac_cv_prog_ac_ct_CC="gcc"
3559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3560     break 2
3561   fi
3562 done
3563   done
3564 IFS=$as_save_IFS
3565
3566 fi
3567 fi
3568 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3569 if test -n "$ac_ct_CC"; then
3570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3571 $as_echo "$ac_ct_CC" >&6; }
3572 else
3573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 $as_echo "no" >&6; }
3575 fi
3576
3577   if test "x$ac_ct_CC" = x; then
3578     CC=""
3579   else
3580     case $cross_compiling:$ac_tool_warned in
3581 yes:)
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3584 ac_tool_warned=yes ;;
3585 esac
3586     CC=$ac_ct_CC
3587   fi
3588 else
3589   CC="$ac_cv_prog_CC"
3590 fi
3591
3592 if test -z "$CC"; then
3593           if test -n "$ac_tool_prefix"; then
3594     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3595 set dummy ${ac_tool_prefix}cc; ac_word=$2
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597 $as_echo_n "checking for $ac_word... " >&6; }
3598 if test "${ac_cv_prog_CC+set}" = set; then :
3599   $as_echo_n "(cached) " >&6
3600 else
3601   if test -n "$CC"; then
3602   ac_cv_prog_CC="$CC" # Let the user override the test.
3603 else
3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 for as_dir in $PATH
3606 do
3607   IFS=$as_save_IFS
3608   test -z "$as_dir" && as_dir=.
3609     for ac_exec_ext in '' $ac_executable_extensions; do
3610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3611     ac_cv_prog_CC="${ac_tool_prefix}cc"
3612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3613     break 2
3614   fi
3615 done
3616   done
3617 IFS=$as_save_IFS
3618
3619 fi
3620 fi
3621 CC=$ac_cv_prog_CC
3622 if test -n "$CC"; then
3623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3624 $as_echo "$CC" >&6; }
3625 else
3626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3628 fi
3629
3630
3631   fi
3632 fi
3633 if test -z "$CC"; then
3634   # Extract the first word of "cc", so it can be a program name with args.
3635 set dummy cc; ac_word=$2
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3637 $as_echo_n "checking for $ac_word... " >&6; }
3638 if test "${ac_cv_prog_CC+set}" = set; then :
3639   $as_echo_n "(cached) " >&6
3640 else
3641   if test -n "$CC"; then
3642   ac_cv_prog_CC="$CC" # Let the user override the test.
3643 else
3644   ac_prog_rejected=no
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 for as_dir in $PATH
3647 do
3648   IFS=$as_save_IFS
3649   test -z "$as_dir" && as_dir=.
3650     for ac_exec_ext in '' $ac_executable_extensions; do
3651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3652     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3653        ac_prog_rejected=yes
3654        continue
3655      fi
3656     ac_cv_prog_CC="cc"
3657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3658     break 2
3659   fi
3660 done
3661   done
3662 IFS=$as_save_IFS
3663
3664 if test $ac_prog_rejected = yes; then
3665   # We found a bogon in the path, so make sure we never use it.
3666   set dummy $ac_cv_prog_CC
3667   shift
3668   if test $# != 0; then
3669     # We chose a different compiler from the bogus one.
3670     # However, it has the same basename, so the bogon will be chosen
3671     # first if we set CC to just the basename; use the full file name.
3672     shift
3673     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3674   fi
3675 fi
3676 fi
3677 fi
3678 CC=$ac_cv_prog_CC
3679 if test -n "$CC"; then
3680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681 $as_echo "$CC" >&6; }
3682 else
3683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 $as_echo "no" >&6; }
3685 fi
3686
3687
3688 fi
3689 if test -z "$CC"; then
3690   if test -n "$ac_tool_prefix"; then
3691   for ac_prog in cl.exe
3692   do
3693     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3694 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696 $as_echo_n "checking for $ac_word... " >&6; }
3697 if test "${ac_cv_prog_CC+set}" = set; then :
3698   $as_echo_n "(cached) " >&6
3699 else
3700   if test -n "$CC"; then
3701   ac_cv_prog_CC="$CC" # Let the user override the test.
3702 else
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH
3705 do
3706   IFS=$as_save_IFS
3707   test -z "$as_dir" && as_dir=.
3708     for ac_exec_ext in '' $ac_executable_extensions; do
3709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3710     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3712     break 2
3713   fi
3714 done
3715   done
3716 IFS=$as_save_IFS
3717
3718 fi
3719 fi
3720 CC=$ac_cv_prog_CC
3721 if test -n "$CC"; then
3722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3723 $as_echo "$CC" >&6; }
3724 else
3725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726 $as_echo "no" >&6; }
3727 fi
3728
3729
3730     test -n "$CC" && break
3731   done
3732 fi
3733 if test -z "$CC"; then
3734   ac_ct_CC=$CC
3735   for ac_prog in cl.exe
3736 do
3737   # Extract the first word of "$ac_prog", so it can be a program name with args.
3738 set dummy $ac_prog; ac_word=$2
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740 $as_echo_n "checking for $ac_word... " >&6; }
3741 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3742   $as_echo_n "(cached) " >&6
3743 else
3744   if test -n "$ac_ct_CC"; then
3745   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3746 else
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH
3749 do
3750   IFS=$as_save_IFS
3751   test -z "$as_dir" && as_dir=.
3752     for ac_exec_ext in '' $ac_executable_extensions; do
3753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3754     ac_cv_prog_ac_ct_CC="$ac_prog"
3755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3756     break 2
3757   fi
3758 done
3759   done
3760 IFS=$as_save_IFS
3761
3762 fi
3763 fi
3764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3765 if test -n "$ac_ct_CC"; then
3766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3767 $as_echo "$ac_ct_CC" >&6; }
3768 else
3769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3770 $as_echo "no" >&6; }
3771 fi
3772
3773
3774   test -n "$ac_ct_CC" && break
3775 done
3776
3777   if test "x$ac_ct_CC" = x; then
3778     CC=""
3779   else
3780     case $cross_compiling:$ac_tool_warned in
3781 yes:)
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3784 ac_tool_warned=yes ;;
3785 esac
3786     CC=$ac_ct_CC
3787   fi
3788 fi
3789
3790 fi
3791
3792
3793 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3795 as_fn_error "no acceptable C compiler found in \$PATH
3796 See \`config.log' for more details." "$LINENO" 5; }
3797
3798 # Provide some information about the compiler.
3799 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3800 set X $ac_compile
3801 ac_compiler=$2
3802 for ac_option in --version -v -V -qversion; do
3803   { { ac_try="$ac_compiler $ac_option >&5"
3804 case "(($ac_try" in
3805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806   *) ac_try_echo=$ac_try;;
3807 esac
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 $as_echo "$ac_try_echo"; } >&5
3810   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3811   ac_status=$?
3812   if test -s conftest.err; then
3813     sed '10a\
3814 ... rest of stderr output deleted ...
3815          10q' conftest.err >conftest.er1
3816     cat conftest.er1 >&5
3817     rm -f conftest.er1 conftest.err
3818   fi
3819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3820   test $ac_status = 0; }
3821 done
3822
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h.  */
3825
3826 int
3827 main ()
3828 {
3829
3830   ;
3831   return 0;
3832 }
3833 _ACEOF
3834 ac_clean_files_save=$ac_clean_files
3835 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3836 # Try to create an executable without -o first, disregard a.out.
3837 # It will help us diagnose broken compilers, and finding out an intuition
3838 # of exeext.
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3840 $as_echo_n "checking for C compiler default output file name... " >&6; }
3841 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3842
3843 # The possible output files:
3844 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3845
3846 ac_rmfiles=
3847 for ac_file in $ac_files
3848 do
3849   case $ac_file in
3850     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3851     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3852   esac
3853 done
3854 rm -f $ac_rmfiles
3855
3856 if { { ac_try="$ac_link_default"
3857 case "(($ac_try" in
3858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859   *) ac_try_echo=$ac_try;;
3860 esac
3861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862 $as_echo "$ac_try_echo"; } >&5
3863   (eval "$ac_link_default") 2>&5
3864   ac_status=$?
3865   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866   test $ac_status = 0; }; then :
3867   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3868 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3869 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3870 # so that the user can short-circuit this test for compilers unknown to
3871 # Autoconf.
3872 for ac_file in $ac_files ''
3873 do
3874   test -f "$ac_file" || continue
3875   case $ac_file in
3876     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3877         ;;
3878     [ab].out )
3879         # We found the default executable, but exeext='' is most
3880         # certainly right.
3881         break;;
3882     *.* )
3883         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3884         then :; else
3885            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3886         fi
3887         # We set ac_cv_exeext here because the later test for it is not
3888         # safe: cross compilers may not add the suffix if given an `-o'
3889         # argument, so we may need to know it at that point already.
3890         # Even if this section looks crufty: it has the advantage of
3891         # actually working.
3892         break;;
3893     * )
3894         break;;
3895   esac
3896 done
3897 test "$ac_cv_exeext" = no && ac_cv_exeext=
3898
3899 else
3900   ac_file=''
3901 fi
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3903 $as_echo "$ac_file" >&6; }
3904 if test -z "$ac_file"; then :
3905   $as_echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3907
3908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3910 { as_fn_set_status 77
3911 as_fn_error "C compiler cannot create executables
3912 See \`config.log' for more details." "$LINENO" 5; }; }
3913 fi
3914 ac_exeext=$ac_cv_exeext
3915
3916 # Check that the compiler produces executables we can run.  If not, either
3917 # the compiler is broken, or we cross compile.
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3919 $as_echo_n "checking whether the C compiler works... " >&6; }
3920 # If not cross compiling, check that we can run a simple program.
3921 if test "$cross_compiling" != yes; then
3922   if { ac_try='./$ac_file'
3923   { { case "(($ac_try" in
3924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925   *) ac_try_echo=$ac_try;;
3926 esac
3927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928 $as_echo "$ac_try_echo"; } >&5
3929   (eval "$ac_try") 2>&5
3930   ac_status=$?
3931   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3932   test $ac_status = 0; }; }; then
3933     cross_compiling=no
3934   else
3935     if test "$cross_compiling" = maybe; then
3936         cross_compiling=yes
3937     else
3938         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3940 as_fn_error "cannot run C compiled programs.
3941 If you meant to cross compile, use \`--host'.
3942 See \`config.log' for more details." "$LINENO" 5; }
3943     fi
3944   fi
3945 fi
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3947 $as_echo "yes" >&6; }
3948
3949 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3950 ac_clean_files=$ac_clean_files_save
3951 # Check that the compiler produces executables we can run.  If not, either
3952 # the compiler is broken, or we cross compile.
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3954 $as_echo_n "checking whether we are cross compiling... " >&6; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3956 $as_echo "$cross_compiling" >&6; }
3957
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3959 $as_echo_n "checking for suffix of executables... " >&6; }
3960 if { { ac_try="$ac_link"
3961 case "(($ac_try" in
3962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963   *) ac_try_echo=$ac_try;;
3964 esac
3965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3966 $as_echo "$ac_try_echo"; } >&5
3967   (eval "$ac_link") 2>&5
3968   ac_status=$?
3969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3970   test $ac_status = 0; }; then :
3971   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3972 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3973 # work properly (i.e., refer to `conftest.exe'), while it won't with
3974 # `rm'.
3975 for ac_file in conftest.exe conftest conftest.*; do
3976   test -f "$ac_file" || continue
3977   case $ac_file in
3978     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3979     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3980           break;;
3981     * ) break;;
3982   esac
3983 done
3984 else
3985   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3987 as_fn_error "cannot compute suffix of executables: cannot compile and link
3988 See \`config.log' for more details." "$LINENO" 5; }
3989 fi
3990 rm -f conftest$ac_cv_exeext
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3992 $as_echo "$ac_cv_exeext" >&6; }
3993
3994 rm -f conftest.$ac_ext
3995 EXEEXT=$ac_cv_exeext
3996 ac_exeext=$EXEEXT
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3998 $as_echo_n "checking for suffix of object files... " >&6; }
3999 if test "${ac_cv_objext+set}" = set; then :
4000   $as_echo_n "(cached) " >&6
4001 else
4002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h.  */
4004
4005 int
4006 main ()
4007 {
4008
4009   ;
4010   return 0;
4011 }
4012 _ACEOF
4013 rm -f conftest.o conftest.obj
4014 if { { ac_try="$ac_compile"
4015 case "(($ac_try" in
4016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017   *) ac_try_echo=$ac_try;;
4018 esac
4019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4020 $as_echo "$ac_try_echo"; } >&5
4021   (eval "$ac_compile") 2>&5
4022   ac_status=$?
4023   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4024   test $ac_status = 0; }; then :
4025   for ac_file in conftest.o conftest.obj conftest.*; do
4026   test -f "$ac_file" || continue;
4027   case $ac_file in
4028     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4029     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4030        break;;
4031   esac
4032 done
4033 else
4034   $as_echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4036
4037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4039 as_fn_error "cannot compute suffix of object files: cannot compile
4040 See \`config.log' for more details." "$LINENO" 5; }
4041 fi
4042 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4043 fi
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4045 $as_echo "$ac_cv_objext" >&6; }
4046 OBJEXT=$ac_cv_objext
4047 ac_objext=$OBJEXT
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4049 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4050 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4051   $as_echo_n "(cached) " >&6
4052 else
4053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h.  */
4055
4056 int
4057 main ()
4058 {
4059 #ifndef __GNUC__
4060        choke me
4061 #endif
4062
4063   ;
4064   return 0;
4065 }
4066 _ACEOF
4067 if ac_fn_c_try_compile "$LINENO"; then :
4068   ac_compiler_gnu=yes
4069 else
4070   ac_compiler_gnu=no
4071 fi
4072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4074
4075 fi
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4077 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4078 if test $ac_compiler_gnu = yes; then
4079   GCC=yes
4080 else
4081   GCC=
4082 fi
4083 ac_test_CFLAGS=${CFLAGS+set}
4084 ac_save_CFLAGS=$CFLAGS
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4086 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4087 if test "${ac_cv_prog_cc_g+set}" = set; then :
4088   $as_echo_n "(cached) " >&6
4089 else
4090   ac_save_c_werror_flag=$ac_c_werror_flag
4091    ac_c_werror_flag=yes
4092    ac_cv_prog_cc_g=no
4093    CFLAGS="-g"
4094    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h.  */
4096
4097 int
4098 main ()
4099 {
4100
4101   ;
4102   return 0;
4103 }
4104 _ACEOF
4105 if ac_fn_c_try_compile "$LINENO"; then :
4106   ac_cv_prog_cc_g=yes
4107 else
4108   CFLAGS=""
4109       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h.  */
4111
4112 int
4113 main ()
4114 {
4115
4116   ;
4117   return 0;
4118 }
4119 _ACEOF
4120 if ac_fn_c_try_compile "$LINENO"; then :
4121
4122 else
4123   ac_c_werror_flag=$ac_save_c_werror_flag
4124          CFLAGS="-g"
4125          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h.  */
4127
4128 int
4129 main ()
4130 {
4131
4132   ;
4133   return 0;
4134 }
4135 _ACEOF
4136 if ac_fn_c_try_compile "$LINENO"; then :
4137   ac_cv_prog_cc_g=yes
4138 fi
4139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4140 fi
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142 fi
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144    ac_c_werror_flag=$ac_save_c_werror_flag
4145 fi
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4147 $as_echo "$ac_cv_prog_cc_g" >&6; }
4148 if test "$ac_test_CFLAGS" = set; then
4149   CFLAGS=$ac_save_CFLAGS
4150 elif test $ac_cv_prog_cc_g = yes; then
4151   if test "$GCC" = yes; then
4152     CFLAGS="-g -O2"
4153   else
4154     CFLAGS="-g"
4155   fi
4156 else
4157   if test "$GCC" = yes; then
4158     CFLAGS="-O2"
4159   else
4160     CFLAGS=
4161   fi
4162 fi
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4164 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4165 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4166   $as_echo_n "(cached) " >&6
4167 else
4168   ac_cv_prog_cc_c89=no
4169 ac_save_CC=$CC
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h.  */
4172 #include <stdarg.h>
4173 #include <stdio.h>
4174 #include <sys/types.h>
4175 #include <sys/stat.h>
4176 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4177 struct buf { int x; };
4178 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4179 static char *e (p, i)
4180      char **p;
4181      int i;
4182 {
4183   return p[i];
4184 }
4185 static char *f (char * (*g) (char **, int), char **p, ...)
4186 {
4187   char *s;
4188   va_list v;
4189   va_start (v,p);
4190   s = g (p, va_arg (v,int));
4191   va_end (v);
4192   return s;
4193 }
4194
4195 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4196    function prototypes and stuff, but not '\xHH' hex character constants.
4197    These don't provoke an error unfortunately, instead are silently treated
4198    as 'x'.  The following induces an error, until -std is added to get
4199    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4200    array size at least.  It's necessary to write '\x00'==0 to get something
4201    that's true only with -std.  */
4202 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4203
4204 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4205    inside strings and character constants.  */
4206 #define FOO(x) 'x'
4207 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4208
4209 int test (int i, double x);
4210 struct s1 {int (*f) (int a);};
4211 struct s2 {int (*f) (double a);};
4212 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4213 int argc;
4214 char **argv;
4215 int
4216 main ()
4217 {
4218 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4219   ;
4220   return 0;
4221 }
4222 _ACEOF
4223 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4224         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4225 do
4226   CC="$ac_save_CC $ac_arg"
4227   if ac_fn_c_try_compile "$LINENO"; then :
4228   ac_cv_prog_cc_c89=$ac_arg
4229 fi
4230 rm -f core conftest.err conftest.$ac_objext
4231   test "x$ac_cv_prog_cc_c89" != "xno" && break
4232 done
4233 rm -f conftest.$ac_ext
4234 CC=$ac_save_CC
4235
4236 fi
4237 # AC_CACHE_VAL
4238 case "x$ac_cv_prog_cc_c89" in
4239   x)
4240     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4241 $as_echo "none needed" >&6; } ;;
4242   xno)
4243     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4244 $as_echo "unsupported" >&6; } ;;
4245   *)
4246     CC="$CC $ac_cv_prog_cc_c89"
4247     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4248 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4249 esac
4250 if test "x$ac_cv_prog_cc_c89" != xno; then :
4251
4252 fi
4253
4254 ac_ext=c
4255 ac_cpp='$CPP $CPPFLAGS'
4256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4259
4260 if test "x$CC" != xcc; then
4261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4262 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4263 else
4264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4265 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4266 fi
4267 set dummy $CC; ac_cc=`$as_echo "$2" |
4268                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4269 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4270   $as_echo_n "(cached) " >&6
4271 else
4272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h.  */
4274
4275 int
4276 main ()
4277 {
4278
4279   ;
4280   return 0;
4281 }
4282 _ACEOF
4283 # Make sure it works both with $CC and with simple cc.
4284 # We do the test twice because some compilers refuse to overwrite an
4285 # existing .o file with -o, though they will create one.
4286 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4287 rm -f conftest2.*
4288 if { { case "(($ac_try" in
4289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290   *) ac_try_echo=$ac_try;;
4291 esac
4292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4293 $as_echo "$ac_try_echo"; } >&5
4294   (eval "$ac_try") 2>&5
4295   ac_status=$?
4296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4297   test $ac_status = 0; } &&
4298    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300   *) ac_try_echo=$ac_try;;
4301 esac
4302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4303 $as_echo "$ac_try_echo"; } >&5
4304   (eval "$ac_try") 2>&5
4305   ac_status=$?
4306   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4307   test $ac_status = 0; };
4308 then
4309   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4310   if test "x$CC" != xcc; then
4311     # Test first that cc exists at all.
4312     if { ac_try='cc -c conftest.$ac_ext >&5'
4313   { { case "(($ac_try" in
4314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315   *) ac_try_echo=$ac_try;;
4316 esac
4317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4318 $as_echo "$ac_try_echo"; } >&5
4319   (eval "$ac_try") 2>&5
4320   ac_status=$?
4321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4322   test $ac_status = 0; }; }; then
4323       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4324       rm -f conftest2.*
4325       if { { case "(($ac_try" in
4326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327   *) ac_try_echo=$ac_try;;
4328 esac
4329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4330 $as_echo "$ac_try_echo"; } >&5
4331   (eval "$ac_try") 2>&5
4332   ac_status=$?
4333   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4334   test $ac_status = 0; } &&
4335          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337   *) ac_try_echo=$ac_try;;
4338 esac
4339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4340 $as_echo "$ac_try_echo"; } >&5
4341   (eval "$ac_try") 2>&5
4342   ac_status=$?
4343   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4344   test $ac_status = 0; };
4345       then
4346         # cc works too.
4347         :
4348       else
4349         # cc exists but doesn't like -o.
4350         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4351       fi
4352     fi
4353   fi
4354 else
4355   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4356 fi
4357 rm -f core conftest*
4358
4359 fi
4360 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4362 $as_echo "yes" >&6; }
4363 else
4364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4366
4367 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4368
4369 fi
4370
4371 # expand $ac_aux_dir to an absolute path
4372 am_aux_dir=`cd $ac_aux_dir && pwd`
4373
4374 # FIXME: we rely on the cache variable name because
4375 # there is no other way.
4376 set dummy $CC
4377 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4378 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4379 if test "$am_t" != yes; then
4380    # Losing compiler, so override with the script.
4381    # FIXME: It is wrong to rewrite CC.
4382    # But if we don't then we get into trouble of one sort or another.
4383    # A longer-term fix would be to have automake use am__CC in this case,
4384    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4385    CC="$am_aux_dir/compile $CC"
4386 fi
4387
4388
4389 ac_ext=cpp
4390 ac_cpp='$CXXCPP $CPPFLAGS'
4391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4394 if test -z "$CXX"; then
4395   if test -n "$CCC"; then
4396     CXX=$CCC
4397   else
4398     if test -n "$ac_tool_prefix"; then
4399   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4400   do
4401     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4402 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404 $as_echo_n "checking for $ac_word... " >&6; }
4405 if test "${ac_cv_prog_CXX+set}" = set; then :
4406   $as_echo_n "(cached) " >&6
4407 else
4408   if test -n "$CXX"; then
4409   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4410 else
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH
4413 do
4414   IFS=$as_save_IFS
4415   test -z "$as_dir" && as_dir=.
4416     for ac_exec_ext in '' $ac_executable_extensions; do
4417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4418     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420     break 2
4421   fi
4422 done
4423   done
4424 IFS=$as_save_IFS
4425
4426 fi
4427 fi
4428 CXX=$ac_cv_prog_CXX
4429 if test -n "$CXX"; then
4430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4431 $as_echo "$CXX" >&6; }
4432 else
4433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 $as_echo "no" >&6; }
4435 fi
4436
4437
4438     test -n "$CXX" && break
4439   done
4440 fi
4441 if test -z "$CXX"; then
4442   ac_ct_CXX=$CXX
4443   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4444 do
4445   # Extract the first word of "$ac_prog", so it can be a program name with args.
4446 set dummy $ac_prog; ac_word=$2
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4448 $as_echo_n "checking for $ac_word... " >&6; }
4449 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4450   $as_echo_n "(cached) " >&6
4451 else
4452   if test -n "$ac_ct_CXX"; then
4453   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4454 else
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH
4457 do
4458   IFS=$as_save_IFS
4459   test -z "$as_dir" && as_dir=.
4460     for ac_exec_ext in '' $ac_executable_extensions; do
4461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4462     ac_cv_prog_ac_ct_CXX="$ac_prog"
4463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4464     break 2
4465   fi
4466 done
4467   done
4468 IFS=$as_save_IFS
4469
4470 fi
4471 fi
4472 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4473 if test -n "$ac_ct_CXX"; then
4474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4475 $as_echo "$ac_ct_CXX" >&6; }
4476 else
4477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4478 $as_echo "no" >&6; }
4479 fi
4480
4481
4482   test -n "$ac_ct_CXX" && break
4483 done
4484
4485   if test "x$ac_ct_CXX" = x; then
4486     CXX="g++"
4487   else
4488     case $cross_compiling:$ac_tool_warned in
4489 yes:)
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4492 ac_tool_warned=yes ;;
4493 esac
4494     CXX=$ac_ct_CXX
4495   fi
4496 fi
4497
4498   fi
4499 fi
4500 # Provide some information about the compiler.
4501 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4502 set X $ac_compile
4503 ac_compiler=$2
4504 for ac_option in --version -v -V -qversion; do
4505   { { ac_try="$ac_compiler $ac_option >&5"
4506 case "(($ac_try" in
4507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508   *) ac_try_echo=$ac_try;;
4509 esac
4510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4511 $as_echo "$ac_try_echo"; } >&5
4512   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4513   ac_status=$?
4514   if test -s conftest.err; then
4515     sed '10a\
4516 ... rest of stderr output deleted ...
4517          10q' conftest.err >conftest.er1
4518     cat conftest.er1 >&5
4519     rm -f conftest.er1 conftest.err
4520   fi
4521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4522   test $ac_status = 0; }
4523 done
4524
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4526 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4527 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4528   $as_echo_n "(cached) " >&6
4529 else
4530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h.  */
4532
4533 int
4534 main ()
4535 {
4536 #ifndef __GNUC__
4537        choke me
4538 #endif
4539
4540   ;
4541   return 0;
4542 }
4543 _ACEOF
4544 if ac_fn_cxx_try_compile "$LINENO"; then :
4545   ac_compiler_gnu=yes
4546 else
4547   ac_compiler_gnu=no
4548 fi
4549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4550 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4551
4552 fi
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4554 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4555 if test $ac_compiler_gnu = yes; then
4556   GXX=yes
4557 else
4558   GXX=
4559 fi
4560 ac_test_CXXFLAGS=${CXXFLAGS+set}
4561 ac_save_CXXFLAGS=$CXXFLAGS
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4563 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4564 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4565   $as_echo_n "(cached) " >&6
4566 else
4567   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4568    ac_cxx_werror_flag=yes
4569    ac_cv_prog_cxx_g=no
4570    CXXFLAGS="-g"
4571    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h.  */
4573
4574 int
4575 main ()
4576 {
4577
4578   ;
4579   return 0;
4580 }
4581 _ACEOF
4582 if ac_fn_cxx_try_compile "$LINENO"; then :
4583   ac_cv_prog_cxx_g=yes
4584 else
4585   CXXFLAGS=""
4586       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h.  */
4588
4589 int
4590 main ()
4591 {
4592
4593   ;
4594   return 0;
4595 }
4596 _ACEOF
4597 if ac_fn_cxx_try_compile "$LINENO"; then :
4598
4599 else
4600   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4601          CXXFLAGS="-g"
4602          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h.  */
4604
4605 int
4606 main ()
4607 {
4608
4609   ;
4610   return 0;
4611 }
4612 _ACEOF
4613 if ac_fn_cxx_try_compile "$LINENO"; then :
4614   ac_cv_prog_cxx_g=yes
4615 fi
4616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617 fi
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 fi
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4622 fi
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4624 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4625 if test "$ac_test_CXXFLAGS" = set; then
4626   CXXFLAGS=$ac_save_CXXFLAGS
4627 elif test $ac_cv_prog_cxx_g = yes; then
4628   if test "$GXX" = yes; then
4629     CXXFLAGS="-g -O2"
4630   else
4631     CXXFLAGS="-g"
4632   fi
4633 else
4634   if test "$GXX" = yes; then
4635     CXXFLAGS="-O2"
4636   else
4637     CXXFLAGS=
4638   fi
4639 fi
4640 ac_ext=c
4641 ac_cpp='$CPP $CPPFLAGS'
4642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4645
4646
4647
4648
4649 if test -n "$ac_tool_prefix"; then
4650   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4651 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4653 $as_echo_n "checking for $ac_word... " >&6; }
4654 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4655   $as_echo_n "(cached) " >&6
4656 else
4657   if test -n "$GNATBIND"; then
4658   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4659 else
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4662 do
4663   IFS=$as_save_IFS
4664   test -z "$as_dir" && as_dir=.
4665     for ac_exec_ext in '' $ac_executable_extensions; do
4666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4669     break 2
4670   fi
4671 done
4672   done
4673 IFS=$as_save_IFS
4674
4675 fi
4676 fi
4677 GNATBIND=$ac_cv_prog_GNATBIND
4678 if test -n "$GNATBIND"; then
4679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4680 $as_echo "$GNATBIND" >&6; }
4681 else
4682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4683 $as_echo "no" >&6; }
4684 fi
4685
4686
4687 fi
4688 if test -z "$ac_cv_prog_GNATBIND"; then
4689   ac_ct_GNATBIND=$GNATBIND
4690   # Extract the first word of "gnatbind", so it can be a program name with args.
4691 set dummy gnatbind; ac_word=$2
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693 $as_echo_n "checking for $ac_word... " >&6; }
4694 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4695   $as_echo_n "(cached) " >&6
4696 else
4697   if test -n "$ac_ct_GNATBIND"; then
4698   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4699 else
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4702 do
4703   IFS=$as_save_IFS
4704   test -z "$as_dir" && as_dir=.
4705     for ac_exec_ext in '' $ac_executable_extensions; do
4706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4709     break 2
4710   fi
4711 done
4712   done
4713 IFS=$as_save_IFS
4714
4715 fi
4716 fi
4717 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4718 if test -n "$ac_ct_GNATBIND"; then
4719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4720 $as_echo "$ac_ct_GNATBIND" >&6; }
4721 else
4722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723 $as_echo "no" >&6; }
4724 fi
4725
4726   if test "x$ac_ct_GNATBIND" = x; then
4727     GNATBIND="no"
4728   else
4729     case $cross_compiling:$ac_tool_warned in
4730 yes:)
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4733 ac_tool_warned=yes ;;
4734 esac
4735     GNATBIND=$ac_ct_GNATBIND
4736   fi
4737 else
4738   GNATBIND="$ac_cv_prog_GNATBIND"
4739 fi
4740
4741 if test -n "$ac_tool_prefix"; then
4742   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4743 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745 $as_echo_n "checking for $ac_word... " >&6; }
4746 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4747   $as_echo_n "(cached) " >&6
4748 else
4749   if test -n "$GNATMAKE"; then
4750   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4751 else
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4754 do
4755   IFS=$as_save_IFS
4756   test -z "$as_dir" && as_dir=.
4757     for ac_exec_ext in '' $ac_executable_extensions; do
4758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4759     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761     break 2
4762   fi
4763 done
4764   done
4765 IFS=$as_save_IFS
4766
4767 fi
4768 fi
4769 GNATMAKE=$ac_cv_prog_GNATMAKE
4770 if test -n "$GNATMAKE"; then
4771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4772 $as_echo "$GNATMAKE" >&6; }
4773 else
4774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775 $as_echo "no" >&6; }
4776 fi
4777
4778
4779 fi
4780 if test -z "$ac_cv_prog_GNATMAKE"; then
4781   ac_ct_GNATMAKE=$GNATMAKE
4782   # Extract the first word of "gnatmake", so it can be a program name with args.
4783 set dummy gnatmake; ac_word=$2
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 $as_echo_n "checking for $ac_word... " >&6; }
4786 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4787   $as_echo_n "(cached) " >&6
4788 else
4789   if test -n "$ac_ct_GNATMAKE"; then
4790   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4791 else
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4794 do
4795   IFS=$as_save_IFS
4796   test -z "$as_dir" && as_dir=.
4797     for ac_exec_ext in '' $ac_executable_extensions; do
4798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801     break 2
4802   fi
4803 done
4804   done
4805 IFS=$as_save_IFS
4806
4807 fi
4808 fi
4809 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4810 if test -n "$ac_ct_GNATMAKE"; then
4811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4812 $as_echo "$ac_ct_GNATMAKE" >&6; }
4813 else
4814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4816 fi
4817
4818   if test "x$ac_ct_GNATMAKE" = x; then
4819     GNATMAKE="no"
4820   else
4821     case $cross_compiling:$ac_tool_warned in
4822 yes:)
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4825 ac_tool_warned=yes ;;
4826 esac
4827     GNATMAKE=$ac_ct_GNATMAKE
4828   fi
4829 else
4830   GNATMAKE="$ac_cv_prog_GNATMAKE"
4831 fi
4832
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4834 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4835 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4836   $as_echo_n "(cached) " >&6
4837 else
4838   cat >conftest.adb <<EOF
4839 procedure conftest is begin null; end conftest;
4840 EOF
4841 acx_cv_cc_gcc_supports_ada=no
4842 # There is a bug in old released versions of GCC which causes the
4843 # driver to exit successfully when the appropriate language module
4844 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4845 # Therefore we must check for the error message as well as an
4846 # unsuccessful exit.
4847 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4848 # given a .adb file, but produce no object file.  So we must check
4849 # if an object file was really produced to guard against this.
4850 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4851 if test x"$errors" = x && test -f conftest.$ac_objext; then
4852   acx_cv_cc_gcc_supports_ada=yes
4853 fi
4854 rm -f conftest.*
4855 fi
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4857 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4858
4859 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4860   have_gnat=yes
4861 else
4862   have_gnat=no
4863 fi
4864
4865
4866 # autoconf is lame and doesn't give us any substitution variable for this.
4867 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4868   NO_MINUS_C_MINUS_O=yes
4869 else
4870   OUTPUT_OPTION='-o $@'
4871 fi
4872
4873
4874
4875 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4876 # optimizations to be activated explicitly by the toplevel.
4877 case "$CC" in
4878   */prev-gcc/xgcc*) ;;
4879   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4880 esac
4881
4882
4883 # Determine PICFLAG for target gnatlib.
4884
4885
4886
4887
4888 case "${target}" in
4889     # PIC is the default on some targets or must not be used.
4890     *-*-darwin*)
4891         # PIC is the default on this platform
4892         # Common symbols not allowed in MH_DYLIB files
4893         PICFLAG_FOR_TARGET=-fno-common
4894         ;;
4895     alpha*-dec-osf5*)
4896         # PIC is the default.
4897         ;;
4898     hppa*64*-*-hpux*)
4899         # PIC is the default for 64-bit PA HP-UX.
4900         ;;
4901     i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
4902         ;;
4903     i[34567]86-*-interix3*)
4904         # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4905         # Instead, we relocate shared libraries at runtime.
4906         ;;
4907     i[34567]86-*-nto-qnx*)
4908         # QNX uses GNU C++, but need to define -shared option too, otherwise
4909         # it will coredump.
4910         PICFLAG_FOR_TARGET='-fPIC -shared'
4911         ;;
4912     i[34567]86-pc-msdosdjgpp*)
4913         # DJGPP does not support shared libraries at all.
4914         ;;
4915     ia64*-*-hpux*)
4916         # On IA64 HP-UX, PIC is the default but the pic flag
4917         # sets the default TLS model and affects inlining.
4918         PICFLAG_FOR_TARGET=-fPIC
4919         ;;
4920     mips-sgi-irix6*)
4921         # PIC is the default.
4922         ;;
4923     rs6000-ibm-aix* | powerpc-ibm-aix*)
4924         # All AIX code is PIC.
4925         ;;
4926
4927     # Some targets support both -fPIC and -fpic, but prefer the latter.
4928     # FIXME: Why?
4929     i[34567]86-*-* | x86_64-*-*)
4930         PICFLAG_FOR_TARGET=-fpic
4931         ;;
4932     m68k-*-*)
4933         PICFLAG_FOR_TARGET=-fpic
4934         ;;
4935     s390*-*-*)
4936         PICFLAG_FOR_TARGET=-fpic
4937         ;;
4938     # FIXME: Override -fPIC default in libgcc only?
4939     sh-*-linux* | sh[2346lbe]*-*-linux*)
4940         PICFLAG_FOR_TARGET=-fpic
4941         ;;
4942     # FIXME: Simplify to sh*-*-netbsd*?
4943     sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
4944       sh64-*-netbsd* | sh64l*-*-netbsd*)
4945         PICFLAG_FOR_TARGET=-fpic
4946         ;;
4947     # Default to -fPIC unless specified otherwise.
4948     *)
4949         PICFLAG_FOR_TARGET=-fPIC
4950         ;;
4951 esac
4952
4953 # If the user explicitly uses -fpic/-fPIC, keep that.
4954 case "${CFLAGS_FOR_TARGET}" in
4955     *-fpic*)
4956         PICFLAG_FOR_TARGET=-fpic
4957         ;;
4958     *-fPIC*)
4959         PICFLAG_FOR_TARGET=-fPIC
4960         ;;
4961 esac
4962
4963
4964
4965 # -------------------------
4966 # Check C compiler features
4967 # -------------------------
4968
4969
4970 ac_ext=c
4971 ac_cpp='$CPP $CPPFLAGS'
4972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4976 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4977 # On Suns, sometimes $CPP names a directory.
4978 if test -n "$CPP" && test -d "$CPP"; then
4979   CPP=
4980 fi
4981 if test -z "$CPP"; then
4982   if test "${ac_cv_prog_CPP+set}" = set; then :
4983   $as_echo_n "(cached) " >&6
4984 else
4985       # Double quotes because CPP needs to be expanded
4986     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4987     do
4988       ac_preproc_ok=false
4989 for ac_c_preproc_warn_flag in '' yes
4990 do
4991   # Use a header file that comes with gcc, so configuring glibc
4992   # with a fresh cross-compiler works.
4993   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4994   # <limits.h> exists even on freestanding compilers.
4995   # On the NeXT, cc -E runs the code through the compiler's parser,
4996   # not just through cpp. "Syntax error" is here to catch this case.
4997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h.  */
4999 #ifdef __STDC__
5000 # include <limits.h>
5001 #else
5002 # include <assert.h>
5003 #endif
5004                      Syntax error
5005 _ACEOF
5006 if ac_fn_c_try_cpp "$LINENO"; then :
5007
5008 else
5009   # Broken: fails on valid input.
5010 continue
5011 fi
5012 rm -f conftest.err conftest.$ac_ext
5013
5014   # OK, works on sane cases.  Now check whether nonexistent headers
5015   # can be detected and how.
5016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h.  */
5018 #include <ac_nonexistent.h>
5019 _ACEOF
5020 if ac_fn_c_try_cpp "$LINENO"; then :
5021   # Broken: success on invalid input.
5022 continue
5023 else
5024   # Passes both tests.
5025 ac_preproc_ok=:
5026 break
5027 fi
5028 rm -f conftest.err conftest.$ac_ext
5029
5030 done
5031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5032 rm -f conftest.err conftest.$ac_ext
5033 if $ac_preproc_ok; then :
5034   break
5035 fi
5036
5037     done
5038     ac_cv_prog_CPP=$CPP
5039
5040 fi
5041   CPP=$ac_cv_prog_CPP
5042 else
5043   ac_cv_prog_CPP=$CPP
5044 fi
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5046 $as_echo "$CPP" >&6; }
5047 ac_preproc_ok=false
5048 for ac_c_preproc_warn_flag in '' yes
5049 do
5050   # Use a header file that comes with gcc, so configuring glibc
5051   # with a fresh cross-compiler works.
5052   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5053   # <limits.h> exists even on freestanding compilers.
5054   # On the NeXT, cc -E runs the code through the compiler's parser,
5055   # not just through cpp. "Syntax error" is here to catch this case.
5056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h.  */
5058 #ifdef __STDC__
5059 # include <limits.h>
5060 #else
5061 # include <assert.h>
5062 #endif
5063                      Syntax error
5064 _ACEOF
5065 if ac_fn_c_try_cpp "$LINENO"; then :
5066
5067 else
5068   # Broken: fails on valid input.
5069 continue
5070 fi
5071 rm -f conftest.err conftest.$ac_ext
5072
5073   # OK, works on sane cases.  Now check whether nonexistent headers
5074   # can be detected and how.
5075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h.  */
5077 #include <ac_nonexistent.h>
5078 _ACEOF
5079 if ac_fn_c_try_cpp "$LINENO"; then :
5080   # Broken: success on invalid input.
5081 continue
5082 else
5083   # Passes both tests.
5084 ac_preproc_ok=:
5085 break
5086 fi
5087 rm -f conftest.err conftest.$ac_ext
5088
5089 done
5090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5091 rm -f conftest.err conftest.$ac_ext
5092 if $ac_preproc_ok; then :
5093
5094 else
5095   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5097 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5098 See \`config.log' for more details." "$LINENO" 5; }
5099 fi
5100
5101 ac_ext=c
5102 ac_cpp='$CPP $CPPFLAGS'
5103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5106
5107
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5109 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5110 if test "${ac_cv_path_GREP+set}" = set; then :
5111   $as_echo_n "(cached) " >&6
5112 else
5113   if test -z "$GREP"; then
5114   ac_path_GREP_found=false
5115   # Loop through the user's path and test for each of PROGNAME-LIST
5116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5118 do
5119   IFS=$as_save_IFS
5120   test -z "$as_dir" && as_dir=.
5121     for ac_prog in grep ggrep; do
5122     for ac_exec_ext in '' $ac_executable_extensions; do
5123       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5124       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5125 # Check for GNU ac_path_GREP and select it if it is found.
5126   # Check for GNU $ac_path_GREP
5127 case `"$ac_path_GREP" --version 2>&1` in
5128 *GNU*)
5129   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5130 *)
5131   ac_count=0
5132   $as_echo_n 0123456789 >"conftest.in"
5133   while :
5134   do
5135     cat "conftest.in" "conftest.in" >"conftest.tmp"
5136     mv "conftest.tmp" "conftest.in"
5137     cp "conftest.in" "conftest.nl"
5138     $as_echo 'GREP' >> "conftest.nl"
5139     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5140     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5141     as_fn_arith $ac_count + 1 && ac_count=$as_val
5142     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5143       # Best one so far, save it but keep looking for a better one
5144       ac_cv_path_GREP="$ac_path_GREP"
5145       ac_path_GREP_max=$ac_count
5146     fi
5147     # 10*(2^10) chars as input seems more than enough
5148     test $ac_count -gt 10 && break
5149   done
5150   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5151 esac
5152
5153       $ac_path_GREP_found && break 3
5154     done
5155   done
5156   done
5157 IFS=$as_save_IFS
5158   if test -z "$ac_cv_path_GREP"; then
5159     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5160   fi
5161 else
5162   ac_cv_path_GREP=$GREP
5163 fi
5164
5165 fi
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5167 $as_echo "$ac_cv_path_GREP" >&6; }
5168  GREP="$ac_cv_path_GREP"
5169
5170
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5172 $as_echo_n "checking for egrep... " >&6; }
5173 if test "${ac_cv_path_EGREP+set}" = set; then :
5174   $as_echo_n "(cached) " >&6
5175 else
5176   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5177    then ac_cv_path_EGREP="$GREP -E"
5178    else
5179      if test -z "$EGREP"; then
5180   ac_path_EGREP_found=false
5181   # Loop through the user's path and test for each of PROGNAME-LIST
5182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5184 do
5185   IFS=$as_save_IFS
5186   test -z "$as_dir" && as_dir=.
5187     for ac_prog in egrep; do
5188     for ac_exec_ext in '' $ac_executable_extensions; do
5189       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5190       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5191 # Check for GNU ac_path_EGREP and select it if it is found.
5192   # Check for GNU $ac_path_EGREP
5193 case `"$ac_path_EGREP" --version 2>&1` in
5194 *GNU*)
5195   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5196 *)
5197   ac_count=0
5198   $as_echo_n 0123456789 >"conftest.in"
5199   while :
5200   do
5201     cat "conftest.in" "conftest.in" >"conftest.tmp"
5202     mv "conftest.tmp" "conftest.in"
5203     cp "conftest.in" "conftest.nl"
5204     $as_echo 'EGREP' >> "conftest.nl"
5205     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5206     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5207     as_fn_arith $ac_count + 1 && ac_count=$as_val
5208     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5209       # Best one so far, save it but keep looking for a better one
5210       ac_cv_path_EGREP="$ac_path_EGREP"
5211       ac_path_EGREP_max=$ac_count
5212     fi
5213     # 10*(2^10) chars as input seems more than enough
5214     test $ac_count -gt 10 && break
5215   done
5216   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5217 esac
5218
5219       $ac_path_EGREP_found && break 3
5220     done
5221   done
5222   done
5223 IFS=$as_save_IFS
5224   if test -z "$ac_cv_path_EGREP"; then
5225     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5226   fi
5227 else
5228   ac_cv_path_EGREP=$EGREP
5229 fi
5230
5231    fi
5232 fi
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5234 $as_echo "$ac_cv_path_EGREP" >&6; }
5235  EGREP="$ac_cv_path_EGREP"
5236
5237
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5239 $as_echo_n "checking for ANSI C header files... " >&6; }
5240 if test "${ac_cv_header_stdc+set}" = set; then :
5241   $as_echo_n "(cached) " >&6
5242 else
5243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h.  */
5245 #include <stdlib.h>
5246 #include <stdarg.h>
5247 #include <string.h>
5248 #include <float.h>
5249
5250 int
5251 main ()
5252 {
5253
5254   ;
5255   return 0;
5256 }
5257 _ACEOF
5258 if ac_fn_c_try_compile "$LINENO"; then :
5259   ac_cv_header_stdc=yes
5260 else
5261   ac_cv_header_stdc=no
5262 fi
5263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264
5265 if test $ac_cv_header_stdc = yes; then
5266   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h.  */
5269 #include <string.h>
5270
5271 _ACEOF
5272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5273   $EGREP "memchr" >/dev/null 2>&1; then :
5274
5275 else
5276   ac_cv_header_stdc=no
5277 fi
5278 rm -f conftest*
5279
5280 fi
5281
5282 if test $ac_cv_header_stdc = yes; then
5283   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h.  */
5286 #include <stdlib.h>
5287
5288 _ACEOF
5289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5290   $EGREP "free" >/dev/null 2>&1; then :
5291
5292 else
5293   ac_cv_header_stdc=no
5294 fi
5295 rm -f conftest*
5296
5297 fi
5298
5299 if test $ac_cv_header_stdc = yes; then
5300   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5301   if test "$cross_compiling" = yes; then :
5302   :
5303 else
5304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h.  */
5306 #include <ctype.h>
5307 #include <stdlib.h>
5308 #if ((' ' & 0x0FF) == 0x020)
5309 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5310 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5311 #else
5312 # define ISLOWER(c) \
5313                    (('a' <= (c) && (c) <= 'i') \
5314                      || ('j' <= (c) && (c) <= 'r') \
5315                      || ('s' <= (c) && (c) <= 'z'))
5316 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5317 #endif
5318
5319 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5320 int
5321 main ()
5322 {
5323   int i;
5324   for (i = 0; i < 256; i++)
5325     if (XOR (islower (i), ISLOWER (i))
5326         || toupper (i) != TOUPPER (i))
5327       return 2;
5328   return 0;
5329 }
5330 _ACEOF
5331 if ac_fn_c_try_run "$LINENO"; then :
5332
5333 else
5334   ac_cv_header_stdc=no
5335 fi
5336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5337   conftest.$ac_objext conftest.beam conftest.$ac_ext
5338 fi
5339
5340 fi
5341 fi
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5343 $as_echo "$ac_cv_header_stdc" >&6; }
5344 if test $ac_cv_header_stdc = yes; then
5345
5346 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5347
5348 fi
5349
5350 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5351 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5352                   inttypes.h stdint.h unistd.h
5353 do :
5354   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5355 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5356 "
5357 eval as_val=\$$as_ac_Header
5358    if test "x$as_val" = x""yes; then :
5359   cat >>confdefs.h <<_ACEOF
5360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5361 _ACEOF
5362
5363 fi
5364
5365 done
5366
5367
5368
5369   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5370 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5371   MINIX=yes
5372 else
5373   MINIX=
5374 fi
5375
5376
5377   if test "$MINIX" = yes; then
5378
5379 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5380
5381
5382 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5383
5384
5385 $as_echo "#define _MINIX 1" >>confdefs.h
5386
5387   fi
5388
5389
5390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5391 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5392 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5393   $as_echo_n "(cached) " >&6
5394 else
5395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h.  */
5397
5398 #         define __EXTENSIONS__ 1
5399           $ac_includes_default
5400 int
5401 main ()
5402 {
5403
5404   ;
5405   return 0;
5406 }
5407 _ACEOF
5408 if ac_fn_c_try_compile "$LINENO"; then :
5409   ac_cv_safe_to_define___extensions__=yes
5410 else
5411   ac_cv_safe_to_define___extensions__=no
5412 fi
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 fi
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5416 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5417   test $ac_cv_safe_to_define___extensions__ = yes &&
5418     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5419
5420   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5421
5422   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5423
5424   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5425
5426   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5427
5428
5429 ac_ext=c
5430 ac_cpp='$CPP $CPPFLAGS'
5431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5435 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5436 # On Suns, sometimes $CPP names a directory.
5437 if test -n "$CPP" && test -d "$CPP"; then
5438   CPP=
5439 fi
5440 if test -z "$CPP"; then
5441   if test "${ac_cv_prog_CPP+set}" = set; then :
5442   $as_echo_n "(cached) " >&6
5443 else
5444       # Double quotes because CPP needs to be expanded
5445     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5446     do
5447       ac_preproc_ok=false
5448 for ac_c_preproc_warn_flag in '' yes
5449 do
5450   # Use a header file that comes with gcc, so configuring glibc
5451   # with a fresh cross-compiler works.
5452   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5453   # <limits.h> exists even on freestanding compilers.
5454   # On the NeXT, cc -E runs the code through the compiler's parser,
5455   # not just through cpp. "Syntax error" is here to catch this case.
5456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h.  */
5458 #ifdef __STDC__
5459 # include <limits.h>
5460 #else
5461 # include <assert.h>
5462 #endif
5463                      Syntax error
5464 _ACEOF
5465 if ac_fn_c_try_cpp "$LINENO"; then :
5466
5467 else
5468   # Broken: fails on valid input.
5469 continue
5470 fi
5471 rm -f conftest.err conftest.$ac_ext
5472
5473   # OK, works on sane cases.  Now check whether nonexistent headers
5474   # can be detected and how.
5475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h.  */
5477 #include <ac_nonexistent.h>
5478 _ACEOF
5479 if ac_fn_c_try_cpp "$LINENO"; then :
5480   # Broken: success on invalid input.
5481 continue
5482 else
5483   # Passes both tests.
5484 ac_preproc_ok=:
5485 break
5486 fi
5487 rm -f conftest.err conftest.$ac_ext
5488
5489 done
5490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5491 rm -f conftest.err conftest.$ac_ext
5492 if $ac_preproc_ok; then :
5493   break
5494 fi
5495
5496     done
5497     ac_cv_prog_CPP=$CPP
5498
5499 fi
5500   CPP=$ac_cv_prog_CPP
5501 else
5502   ac_cv_prog_CPP=$CPP
5503 fi
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5505 $as_echo "$CPP" >&6; }
5506 ac_preproc_ok=false
5507 for ac_c_preproc_warn_flag in '' yes
5508 do
5509   # Use a header file that comes with gcc, so configuring glibc
5510   # with a fresh cross-compiler works.
5511   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5512   # <limits.h> exists even on freestanding compilers.
5513   # On the NeXT, cc -E runs the code through the compiler's parser,
5514   # not just through cpp. "Syntax error" is here to catch this case.
5515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516 /* end confdefs.h.  */
5517 #ifdef __STDC__
5518 # include <limits.h>
5519 #else
5520 # include <assert.h>
5521 #endif
5522                      Syntax error
5523 _ACEOF
5524 if ac_fn_c_try_cpp "$LINENO"; then :
5525
5526 else
5527   # Broken: fails on valid input.
5528 continue
5529 fi
5530 rm -f conftest.err conftest.$ac_ext
5531
5532   # OK, works on sane cases.  Now check whether nonexistent headers
5533   # can be detected and how.
5534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h.  */
5536 #include <ac_nonexistent.h>
5537 _ACEOF
5538 if ac_fn_c_try_cpp "$LINENO"; then :
5539   # Broken: success on invalid input.
5540 continue
5541 else
5542   # Passes both tests.
5543 ac_preproc_ok=:
5544 break
5545 fi
5546 rm -f conftest.err conftest.$ac_ext
5547
5548 done
5549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5550 rm -f conftest.err conftest.$ac_ext
5551 if $ac_preproc_ok; then :
5552
5553 else
5554   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5556 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5557 See \`config.log' for more details." "$LINENO" 5; }
5558 fi
5559
5560 ac_ext=c
5561 ac_cpp='$CPP $CPPFLAGS'
5562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5565
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5567 $as_echo_n "checking for inline... " >&6; }
5568 if test "${ac_cv_c_inline+set}" = set; then :
5569   $as_echo_n "(cached) " >&6
5570 else
5571   ac_cv_c_inline=no
5572 for ac_kw in inline __inline__ __inline; do
5573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h.  */
5575 #ifndef __cplusplus
5576 typedef int foo_t;
5577 static $ac_kw foo_t static_foo () {return 0; }
5578 $ac_kw foo_t foo () {return 0; }
5579 #endif
5580
5581 _ACEOF
5582 if ac_fn_c_try_compile "$LINENO"; then :
5583   ac_cv_c_inline=$ac_kw
5584 fi
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586   test "$ac_cv_c_inline" != no && break
5587 done
5588
5589 fi
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5591 $as_echo "$ac_cv_c_inline" >&6; }
5592
5593 case $ac_cv_c_inline in
5594   inline | yes) ;;
5595   *)
5596     case $ac_cv_c_inline in
5597       no) ac_val=;;
5598       *) ac_val=$ac_cv_c_inline;;
5599     esac
5600     cat >>confdefs.h <<_ACEOF
5601 #ifndef __cplusplus
5602 #define inline $ac_val
5603 #endif
5604 _ACEOF
5605     ;;
5606 esac
5607
5608
5609 # Check whether --enable-largefile was given.
5610 if test "${enable_largefile+set}" = set; then :
5611   enableval=$enable_largefile;
5612 fi
5613
5614 if test "$enable_largefile" != no; then
5615
5616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5617 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5618 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5619   $as_echo_n "(cached) " >&6
5620 else
5621   ac_cv_sys_largefile_CC=no
5622      if test "$GCC" != yes; then
5623        ac_save_CC=$CC
5624        while :; do
5625          # IRIX 6.2 and later do not support large files by default,
5626          # so use the C compiler's -n32 option if that helps.
5627          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h.  */
5629 #include <sys/types.h>
5630  /* Check that off_t can represent 2**63 - 1 correctly.
5631     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5632     since some C++ compilers masquerading as C compilers
5633     incorrectly reject 9223372036854775807.  */
5634 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5635   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5636                        && LARGE_OFF_T % 2147483647 == 1)
5637                       ? 1 : -1];
5638 int
5639 main ()
5640 {
5641
5642   ;
5643   return 0;
5644 }
5645 _ACEOF
5646          if ac_fn_c_try_compile "$LINENO"; then :
5647   break
5648 fi
5649 rm -f core conftest.err conftest.$ac_objext
5650          CC="$CC -n32"
5651          if ac_fn_c_try_compile "$LINENO"; then :
5652   ac_cv_sys_largefile_CC=' -n32'; break
5653 fi
5654 rm -f core conftest.err conftest.$ac_objext
5655          break
5656        done
5657        CC=$ac_save_CC
5658        rm -f conftest.$ac_ext
5659     fi
5660 fi
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5662 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5663   if test "$ac_cv_sys_largefile_CC" != no; then
5664     CC=$CC$ac_cv_sys_largefile_CC
5665   fi
5666
5667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5668 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5669 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5670   $as_echo_n "(cached) " >&6
5671 else
5672   while :; do
5673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h.  */
5675 #include <sys/types.h>
5676  /* Check that off_t can represent 2**63 - 1 correctly.
5677     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5678     since some C++ compilers masquerading as C compilers
5679     incorrectly reject 9223372036854775807.  */
5680 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5681   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5682                        && LARGE_OFF_T % 2147483647 == 1)
5683                       ? 1 : -1];
5684 int
5685 main ()
5686 {
5687
5688   ;
5689   return 0;
5690 }
5691 _ACEOF
5692 if ac_fn_c_try_compile "$LINENO"; then :
5693   ac_cv_sys_file_offset_bits=no; break
5694 fi
5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h.  */
5698 #define _FILE_OFFSET_BITS 64
5699 #include <sys/types.h>
5700  /* Check that off_t can represent 2**63 - 1 correctly.
5701     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5702     since some C++ compilers masquerading as C compilers
5703     incorrectly reject 9223372036854775807.  */
5704 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5705   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5706                        && LARGE_OFF_T % 2147483647 == 1)
5707                       ? 1 : -1];
5708 int
5709 main ()
5710 {
5711
5712   ;
5713   return 0;
5714 }
5715 _ACEOF
5716 if ac_fn_c_try_compile "$LINENO"; then :
5717   ac_cv_sys_file_offset_bits=64; break
5718 fi
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720   ac_cv_sys_file_offset_bits=unknown
5721   break
5722 done
5723 fi
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5725 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5726 case $ac_cv_sys_file_offset_bits in #(
5727   no | unknown) ;;
5728   *)
5729 cat >>confdefs.h <<_ACEOF
5730 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5731 _ACEOF
5732 ;;
5733 esac
5734 rm -rf conftest*
5735   if test $ac_cv_sys_file_offset_bits = unknown; then
5736     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5737 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5738 if test "${ac_cv_sys_large_files+set}" = set; then :
5739   $as_echo_n "(cached) " >&6
5740 else
5741   while :; do
5742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h.  */
5744 #include <sys/types.h>
5745  /* Check that off_t can represent 2**63 - 1 correctly.
5746     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5747     since some C++ compilers masquerading as C compilers
5748     incorrectly reject 9223372036854775807.  */
5749 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5750   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5751                        && LARGE_OFF_T % 2147483647 == 1)
5752                       ? 1 : -1];
5753 int
5754 main ()
5755 {
5756
5757   ;
5758   return 0;
5759 }
5760 _ACEOF
5761 if ac_fn_c_try_compile "$LINENO"; then :
5762   ac_cv_sys_large_files=no; break
5763 fi
5764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766 /* end confdefs.h.  */
5767 #define _LARGE_FILES 1
5768 #include <sys/types.h>
5769  /* Check that off_t can represent 2**63 - 1 correctly.
5770     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5771     since some C++ compilers masquerading as C compilers
5772     incorrectly reject 9223372036854775807.  */
5773 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5774   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5775                        && LARGE_OFF_T % 2147483647 == 1)
5776                       ? 1 : -1];
5777 int
5778 main ()
5779 {
5780
5781   ;
5782   return 0;
5783 }
5784 _ACEOF
5785 if ac_fn_c_try_compile "$LINENO"; then :
5786   ac_cv_sys_large_files=1; break
5787 fi
5788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789   ac_cv_sys_large_files=unknown
5790   break
5791 done
5792 fi
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5794 $as_echo "$ac_cv_sys_large_files" >&6; }
5795 case $ac_cv_sys_large_files in #(
5796   no | unknown) ;;
5797   *)
5798 cat >>confdefs.h <<_ACEOF
5799 #define _LARGE_FILES $ac_cv_sys_large_files
5800 _ACEOF
5801 ;;
5802 esac
5803 rm -rf conftest*
5804   fi
5805 fi
5806
5807
5808 # sizeof(char) is 1 by definition.
5809 # The cast to long int works around a bug in the HP C Compiler
5810 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5811 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5812 # This bug is HP SR number 8606223364.
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5814 $as_echo_n "checking size of void *... " >&6; }
5815 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5816   $as_echo_n "(cached) " >&6
5817 else
5818   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5819
5820 else
5821   if test "$ac_cv_type_void_p" = yes; then
5822      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5824 { as_fn_set_status 77
5825 as_fn_error "cannot compute sizeof (void *)
5826 See \`config.log' for more details." "$LINENO" 5; }; }
5827    else
5828      ac_cv_sizeof_void_p=0
5829    fi
5830 fi
5831
5832 fi
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5834 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5835
5836
5837
5838 cat >>confdefs.h <<_ACEOF
5839 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5840 _ACEOF
5841
5842
5843 # The cast to long int works around a bug in the HP C Compiler
5844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5846 # This bug is HP SR number 8606223364.
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5848 $as_echo_n "checking size of short... " >&6; }
5849 if test "${ac_cv_sizeof_short+set}" = set; then :
5850   $as_echo_n "(cached) " >&6
5851 else
5852   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5853
5854 else
5855   if test "$ac_cv_type_short" = yes; then
5856      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5858 { as_fn_set_status 77
5859 as_fn_error "cannot compute sizeof (short)
5860 See \`config.log' for more details." "$LINENO" 5; }; }
5861    else
5862      ac_cv_sizeof_short=0
5863    fi
5864 fi
5865
5866 fi
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5868 $as_echo "$ac_cv_sizeof_short" >&6; }
5869
5870
5871
5872 cat >>confdefs.h <<_ACEOF
5873 #define SIZEOF_SHORT $ac_cv_sizeof_short
5874 _ACEOF
5875
5876
5877 # The cast to long int works around a bug in the HP C Compiler
5878 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5879 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5880 # This bug is HP SR number 8606223364.
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5882 $as_echo_n "checking size of int... " >&6; }
5883 if test "${ac_cv_sizeof_int+set}" = set; then :
5884   $as_echo_n "(cached) " >&6
5885 else
5886   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5887
5888 else
5889   if test "$ac_cv_type_int" = yes; then
5890      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5892 { as_fn_set_status 77
5893 as_fn_error "cannot compute sizeof (int)
5894 See \`config.log' for more details." "$LINENO" 5; }; }
5895    else
5896      ac_cv_sizeof_int=0
5897    fi
5898 fi
5899
5900 fi
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5902 $as_echo "$ac_cv_sizeof_int" >&6; }
5903
5904
5905
5906 cat >>confdefs.h <<_ACEOF
5907 #define SIZEOF_INT $ac_cv_sizeof_int
5908 _ACEOF
5909
5910
5911 # The cast to long int works around a bug in the HP C Compiler
5912 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5913 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5914 # This bug is HP SR number 8606223364.
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5916 $as_echo_n "checking size of long... " >&6; }
5917 if test "${ac_cv_sizeof_long+set}" = set; then :
5918   $as_echo_n "(cached) " >&6
5919 else
5920   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5921
5922 else
5923   if test "$ac_cv_type_long" = yes; then
5924      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5926 { as_fn_set_status 77
5927 as_fn_error "cannot compute sizeof (long)
5928 See \`config.log' for more details." "$LINENO" 5; }; }
5929    else
5930      ac_cv_sizeof_long=0
5931    fi
5932 fi
5933
5934 fi
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5936 $as_echo "$ac_cv_sizeof_long" >&6; }
5937
5938
5939
5940 cat >>confdefs.h <<_ACEOF
5941 #define SIZEOF_LONG $ac_cv_sizeof_long
5942 _ACEOF
5943
5944
5945 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5946 if test "x$ac_cv_type_long_long" = x""yes; then :
5947
5948 cat >>confdefs.h <<_ACEOF
5949 #define HAVE_LONG_LONG 1
5950 _ACEOF
5951
5952 # The cast to long int works around a bug in the HP C Compiler
5953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5954 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5955 # This bug is HP SR number 8606223364.
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5957 $as_echo_n "checking size of long long... " >&6; }
5958 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5959   $as_echo_n "(cached) " >&6
5960 else
5961   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5962
5963 else
5964   if test "$ac_cv_type_long_long" = yes; then
5965      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5967 { as_fn_set_status 77
5968 as_fn_error "cannot compute sizeof (long long)
5969 See \`config.log' for more details." "$LINENO" 5; }; }
5970    else
5971      ac_cv_sizeof_long_long=0
5972    fi
5973 fi
5974
5975 fi
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5977 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5978
5979
5980
5981 cat >>confdefs.h <<_ACEOF
5982 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5983 _ACEOF
5984
5985
5986 fi
5987
5988 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5989 if test "x$ac_cv_type___int64" = x""yes; then :
5990
5991 cat >>confdefs.h <<_ACEOF
5992 #define HAVE___INT64 1
5993 _ACEOF
5994
5995 # The cast to long int works around a bug in the HP C Compiler
5996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5998 # This bug is HP SR number 8606223364.
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
6000 $as_echo_n "checking size of __int64... " >&6; }
6001 if test "${ac_cv_sizeof___int64+set}" = set; then :
6002   $as_echo_n "(cached) " >&6
6003 else
6004   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
6005
6006 else
6007   if test "$ac_cv_type___int64" = yes; then
6008      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6009 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6010 { as_fn_set_status 77
6011 as_fn_error "cannot compute sizeof (__int64)
6012 See \`config.log' for more details." "$LINENO" 5; }; }
6013    else
6014      ac_cv_sizeof___int64=0
6015    fi
6016 fi
6017
6018 fi
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
6020 $as_echo "$ac_cv_sizeof___int64" >&6; }
6021
6022
6023
6024 cat >>confdefs.h <<_ACEOF
6025 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6026 _ACEOF
6027
6028
6029 fi
6030
6031 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
6032 case $ac_cv_c_int8_t in #(
6033   no|yes) ;; #(
6034   *)
6035
6036 cat >>confdefs.h <<_ACEOF
6037 #define int8_t $ac_cv_c_int8_t
6038 _ACEOF
6039 ;;
6040 esac
6041
6042 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6043 case $ac_cv_c_int16_t in #(
6044   no|yes) ;; #(
6045   *)
6046
6047 cat >>confdefs.h <<_ACEOF
6048 #define int16_t $ac_cv_c_int16_t
6049 _ACEOF
6050 ;;
6051 esac
6052
6053 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6054 case $ac_cv_c_int32_t in #(
6055   no|yes) ;; #(
6056   *)
6057
6058 cat >>confdefs.h <<_ACEOF
6059 #define int32_t $ac_cv_c_int32_t
6060 _ACEOF
6061 ;;
6062 esac
6063
6064 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6065 case $ac_cv_c_int64_t in #(
6066   no|yes) ;; #(
6067   *)
6068
6069 cat >>confdefs.h <<_ACEOF
6070 #define int64_t $ac_cv_c_int64_t
6071 _ACEOF
6072 ;;
6073 esac
6074
6075
6076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6077 $as_echo_n "checking for long long int... " >&6; }
6078 if test "${ac_cv_type_long_long_int+set}" = set; then :
6079   $as_echo_n "(cached) " >&6
6080 else
6081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6082 /* end confdefs.h.  */
6083
6084   /* For now, do not test the preprocessor; as of 2007 there are too many
6085          implementations with broken preprocessors.  Perhaps this can
6086          be revisited in 2012.  In the meantime, code should not expect
6087          #if to work with literals wider than 32 bits.  */
6088       /* Test literals.  */
6089       long long int ll = 9223372036854775807ll;
6090       long long int nll = -9223372036854775807LL;
6091       unsigned long long int ull = 18446744073709551615ULL;
6092       /* Test constant expressions.   */
6093       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6094                      ? 1 : -1)];
6095       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6096                      ? 1 : -1)];
6097       int i = 63;
6098 int
6099 main ()
6100 {
6101 /* Test availability of runtime routines for shift and division.  */
6102       long long int llmax = 9223372036854775807ll;
6103       unsigned long long int ullmax = 18446744073709551615ull;
6104       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6105               | (llmax / ll) | (llmax % ll)
6106               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6107               | (ullmax / ull) | (ullmax % ull));
6108   ;
6109   return 0;
6110 }
6111
6112 _ACEOF
6113 if ac_fn_c_try_link "$LINENO"; then :
6114                         if test "$cross_compiling" = yes; then :
6115   ac_cv_type_long_long_int=yes
6116 else
6117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h.  */
6119 #include <limits.h>
6120                #ifndef LLONG_MAX
6121                # define HALF \
6122                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6123                # define LLONG_MAX (HALF - 1 + HALF)
6124                #endif
6125 int
6126 main ()
6127 {
6128 long long int n = 1;
6129                int i;
6130                for (i = 0; ; i++)
6131                  {
6132                    long long int m = n << i;
6133                    if (m >> i != n)
6134                      return 1;
6135                    if (LLONG_MAX / 2 < m)
6136                      break;
6137                  }
6138                return 0;
6139   ;
6140   return 0;
6141 }
6142 _ACEOF
6143 if ac_fn_c_try_run "$LINENO"; then :
6144   ac_cv_type_long_long_int=yes
6145 else
6146   ac_cv_type_long_long_int=no
6147 fi
6148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6149   conftest.$ac_objext conftest.beam conftest.$ac_ext
6150 fi
6151
6152 else
6153   ac_cv_type_long_long_int=no
6154 fi
6155 rm -f core conftest.err conftest.$ac_objext \
6156     conftest$ac_exeext conftest.$ac_ext
6157 fi
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6159 $as_echo "$ac_cv_type_long_long_int" >&6; }
6160   if test $ac_cv_type_long_long_int = yes; then
6161
6162 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6163
6164   fi
6165
6166
6167
6168   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6169 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6170
6171 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6172
6173 else
6174   test $ac_cv_type_long_long_int = yes \
6175        && ac_type='long long int' \
6176        || ac_type='long int'
6177
6178 cat >>confdefs.h <<_ACEOF
6179 #define intmax_t $ac_type
6180 _ACEOF
6181
6182 fi
6183
6184
6185
6186   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6187 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6188
6189 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6190
6191 else
6192   for ac_type in 'int' 'long int' 'long long int'; do
6193        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h.  */
6195 $ac_includes_default
6196 int
6197 main ()
6198 {
6199 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6200 test_array [0] = 0
6201
6202   ;
6203   return 0;
6204 }
6205 _ACEOF
6206 if ac_fn_c_try_compile "$LINENO"; then :
6207
6208 cat >>confdefs.h <<_ACEOF
6209 #define intptr_t $ac_type
6210 _ACEOF
6211
6212           ac_type=
6213 fi
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215        test -z "$ac_type" && break
6216      done
6217 fi
6218
6219
6220 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6221 case $ac_cv_c_uint8_t in #(
6222   no|yes) ;; #(
6223   *)
6224
6225 $as_echo "#define _UINT8_T 1" >>confdefs.h
6226
6227
6228 cat >>confdefs.h <<_ACEOF
6229 #define uint8_t $ac_cv_c_uint8_t
6230 _ACEOF
6231 ;;
6232   esac
6233
6234 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6235 case $ac_cv_c_uint16_t in #(
6236   no|yes) ;; #(
6237   *)
6238
6239
6240 cat >>confdefs.h <<_ACEOF
6241 #define uint16_t $ac_cv_c_uint16_t
6242 _ACEOF
6243 ;;
6244   esac
6245
6246 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6247 case $ac_cv_c_uint32_t in #(
6248   no|yes) ;; #(
6249   *)
6250
6251 $as_echo "#define _UINT32_T 1" >>confdefs.h
6252
6253
6254 cat >>confdefs.h <<_ACEOF
6255 #define uint32_t $ac_cv_c_uint32_t
6256 _ACEOF
6257 ;;
6258   esac
6259
6260 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6261 case $ac_cv_c_uint64_t in #(
6262   no|yes) ;; #(
6263   *)
6264
6265 $as_echo "#define _UINT64_T 1" >>confdefs.h
6266
6267
6268 cat >>confdefs.h <<_ACEOF
6269 #define uint64_t $ac_cv_c_uint64_t
6270 _ACEOF
6271 ;;
6272   esac
6273
6274
6275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6276 $as_echo_n "checking for unsigned long long int... " >&6; }
6277 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6278   $as_echo_n "(cached) " >&6
6279 else
6280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h.  */
6282
6283   /* For now, do not test the preprocessor; as of 2007 there are too many
6284          implementations with broken preprocessors.  Perhaps this can
6285          be revisited in 2012.  In the meantime, code should not expect
6286          #if to work with literals wider than 32 bits.  */
6287       /* Test literals.  */
6288       long long int ll = 9223372036854775807ll;
6289       long long int nll = -9223372036854775807LL;
6290       unsigned long long int ull = 18446744073709551615ULL;
6291       /* Test constant expressions.   */
6292       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6293                      ? 1 : -1)];
6294       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6295                      ? 1 : -1)];
6296       int i = 63;
6297 int
6298 main ()
6299 {
6300 /* Test availability of runtime routines for shift and division.  */
6301       long long int llmax = 9223372036854775807ll;
6302       unsigned long long int ullmax = 18446744073709551615ull;
6303       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6304               | (llmax / ll) | (llmax % ll)
6305               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6306               | (ullmax / ull) | (ullmax % ull));
6307   ;
6308   return 0;
6309 }
6310
6311 _ACEOF
6312 if ac_fn_c_try_link "$LINENO"; then :
6313   ac_cv_type_unsigned_long_long_int=yes
6314 else
6315   ac_cv_type_unsigned_long_long_int=no
6316 fi
6317 rm -f core conftest.err conftest.$ac_objext \
6318     conftest$ac_exeext conftest.$ac_ext
6319 fi
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6321 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6322   if test $ac_cv_type_unsigned_long_long_int = yes; then
6323
6324 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6325
6326   fi
6327
6328
6329
6330   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6331 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6332
6333 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6334
6335 else
6336   test $ac_cv_type_unsigned_long_long_int = yes \
6337        && ac_type='unsigned long long int' \
6338        || ac_type='unsigned long int'
6339
6340 cat >>confdefs.h <<_ACEOF
6341 #define uintmax_t $ac_type
6342 _ACEOF
6343
6344 fi
6345
6346
6347
6348   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6349 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6350
6351 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6352
6353 else
6354   for ac_type in 'unsigned int' 'unsigned long int' \
6355         'unsigned long long int'; do
6356        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h.  */
6358 $ac_includes_default
6359 int
6360 main ()
6361 {
6362 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6363 test_array [0] = 0
6364
6365   ;
6366   return 0;
6367 }
6368 _ACEOF
6369 if ac_fn_c_try_compile "$LINENO"; then :
6370
6371 cat >>confdefs.h <<_ACEOF
6372 #define uintptr_t $ac_type
6373 _ACEOF
6374
6375           ac_type=
6376 fi
6377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6378        test -z "$ac_type" && break
6379      done
6380 fi
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396 # ---------------------
6397 # Warnings and checking
6398 # ---------------------
6399
6400 # Check $CC warning features (if it's GCC).
6401 # We want to use -pedantic, but we don't want warnings about
6402 # * 'long long'
6403 # * variadic macros
6404 # * overlong strings
6405 # So, we only use -pedantic if we can disable those warnings.
6406
6407 loose_warn=
6408 save_CFLAGS="$CFLAGS"
6409 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6410   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6411
6412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6413 $as_echo_n "checking whether $CC supports $option... " >&6; }
6414 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6415   $as_echo_n "(cached) " >&6
6416 else
6417   CFLAGS="$option"
6418     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h.  */
6420
6421 int
6422 main ()
6423 {
6424
6425   ;
6426   return 0;
6427 }
6428 _ACEOF
6429 if ac_fn_c_try_compile "$LINENO"; then :
6430   eval "$as_acx_Woption=yes"
6431 else
6432   eval "$as_acx_Woption=no"
6433 fi
6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435
6436 fi
6437 eval ac_res=\$$as_acx_Woption
6438                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6439 $as_echo "$ac_res" >&6; }
6440   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6441   loose_warn="$loose_warn${loose_warn:+ }$option"
6442 fi
6443   done
6444 CFLAGS="$save_CFLAGS"
6445
6446 c_loose_warn=
6447 save_CFLAGS="$CFLAGS"
6448 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6449   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6450
6451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6452 $as_echo_n "checking whether $CC supports $option... " >&6; }
6453 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6454   $as_echo_n "(cached) " >&6
6455 else
6456   CFLAGS="$option"
6457     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458 /* end confdefs.h.  */
6459
6460 int
6461 main ()
6462 {
6463
6464   ;
6465   return 0;
6466 }
6467 _ACEOF
6468 if ac_fn_c_try_compile "$LINENO"; then :
6469   eval "$as_acx_Woption=yes"
6470 else
6471   eval "$as_acx_Woption=no"
6472 fi
6473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474
6475 fi
6476 eval ac_res=\$$as_acx_Woption
6477                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6478 $as_echo "$ac_res" >&6; }
6479   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6480   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6481 fi
6482   done
6483 CFLAGS="$save_CFLAGS"
6484
6485 strict_warn=
6486 save_CFLAGS="$CFLAGS"
6487 for option in -Wmissing-format-attribute; do
6488   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6489
6490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6491 $as_echo_n "checking whether $CC supports $option... " >&6; }
6492 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6493   $as_echo_n "(cached) " >&6
6494 else
6495   CFLAGS="$option"
6496     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h.  */
6498
6499 int
6500 main ()
6501 {
6502
6503   ;
6504   return 0;
6505 }
6506 _ACEOF
6507 if ac_fn_c_try_compile "$LINENO"; then :
6508   eval "$as_acx_Woption=yes"
6509 else
6510   eval "$as_acx_Woption=no"
6511 fi
6512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6513
6514 fi
6515 eval ac_res=\$$as_acx_Woption
6516                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6517 $as_echo "$ac_res" >&6; }
6518   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6519   strict_warn="$strict_warn${strict_warn:+ }$option"
6520 fi
6521   done
6522 CFLAGS="$save_CFLAGS"
6523
6524 c_strict_warn=
6525 save_CFLAGS="$CFLAGS"
6526 for option in -Wold-style-definition -Wc++-compat; do
6527   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6528
6529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6530 $as_echo_n "checking whether $CC supports $option... " >&6; }
6531 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6532   $as_echo_n "(cached) " >&6
6533 else
6534   CFLAGS="$option"
6535     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h.  */
6537
6538 int
6539 main ()
6540 {
6541
6542   ;
6543   return 0;
6544 }
6545 _ACEOF
6546 if ac_fn_c_try_compile "$LINENO"; then :
6547   eval "$as_acx_Woption=yes"
6548 else
6549   eval "$as_acx_Woption=no"
6550 fi
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552
6553 fi
6554 eval ac_res=\$$as_acx_Woption
6555                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6556 $as_echo "$ac_res" >&6; }
6557   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6558   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6559 fi
6560   done
6561 CFLAGS="$save_CFLAGS"
6562
6563 if test "$GCC" = yes; then :
6564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6565 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6566 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6567   $as_echo_n "(cached) " >&6
6568 else
6569   save_CFLAGS="$CFLAGS"
6570 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h.  */
6573
6574 int
6575 main ()
6576 {
6577
6578   ;
6579   return 0;
6580 }
6581 _ACEOF
6582 if ac_fn_c_try_compile "$LINENO"; then :
6583   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6584 else
6585   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6586 fi
6587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6588 CFLAGS="$save_CFLAGS"
6589 fi
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6591 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6592 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6593   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6594 fi
6595
6596 fi
6597
6598 # Check whether --enable-werror-always was given.
6599 if test "${enable_werror_always+set}" = set; then :
6600   enableval=$enable_werror_always;
6601 else
6602   enable_werror_always=no
6603 fi
6604
6605 if test $enable_werror_always = yes; then :
6606   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6607 fi
6608
6609
6610
6611 # The above macros do nothing if the compiler is not GCC.  However, the
6612 # Makefile has more goo to add other flags, so these variables are used
6613 # to enable warnings only for GCC.
6614 warn_cflags=
6615 warn_cxxflags=
6616 if test "x$GCC" = "xyes"; then
6617   warn_cflags='$(GCC_WARN_CFLAGS)'
6618   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6619 fi
6620
6621
6622
6623 # Enable expensive internal checks
6624 is_release=
6625 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6626   is_release=yes
6627 fi
6628
6629 # Check whether --enable-checking was given.
6630 if test "${enable_checking+set}" = set; then :
6631   enableval=$enable_checking; ac_checking_flags="${enableval}"
6632 else
6633
6634 # Determine the default checks.
6635 if test x$is_release = x ; then
6636   ac_checking_flags=yes
6637 else
6638   ac_checking_flags=release
6639 fi
6640 fi
6641
6642 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6643 for check in release $ac_checking_flags
6644 do
6645         case $check in
6646         # these set all the flags to specific states
6647         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6648                         ac_fold_checking= ; ac_gc_checking=1 ;
6649                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6650                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6651                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6652                         ac_types_checking=1 ;;
6653         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6654                         ac_fold_checking= ; ac_gc_checking= ;
6655                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6656                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6657                         ac_tree_checking= ; ac_valgrind_checking= ;
6658                         ac_types_checking= ;;
6659         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6660                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6661                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6662                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6663                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6664                         ac_types_checking=1 ;;
6665         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6666                         ac_fold_checking= ; ac_gc_checking= ;
6667                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6668                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6669                         ac_tree_checking= ; ac_valgrind_checking= ;
6670                         ac_types_checking= ;;
6671         # these enable particular checks
6672         assert)         ac_assert_checking=1 ;;
6673         df)             ac_df_checking=1 ;;
6674         fold)           ac_fold_checking=1 ;;
6675         gc)             ac_gc_checking=1 ;;
6676         gcac)           ac_gc_always_collect=1 ;;
6677         gimple)         ac_gimple_checking=1 ;;
6678         misc)           ac_checking=1 ;;
6679         rtl)            ac_rtl_checking=1 ;;
6680         rtlflag)        ac_rtlflag_checking=1 ;;
6681         runtime)        ac_runtime_checking=1 ;;
6682         tree)           ac_tree_checking=1 ;;
6683         types)          ac_types_checking=1 ;;
6684         valgrind)       ac_valgrind_checking=1 ;;
6685         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6686         esac
6687 done
6688 IFS="$ac_save_IFS"
6689
6690 nocommon_flag=""
6691 if test x$ac_checking != x ; then
6692
6693 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6694
6695   nocommon_flag=-fno-common
6696 fi
6697
6698 if test x$ac_df_checking != x ; then
6699
6700 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6701
6702 fi
6703 if test x$ac_assert_checking != x ; then
6704
6705 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6706
6707 fi
6708 if test x$ac_gimple_checking != x ; then
6709
6710 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6711
6712 fi
6713
6714 if test x$ac_runtime_checking != x ; then
6715
6716 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6717
6718 fi
6719 if test x$ac_tree_checking != x ; then
6720
6721 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6722
6723   TREEBROWSER=tree-browser.o
6724 fi
6725 if test x$ac_types_checking != x ; then
6726
6727 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6728
6729 fi
6730
6731 if test x$ac_rtl_checking != x ; then
6732
6733 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6734
6735 fi
6736 if test x$ac_rtlflag_checking != x ; then
6737
6738 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6739
6740 fi
6741 if test x$ac_gc_checking != x ; then
6742
6743 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6744
6745 fi
6746 if test x$ac_gc_always_collect != x ; then
6747
6748 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6749
6750 fi
6751 if test x$ac_fold_checking != x ; then
6752
6753 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6754
6755 fi
6756 valgrind_path_defines=
6757 valgrind_command=
6758
6759 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6760 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6761   have_valgrind_h=yes
6762 else
6763   have_valgrind_h=no
6764 fi
6765
6766
6767
6768 if test x$ac_valgrind_checking != x ; then
6769   # It is certainly possible that there's valgrind but no valgrind.h.
6770   # GCC relies on making annotations so we must have both.
6771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6772 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774 /* end confdefs.h.  */
6775 #include <valgrind/memcheck.h>
6776 #ifndef VALGRIND_DISCARD
6777 #error VALGRIND_DISCARD not defined
6778 #endif
6779 _ACEOF
6780 if ac_fn_c_try_cpp "$LINENO"; then :
6781   gcc_cv_header_valgrind_memcheck_h=yes
6782 else
6783   gcc_cv_header_valgrind_memcheck_h=no
6784 fi
6785 rm -f conftest.err conftest.$ac_ext
6786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6787 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6789 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791 /* end confdefs.h.  */
6792 #include <memcheck.h>
6793 #ifndef VALGRIND_DISCARD
6794 #error VALGRIND_DISCARD not defined
6795 #endif
6796 _ACEOF
6797 if ac_fn_c_try_cpp "$LINENO"; then :
6798   gcc_cv_header_memcheck_h=yes
6799 else
6800   gcc_cv_header_memcheck_h=no
6801 fi
6802 rm -f conftest.err conftest.$ac_ext
6803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6804 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6805
6806 # Prepare PATH_SEPARATOR.
6807 # The user is always right.
6808 if test "${PATH_SEPARATOR+set}" != set; then
6809   echo "#! /bin/sh" >conf$$.sh
6810   echo  "exit 0"   >>conf$$.sh
6811   chmod +x conf$$.sh
6812   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6813     PATH_SEPARATOR=';'
6814   else
6815     PATH_SEPARATOR=:
6816   fi
6817   rm -f conf$$.sh
6818 fi
6819
6820 # Find out how to test for executable files. Don't use a zero-byte file,
6821 # as systems may use methods other than mode bits to determine executability.
6822 cat >conf$$.file <<_ASEOF
6823 #! /bin/sh
6824 exit 0
6825 _ASEOF
6826 chmod +x conf$$.file
6827 if test -x conf$$.file >/dev/null 2>&1; then
6828   ac_executable_p="test -x"
6829 else
6830   ac_executable_p="test -f"
6831 fi
6832 rm -f conf$$.file
6833
6834 # Extract the first word of "valgrind", so it can be a program name with args.
6835 set dummy valgrind; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6839   $as_echo_n "(cached) " >&6
6840 else
6841   case "$valgrind_path" in
6842   [\\/]* | ?:[\\/]*)
6843     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6844     ;;
6845   *)
6846     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6847     for ac_dir in $PATH; do
6848       IFS="$ac_save_IFS"
6849       test -z "$ac_dir" && ac_dir=.
6850       for ac_exec_ext in '' $ac_executable_extensions; do
6851         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6852           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6853             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6854             break 2
6855           fi
6856         fi
6857       done
6858     done
6859     IFS="$ac_save_IFS"
6860     ;;
6861 esac
6862 fi
6863 valgrind_path="$ac_cv_path_valgrind_path"
6864 if test -n "$valgrind_path"; then
6865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6866 $as_echo "$valgrind_path" >&6; }
6867 else
6868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6870 fi
6871
6872   if test "x$valgrind_path" = "x" \
6873     || (test $have_valgrind_h = no \
6874         && test $gcc_cv_header_memcheck_h = no \
6875         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6876         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6877   fi
6878   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6879   valgrind_command="$valgrind_path -q"
6880
6881 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6882
6883   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6884
6885 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6886
6887   fi
6888   if test $gcc_cv_header_memcheck_h = yes; then
6889
6890 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6891
6892   fi
6893 fi
6894
6895
6896
6897 # Enable code coverage collection
6898 # Check whether --enable-coverage was given.
6899 if test "${enable_coverage+set}" = set; then :
6900   enableval=$enable_coverage; case "${enableval}" in
6901   yes|noopt)
6902     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6903     ;;
6904   opt)
6905     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6906     ;;
6907   no)
6908     # a.k.a. --disable-coverage
6909     coverage_flags=""
6910     ;;
6911   *)
6912     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6913     ;;
6914 esac
6915 else
6916   coverage_flags=""
6917 fi
6918
6919
6920
6921 # Check whether --enable-gather-detailed-mem-stats was given.
6922 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6923   enableval=$enable_gather_detailed_mem_stats;
6924 else
6925   enable_gather_detailed_mem_stats=no
6926 fi
6927
6928 if test x$enable_gather_detailed_mem_stats = xyes ; then
6929
6930 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6931
6932 fi
6933
6934 # -------------------------------
6935 # Miscenalleous configure options
6936 # -------------------------------
6937
6938 # See if we are building gcc with C++.
6939 # Check whether --enable-build-with-cxx was given.
6940 if test "${enable_build_with_cxx+set}" = set; then :
6941   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6942 else
6943   ENABLE_BUILD_WITH_CXX=no
6944 fi
6945
6946
6947 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6948
6949 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6950
6951 fi
6952
6953 # With stabs
6954
6955 # Check whether --with-stabs was given.
6956 if test "${with_stabs+set}" = set; then :
6957   withval=$with_stabs; stabs="$with_stabs"
6958 else
6959   stabs=no
6960 fi
6961
6962
6963 # Determine whether or not multilibs are enabled.
6964 # Check whether --enable-multilib was given.
6965 if test "${enable_multilib+set}" = set; then :
6966   enableval=$enable_multilib;
6967 else
6968   enable_multilib=yes
6969 fi
6970
6971
6972
6973 # Enable __cxa_atexit for C++.
6974 # Check whether --enable-__cxa_atexit was given.
6975 if test "${enable___cxa_atexit+set}" = set; then :
6976   enableval=$enable___cxa_atexit;
6977 fi
6978
6979
6980 # Enable C extension for decimal float if target supports it.
6981
6982 # Check whether --enable-decimal-float was given.
6983 if test "${enable_decimal_float+set}" = set; then :
6984   enableval=$enable_decimal_float;
6985   case $enable_decimal_float in
6986     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6987     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6988 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6989   esac
6990
6991 else
6992
6993   case $target in
6994     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6995     i?86*-*-mingw* | x86_64*-*-mingw* | \
6996     i?86*-*-cygwin*)
6997       enable_decimal_float=yes
6998       ;;
6999     *)
7000       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7001 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7002       enable_decimal_float=no
7003       ;;
7004   esac
7005
7006 fi
7007
7008
7009 # x86's use BID format instead of DPD
7010 case x$enable_decimal_float in
7011   xyes)
7012     case $target in
7013       i?86*-*-* | x86_64*-*-*)
7014         enable_decimal_float=bid
7015         ;;
7016       *)
7017         enable_decimal_float=dpd
7018         ;;
7019     esac
7020     default_decimal_float=$enable_decimal_float
7021     ;;
7022   xno)
7023     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7024     # dependency on libdecnumber.
7025     default_decimal_float=dpd
7026     ;;
7027 esac
7028
7029
7030
7031
7032 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7033
7034 cat >>confdefs.h <<_ACEOF
7035 #define ENABLE_DECIMAL_FLOAT $dfp
7036 _ACEOF
7037
7038
7039 # Use default_decimal_float for dependency.
7040 enable_decimal_float=$default_decimal_float
7041
7042 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7043
7044 cat >>confdefs.h <<_ACEOF
7045 #define ENABLE_DECIMAL_BID_FORMAT $bid
7046 _ACEOF
7047
7048
7049 # Enable C extension for fixed-point arithmetic.
7050 # Check whether --enable-fixed-point was given.
7051 if test "${enable_fixed_point+set}" = set; then :
7052   enableval=$enable_fixed_point;
7053 else
7054
7055   case $target in
7056     arm*)
7057       enable_fixed_point=yes
7058       ;;
7059
7060     mips*-*-*)
7061       case $host in
7062         mips*-sgi-irix*)
7063           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
7064 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
7065           enable_fixed_point=no
7066           ;;
7067         *)
7068           enable_fixed_point=yes
7069           ;;
7070       esac
7071       ;;
7072     *)
7073       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7074 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7075       enable_fixed_point=no
7076       ;;
7077   esac
7078
7079 fi
7080
7081
7082
7083 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7084
7085 cat >>confdefs.h <<_ACEOF
7086 #define ENABLE_FIXED_POINT $fixedpoint
7087 _ACEOF
7088
7089
7090 # Enable threads
7091 # Pass with no value to take the default
7092 # Pass with a value to specify a thread package
7093 # Check whether --enable-threads was given.
7094 if test "${enable_threads+set}" = set; then :
7095   enableval=$enable_threads;
7096 else
7097   enable_threads=''
7098 fi
7099
7100
7101 # Check whether --enable-tls was given.
7102 if test "${enable_tls+set}" = set; then :
7103   enableval=$enable_tls;
7104   case $enable_tls in
7105     yes | no) ;;
7106     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7107 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7108   esac
7109
7110 else
7111   enable_tls=''
7112 fi
7113
7114
7115 # Check whether --enable-objc-gc was given.
7116 if test "${enable_objc_gc+set}" = set; then :
7117   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7118         objc_boehm_gc=''
7119 else
7120         objc_boehm_gc=1
7121 fi
7122 else
7123   objc_boehm_gc=''
7124 fi
7125
7126
7127
7128 # Check whether --with-dwarf2 was given.
7129 if test "${with_dwarf2+set}" = set; then :
7130   withval=$with_dwarf2; dwarf2="$with_dwarf2"
7131 else
7132   dwarf2=no
7133 fi
7134
7135
7136 # Check whether --enable-shared was given.
7137 if test "${enable_shared+set}" = set; then :
7138   enableval=$enable_shared;
7139   case $enable_shared in
7140   yes | no) ;;
7141   *)
7142     enable_shared=no
7143     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7144     for pkg in $enableval; do
7145       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7146         enable_shared=yes
7147       fi
7148     done
7149     IFS="$ac_save_ifs"
7150     ;;
7151   esac
7152
7153 else
7154   enable_shared=yes
7155 fi
7156
7157
7158
7159
7160 # Check whether --with-native-system-header-dir was given.
7161 if test "${with_native_system_header_dir+set}" = set; then :
7162   withval=$with_native_system_header_dir;
7163  case ${with_native_system_header_dir} in
7164  yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7165  /* | [A-Za-z]:[\\/]*) ;;
7166  *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7167  esac
7168  configured_native_system_header_dir="${withval}"
7169
7170 else
7171   configured_native_system_header_dir=
7172 fi
7173
7174
7175
7176 # Check whether --with-build-sysroot was given.
7177 if test "${with_build_sysroot+set}" = set; then :
7178   withval=$with_build_sysroot; if test x"$withval" != x ; then
7179      SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7180    fi
7181 else
7182   SYSROOT_CFLAGS_FOR_TARGET=
7183 fi
7184
7185
7186
7187
7188 # Check whether --with-sysroot was given.
7189 if test "${with_sysroot+set}" = set; then :
7190   withval=$with_sysroot;
7191  case ${with_sysroot} in
7192  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7193  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7194  esac
7195
7196  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7197  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7198
7199  if test "x$prefix" = xNONE; then
7200   test_prefix=/usr/local
7201  else
7202   test_prefix=$prefix
7203  fi
7204  if test "x$exec_prefix" = xNONE; then
7205   test_exec_prefix=$test_prefix
7206  else
7207   test_exec_prefix=$exec_prefix
7208  fi
7209  case ${TARGET_SYSTEM_ROOT} in
7210  "${test_prefix}"|"${test_prefix}/"*|\
7211  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7212  '${prefix}'|'${prefix}/'*|\
7213  '${exec_prefix}'|'${exec_prefix}/'*)
7214    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7215    TARGET_SYSTEM_ROOT_DEFINE="$t"
7216    ;;
7217  esac
7218
7219 else
7220
7221  TARGET_SYSTEM_ROOT=
7222  TARGET_SYSTEM_ROOT_DEFINE=
7223  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7224
7225 fi
7226
7227
7228
7229
7230
7231
7232 # Check whether --with-specs was given.
7233 if test "${with_specs+set}" = set; then :
7234   withval=$with_specs; CONFIGURE_SPECS=$withval
7235 else
7236   CONFIGURE_SPECS=
7237
7238 fi
7239
7240
7241
7242
7243
7244 # Check whether --with-pkgversion was given.
7245 if test "${with_pkgversion+set}" = set; then :
7246   withval=$with_pkgversion; case "$withval" in
7247       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7248       no)  PKGVERSION= ;;
7249       *)   PKGVERSION="($withval) " ;;
7250      esac
7251 else
7252   PKGVERSION="(GCC) "
7253
7254 fi
7255
7256
7257
7258
7259
7260 # Check whether --with-bugurl was given.
7261 if test "${with_bugurl+set}" = set; then :
7262   withval=$with_bugurl; case "$withval" in
7263       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7264       no)  BUGURL=
7265            ;;
7266       *)   BUGURL="$withval"
7267            ;;
7268      esac
7269 else
7270   BUGURL="http://gcc.gnu.org/bugs.html"
7271
7272 fi
7273
7274   case ${BUGURL} in
7275   "")
7276     REPORT_BUGS_TO=
7277     REPORT_BUGS_TEXI=
7278     ;;
7279   *)
7280     REPORT_BUGS_TO="<$BUGURL>"
7281     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7282     ;;
7283   esac;
7284
7285
7286
7287
7288 # Sanity check enable_languages in case someone does not run the toplevel
7289 # configure # script.
7290 # Check whether --enable-languages was given.
7291 if test "${enable_languages+set}" = set; then :
7292   enableval=$enable_languages; case ,${enable_languages}, in
7293        ,,|,yes,)
7294                 # go safe -- we cannot be much sure without the toplevel
7295                 # configure's
7296                 # analysis of which target libs are present and usable
7297                 enable_languages=c
7298                 ;;
7299          *,all,*)
7300                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7301                 ;;
7302         *,c,*)
7303                 ;;
7304         *)
7305                 enable_languages=c,${enable_languages}
7306                 ;;
7307 esac
7308 else
7309   enable_languages=c
7310 fi
7311
7312
7313
7314 # Check whether --with-multilib-list was given.
7315 if test "${with_multilib_list+set}" = set; then :
7316   withval=$with_multilib_list; :
7317 else
7318   with_multilib_list=default
7319 fi
7320
7321
7322 # -------------------------
7323 # Checks for other programs
7324 # -------------------------
7325
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7327 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7328 set x ${MAKE-make}
7329 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7330 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7331   $as_echo_n "(cached) " >&6
7332 else
7333   cat >conftest.make <<\_ACEOF
7334 SHELL = /bin/sh
7335 all:
7336         @echo '@@@%%%=$(MAKE)=@@@%%%'
7337 _ACEOF
7338 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7339 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7340   *@@@%%%=?*=@@@%%%*)
7341     eval ac_cv_prog_make_${ac_make}_set=yes;;
7342   *)
7343     eval ac_cv_prog_make_${ac_make}_set=no;;
7344 esac
7345 rm -f conftest.make
7346 fi
7347 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7349 $as_echo "yes" >&6; }
7350   SET_MAKE=
7351 else
7352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353 $as_echo "no" >&6; }
7354   SET_MAKE="MAKE=${MAKE-make}"
7355 fi
7356
7357
7358 # Find some useful tools
7359 for ac_prog in gawk mawk nawk awk
7360 do
7361   # Extract the first word of "$ac_prog", so it can be a program name with args.
7362 set dummy $ac_prog; ac_word=$2
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364 $as_echo_n "checking for $ac_word... " >&6; }
7365 if test "${ac_cv_prog_AWK+set}" = set; then :
7366   $as_echo_n "(cached) " >&6
7367 else
7368   if test -n "$AWK"; then
7369   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7370 else
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7373 do
7374   IFS=$as_save_IFS
7375   test -z "$as_dir" && as_dir=.
7376     for ac_exec_ext in '' $ac_executable_extensions; do
7377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7378     ac_cv_prog_AWK="$ac_prog"
7379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380     break 2
7381   fi
7382 done
7383   done
7384 IFS=$as_save_IFS
7385
7386 fi
7387 fi
7388 AWK=$ac_cv_prog_AWK
7389 if test -n "$AWK"; then
7390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7391 $as_echo "$AWK" >&6; }
7392 else
7393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7395 fi
7396
7397
7398   test -n "$AWK" && break
7399 done
7400
7401 # We need awk to create options.c and options.h.
7402 # Bail out if it's missing.
7403 case ${AWK} in
7404   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7405 esac
7406
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7408 $as_echo_n "checking whether ln -s works... " >&6; }
7409 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7410   $as_echo_n "(cached) " >&6
7411 else
7412   rm -f conftestdata_t
7413 echo >conftestdata_f
7414 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7415 then
7416   gcc_cv_prog_LN_S="ln -s"
7417 else
7418   if ln conftestdata_f conftestdata_t 2>/dev/null
7419   then
7420     gcc_cv_prog_LN_S=ln
7421   else
7422     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7423     then
7424       gcc_cv_prog_LN_S="cp -p"
7425     else
7426       gcc_cv_prog_LN_S=cp
7427     fi
7428   fi
7429 fi
7430 rm -f conftestdata_f conftestdata_t
7431
7432 fi
7433 LN_S="$gcc_cv_prog_LN_S"
7434 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7436 $as_echo "yes" >&6; }
7437 else
7438   if test "$gcc_cv_prog_LN_S" = "ln"; then
7439     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7440 $as_echo "no, using ln" >&6; }
7441   else
7442     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7443 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7444   fi
7445 fi
7446
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7448 $as_echo_n "checking whether ln works... " >&6; }
7449 if test "${acx_cv_prog_LN+set}" = set; then :
7450   $as_echo_n "(cached) " >&6
7451 else
7452   rm -f conftestdata_t
7453 echo >conftestdata_f
7454 if ln conftestdata_f conftestdata_t 2>/dev/null
7455 then
7456   acx_cv_prog_LN=ln
7457 else
7458   acx_cv_prog_LN=no
7459 fi
7460 rm -f conftestdata_f conftestdata_t
7461
7462 fi
7463 if test $acx_cv_prog_LN = no; then
7464   LN="$LN_S"
7465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7466 $as_echo "no, using $LN" >&6; }
7467 else
7468   LN="$acx_cv_prog_LN"
7469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7470 $as_echo "yes" >&6; }
7471 fi
7472
7473 if test -n "$ac_tool_prefix"; then
7474   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7475 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7479   $as_echo_n "(cached) " >&6
7480 else
7481   if test -n "$RANLIB"; then
7482   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7483 else
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 for as_dir in $PATH
7486 do
7487   IFS=$as_save_IFS
7488   test -z "$as_dir" && as_dir=.
7489     for ac_exec_ext in '' $ac_executable_extensions; do
7490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7491     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7493     break 2
7494   fi
7495 done
7496   done
7497 IFS=$as_save_IFS
7498
7499 fi
7500 fi
7501 RANLIB=$ac_cv_prog_RANLIB
7502 if test -n "$RANLIB"; then
7503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7504 $as_echo "$RANLIB" >&6; }
7505 else
7506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7508 fi
7509
7510
7511 fi
7512 if test -z "$ac_cv_prog_RANLIB"; then
7513   ac_ct_RANLIB=$RANLIB
7514   # Extract the first word of "ranlib", so it can be a program name with args.
7515 set dummy ranlib; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7519   $as_echo_n "(cached) " >&6
7520 else
7521   if test -n "$ac_ct_RANLIB"; then
7522   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7523 else
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7526 do
7527   IFS=$as_save_IFS
7528   test -z "$as_dir" && as_dir=.
7529     for ac_exec_ext in '' $ac_executable_extensions; do
7530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7531     ac_cv_prog_ac_ct_RANLIB="ranlib"
7532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533     break 2
7534   fi
7535 done
7536   done
7537 IFS=$as_save_IFS
7538
7539 fi
7540 fi
7541 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7542 if test -n "$ac_ct_RANLIB"; then
7543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7544 $as_echo "$ac_ct_RANLIB" >&6; }
7545 else
7546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7548 fi
7549
7550   if test "x$ac_ct_RANLIB" = x; then
7551     RANLIB=":"
7552   else
7553     case $cross_compiling:$ac_tool_warned in
7554 yes:)
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7557 ac_tool_warned=yes ;;
7558 esac
7559     RANLIB=$ac_ct_RANLIB
7560   fi
7561 else
7562   RANLIB="$ac_cv_prog_RANLIB"
7563 fi
7564
7565 case "${host}" in
7566 *-*-darwin*)
7567   # By default, the Darwin ranlib will not treat common symbols as
7568   # definitions when  building the archive table of contents.  Other
7569   # ranlibs do that; pass an option to the Darwin ranlib that makes
7570   # it behave similarly.
7571   ranlib_flags="-c"
7572   ;;
7573 *)
7574   ranlib_flags=""
7575 esac
7576
7577
7578 # Find a good install program.  We prefer a C program (faster),
7579 # so one script is as good as another.  But avoid the broken or
7580 # incompatible versions:
7581 # SysV /etc/install, /usr/sbin/install
7582 # SunOS /usr/etc/install
7583 # IRIX /sbin/install
7584 # AIX /bin/install
7585 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7586 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7587 # ./install, which can be erroneously created by make from ./install.sh.
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7589 $as_echo_n "checking for a BSD compatible install... " >&6; }
7590 if test -z "$INSTALL"; then
7591 if test "${ac_cv_path_install+set}" = set; then :
7592   $as_echo_n "(cached) " >&6
7593 else
7594     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7595   for ac_dir in $PATH; do
7596     # Account for people who put trailing slashes in PATH elements.
7597     case "$ac_dir/" in
7598     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7599     *)
7600       # OSF1 and SCO ODT 3.0 have their own names for install.
7601       for ac_prog in ginstall scoinst install; do
7602         if test -f $ac_dir/$ac_prog; then
7603           if test $ac_prog = install &&
7604             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7605             # AIX install.  It has an incompatible calling convention.
7606             # OSF/1 installbsd also uses dspmsg, but is usable.
7607             :
7608           else
7609             ac_cv_path_install="$ac_dir/$ac_prog -c"
7610             break 2
7611           fi
7612         fi
7613       done
7614       ;;
7615     esac
7616   done
7617   IFS="$ac_save_IFS"
7618
7619 fi
7620   if test "${ac_cv_path_install+set}" = set; then
7621     INSTALL="$ac_cv_path_install"
7622   else
7623     # As a last resort, use the slow shell script.  We don't cache a
7624     # path for INSTALL within a source directory, because that will
7625     # break other packages using the cache if that directory is
7626     # removed, or if the path is relative.
7627     INSTALL="$ac_install_sh"
7628   fi
7629 fi
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7631 $as_echo "$INSTALL" >&6; }
7632
7633 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7634 # It thinks the first close brace ends the variable substitution.
7635 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7636
7637 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7638
7639
7640 # See if cmp has --ignore-initial.
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7642 $as_echo_n "checking for cmp's capabilities... " >&6; }
7643 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7644   $as_echo_n "(cached) " >&6
7645 else
7646    echo abfoo >t1
7647   echo cdfoo >t2
7648   gcc_cv_prog_cmp_skip=slowcompare
7649   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7650     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7651       :
7652     else
7653       gcc_cv_prog_cmp_skip=gnucompare
7654     fi
7655   fi
7656   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7657     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7658       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7659         :
7660       else
7661         gcc_cv_prog_cmp_skip=fastcompare
7662       fi
7663     fi
7664   fi
7665   rm t1 t2
7666
7667 fi
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7669 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7670 make_compare_target=$gcc_cv_prog_cmp_skip
7671
7672
7673
7674 # See if we have the mktemp command.
7675 # Extract the first word of "mktemp", so it can be a program name with args.
7676 set dummy mktemp; ac_word=$2
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7678 $as_echo_n "checking for $ac_word... " >&6; }
7679 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7680   $as_echo_n "(cached) " >&6
7681 else
7682   if test -n "$have_mktemp_command"; then
7683   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7684 else
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 for as_dir in $PATH
7687 do
7688   IFS=$as_save_IFS
7689   test -z "$as_dir" && as_dir=.
7690     for ac_exec_ext in '' $ac_executable_extensions; do
7691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7692     ac_cv_prog_have_mktemp_command="yes"
7693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7694     break 2
7695   fi
7696 done
7697   done
7698 IFS=$as_save_IFS
7699
7700   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7701 fi
7702 fi
7703 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7704 if test -n "$have_mktemp_command"; then
7705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7706 $as_echo "$have_mktemp_command" >&6; }
7707 else
7708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709 $as_echo "no" >&6; }
7710 fi
7711
7712
7713
7714 # See if makeinfo has been installed and is modern enough
7715 # that we can use it.
7716
7717   # Extract the first word of "makeinfo", so it can be a program name with args.
7718 set dummy makeinfo; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7722   $as_echo_n "(cached) " >&6
7723 else
7724   if test -n "$MAKEINFO"; then
7725   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730   IFS=$as_save_IFS
7731   test -z "$as_dir" && as_dir=.
7732     for ac_exec_ext in '' $ac_executable_extensions; do
7733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7734     ac_cv_prog_MAKEINFO="makeinfo"
7735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736     break 2
7737   fi
7738 done
7739   done
7740 IFS=$as_save_IFS
7741
7742 fi
7743 fi
7744 MAKEINFO=$ac_cv_prog_MAKEINFO
7745 if test -n "$MAKEINFO"; then
7746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7747 $as_echo "$MAKEINFO" >&6; }
7748 else
7749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 fi
7752
7753
7754   if test -n "$MAKEINFO"; then
7755     # Found it, now check the version.
7756     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7757 $as_echo_n "checking for modern makeinfo... " >&6; }
7758 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7759   $as_echo_n "(cached) " >&6
7760 else
7761   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7762                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7763
7764                     case $ac_prog_version in
7765                       '')  gcc_cv_prog_makeinfo_modern=no;;
7766                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7767                       *)   gcc_cv_prog_makeinfo_modern=no;;
7768                     esac
7769
7770 fi
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7772 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7773   else
7774     gcc_cv_prog_makeinfo_modern=no
7775   fi
7776   if test $gcc_cv_prog_makeinfo_modern = no; then
7777     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7778   fi
7779
7780 if test $gcc_cv_prog_makeinfo_modern = no; then
7781   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7782 *** Makeinfo is missing or too old.
7783 *** Info documentation will not be built." >&5
7784 $as_echo "$as_me: WARNING:
7785 *** Makeinfo is missing or too old.
7786 *** Info documentation will not be built." >&2;}
7787   BUILD_INFO=
7788 else
7789   BUILD_INFO=info
7790 fi
7791
7792
7793 # Is pod2man recent enough to regenerate manpages?
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7795 $as_echo_n "checking for recent Pod::Man... " >&6; }
7796 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7798 $as_echo "yes" >&6; }
7799   GENERATED_MANPAGES=generated-manpages
7800 else
7801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7803   GENERATED_MANPAGES=
7804 fi
7805
7806
7807 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7808
7809 # How about lex?
7810 for ac_prog in flex
7811 do
7812   # Extract the first word of "$ac_prog", so it can be a program name with args.
7813 set dummy $ac_prog; ac_word=$2
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if test "${ac_cv_prog_FLEX+set}" = set; then :
7817   $as_echo_n "(cached) " >&6
7818 else
7819   if test -n "$FLEX"; then
7820   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7821 else
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 for as_dir in $PATH
7824 do
7825   IFS=$as_save_IFS
7826   test -z "$as_dir" && as_dir=.
7827     for ac_exec_ext in '' $ac_executable_extensions; do
7828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7829     ac_cv_prog_FLEX="$ac_prog"
7830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7831     break 2
7832   fi
7833 done
7834   done
7835 IFS=$as_save_IFS
7836
7837 fi
7838 fi
7839 FLEX=$ac_cv_prog_FLEX
7840 if test -n "$FLEX"; then
7841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7842 $as_echo "$FLEX" >&6; }
7843 else
7844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7846 fi
7847
7848
7849   test -n "$FLEX" && break
7850 done
7851 test -n "$FLEX" || FLEX="$MISSING flex"
7852
7853
7854 # Bison?
7855 for ac_prog in bison
7856 do
7857   # Extract the first word of "$ac_prog", so it can be a program name with args.
7858 set dummy $ac_prog; ac_word=$2
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860 $as_echo_n "checking for $ac_word... " >&6; }
7861 if test "${ac_cv_prog_BISON+set}" = set; then :
7862   $as_echo_n "(cached) " >&6
7863 else
7864   if test -n "$BISON"; then
7865   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7866 else
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7869 do
7870   IFS=$as_save_IFS
7871   test -z "$as_dir" && as_dir=.
7872     for ac_exec_ext in '' $ac_executable_extensions; do
7873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7874     ac_cv_prog_BISON="$ac_prog"
7875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7876     break 2
7877   fi
7878 done
7879   done
7880 IFS=$as_save_IFS
7881
7882 fi
7883 fi
7884 BISON=$ac_cv_prog_BISON
7885 if test -n "$BISON"; then
7886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7887 $as_echo "$BISON" >&6; }
7888 else
7889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 $as_echo "no" >&6; }
7891 fi
7892
7893
7894   test -n "$BISON" && break
7895 done
7896 test -n "$BISON" || BISON="$MISSING bison"
7897
7898
7899 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7900 # check for build == host before using them.
7901
7902 # NM
7903 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7904   && test -d ../binutils ; then
7905   NM='${objdir}/../binutils/nm-new'
7906 else
7907   # Extract the first word of "nm", so it can be a program name with args.
7908 set dummy nm; ac_word=$2
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7910 $as_echo_n "checking for $ac_word... " >&6; }
7911 if test "${ac_cv_prog_NM+set}" = set; then :
7912   $as_echo_n "(cached) " >&6
7913 else
7914   if test -n "$NM"; then
7915   ac_cv_prog_NM="$NM" # Let the user override the test.
7916 else
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918 for as_dir in $PATH
7919 do
7920   IFS=$as_save_IFS
7921   test -z "$as_dir" && as_dir=.
7922     for ac_exec_ext in '' $ac_executable_extensions; do
7923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7924     ac_cv_prog_NM="nm"
7925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7926     break 2
7927   fi
7928 done
7929   done
7930 IFS=$as_save_IFS
7931
7932   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7933 fi
7934 fi
7935 NM=$ac_cv_prog_NM
7936 if test -n "$NM"; then
7937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7938 $as_echo "$NM" >&6; }
7939 else
7940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7941 $as_echo "no" >&6; }
7942 fi
7943
7944
7945 fi
7946
7947 # AR
7948 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7949   && test -d ../binutils ; then
7950   AR='${objdir}/../binutils/ar'
7951 else
7952   # Extract the first word of "ar", so it can be a program name with args.
7953 set dummy ar; ac_word=$2
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955 $as_echo_n "checking for $ac_word... " >&6; }
7956 if test "${ac_cv_prog_AR+set}" = set; then :
7957   $as_echo_n "(cached) " >&6
7958 else
7959   if test -n "$AR"; then
7960   ac_cv_prog_AR="$AR" # Let the user override the test.
7961 else
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963 for as_dir in $PATH
7964 do
7965   IFS=$as_save_IFS
7966   test -z "$as_dir" && as_dir=.
7967     for ac_exec_ext in '' $ac_executable_extensions; do
7968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7969     ac_cv_prog_AR="ar"
7970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7971     break 2
7972   fi
7973 done
7974   done
7975 IFS=$as_save_IFS
7976
7977   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7978 fi
7979 fi
7980 AR=$ac_cv_prog_AR
7981 if test -n "$AR"; then
7982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7983 $as_echo "$AR" >&6; }
7984 else
7985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986 $as_echo "no" >&6; }
7987 fi
7988
7989
7990 fi
7991
7992
7993 # --------------------
7994 # Checks for C headers
7995 # --------------------
7996
7997 # Need to reject headers which give warnings, so that the -Werror bootstrap
7998 # works later. *sigh*  This needs to come before all header checks.
7999
8000 ac_c_preproc_warn_flag=yes
8001
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8003 $as_echo_n "checking for ANSI C header files... " >&6; }
8004 if test "${ac_cv_header_stdc+set}" = set; then :
8005   $as_echo_n "(cached) " >&6
8006 else
8007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008 /* end confdefs.h.  */
8009 #include <stdlib.h>
8010 #include <stdarg.h>
8011 #include <string.h>
8012 #include <float.h>
8013
8014 int
8015 main ()
8016 {
8017
8018   ;
8019   return 0;
8020 }
8021 _ACEOF
8022 if ac_fn_c_try_compile "$LINENO"; then :
8023   ac_cv_header_stdc=yes
8024 else
8025   ac_cv_header_stdc=no
8026 fi
8027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8028
8029 if test $ac_cv_header_stdc = yes; then
8030   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h.  */
8033 #include <string.h>
8034
8035 _ACEOF
8036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8037   $EGREP "memchr" >/dev/null 2>&1; then :
8038
8039 else
8040   ac_cv_header_stdc=no
8041 fi
8042 rm -f conftest*
8043
8044 fi
8045
8046 if test $ac_cv_header_stdc = yes; then
8047   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h.  */
8050 #include <stdlib.h>
8051
8052 _ACEOF
8053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8054   $EGREP "free" >/dev/null 2>&1; then :
8055
8056 else
8057   ac_cv_header_stdc=no
8058 fi
8059 rm -f conftest*
8060
8061 fi
8062
8063 if test $ac_cv_header_stdc = yes; then
8064   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8065   if test "$cross_compiling" = yes; then :
8066   :
8067 else
8068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h.  */
8070 #include <ctype.h>
8071 #include <stdlib.h>
8072 #if ((' ' & 0x0FF) == 0x020)
8073 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8074 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8075 #else
8076 # define ISLOWER(c) \
8077                    (('a' <= (c) && (c) <= 'i') \
8078                      || ('j' <= (c) && (c) <= 'r') \
8079                      || ('s' <= (c) && (c) <= 'z'))
8080 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8081 #endif
8082
8083 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8084 int
8085 main ()
8086 {
8087   int i;
8088   for (i = 0; i < 256; i++)
8089     if (XOR (islower (i), ISLOWER (i))
8090         || toupper (i) != TOUPPER (i))
8091       return 2;
8092   return 0;
8093 }
8094 _ACEOF
8095 if ac_fn_c_try_run "$LINENO"; then :
8096
8097 else
8098   ac_cv_header_stdc=no
8099 fi
8100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8101   conftest.$ac_objext conftest.beam conftest.$ac_ext
8102 fi
8103
8104 fi
8105 fi
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8107 $as_echo "$ac_cv_header_stdc" >&6; }
8108 if test $ac_cv_header_stdc = yes; then
8109
8110 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8111
8112 fi
8113
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8115 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8116 if test "${ac_cv_header_time+set}" = set; then :
8117   $as_echo_n "(cached) " >&6
8118 else
8119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120 /* end confdefs.h.  */
8121 #include <sys/types.h>
8122 #include <sys/time.h>
8123 #include <time.h>
8124
8125 int
8126 main ()
8127 {
8128 if ((struct tm *) 0)
8129 return 0;
8130   ;
8131   return 0;
8132 }
8133 _ACEOF
8134 if ac_fn_c_try_compile "$LINENO"; then :
8135   ac_cv_header_time=yes
8136 else
8137   ac_cv_header_time=no
8138 fi
8139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8140 fi
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8142 $as_echo "$ac_cv_header_time" >&6; }
8143 if test $ac_cv_header_time = yes; then
8144
8145 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8146
8147 fi
8148
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8150 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8151 if test "${gcc_cv_header_string+set}" = set; then :
8152   $as_echo_n "(cached) " >&6
8153 else
8154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h.  */
8156 #include <string.h>
8157 #include <strings.h>
8158 int
8159 main ()
8160 {
8161
8162   ;
8163   return 0;
8164 }
8165 _ACEOF
8166 if ac_fn_c_try_compile "$LINENO"; then :
8167   gcc_cv_header_string=yes
8168 else
8169   gcc_cv_header_string=no
8170 fi
8171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8172 fi
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8174 $as_echo "$gcc_cv_header_string" >&6; }
8175 if test $gcc_cv_header_string = yes; then
8176
8177 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8178
8179 fi
8180
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8182 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8183 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8184   $as_echo_n "(cached) " >&6
8185 else
8186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8187 /* end confdefs.h.  */
8188 #include <sys/types.h>
8189 #include <sys/wait.h>
8190 #ifndef WEXITSTATUS
8191 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8192 #endif
8193 #ifndef WIFEXITED
8194 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8195 #endif
8196
8197 int
8198 main ()
8199 {
8200   int s;
8201   wait (&s);
8202   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8203   ;
8204   return 0;
8205 }
8206 _ACEOF
8207 if ac_fn_c_try_compile "$LINENO"; then :
8208   ac_cv_header_sys_wait_h=yes
8209 else
8210   ac_cv_header_sys_wait_h=no
8211 fi
8212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8213 fi
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8215 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8216 if test $ac_cv_header_sys_wait_h = yes; then
8217
8218 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8219
8220 fi
8221
8222 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8223                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8224                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8225                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8226 do :
8227   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8228 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8229 eval as_val=\$$as_ac_Header
8230    if test "x$as_val" = x""yes; then :
8231   cat >>confdefs.h <<_ACEOF
8232 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8233 _ACEOF
8234
8235 fi
8236 done
8237
8238
8239 # Check for thread headers.
8240 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8241 if test "x$ac_cv_header_thread_h" = x""yes; then :
8242   have_thread_h=yes
8243 else
8244   have_thread_h=
8245 fi
8246
8247 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8248 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8249   have_pthread_h=yes
8250 else
8251   have_pthread_h=
8252 fi
8253
8254
8255 # These tests can't be done till we know if we have limits.h.
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8257 $as_echo_n "checking for CHAR_BIT... " >&6; }
8258 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8259   $as_echo_n "(cached) " >&6
8260 else
8261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h.  */
8263 #ifdef HAVE_LIMITS_H
8264 #include <limits.h>
8265 #endif
8266 #ifdef CHAR_BIT
8267 found
8268 #endif
8269 _ACEOF
8270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8271   $EGREP "found" >/dev/null 2>&1; then :
8272   gcc_cv_decl_char_bit=yes
8273 else
8274   gcc_cv_decl_char_bit=no
8275 fi
8276 rm -f conftest*
8277
8278
8279 fi
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8281 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8282 if test $gcc_cv_decl_char_bit = no; then
8283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8284 $as_echo_n "checking number of bits in a byte... " >&6; }
8285 if test "${gcc_cv_c_nbby+set}" = set; then :
8286   $as_echo_n "(cached) " >&6
8287 else
8288   i=8
8289  gcc_cv_c_nbby=
8290  while test $i -lt 65; do
8291    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292 /* end confdefs.h.  */
8293
8294 int
8295 main ()
8296 {
8297 switch(0) {
8298   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8299   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8300   ; }
8301   ;
8302   return 0;
8303 }
8304 _ACEOF
8305 if ac_fn_c_try_compile "$LINENO"; then :
8306   gcc_cv_c_nbby=$i; break
8307 fi
8308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8309    i=`expr $i + 1`
8310  done
8311  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8312
8313 fi
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8315 $as_echo "$gcc_cv_c_nbby" >&6; }
8316 if test $gcc_cv_c_nbby = failed; then
8317   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8318 else
8319
8320 cat >>confdefs.h <<_ACEOF
8321 #define CHAR_BIT $gcc_cv_c_nbby
8322 _ACEOF
8323
8324 fi
8325 fi
8326  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8327 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8328 if test "${ac_cv_c_bigendian+set}" = set; then :
8329   $as_echo_n "(cached) " >&6
8330 else
8331   ac_cv_c_bigendian=unknown
8332     # See if we're dealing with a universal compiler.
8333     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334 /* end confdefs.h.  */
8335 #ifndef __APPLE_CC__
8336                not a universal capable compiler
8337              #endif
8338              typedef int dummy;
8339
8340 _ACEOF
8341 if ac_fn_c_try_compile "$LINENO"; then :
8342
8343         # Check for potential -arch flags.  It is not universal unless
8344         # there are at least two -arch flags with different values.
8345         ac_arch=
8346         ac_prev=
8347         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8348          if test -n "$ac_prev"; then
8349            case $ac_word in
8350              i?86 | x86_64 | ppc | ppc64)
8351                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8352                  ac_arch=$ac_word
8353                else
8354                  ac_cv_c_bigendian=universal
8355                  break
8356                fi
8357                ;;
8358            esac
8359            ac_prev=
8360          elif test "x$ac_word" = "x-arch"; then
8361            ac_prev=arch
8362          fi
8363        done
8364 fi
8365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8366     if test $ac_cv_c_bigendian = unknown; then
8367       # See if sys/param.h defines the BYTE_ORDER macro.
8368       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369 /* end confdefs.h.  */
8370 #include <sys/types.h>
8371              #include <sys/param.h>
8372
8373 int
8374 main ()
8375 {
8376 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8377                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8378                      && LITTLE_ENDIAN)
8379               bogus endian macros
8380              #endif
8381
8382   ;
8383   return 0;
8384 }
8385 _ACEOF
8386 if ac_fn_c_try_compile "$LINENO"; then :
8387   # It does; now see whether it defined to BIG_ENDIAN or not.
8388          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h.  */
8390 #include <sys/types.h>
8391                 #include <sys/param.h>
8392
8393 int
8394 main ()
8395 {
8396 #if BYTE_ORDER != BIG_ENDIAN
8397                  not big endian
8398                 #endif
8399
8400   ;
8401   return 0;
8402 }
8403 _ACEOF
8404 if ac_fn_c_try_compile "$LINENO"; then :
8405   ac_cv_c_bigendian=yes
8406 else
8407   ac_cv_c_bigendian=no
8408 fi
8409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8410 fi
8411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8412     fi
8413     if test $ac_cv_c_bigendian = unknown; then
8414       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8415       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8416 /* end confdefs.h.  */
8417 #include <limits.h>
8418
8419 int
8420 main ()
8421 {
8422 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8423               bogus endian macros
8424              #endif
8425
8426   ;
8427   return 0;
8428 }
8429 _ACEOF
8430 if ac_fn_c_try_compile "$LINENO"; then :
8431   # It does; now see whether it defined to _BIG_ENDIAN or not.
8432          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433 /* end confdefs.h.  */
8434 #include <limits.h>
8435
8436 int
8437 main ()
8438 {
8439 #ifndef _BIG_ENDIAN
8440                  not big endian
8441                 #endif
8442
8443   ;
8444   return 0;
8445 }
8446 _ACEOF
8447 if ac_fn_c_try_compile "$LINENO"; then :
8448   ac_cv_c_bigendian=yes
8449 else
8450   ac_cv_c_bigendian=no
8451 fi
8452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8453 fi
8454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8455     fi
8456     if test $ac_cv_c_bigendian = unknown; then
8457       # Compile a test program.
8458       if test "$cross_compiling" = yes; then :
8459   # Try to guess by grepping values from an object file.
8460          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h.  */
8462 short int ascii_mm[] =
8463                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8464                 short int ascii_ii[] =
8465                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8466                 int use_ascii (int i) {
8467                   return ascii_mm[i] + ascii_ii[i];
8468                 }
8469                 short int ebcdic_ii[] =
8470                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8471                 short int ebcdic_mm[] =
8472                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8473                 int use_ebcdic (int i) {
8474                   return ebcdic_mm[i] + ebcdic_ii[i];
8475                 }
8476                 extern int foo;
8477
8478 int
8479 main ()
8480 {
8481 return use_ascii (foo) == use_ebcdic (foo);
8482   ;
8483   return 0;
8484 }
8485 _ACEOF
8486 if ac_fn_c_try_compile "$LINENO"; then :
8487   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8488               ac_cv_c_bigendian=yes
8489             fi
8490             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8491               if test "$ac_cv_c_bigendian" = unknown; then
8492                 ac_cv_c_bigendian=no
8493               else
8494                 # finding both strings is unlikely to happen, but who knows?
8495                 ac_cv_c_bigendian=unknown
8496               fi
8497             fi
8498 fi
8499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500 else
8501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8502 /* end confdefs.h.  */
8503 $ac_includes_default
8504 int
8505 main ()
8506 {
8507
8508              /* Are we little or big endian?  From Harbison&Steele.  */
8509              union
8510              {
8511                long int l;
8512                char c[sizeof (long int)];
8513              } u;
8514              u.l = 1;
8515              return u.c[sizeof (long int) - 1] == 1;
8516
8517   ;
8518   return 0;
8519 }
8520 _ACEOF
8521 if ac_fn_c_try_run "$LINENO"; then :
8522   ac_cv_c_bigendian=no
8523 else
8524   ac_cv_c_bigendian=yes
8525 fi
8526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8527   conftest.$ac_objext conftest.beam conftest.$ac_ext
8528 fi
8529
8530     fi
8531 fi
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8533 $as_echo "$ac_cv_c_bigendian" >&6; }
8534  case $ac_cv_c_bigendian in #(
8535    yes)
8536      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8537 ;; #(
8538    no)
8539       ;; #(
8540    universal)
8541
8542 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8543
8544      ;; #(
8545    *)
8546      as_fn_error "unknown endianness
8547  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8548  esac
8549
8550
8551 # ----------------------
8552 # Checks for C++ headers
8553 # ----------------------
8554
8555 ac_ext=cpp
8556 ac_cpp='$CXXCPP $CPPFLAGS'
8557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8561 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8562 if test -z "$CXXCPP"; then
8563   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8564   $as_echo_n "(cached) " >&6
8565 else
8566       # Double quotes because CXXCPP needs to be expanded
8567     for CXXCPP in "$CXX -E" "/lib/cpp"
8568     do
8569       ac_preproc_ok=false
8570 for ac_cxx_preproc_warn_flag in '' yes
8571 do
8572   # Use a header file that comes with gcc, so configuring glibc
8573   # with a fresh cross-compiler works.
8574   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8575   # <limits.h> exists even on freestanding compilers.
8576   # On the NeXT, cc -E runs the code through the compiler's parser,
8577   # not just through cpp. "Syntax error" is here to catch this case.
8578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8579 /* end confdefs.h.  */
8580 #ifdef __STDC__
8581 # include <limits.h>
8582 #else
8583 # include <assert.h>
8584 #endif
8585                      Syntax error
8586 _ACEOF
8587 if ac_fn_cxx_try_cpp "$LINENO"; then :
8588
8589 else
8590   # Broken: fails on valid input.
8591 continue
8592 fi
8593 rm -f conftest.err conftest.$ac_ext
8594
8595   # OK, works on sane cases.  Now check whether nonexistent headers
8596   # can be detected and how.
8597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h.  */
8599 #include <ac_nonexistent.h>
8600 _ACEOF
8601 if ac_fn_cxx_try_cpp "$LINENO"; then :
8602   # Broken: success on invalid input.
8603 continue
8604 else
8605   # Passes both tests.
8606 ac_preproc_ok=:
8607 break
8608 fi
8609 rm -f conftest.err conftest.$ac_ext
8610
8611 done
8612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8613 rm -f conftest.err conftest.$ac_ext
8614 if $ac_preproc_ok; then :
8615   break
8616 fi
8617
8618     done
8619     ac_cv_prog_CXXCPP=$CXXCPP
8620
8621 fi
8622   CXXCPP=$ac_cv_prog_CXXCPP
8623 else
8624   ac_cv_prog_CXXCPP=$CXXCPP
8625 fi
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8627 $as_echo "$CXXCPP" >&6; }
8628 ac_preproc_ok=false
8629 for ac_cxx_preproc_warn_flag in '' yes
8630 do
8631   # Use a header file that comes with gcc, so configuring glibc
8632   # with a fresh cross-compiler works.
8633   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8634   # <limits.h> exists even on freestanding compilers.
8635   # On the NeXT, cc -E runs the code through the compiler's parser,
8636   # not just through cpp. "Syntax error" is here to catch this case.
8637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h.  */
8639 #ifdef __STDC__
8640 # include <limits.h>
8641 #else
8642 # include <assert.h>
8643 #endif
8644                      Syntax error
8645 _ACEOF
8646 if ac_fn_cxx_try_cpp "$LINENO"; then :
8647
8648 else
8649   # Broken: fails on valid input.
8650 continue
8651 fi
8652 rm -f conftest.err conftest.$ac_ext
8653
8654   # OK, works on sane cases.  Now check whether nonexistent headers
8655   # can be detected and how.
8656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657 /* end confdefs.h.  */
8658 #include <ac_nonexistent.h>
8659 _ACEOF
8660 if ac_fn_cxx_try_cpp "$LINENO"; then :
8661   # Broken: success on invalid input.
8662 continue
8663 else
8664   # Passes both tests.
8665 ac_preproc_ok=:
8666 break
8667 fi
8668 rm -f conftest.err conftest.$ac_ext
8669
8670 done
8671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8672 rm -f conftest.err conftest.$ac_ext
8673 if $ac_preproc_ok; then :
8674
8675 else
8676   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8679 See \`config.log' for more details." >&5
8680 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8681 See \`config.log' for more details." >&2;}; }
8682 fi
8683
8684 ac_ext=c
8685 ac_cpp='$CPP $CPPFLAGS'
8686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8689
8690
8691 ac_ext=cpp
8692 ac_cpp='$CXXCPP $CPPFLAGS'
8693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8696
8697
8698
8699
8700 for ac_header in unordered_map
8701 do :
8702   ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8703 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8704   cat >>confdefs.h <<_ACEOF
8705 #define HAVE_UNORDERED_MAP 1
8706 _ACEOF
8707
8708 fi
8709 done
8710
8711 for ac_header in tr1/unordered_map
8712 do :
8713   ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8714 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8715   cat >>confdefs.h <<_ACEOF
8716 #define HAVE_TR1_UNORDERED_MAP 1
8717 _ACEOF
8718
8719 fi
8720 done
8721
8722 for ac_header in ext/hash_map
8723 do :
8724   ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8725 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8726   cat >>confdefs.h <<_ACEOF
8727 #define HAVE_EXT_HASH_MAP 1
8728 _ACEOF
8729
8730 fi
8731 done
8732
8733
8734 ac_ext=c
8735 ac_cpp='$CPP $CPPFLAGS'
8736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8739
8740
8741 # --------
8742 # UNSORTED
8743 # --------
8744
8745
8746 # These libraries may be used by collect2.
8747 # We may need a special search path to get them linked.
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8749 $as_echo_n "checking for collect2 libraries... " >&6; }
8750 if test "${gcc_cv_collect2_libs+set}" = set; then :
8751   $as_echo_n "(cached) " >&6
8752 else
8753   save_LIBS="$LIBS"
8754 for libs in '' -lld -lmld \
8755                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8756                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8757 do
8758         LIBS="$libs"
8759         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h.  */
8761
8762 /* Override any GCC internal prototype to avoid an error.
8763    Use char because int might match the return type of a GCC
8764    builtin and then its argument prototype would still apply.  */
8765 #ifdef __cplusplus
8766 extern "C"
8767 #endif
8768 char ldopen ();
8769 int
8770 main ()
8771 {
8772 return ldopen ();
8773   ;
8774   return 0;
8775 }
8776 _ACEOF
8777 if ac_fn_c_try_link "$LINENO"; then :
8778   gcc_cv_collect2_libs="$libs"; break
8779 fi
8780 rm -f core conftest.err conftest.$ac_objext \
8781     conftest$ac_exeext conftest.$ac_ext
8782 done
8783 LIBS="$save_LIBS"
8784 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8785 fi
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8787 $as_echo "$gcc_cv_collect2_libs" >&6; }
8788 case $gcc_cv_collect2_libs in
8789         "none required")        ;;
8790         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8791 esac
8792
8793
8794 # When building Ada code on Alpha, we need exc_resume which is usually in
8795 # -lexc.  So test for it.
8796 save_LIBS="$LIBS"
8797 LIBS=
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8799 $as_echo_n "checking for library containing exc_resume... " >&6; }
8800 if test "${ac_cv_search_exc_resume+set}" = set; then :
8801   $as_echo_n "(cached) " >&6
8802 else
8803   ac_func_search_save_LIBS=$LIBS
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h.  */
8806
8807 /* Override any GCC internal prototype to avoid an error.
8808    Use char because int might match the return type of a GCC
8809    builtin and then its argument prototype would still apply.  */
8810 #ifdef __cplusplus
8811 extern "C"
8812 #endif
8813 char exc_resume ();
8814 int
8815 main ()
8816 {
8817 return exc_resume ();
8818   ;
8819   return 0;
8820 }
8821 _ACEOF
8822 for ac_lib in '' exc; do
8823   if test -z "$ac_lib"; then
8824     ac_res="none required"
8825   else
8826     ac_res=-l$ac_lib
8827     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8828   fi
8829   if ac_fn_c_try_link "$LINENO"; then :
8830   ac_cv_search_exc_resume=$ac_res
8831 fi
8832 rm -f core conftest.err conftest.$ac_objext \
8833     conftest$ac_exeext
8834   if test "${ac_cv_search_exc_resume+set}" = set; then :
8835   break
8836 fi
8837 done
8838 if test "${ac_cv_search_exc_resume+set}" = set; then :
8839
8840 else
8841   ac_cv_search_exc_resume=no
8842 fi
8843 rm conftest.$ac_ext
8844 LIBS=$ac_func_search_save_LIBS
8845 fi
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8847 $as_echo "$ac_cv_search_exc_resume" >&6; }
8848 ac_res=$ac_cv_search_exc_resume
8849 if test "$ac_res" != no; then :
8850   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8851
8852 fi
8853
8854 GNAT_LIBEXC="$LIBS"
8855 LIBS="$save_LIBS"
8856
8857
8858 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
8859 save_LIBS="$LIBS"
8860 LIBS=
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
8862 $as_echo_n "checking for library containing kstat_open... " >&6; }
8863 if test "${ac_cv_search_kstat_open+set}" = set; then :
8864   $as_echo_n "(cached) " >&6
8865 else
8866   ac_func_search_save_LIBS=$LIBS
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h.  */
8869
8870 /* Override any GCC internal prototype to avoid an error.
8871    Use char because int might match the return type of a GCC
8872    builtin and then its argument prototype would still apply.  */
8873 #ifdef __cplusplus
8874 extern "C"
8875 #endif
8876 char kstat_open ();
8877 int
8878 main ()
8879 {
8880 return kstat_open ();
8881   ;
8882   return 0;
8883 }
8884 _ACEOF
8885 for ac_lib in '' kstat; do
8886   if test -z "$ac_lib"; then
8887     ac_res="none required"
8888   else
8889     ac_res=-l$ac_lib
8890     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8891   fi
8892   if ac_fn_c_try_link "$LINENO"; then :
8893   ac_cv_search_kstat_open=$ac_res
8894 fi
8895 rm -f core conftest.err conftest.$ac_objext \
8896     conftest$ac_exeext
8897   if test "${ac_cv_search_kstat_open+set}" = set; then :
8898   break
8899 fi
8900 done
8901 if test "${ac_cv_search_kstat_open+set}" = set; then :
8902
8903 else
8904   ac_cv_search_kstat_open=no
8905 fi
8906 rm conftest.$ac_ext
8907 LIBS=$ac_func_search_save_LIBS
8908 fi
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
8910 $as_echo "$ac_cv_search_kstat_open" >&6; }
8911 ac_res=$ac_cv_search_kstat_open
8912 if test "$ac_res" != no; then :
8913   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8914
8915 fi
8916
8917 EXTRA_GCC_LIBS="$LIBS"
8918 LIBS="$save_LIBS"
8919
8920
8921 # Some systems put ldexp and frexp in libm instead of libc; assume
8922 # they're both in the same place.  jcf-dump needs them.
8923 save_LIBS="$LIBS"
8924 LIBS=
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8926 $as_echo_n "checking for library containing ldexp... " >&6; }
8927 if test "${ac_cv_search_ldexp+set}" = set; then :
8928   $as_echo_n "(cached) " >&6
8929 else
8930   ac_func_search_save_LIBS=$LIBS
8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h.  */
8933
8934 /* Override any GCC internal prototype to avoid an error.
8935    Use char because int might match the return type of a GCC
8936    builtin and then its argument prototype would still apply.  */
8937 #ifdef __cplusplus
8938 extern "C"
8939 #endif
8940 char ldexp ();
8941 int
8942 main ()
8943 {
8944 return ldexp ();
8945   ;
8946   return 0;
8947 }
8948 _ACEOF
8949 for ac_lib in '' m; do
8950   if test -z "$ac_lib"; then
8951     ac_res="none required"
8952   else
8953     ac_res=-l$ac_lib
8954     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8955   fi
8956   if ac_fn_c_try_link "$LINENO"; then :
8957   ac_cv_search_ldexp=$ac_res
8958 fi
8959 rm -f core conftest.err conftest.$ac_objext \
8960     conftest$ac_exeext
8961   if test "${ac_cv_search_ldexp+set}" = set; then :
8962   break
8963 fi
8964 done
8965 if test "${ac_cv_search_ldexp+set}" = set; then :
8966
8967 else
8968   ac_cv_search_ldexp=no
8969 fi
8970 rm conftest.$ac_ext
8971 LIBS=$ac_func_search_save_LIBS
8972 fi
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8974 $as_echo "$ac_cv_search_ldexp" >&6; }
8975 ac_res=$ac_cv_search_ldexp
8976 if test "$ac_res" != no; then :
8977   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8978
8979 fi
8980
8981 LDEXP_LIB="$LIBS"
8982 LIBS="$save_LIBS"
8983
8984
8985 # Use <inttypes.h> only if it exists,
8986 # doesn't clash with <sys/types.h>, and declares intmax_t.
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8988 $as_echo_n "checking for inttypes.h... " >&6; }
8989 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8990   $as_echo_n "(cached) " >&6
8991 else
8992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993 /* end confdefs.h.  */
8994 #include <sys/types.h>
8995 #include <inttypes.h>
8996 int
8997 main ()
8998 {
8999 intmax_t i = -1;
9000   ;
9001   return 0;
9002 }
9003 _ACEOF
9004 if ac_fn_c_try_compile "$LINENO"; then :
9005   gcc_cv_header_inttypes_h=yes
9006 else
9007   gcc_cv_header_inttypes_h=no
9008 fi
9009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9010 fi
9011
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9013 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9014 if test $gcc_cv_header_inttypes_h = yes; then
9015
9016 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9017
9018 fi
9019
9020
9021
9022 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9023         sysconf strsignal getrusage nl_langinfo \
9024         gettimeofday mbstowcs wcswidth mmap setlocale \
9025         clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked madvise
9026 do :
9027   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9028 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9029 eval as_val=\$$as_ac_var
9030    if test "x$as_val" = x""yes; then :
9031   cat >>confdefs.h <<_ACEOF
9032 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9033 _ACEOF
9034
9035 fi
9036 done
9037
9038
9039 if test x$ac_cv_func_mbstowcs = xyes; then
9040   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9041 $as_echo_n "checking whether mbstowcs works... " >&6; }
9042 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9043   $as_echo_n "(cached) " >&6
9044 else
9045       if test "$cross_compiling" = yes; then :
9046   gcc_cv_func_mbstowcs_works=yes
9047 else
9048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h.  */
9050 #include <stdlib.h>
9051 int main()
9052 {
9053   mbstowcs(0, "", 0);
9054   return 0;
9055 }
9056 _ACEOF
9057 if ac_fn_c_try_run "$LINENO"; then :
9058   gcc_cv_func_mbstowcs_works=yes
9059 else
9060   gcc_cv_func_mbstowcs_works=no
9061 fi
9062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9063   conftest.$ac_objext conftest.beam conftest.$ac_ext
9064 fi
9065
9066 fi
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9068 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9069   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9070
9071 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9072
9073   fi
9074 fi
9075
9076 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9077 if test "x$ac_cv_type_ssize_t" = x""yes; then :
9078
9079 else
9080
9081 cat >>confdefs.h <<_ACEOF
9082 #define ssize_t int
9083 _ACEOF
9084
9085 fi
9086
9087 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9088 if test "x$ac_cv_type_caddr_t" = x""yes; then :
9089
9090 else
9091
9092 cat >>confdefs.h <<_ACEOF
9093 #define caddr_t char *
9094 _ACEOF
9095
9096 fi
9097
9098
9099
9100 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9101 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
9102   gcc_header_sys_mman_h=yes
9103 else
9104   gcc_header_sys_mman_h=no
9105 fi
9106
9107 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9108 if test "x$ac_cv_func_mmap" = x""yes; then :
9109   gcc_func_mmap=yes
9110 else
9111   gcc_func_mmap=no
9112 fi
9113
9114 if test "$gcc_header_sys_mman_h" != yes \
9115  || test "$gcc_func_mmap" != yes; then
9116    gcc_cv_func_mmap_file=no
9117    gcc_cv_func_mmap_dev_zero=no
9118    gcc_cv_func_mmap_anon=no
9119 else
9120    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9121 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9122 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9123   $as_echo_n "(cached) " >&6
9124 else
9125   # Add a system to this blacklist if
9126    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9127    # memory area containing the same data that you'd get if you applied
9128    # read() to the same fd.  The only system known to have a problem here
9129    # is VMS, where text files have record structure.
9130    case "$host_os" in
9131      vms* | ultrix*)
9132         gcc_cv_func_mmap_file=no ;;
9133      *)
9134         gcc_cv_func_mmap_file=yes;;
9135    esac
9136 fi
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9138 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9139    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9140 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9141 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9142   $as_echo_n "(cached) " >&6
9143 else
9144   # Add a system to this blacklist if it has mmap() but /dev/zero
9145    # does not exist, or if mmapping /dev/zero does not give anonymous
9146    # zeroed pages with both the following properties:
9147    # 1. If you map N consecutive pages in with one call, and then
9148    #    unmap any subset of those pages, the pages that were not
9149    #    explicitly unmapped remain accessible.
9150    # 2. If you map two adjacent blocks of memory and then unmap them
9151    #    both at once, they must both go away.
9152    # Systems known to be in this category are Windows (all variants),
9153    # VMS, and Darwin.
9154    case "$host_os" in
9155      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9156         gcc_cv_func_mmap_dev_zero=no ;;
9157      *)
9158         gcc_cv_func_mmap_dev_zero=yes;;
9159    esac
9160 fi
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9162 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9163
9164    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9165    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9166 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9167 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9168   $as_echo_n "(cached) " >&6
9169 else
9170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9171 /* end confdefs.h.  */
9172 #include <sys/types.h>
9173 #include <sys/mman.h>
9174 #include <unistd.h>
9175
9176 #ifndef MAP_ANONYMOUS
9177 #define MAP_ANONYMOUS MAP_ANON
9178 #endif
9179
9180 int
9181 main ()
9182 {
9183 int n = MAP_ANONYMOUS;
9184   ;
9185   return 0;
9186 }
9187 _ACEOF
9188 if ac_fn_c_try_compile "$LINENO"; then :
9189   gcc_cv_decl_map_anon=yes
9190 else
9191   gcc_cv_decl_map_anon=no
9192 fi
9193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9194 fi
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9196 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9197
9198    if test $gcc_cv_decl_map_anon = no; then
9199      gcc_cv_func_mmap_anon=no
9200    else
9201      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9202 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9203 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9204   $as_echo_n "(cached) " >&6
9205 else
9206   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9207    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9208    # doesn't give anonymous zeroed pages with the same properties listed
9209    # above for use of /dev/zero.
9210    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9211    case "$host_os" in
9212      vms* | cygwin* | pe | mingw* | sco* | udk* )
9213         gcc_cv_func_mmap_anon=no ;;
9214      *)
9215         gcc_cv_func_mmap_anon=yes;;
9216    esac
9217 fi
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9219 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9220    fi
9221 fi
9222
9223 if test $gcc_cv_func_mmap_file = yes; then
9224
9225 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9226
9227 fi
9228 if test $gcc_cv_func_mmap_dev_zero = yes; then
9229
9230 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9231
9232 fi
9233 if test $gcc_cv_func_mmap_anon = yes; then
9234
9235 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9236
9237 fi
9238
9239
9240 case "${host}" in
9241 *-*-*vms*)
9242   # Under VMS, vfork works very differently than on Unix. The standard test
9243   # won't work, and it isn't easily adaptable. It makes more sense to
9244   # just force it.
9245   ac_cv_func_vfork_works=yes
9246   ;;
9247 esac
9248 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9249 if test "x$ac_cv_type_pid_t" = x""yes; then :
9250
9251 else
9252
9253 cat >>confdefs.h <<_ACEOF
9254 #define pid_t int
9255 _ACEOF
9256
9257 fi
9258
9259 for ac_header in vfork.h
9260 do :
9261   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9262 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9263   cat >>confdefs.h <<_ACEOF
9264 #define HAVE_VFORK_H 1
9265 _ACEOF
9266
9267 fi
9268 done
9269
9270 for ac_func in fork vfork
9271 do :
9272   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9273 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9274 eval as_val=\$$as_ac_var
9275    if test "x$as_val" = x""yes; then :
9276   cat >>confdefs.h <<_ACEOF
9277 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9278 _ACEOF
9279
9280 fi
9281 done
9282
9283 if test "x$ac_cv_func_fork" = xyes; then
9284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9285 $as_echo_n "checking for working fork... " >&6; }
9286 if test "${ac_cv_func_fork_works+set}" = set; then :
9287   $as_echo_n "(cached) " >&6
9288 else
9289   if test "$cross_compiling" = yes; then :
9290   ac_cv_func_fork_works=cross
9291 else
9292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9293 /* end confdefs.h.  */
9294 $ac_includes_default
9295 int
9296 main ()
9297 {
9298
9299           /* By Ruediger Kuhlmann. */
9300           return fork () < 0;
9301
9302   ;
9303   return 0;
9304 }
9305 _ACEOF
9306 if ac_fn_c_try_run "$LINENO"; then :
9307   ac_cv_func_fork_works=yes
9308 else
9309   ac_cv_func_fork_works=no
9310 fi
9311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9312   conftest.$ac_objext conftest.beam conftest.$ac_ext
9313 fi
9314
9315 fi
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9317 $as_echo "$ac_cv_func_fork_works" >&6; }
9318
9319 else
9320   ac_cv_func_fork_works=$ac_cv_func_fork
9321 fi
9322 if test "x$ac_cv_func_fork_works" = xcross; then
9323   case $host in
9324     *-*-amigaos* | *-*-msdosdjgpp*)
9325       # Override, as these systems have only a dummy fork() stub
9326       ac_cv_func_fork_works=no
9327       ;;
9328     *)
9329       ac_cv_func_fork_works=yes
9330       ;;
9331   esac
9332   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9333 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9334 fi
9335 ac_cv_func_vfork_works=$ac_cv_func_vfork
9336 if test "x$ac_cv_func_vfork" = xyes; then
9337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9338 $as_echo_n "checking for working vfork... " >&6; }
9339 if test "${ac_cv_func_vfork_works+set}" = set; then :
9340   $as_echo_n "(cached) " >&6
9341 else
9342   if test "$cross_compiling" = yes; then :
9343   ac_cv_func_vfork_works=cross
9344 else
9345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346 /* end confdefs.h.  */
9347 /* Thanks to Paul Eggert for this test.  */
9348 $ac_includes_default
9349 #include <sys/wait.h>
9350 #ifdef HAVE_VFORK_H
9351 # include <vfork.h>
9352 #endif
9353 /* On some sparc systems, changes by the child to local and incoming
9354    argument registers are propagated back to the parent.  The compiler
9355    is told about this with #include <vfork.h>, but some compilers
9356    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9357    static variable whose address is put into a register that is
9358    clobbered by the vfork.  */
9359 static void
9360 #ifdef __cplusplus
9361 sparc_address_test (int arg)
9362 # else
9363 sparc_address_test (arg) int arg;
9364 #endif
9365 {
9366   static pid_t child;
9367   if (!child) {
9368     child = vfork ();
9369     if (child < 0) {
9370       perror ("vfork");
9371       _exit(2);
9372     }
9373     if (!child) {
9374       arg = getpid();
9375       write(-1, "", 0);
9376       _exit (arg);
9377     }
9378   }
9379 }
9380
9381 int
9382 main ()
9383 {
9384   pid_t parent = getpid ();
9385   pid_t child;
9386
9387   sparc_address_test (0);
9388
9389   child = vfork ();
9390
9391   if (child == 0) {
9392     /* Here is another test for sparc vfork register problems.  This
9393        test uses lots of local variables, at least as many local
9394        variables as main has allocated so far including compiler
9395        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9396        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9397        reuse the register of parent for one of the local variables,
9398        since it will think that parent can't possibly be used any more
9399        in this routine.  Assigning to the local variable will thus
9400        munge parent in the parent process.  */
9401     pid_t
9402       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9403       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9404     /* Convince the compiler that p..p7 are live; otherwise, it might
9405        use the same hardware register for all 8 local variables.  */
9406     if (p != p1 || p != p2 || p != p3 || p != p4
9407         || p != p5 || p != p6 || p != p7)
9408       _exit(1);
9409
9410     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9411        from child file descriptors.  If the child closes a descriptor
9412        before it execs or exits, this munges the parent's descriptor
9413        as well.  Test for this by closing stdout in the child.  */
9414     _exit(close(fileno(stdout)) != 0);
9415   } else {
9416     int status;
9417     struct stat st;
9418
9419     while (wait(&status) != child)
9420       ;
9421     return (
9422          /* Was there some problem with vforking?  */
9423          child < 0
9424
9425          /* Did the child fail?  (This shouldn't happen.)  */
9426          || status
9427
9428          /* Did the vfork/compiler bug occur?  */
9429          || parent != getpid()
9430
9431          /* Did the file descriptor bug occur?  */
9432          || fstat(fileno(stdout), &st) != 0
9433          );
9434   }
9435 }
9436 _ACEOF
9437 if ac_fn_c_try_run "$LINENO"; then :
9438   ac_cv_func_vfork_works=yes
9439 else
9440   ac_cv_func_vfork_works=no
9441 fi
9442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9443   conftest.$ac_objext conftest.beam conftest.$ac_ext
9444 fi
9445
9446 fi
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9448 $as_echo "$ac_cv_func_vfork_works" >&6; }
9449
9450 fi;
9451 if test "x$ac_cv_func_fork_works" = xcross; then
9452   ac_cv_func_vfork_works=$ac_cv_func_vfork
9453   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9454 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9455 fi
9456
9457 if test "x$ac_cv_func_vfork_works" = xyes; then
9458
9459 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9460
9461 else
9462
9463 $as_echo "#define vfork fork" >>confdefs.h
9464
9465 fi
9466 if test "x$ac_cv_func_fork_works" = xyes; then
9467
9468 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9469
9470 fi
9471
9472
9473 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9474 # iconv() prototype.
9475
9476       if test "X$prefix" = "XNONE"; then
9477     acl_final_prefix="$ac_default_prefix"
9478   else
9479     acl_final_prefix="$prefix"
9480   fi
9481   if test "X$exec_prefix" = "XNONE"; then
9482     acl_final_exec_prefix='${prefix}'
9483   else
9484     acl_final_exec_prefix="$exec_prefix"
9485   fi
9486   acl_save_prefix="$prefix"
9487   prefix="$acl_final_prefix"
9488   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9489   prefix="$acl_save_prefix"
9490
9491
9492 # Check whether --with-gnu-ld was given.
9493 if test "${with_gnu_ld+set}" = set; then :
9494   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9495 else
9496   with_gnu_ld=no
9497 fi
9498
9499 # Prepare PATH_SEPARATOR.
9500 # The user is always right.
9501 if test "${PATH_SEPARATOR+set}" != set; then
9502   echo "#! /bin/sh" >conf$$.sh
9503   echo  "exit 0"   >>conf$$.sh
9504   chmod +x conf$$.sh
9505   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9506     PATH_SEPARATOR=';'
9507   else
9508     PATH_SEPARATOR=:
9509   fi
9510   rm -f conf$$.sh
9511 fi
9512 ac_prog=ld
9513 if test "$GCC" = yes; then
9514   # Check if gcc -print-prog-name=ld gives a path.
9515   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9516 $as_echo_n "checking for ld used by GCC... " >&6; }
9517   case $host in
9518   *-*-mingw*)
9519     # gcc leaves a trailing carriage return which upsets mingw
9520     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9521   *)
9522     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9523   esac
9524   case $ac_prog in
9525     # Accept absolute paths.
9526     [\\/]* | [A-Za-z]:[\\/]*)
9527       re_direlt='/[^/][^/]*/\.\./'
9528       # Canonicalize the path of ld
9529       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9530       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9531         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9532       done
9533       test -z "$LD" && LD="$ac_prog"
9534       ;;
9535   "")
9536     # If it fails, then pretend we aren't using GCC.
9537     ac_prog=ld
9538     ;;
9539   *)
9540     # If it is relative, then search for the first ld in PATH.
9541     with_gnu_ld=unknown
9542     ;;
9543   esac
9544 elif test "$with_gnu_ld" = yes; then
9545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9546 $as_echo_n "checking for GNU ld... " >&6; }
9547 else
9548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9549 $as_echo_n "checking for non-GNU ld... " >&6; }
9550 fi
9551 if test "${acl_cv_path_LD+set}" = set; then :
9552   $as_echo_n "(cached) " >&6
9553 else
9554   if test -z "$LD"; then
9555   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9556   for ac_dir in $PATH; do
9557     test -z "$ac_dir" && ac_dir=.
9558     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9559       acl_cv_path_LD="$ac_dir/$ac_prog"
9560       # Check to see if the program is GNU ld.  I'd rather use --version,
9561       # but apparently some GNU ld's only accept -v.
9562       # Break only if it was the GNU/non-GNU ld that we prefer.
9563       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9564         test "$with_gnu_ld" != no && break
9565       else
9566         test "$with_gnu_ld" != yes && break
9567       fi
9568     fi
9569   done
9570   IFS="$ac_save_ifs"
9571 else
9572   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9573 fi
9574 fi
9575
9576 LD="$acl_cv_path_LD"
9577 if test -n "$LD"; then
9578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9579 $as_echo "$LD" >&6; }
9580 else
9581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9582 $as_echo "no" >&6; }
9583 fi
9584 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9586 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9587 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9588   $as_echo_n "(cached) " >&6
9589 else
9590   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9591 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9592   acl_cv_prog_gnu_ld=yes
9593 else
9594   acl_cv_prog_gnu_ld=no
9595 fi
9596 fi
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9598 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9599 with_gnu_ld=$acl_cv_prog_gnu_ld
9600
9601
9602
9603                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9604 $as_echo_n "checking for shared library run path origin... " >&6; }
9605 if test "${acl_cv_rpath+set}" = set; then :
9606   $as_echo_n "(cached) " >&6
9607 else
9608
9609     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9610     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9611     . ./conftest.sh
9612     rm -f ./conftest.sh
9613     acl_cv_rpath=done
9614
9615 fi
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9617 $as_echo "$acl_cv_rpath" >&6; }
9618   wl="$acl_cv_wl"
9619   libext="$acl_cv_libext"
9620   shlibext="$acl_cv_shlibext"
9621   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9622   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9623   hardcode_direct="$acl_cv_hardcode_direct"
9624   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9625     # Check whether --enable-rpath was given.
9626 if test "${enable_rpath+set}" = set; then :
9627   enableval=$enable_rpath; :
9628 else
9629   enable_rpath=yes
9630 fi
9631
9632
9633
9634
9635
9636
9637
9638
9639     use_additional=yes
9640
9641   acl_save_prefix="$prefix"
9642   prefix="$acl_final_prefix"
9643   acl_save_exec_prefix="$exec_prefix"
9644   exec_prefix="$acl_final_exec_prefix"
9645
9646     eval additional_includedir=\"$includedir\"
9647     eval additional_libdir=\"$libdir\"
9648
9649   exec_prefix="$acl_save_exec_prefix"
9650   prefix="$acl_save_prefix"
9651
9652
9653 # Check whether --with-libiconv-prefix was given.
9654 if test "${with_libiconv_prefix+set}" = set; then :
9655   withval=$with_libiconv_prefix;
9656     if test "X$withval" = "Xno"; then
9657       use_additional=no
9658     else
9659       if test "X$withval" = "X"; then
9660
9661   acl_save_prefix="$prefix"
9662   prefix="$acl_final_prefix"
9663   acl_save_exec_prefix="$exec_prefix"
9664   exec_prefix="$acl_final_exec_prefix"
9665
9666           eval additional_includedir=\"$includedir\"
9667           eval additional_libdir=\"$libdir\"
9668
9669   exec_prefix="$acl_save_exec_prefix"
9670   prefix="$acl_save_prefix"
9671
9672       else
9673         additional_includedir="$withval/include"
9674         additional_libdir="$withval/lib"
9675       fi
9676     fi
9677
9678 fi
9679
9680       LIBICONV=
9681   LTLIBICONV=
9682   INCICONV=
9683   rpathdirs=
9684   ltrpathdirs=
9685   names_already_handled=
9686   names_next_round='iconv '
9687   while test -n "$names_next_round"; do
9688     names_this_round="$names_next_round"
9689     names_next_round=
9690     for name in $names_this_round; do
9691       already_handled=
9692       for n in $names_already_handled; do
9693         if test "$n" = "$name"; then
9694           already_handled=yes
9695           break
9696         fi
9697       done
9698       if test -z "$already_handled"; then
9699         names_already_handled="$names_already_handled $name"
9700                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9701         eval value=\"\$HAVE_LIB$uppername\"
9702         if test -n "$value"; then
9703           if test "$value" = yes; then
9704             eval value=\"\$LIB$uppername\"
9705             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9706             eval value=\"\$LTLIB$uppername\"
9707             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9708           else
9709                                     :
9710           fi
9711         else
9712                               found_dir=
9713           found_la=
9714           found_so=
9715           found_a=
9716           if test $use_additional = yes; then
9717             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9718               found_dir="$additional_libdir"
9719               found_so="$additional_libdir/lib$name.$shlibext"
9720               if test -f "$additional_libdir/lib$name.la"; then
9721                 found_la="$additional_libdir/lib$name.la"
9722               fi
9723             else
9724               if test -f "$additional_libdir/lib$name.$libext"; then
9725                 found_dir="$additional_libdir"
9726                 found_a="$additional_libdir/lib$name.$libext"
9727                 if test -f "$additional_libdir/lib$name.la"; then
9728                   found_la="$additional_libdir/lib$name.la"
9729                 fi
9730               fi
9731             fi
9732           fi
9733           if test "X$found_dir" = "X"; then
9734             for x in $LDFLAGS $LTLIBICONV; do
9735
9736   acl_save_prefix="$prefix"
9737   prefix="$acl_final_prefix"
9738   acl_save_exec_prefix="$exec_prefix"
9739   exec_prefix="$acl_final_exec_prefix"
9740   eval x=\"$x\"
9741   exec_prefix="$acl_save_exec_prefix"
9742   prefix="$acl_save_prefix"
9743
9744               case "$x" in
9745                 -L*)
9746                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9747                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9748                     found_dir="$dir"
9749                     found_so="$dir/lib$name.$shlibext"
9750                     if test -f "$dir/lib$name.la"; then
9751                       found_la="$dir/lib$name.la"
9752                     fi
9753                   else
9754                     if test -f "$dir/lib$name.$libext"; then
9755                       found_dir="$dir"
9756                       found_a="$dir/lib$name.$libext"
9757                       if test -f "$dir/lib$name.la"; then
9758                         found_la="$dir/lib$name.la"
9759                       fi
9760                     fi
9761                   fi
9762                   ;;
9763               esac
9764               if test "X$found_dir" != "X"; then
9765                 break
9766               fi
9767             done
9768           fi
9769           if test "X$found_dir" != "X"; then
9770                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9771             if test "X$found_so" != "X"; then
9772                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9773                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9774               else
9775                                                                                 haveit=
9776                 for x in $ltrpathdirs; do
9777                   if test "X$x" = "X$found_dir"; then
9778                     haveit=yes
9779                     break
9780                   fi
9781                 done
9782                 if test -z "$haveit"; then
9783                   ltrpathdirs="$ltrpathdirs $found_dir"
9784                 fi
9785                                 if test "$hardcode_direct" = yes; then
9786                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9787                 else
9788                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9789                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9790                                                             haveit=
9791                     for x in $rpathdirs; do
9792                       if test "X$x" = "X$found_dir"; then
9793                         haveit=yes
9794                         break
9795                       fi
9796                     done
9797                     if test -z "$haveit"; then
9798                       rpathdirs="$rpathdirs $found_dir"
9799                     fi
9800                   else
9801                                                                                 haveit=
9802                     for x in $LDFLAGS $LIBICONV; do
9803
9804   acl_save_prefix="$prefix"
9805   prefix="$acl_final_prefix"
9806   acl_save_exec_prefix="$exec_prefix"
9807   exec_prefix="$acl_final_exec_prefix"
9808   eval x=\"$x\"
9809   exec_prefix="$acl_save_exec_prefix"
9810   prefix="$acl_save_prefix"
9811
9812                       if test "X$x" = "X-L$found_dir"; then
9813                         haveit=yes
9814                         break
9815                       fi
9816                     done
9817                     if test -z "$haveit"; then
9818                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9819                     fi
9820                     if test "$hardcode_minus_L" != no; then
9821                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9822                     else
9823                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9824                     fi
9825                   fi
9826                 fi
9827               fi
9828             else
9829               if test "X$found_a" != "X"; then
9830                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9831               else
9832                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9833               fi
9834             fi
9835                         additional_includedir=
9836             case "$found_dir" in
9837               */lib | */lib/)
9838                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9839                 additional_includedir="$basedir/include"
9840                 ;;
9841             esac
9842             if test "X$additional_includedir" != "X"; then
9843                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9844                 haveit=
9845                 if test "X$additional_includedir" = "X/usr/local/include"; then
9846                   if test -n "$GCC"; then
9847                     case $host_os in
9848                       linux*) haveit=yes;;
9849                     esac
9850                   fi
9851                 fi
9852                 if test -z "$haveit"; then
9853                   for x in $CPPFLAGS $INCICONV; do
9854
9855   acl_save_prefix="$prefix"
9856   prefix="$acl_final_prefix"
9857   acl_save_exec_prefix="$exec_prefix"
9858   exec_prefix="$acl_final_exec_prefix"
9859   eval x=\"$x\"
9860   exec_prefix="$acl_save_exec_prefix"
9861   prefix="$acl_save_prefix"
9862
9863                     if test "X$x" = "X-I$additional_includedir"; then
9864                       haveit=yes
9865                       break
9866                     fi
9867                   done
9868                   if test -z "$haveit"; then
9869                     if test -d "$additional_includedir"; then
9870                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9871                     fi
9872                   fi
9873                 fi
9874               fi
9875             fi
9876                         if test -n "$found_la"; then
9877                                                         save_libdir="$libdir"
9878               case "$found_la" in
9879                 */* | *\\*) . "$found_la" ;;
9880                 *) . "./$found_la" ;;
9881               esac
9882               libdir="$save_libdir"
9883                             for dep in $dependency_libs; do
9884                 case "$dep" in
9885                   -L*)
9886                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9887                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9888                       haveit=
9889                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9890                         if test -n "$GCC"; then
9891                           case $host_os in
9892                             linux*) haveit=yes;;
9893                           esac
9894                         fi
9895                       fi
9896                       if test -z "$haveit"; then
9897                         haveit=
9898                         for x in $LDFLAGS $LIBICONV; do
9899
9900   acl_save_prefix="$prefix"
9901   prefix="$acl_final_prefix"
9902   acl_save_exec_prefix="$exec_prefix"
9903   exec_prefix="$acl_final_exec_prefix"
9904   eval x=\"$x\"
9905   exec_prefix="$acl_save_exec_prefix"
9906   prefix="$acl_save_prefix"
9907
9908                           if test "X$x" = "X-L$additional_libdir"; then
9909                             haveit=yes
9910                             break
9911                           fi
9912                         done
9913                         if test -z "$haveit"; then
9914                           if test -d "$additional_libdir"; then
9915                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9916                           fi
9917                         fi
9918                         haveit=
9919                         for x in $LDFLAGS $LTLIBICONV; do
9920
9921   acl_save_prefix="$prefix"
9922   prefix="$acl_final_prefix"
9923   acl_save_exec_prefix="$exec_prefix"
9924   exec_prefix="$acl_final_exec_prefix"
9925   eval x=\"$x\"
9926   exec_prefix="$acl_save_exec_prefix"
9927   prefix="$acl_save_prefix"
9928
9929                           if test "X$x" = "X-L$additional_libdir"; then
9930                             haveit=yes
9931                             break
9932                           fi
9933                         done
9934                         if test -z "$haveit"; then
9935                           if test -d "$additional_libdir"; then
9936                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9937                           fi
9938                         fi
9939                       fi
9940                     fi
9941                     ;;
9942                   -R*)
9943                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9944                     if test "$enable_rpath" != no; then
9945                                                                   haveit=
9946                       for x in $rpathdirs; do
9947                         if test "X$x" = "X$dir"; then
9948                           haveit=yes
9949                           break
9950                         fi
9951                       done
9952                       if test -z "$haveit"; then
9953                         rpathdirs="$rpathdirs $dir"
9954                       fi
9955                                                                   haveit=
9956                       for x in $ltrpathdirs; do
9957                         if test "X$x" = "X$dir"; then
9958                           haveit=yes
9959                           break
9960                         fi
9961                       done
9962                       if test -z "$haveit"; then
9963                         ltrpathdirs="$ltrpathdirs $dir"
9964                       fi
9965                     fi
9966                     ;;
9967                   -l*)
9968                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9969                     ;;
9970                   *.la)
9971                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9972                     ;;
9973                   *)
9974                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9975                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9976                     ;;
9977                 esac
9978               done
9979             fi
9980           else
9981                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9982             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9983           fi
9984         fi
9985       fi
9986     done
9987   done
9988   if test "X$rpathdirs" != "X"; then
9989     if test -n "$hardcode_libdir_separator"; then
9990                         alldirs=
9991       for found_dir in $rpathdirs; do
9992         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9993       done
9994             acl_save_libdir="$libdir"
9995       libdir="$alldirs"
9996       eval flag=\"$hardcode_libdir_flag_spec\"
9997       libdir="$acl_save_libdir"
9998       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9999     else
10000             for found_dir in $rpathdirs; do
10001         acl_save_libdir="$libdir"
10002         libdir="$found_dir"
10003         eval flag=\"$hardcode_libdir_flag_spec\"
10004         libdir="$acl_save_libdir"
10005         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10006       done
10007     fi
10008   fi
10009   if test "X$ltrpathdirs" != "X"; then
10010             for found_dir in $ltrpathdirs; do
10011       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10012     done
10013   fi
10014
10015
10016 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then :
10017   ac_ext=cpp
10018 ac_cpp='$CXXCPP $CPPFLAGS'
10019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10022
10023
10024
10025
10026
10027
10028           am_save_CPPFLAGS="$CPPFLAGS"
10029
10030   for element in $INCICONV; do
10031     haveit=
10032     for x in $CPPFLAGS; do
10033
10034   acl_save_prefix="$prefix"
10035   prefix="$acl_final_prefix"
10036   acl_save_exec_prefix="$exec_prefix"
10037   exec_prefix="$acl_final_exec_prefix"
10038   eval x=\"$x\"
10039   exec_prefix="$acl_save_exec_prefix"
10040   prefix="$acl_save_prefix"
10041
10042       if test "X$x" = "X$element"; then
10043         haveit=yes
10044         break
10045       fi
10046     done
10047     if test -z "$haveit"; then
10048       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10049     fi
10050   done
10051
10052
10053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10054 $as_echo_n "checking for iconv... " >&6; }
10055 if test "${am_cv_func_iconv+set}" = set; then :
10056   $as_echo_n "(cached) " >&6
10057 else
10058
10059     am_cv_func_iconv="no, consider installing GNU libiconv"
10060     am_cv_lib_iconv=no
10061     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h.  */
10063 #include <stdlib.h>
10064 #include <iconv.h>
10065 int
10066 main ()
10067 {
10068 iconv_t cd = iconv_open("","");
10069        iconv(cd,NULL,NULL,NULL,NULL);
10070        iconv_close(cd);
10071   ;
10072   return 0;
10073 }
10074 _ACEOF
10075 if ac_fn_cxx_try_link "$LINENO"; then :
10076   am_cv_func_iconv=yes
10077 fi
10078 rm -f core conftest.err conftest.$ac_objext \
10079     conftest$ac_exeext conftest.$ac_ext
10080     if test "$am_cv_func_iconv" != yes; then
10081       am_save_LIBS="$LIBS"
10082       LIBS="$LIBS $LIBICONV"
10083       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10084 /* end confdefs.h.  */
10085 #include <stdlib.h>
10086 #include <iconv.h>
10087 int
10088 main ()
10089 {
10090 iconv_t cd = iconv_open("","");
10091          iconv(cd,NULL,NULL,NULL,NULL);
10092          iconv_close(cd);
10093   ;
10094   return 0;
10095 }
10096 _ACEOF
10097 if ac_fn_cxx_try_link "$LINENO"; then :
10098   am_cv_lib_iconv=yes
10099         am_cv_func_iconv=yes
10100 fi
10101 rm -f core conftest.err conftest.$ac_objext \
10102     conftest$ac_exeext conftest.$ac_ext
10103       LIBS="$am_save_LIBS"
10104     fi
10105
10106 fi
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10108 $as_echo "$am_cv_func_iconv" >&6; }
10109   if test "$am_cv_func_iconv" = yes; then
10110
10111 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10112
10113   fi
10114   if test "$am_cv_lib_iconv" = yes; then
10115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10116 $as_echo_n "checking how to link with libiconv... " >&6; }
10117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10118 $as_echo "$LIBICONV" >&6; }
10119   else
10120             CPPFLAGS="$am_save_CPPFLAGS"
10121     LIBICONV=
10122     LTLIBICONV=
10123   fi
10124
10125
10126
10127   if test "$am_cv_func_iconv" = yes; then
10128     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10129 $as_echo_n "checking for iconv declaration... " >&6; }
10130     if test "${am_cv_proto_iconv+set}" = set; then :
10131   $as_echo_n "(cached) " >&6
10132 else
10133
10134       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135 /* end confdefs.h.  */
10136
10137 #include <stdlib.h>
10138 #include <iconv.h>
10139 extern
10140 #ifdef __cplusplus
10141 "C"
10142 #endif
10143 #if defined(__STDC__) || defined(__cplusplus)
10144 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10145 #else
10146 size_t iconv();
10147 #endif
10148
10149 int
10150 main ()
10151 {
10152
10153   ;
10154   return 0;
10155 }
10156 _ACEOF
10157 if ac_fn_cxx_try_compile "$LINENO"; then :
10158   am_cv_proto_iconv_arg1=""
10159 else
10160   am_cv_proto_iconv_arg1="const"
10161 fi
10162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10163       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);"
10164 fi
10165
10166     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10167     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10168          }$am_cv_proto_iconv" >&5
10169 $as_echo "${ac_t:-
10170          }$am_cv_proto_iconv" >&6; }
10171
10172 cat >>confdefs.h <<_ACEOF
10173 #define ICONV_CONST $am_cv_proto_iconv_arg1
10174 _ACEOF
10175
10176   fi
10177
10178    ac_ext=c
10179 ac_cpp='$CPP $CPPFLAGS'
10180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10183
10184 else
10185
10186
10187
10188
10189
10190           am_save_CPPFLAGS="$CPPFLAGS"
10191
10192   for element in $INCICONV; do
10193     haveit=
10194     for x in $CPPFLAGS; do
10195
10196   acl_save_prefix="$prefix"
10197   prefix="$acl_final_prefix"
10198   acl_save_exec_prefix="$exec_prefix"
10199   exec_prefix="$acl_final_exec_prefix"
10200   eval x=\"$x\"
10201   exec_prefix="$acl_save_exec_prefix"
10202   prefix="$acl_save_prefix"
10203
10204       if test "X$x" = "X$element"; then
10205         haveit=yes
10206         break
10207       fi
10208     done
10209     if test -z "$haveit"; then
10210       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10211     fi
10212   done
10213
10214
10215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10216 $as_echo_n "checking for iconv... " >&6; }
10217 if test "${am_cv_func_iconv+set}" = set; then :
10218   $as_echo_n "(cached) " >&6
10219 else
10220
10221     am_cv_func_iconv="no, consider installing GNU libiconv"
10222     am_cv_lib_iconv=no
10223     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h.  */
10225 #include <stdlib.h>
10226 #include <iconv.h>
10227 int
10228 main ()
10229 {
10230 iconv_t cd = iconv_open("","");
10231        iconv(cd,NULL,NULL,NULL,NULL);
10232        iconv_close(cd);
10233   ;
10234   return 0;
10235 }
10236 _ACEOF
10237 if ac_fn_c_try_link "$LINENO"; then :
10238   am_cv_func_iconv=yes
10239 fi
10240 rm -f core conftest.err conftest.$ac_objext \
10241     conftest$ac_exeext conftest.$ac_ext
10242     if test "$am_cv_func_iconv" != yes; then
10243       am_save_LIBS="$LIBS"
10244       LIBS="$LIBS $LIBICONV"
10245       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10246 /* end confdefs.h.  */
10247 #include <stdlib.h>
10248 #include <iconv.h>
10249 int
10250 main ()
10251 {
10252 iconv_t cd = iconv_open("","");
10253          iconv(cd,NULL,NULL,NULL,NULL);
10254          iconv_close(cd);
10255   ;
10256   return 0;
10257 }
10258 _ACEOF
10259 if ac_fn_c_try_link "$LINENO"; then :
10260   am_cv_lib_iconv=yes
10261         am_cv_func_iconv=yes
10262 fi
10263 rm -f core conftest.err conftest.$ac_objext \
10264     conftest$ac_exeext conftest.$ac_ext
10265       LIBS="$am_save_LIBS"
10266     fi
10267
10268 fi
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10270 $as_echo "$am_cv_func_iconv" >&6; }
10271   if test "$am_cv_func_iconv" = yes; then
10272
10273 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10274
10275   fi
10276   if test "$am_cv_lib_iconv" = yes; then
10277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10278 $as_echo_n "checking how to link with libiconv... " >&6; }
10279     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10280 $as_echo "$LIBICONV" >&6; }
10281   else
10282             CPPFLAGS="$am_save_CPPFLAGS"
10283     LIBICONV=
10284     LTLIBICONV=
10285   fi
10286
10287
10288
10289   if test "$am_cv_func_iconv" = yes; then
10290     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10291 $as_echo_n "checking for iconv declaration... " >&6; }
10292     if test "${am_cv_proto_iconv+set}" = set; then :
10293   $as_echo_n "(cached) " >&6
10294 else
10295
10296       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297 /* end confdefs.h.  */
10298
10299 #include <stdlib.h>
10300 #include <iconv.h>
10301 extern
10302 #ifdef __cplusplus
10303 "C"
10304 #endif
10305 #if defined(__STDC__) || defined(__cplusplus)
10306 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10307 #else
10308 size_t iconv();
10309 #endif
10310
10311 int
10312 main ()
10313 {
10314
10315   ;
10316   return 0;
10317 }
10318 _ACEOF
10319 if ac_fn_c_try_compile "$LINENO"; then :
10320   am_cv_proto_iconv_arg1=""
10321 else
10322   am_cv_proto_iconv_arg1="const"
10323 fi
10324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10325       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);"
10326 fi
10327
10328     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10330          }$am_cv_proto_iconv" >&5
10331 $as_echo "${ac_t:-
10332          }$am_cv_proto_iconv" >&6; }
10333
10334 cat >>confdefs.h <<_ACEOF
10335 #define ICONV_CONST $am_cv_proto_iconv_arg1
10336 _ACEOF
10337
10338   fi
10339
10340 fi
10341
10342 # Until we have in-tree GNU iconv:
10343 LIBICONV_DEP=
10344
10345
10346
10347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10348 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10349 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10350   $as_echo_n "(cached) " >&6
10351 else
10352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10353 /* end confdefs.h.  */
10354 #include <locale.h>
10355 int
10356 main ()
10357 {
10358 return LC_MESSAGES
10359   ;
10360   return 0;
10361 }
10362 _ACEOF
10363 if ac_fn_c_try_link "$LINENO"; then :
10364   am_cv_val_LC_MESSAGES=yes
10365 else
10366   am_cv_val_LC_MESSAGES=no
10367 fi
10368 rm -f core conftest.err conftest.$ac_objext \
10369     conftest$ac_exeext conftest.$ac_ext
10370 fi
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10372 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10373   if test $am_cv_val_LC_MESSAGES = yes; then
10374
10375 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10376
10377   fi
10378
10379
10380
10381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10382 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10383 if test "${am_cv_langinfo_codeset+set}" = set; then :
10384   $as_echo_n "(cached) " >&6
10385 else
10386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h.  */
10388 #include <langinfo.h>
10389 int
10390 main ()
10391 {
10392 char* cs = nl_langinfo(CODESET);
10393   ;
10394   return 0;
10395 }
10396 _ACEOF
10397 if ac_fn_c_try_link "$LINENO"; then :
10398   am_cv_langinfo_codeset=yes
10399 else
10400   am_cv_langinfo_codeset=no
10401 fi
10402 rm -f core conftest.err conftest.$ac_objext \
10403     conftest$ac_exeext conftest.$ac_ext
10404
10405 fi
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10407 $as_echo "$am_cv_langinfo_codeset" >&6; }
10408   if test $am_cv_langinfo_codeset = yes; then
10409
10410 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10411
10412   fi
10413
10414
10415 # We will need to find libiberty.h and ansidecl.h
10416 saved_CFLAGS="$CFLAGS"
10417 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10418 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10419         strsignal strstr strverscmp \
10420         errno snprintf vsnprintf vasprintf malloc realloc calloc \
10421         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
10422 do
10423   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10425 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10426 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10427   $as_echo_n "(cached) " >&6
10428 else
10429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h.  */
10431 #undef $ac_tr_decl
10432 #define $ac_tr_decl 1
10433
10434 #include "ansidecl.h"
10435 #include "system.h"
10436
10437 int
10438 main ()
10439 {
10440 #ifndef $ac_func
10441 char *(*pfn) = (char *(*)) $ac_func ;
10442 #endif
10443   ;
10444   return 0;
10445 }
10446 _ACEOF
10447 if ac_fn_c_try_compile "$LINENO"; then :
10448   eval "gcc_cv_have_decl_$ac_func=yes"
10449 else
10450   eval "gcc_cv_have_decl_$ac_func=no"
10451 fi
10452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10453 fi
10454
10455 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10457 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10458 #define $ac_tr_decl 1
10459 _ACEOF
10460
10461 else
10462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10463 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10464 #define $ac_tr_decl 0
10465 _ACEOF
10466
10467 fi
10468
10469 done
10470
10471
10472 for ac_func in getrlimit setrlimit getrusage
10473 do
10474   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10476 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10477 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10478   $as_echo_n "(cached) " >&6
10479 else
10480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481 /* end confdefs.h.  */
10482 #undef $ac_tr_decl
10483 #define $ac_tr_decl 1
10484
10485 #include "ansidecl.h"
10486 #include "system.h"
10487 #ifdef HAVE_SYS_RESOURCE_H
10488 #include <sys/resource.h>
10489 #endif
10490
10491
10492 int
10493 main ()
10494 {
10495 #ifndef $ac_func
10496 char *(*pfn) = (char *(*)) $ac_func ;
10497 #endif
10498   ;
10499   return 0;
10500 }
10501 _ACEOF
10502 if ac_fn_c_try_compile "$LINENO"; then :
10503   eval "gcc_cv_have_decl_$ac_func=yes"
10504 else
10505   eval "gcc_cv_have_decl_$ac_func=no"
10506 fi
10507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10508 fi
10509
10510 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10512 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10513 #define $ac_tr_decl 1
10514 _ACEOF
10515
10516 else
10517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10518 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10519 #define $ac_tr_decl 0
10520 _ACEOF
10521
10522 fi
10523
10524 done
10525
10526
10527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10528 /* end confdefs.h.  */
10529
10530 #include "ansidecl.h"
10531 #include "system.h"
10532 #ifdef HAVE_SYS_RESOURCE_H
10533 #include <sys/resource.h>
10534 #endif
10535
10536 int
10537 main ()
10538 {
10539 rlim_t l = 0;
10540   ;
10541   return 0;
10542 }
10543 _ACEOF
10544 if ac_fn_c_try_compile "$LINENO"; then :
10545
10546 else
10547
10548 $as_echo "#define rlim_t long" >>confdefs.h
10549
10550 fi
10551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10552
10553 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10554 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
10555 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10556 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10557 for ac_func in ldgetname
10558 do
10559   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10561 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10562 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10563   $as_echo_n "(cached) " >&6
10564 else
10565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566 /* end confdefs.h.  */
10567 #undef $ac_tr_decl
10568 #define $ac_tr_decl 1
10569
10570 #include "ansidecl.h"
10571 #include "system.h"
10572 #ifdef HAVE_LDFCN_H
10573 #undef FREAD
10574 #undef FWRITE
10575 #include <ldfcn.h>
10576 #endif
10577
10578
10579 int
10580 main ()
10581 {
10582 #ifndef $ac_func
10583 char *(*pfn) = (char *(*)) $ac_func ;
10584 #endif
10585   ;
10586   return 0;
10587 }
10588 _ACEOF
10589 if ac_fn_c_try_compile "$LINENO"; then :
10590   eval "gcc_cv_have_decl_$ac_func=yes"
10591 else
10592   eval "gcc_cv_have_decl_$ac_func=no"
10593 fi
10594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10595 fi
10596
10597 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10599 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10600 #define $ac_tr_decl 1
10601 _ACEOF
10602
10603 else
10604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10605 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10606 #define $ac_tr_decl 0
10607 _ACEOF
10608
10609 fi
10610
10611 done
10612
10613
10614 for ac_func in times
10615 do
10616   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10618 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10619 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10620   $as_echo_n "(cached) " >&6
10621 else
10622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h.  */
10624 #undef $ac_tr_decl
10625 #define $ac_tr_decl 1
10626
10627 #include "ansidecl.h"
10628 #include "system.h"
10629 #ifdef HAVE_SYS_TIMES_H
10630 #include <sys/times.h>
10631 #endif
10632
10633
10634 int
10635 main ()
10636 {
10637 #ifndef $ac_func
10638 char *(*pfn) = (char *(*)) $ac_func ;
10639 #endif
10640   ;
10641   return 0;
10642 }
10643 _ACEOF
10644 if ac_fn_c_try_compile "$LINENO"; then :
10645   eval "gcc_cv_have_decl_$ac_func=yes"
10646 else
10647   eval "gcc_cv_have_decl_$ac_func=no"
10648 fi
10649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10650 fi
10651
10652 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10654 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10655 #define $ac_tr_decl 1
10656 _ACEOF
10657
10658 else
10659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10660 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10661 #define $ac_tr_decl 0
10662 _ACEOF
10663
10664 fi
10665
10666 done
10667
10668
10669 for ac_func in sigaltstack
10670 do
10671   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10673 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10674 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10675   $as_echo_n "(cached) " >&6
10676 else
10677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10678 /* end confdefs.h.  */
10679 #undef $ac_tr_decl
10680 #define $ac_tr_decl 1
10681
10682 #include "ansidecl.h"
10683 #include "system.h"
10684 #include <signal.h>
10685
10686
10687 int
10688 main ()
10689 {
10690 #ifndef $ac_func
10691 char *(*pfn) = (char *(*)) $ac_func ;
10692 #endif
10693   ;
10694   return 0;
10695 }
10696 _ACEOF
10697 if ac_fn_c_try_compile "$LINENO"; then :
10698   eval "gcc_cv_have_decl_$ac_func=yes"
10699 else
10700   eval "gcc_cv_have_decl_$ac_func=no"
10701 fi
10702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10703 fi
10704
10705 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10707 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10708 #define $ac_tr_decl 1
10709 _ACEOF
10710
10711 else
10712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10713 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10714 #define $ac_tr_decl 0
10715 _ACEOF
10716
10717 fi
10718
10719 done
10720
10721
10722 # More time-related stuff.
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10724 $as_echo_n "checking for struct tms... " >&6; }
10725 if test "${ac_cv_struct_tms+set}" = set; then :
10726   $as_echo_n "(cached) " >&6
10727 else
10728
10729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730 /* end confdefs.h.  */
10731
10732 #include "ansidecl.h"
10733 #include "system.h"
10734 #ifdef HAVE_SYS_TIMES_H
10735 #include <sys/times.h>
10736 #endif
10737
10738 int
10739 main ()
10740 {
10741 struct tms tms;
10742   ;
10743   return 0;
10744 }
10745 _ACEOF
10746 if ac_fn_c_try_compile "$LINENO"; then :
10747   ac_cv_struct_tms=yes
10748 else
10749   ac_cv_struct_tms=no
10750 fi
10751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10752 fi
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10754 $as_echo "$ac_cv_struct_tms" >&6; }
10755 if test $ac_cv_struct_tms = yes; then
10756
10757 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10758
10759 fi
10760
10761 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10762 # revisit after autoconf 2.50.
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10764 $as_echo_n "checking for clock_t... " >&6; }
10765 if test "${gcc_cv_type_clock_t+set}" = set; then :
10766   $as_echo_n "(cached) " >&6
10767 else
10768
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h.  */
10771
10772 #include "ansidecl.h"
10773 #include "system.h"
10774
10775 int
10776 main ()
10777 {
10778 clock_t x;
10779   ;
10780   return 0;
10781 }
10782 _ACEOF
10783 if ac_fn_c_try_compile "$LINENO"; then :
10784   gcc_cv_type_clock_t=yes
10785 else
10786   gcc_cv_type_clock_t=no
10787 fi
10788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10789 fi
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10791 $as_echo "$gcc_cv_type_clock_t" >&6; }
10792 if test $gcc_cv_type_clock_t = yes; then
10793
10794 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10795
10796 fi
10797
10798 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10799 CFLAGS="$saved_CFLAGS"
10800
10801 # Check whether --enable-initfini-array was given.
10802 if test "${enable_initfini_array+set}" = set; then :
10803   enableval=$enable_initfini_array;
10804 else
10805
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10807 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10808 if test "${gcc_cv_initfini_array+set}" = set; then :
10809   $as_echo_n "(cached) " >&6
10810 else
10811     if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10812     if test "$cross_compiling" = yes; then :
10813   gcc_cv_initfini_array=no
10814 else
10815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h.  */
10817
10818 #ifndef __ELF__
10819 #error Not an ELF OS
10820 #endif
10821 #ifdef __ia64__
10822 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10823    if it can be used.  */
10824 static int x = -1;
10825 int main (void) { return x; }
10826 int foo (void) { x = 0; }
10827 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10828 #else
10829 extern void abort ();
10830 static int count;
10831
10832 static void
10833 init1005 ()
10834 {
10835   if (count != 0)
10836     abort ();
10837   count = 1005;
10838 }
10839 void (*const init_array1005) ()
10840   __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10841   = { init1005 };
10842 static void
10843 fini1005 ()
10844 {
10845   if (count != 1005)
10846     abort ();
10847 }
10848 void (*const fini_array1005) ()
10849   __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10850   = { fini1005 };
10851
10852 static void
10853 ctor1007 ()
10854 {
10855   if (count != 1005)
10856     abort ();
10857   count = 1007;
10858 }
10859 void (*const ctors1007) ()
10860   __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10861   = { ctor1007 };
10862 static void
10863 dtor1007 ()
10864 {
10865   if (count != 1007)
10866     abort ();
10867   count = 1005;
10868 }
10869 void (*const dtors1007) ()
10870   __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
10871   = { dtor1007 };
10872
10873 static void
10874 init65530 ()
10875 {
10876   if (count != 1007)
10877     abort ();
10878   count = 65530;
10879 }
10880 void (*const init_array65530) ()
10881   __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
10882   = { init65530 };
10883 static void
10884 fini65530 ()
10885 {
10886   if (count != 65530)
10887     abort ();
10888   count = 1007;
10889 }
10890 void (*const fini_array65530) ()
10891   __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
10892   = { fini65530 };
10893
10894 static void
10895 ctor65535 ()
10896 {
10897   if (count != 65530)
10898     abort ();
10899   count = 65535;
10900 }
10901 void (*const ctors65535) ()
10902   __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
10903   = { ctor65535 };
10904 static void
10905 dtor65535 ()
10906 {
10907   if (count != 65535)
10908     abort ();
10909   count = 65530;
10910 }
10911 void (*const dtors65535) ()
10912   __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
10913   = { dtor65535 };
10914
10915 int
10916 main ()
10917 {
10918   if (count != 65535)
10919     abort ();
10920   return 0;
10921 }
10922 #endif
10923
10924 _ACEOF
10925 if ac_fn_c_try_run "$LINENO"; then :
10926   gcc_cv_initfini_array=yes
10927 else
10928   gcc_cv_initfini_array=no
10929 fi
10930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10931   conftest.$ac_objext conftest.beam conftest.$ac_ext
10932 fi
10933
10934    else
10935      { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
10936 $as_echo_n "checking cross compile... guessing... " >&6; }
10937      gcc_cv_initfini_array=no
10938    fi
10939 fi
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10941 $as_echo "$gcc_cv_initfini_array" >&6; }
10942   enable_initfini_array=$gcc_cv_initfini_array
10943
10944 fi
10945
10946 if test $enable_initfini_array = yes; then
10947
10948 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10949
10950 fi
10951
10952 # mkdir takes a single argument on some systems.
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10954 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10955 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10956   $as_echo_n "(cached) " >&6
10957 else
10958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10959 /* end confdefs.h.  */
10960
10961 #include <sys/types.h>
10962 #ifdef HAVE_SYS_STAT_H
10963 # include <sys/stat.h>
10964 #endif
10965 #ifdef HAVE_UNISTD_H
10966 # include <unistd.h>
10967 #endif
10968 #ifdef HAVE_DIRECT_H
10969 # include <direct.h>
10970 #endif
10971 int
10972 main ()
10973 {
10974 mkdir ("foo", 0);
10975   ;
10976   return 0;
10977 }
10978 _ACEOF
10979 if ac_fn_c_try_compile "$LINENO"; then :
10980   gcc_cv_mkdir_takes_one_arg=no
10981 else
10982   gcc_cv_mkdir_takes_one_arg=yes
10983 fi
10984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10985 fi
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10987 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10988 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10989
10990 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10991
10992 fi
10993
10994
10995 # File extensions
10996 manext='.1'
10997 objext='.o'
10998
10999
11000
11001 # With Setjmp/Longjmp based exception handling.
11002 # Check whether --enable-sjlj-exceptions was given.
11003 if test "${enable_sjlj_exceptions+set}" = set; then :
11004   enableval=$enable_sjlj_exceptions; case $target in
11005   *-*-hpux10*)
11006     if test $enableval != yes; then
11007       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11008 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11009       enableval=yes
11010     fi
11011     ;;
11012 esac
11013 force_sjlj_exceptions=yes
11014 else
11015   case $target in
11016   *-*-hpux10*)
11017     force_sjlj_exceptions=yes
11018     enableval=yes
11019     ;;
11020   *)
11021     force_sjlj_exceptions=no
11022     ;;
11023 esac
11024 fi
11025
11026 if test $force_sjlj_exceptions = yes; then
11027   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11028
11029 cat >>confdefs.h <<_ACEOF
11030 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11031 _ACEOF
11032
11033 fi
11034
11035 # --------------------------------------------------------
11036 # Build, host, and target specific configuration fragments
11037 # --------------------------------------------------------
11038
11039 # Collect build-machine-specific information.
11040 . ${srcdir}/config.build
11041
11042 # Collect host-machine-specific information.
11043 . ${srcdir}/config.host
11044
11045 target_gtfiles=
11046
11047 # Collect target-machine-specific information.
11048 . ${srcdir}/config.gcc
11049
11050 extra_objs="${host_extra_objs} ${extra_objs}"
11051 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11052
11053 # Default the target-machine variables that were not explicitly set.
11054 if test x"$tm_file" = x
11055 then tm_file=$cpu_type/$cpu_type.h; fi
11056
11057 if test x"$extra_headers" = x
11058 then extra_headers=; fi
11059
11060 if test x$md_file = x
11061 then md_file=$cpu_type/$cpu_type.md; fi
11062
11063 if test x$out_file = x
11064 then out_file=$cpu_type/$cpu_type.c; fi
11065
11066 if test x"$tmake_file" = x
11067 then tmake_file=$cpu_type/t-$cpu_type
11068 fi
11069
11070 if test x"$dwarf2" = xyes
11071 then tm_file="$tm_file tm-dwarf2.h"
11072 fi
11073
11074 # Say what files are being used for the output code and MD file.
11075 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11076 echo "Using \`$srcdir/config/$md_file' as machine description file."
11077
11078 # If any of the xm_file variables contain nonexistent files, warn
11079 # about them and drop them.
11080
11081 bx=
11082 for x in $build_xm_file; do
11083   if    test -f $srcdir/config/$x
11084   then      bx="$bx $x"
11085   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11086 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11087   fi
11088 done
11089 build_xm_file="$bx"
11090
11091 hx=
11092 for x in $host_xm_file; do
11093   if    test -f $srcdir/config/$x
11094   then      hx="$hx $x"
11095   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11096 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11097   fi
11098 done
11099 host_xm_file="$hx"
11100
11101 tx=
11102 for x in $xm_file; do
11103   if    test -f $srcdir/config/$x
11104   then      tx="$tx $x"
11105   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11106 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11107   fi
11108 done
11109 xm_file="$tx"
11110
11111 count=a
11112 for f in $tm_file; do
11113         count=${count}x
11114 done
11115 if test $count = ax; then
11116         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11117 else
11118         echo "Using the following target machine macro files:"
11119         for f in $tm_file; do
11120                 echo "  $srcdir/config/$f"
11121         done
11122 fi
11123
11124 if test x$need_64bit_hwint = xyes; then
11125
11126 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
11127
11128 fi
11129
11130 if test x$use_long_long_for_widest_fast_int = xyes; then
11131
11132 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11133
11134 fi
11135
11136 count=a
11137 for f in $host_xm_file; do
11138         count=${count}x
11139 done
11140 if test $count = a; then
11141         :
11142 elif test $count = ax; then
11143         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11144 else
11145         echo "Using the following host machine macro files:"
11146         for f in $host_xm_file; do
11147                 echo "  $srcdir/config/$f"
11148         done
11149 fi
11150 echo "Using ${out_host_hook_obj} for host machine hooks."
11151
11152 if test "$host_xm_file" != "$build_xm_file"; then
11153         count=a
11154         for f in $build_xm_file; do
11155                 count=${count}x
11156         done
11157         if test $count = a; then
11158                 :
11159         elif test $count = ax; then
11160                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11161         else
11162                 echo "Using the following build machine macro files:"
11163                 for f in $build_xm_file; do
11164                         echo "  $srcdir/config/$f"
11165                 done
11166         fi
11167 fi
11168
11169 if test -n "$configured_native_system_header_dir"; then
11170   native_system_header_dir=$configured_native_system_header_dir
11171 fi
11172 NATIVE_SYSTEM_HEADER_DIR="$native_system_header_dir"
11173
11174
11175 case ${host} in
11176   powerpc*-*-darwin*)
11177     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11178 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11179 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11180   $as_echo_n "(cached) " >&6
11181 else
11182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183 /* end confdefs.h.  */
11184
11185 #include <sys/cdefs.h>
11186 #include <sys/signal.h>
11187 #include <ucontext.h>
11188 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11189
11190 _ACEOF
11191 if ac_fn_c_try_compile "$LINENO"; then :
11192   gcc_cv_mcontext_underscores=no
11193 else
11194   gcc_cv_mcontext_underscores=yes
11195 fi
11196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11197 fi
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11199 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11200       if test $gcc_cv_mcontext_underscores = yes; then
11201
11202 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11203
11204       fi
11205     ;;
11206 esac
11207
11208 # ---------
11209 # Threading
11210 # ---------
11211
11212 # Check if a valid thread package
11213 case ${enable_threads} in
11214   "" | no)
11215     # No threads
11216     target_thread_file='single'
11217     ;;
11218   yes)
11219     # default
11220     target_thread_file='single'
11221     ;;
11222   aix | dce | lynx | mipssde | posix | rtems | \
11223   single | tpf | vxworks | win32)
11224     target_thread_file=${enable_threads}
11225     ;;
11226   *)
11227     echo "${enable_threads} is an unknown thread package" 1>&2
11228     exit 1
11229     ;;
11230 esac
11231
11232 if test x${thread_file} = x; then
11233   # No thread file set by target-specific clauses in config.gcc,
11234   # so use file chosen by default logic above
11235   thread_file=${target_thread_file}
11236 fi
11237
11238 # Make gthr-default.h if we have a thread file.
11239 gthread_flags=
11240 if test $thread_file != single; then
11241   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
11242   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
11243     rm -f gthr-default.h-t
11244   else
11245     mv -f gthr-default.h-t gthr-default.h
11246   fi
11247   gthread_flags=-DHAVE_GTHR_DEFAULT
11248 fi
11249
11250
11251 # --------
11252 # UNSORTED
11253 # --------
11254
11255 use_cxa_atexit=no
11256 if test x$enable___cxa_atexit = xyes || \
11257    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
11258   if test x$host = x$target; then
11259     case $host in
11260       # mingw32 doesn't have __cxa_atexit but uses atexit registration
11261       # keyed to flag_use_cxa_atexit
11262       *-*-mingw32*)
11263         use_cxa_atexit=yes
11264         ;;
11265       *)
11266         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11267 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
11268   use_cxa_atexit=yes
11269 else
11270   echo "__cxa_atexit can't be enabled on this target"
11271 fi
11272
11273         ;;
11274     esac
11275   else
11276     # We can't check for __cxa_atexit when building a cross, so assume
11277     # it is available
11278     use_cxa_atexit=yes
11279   fi
11280   if test x$use_cxa_atexit = xyes; then
11281
11282 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11283
11284   fi
11285 fi
11286
11287 # Look for a file containing extra machine modes.
11288 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
11289   extra_modes_file='$(srcdir)'/config/${extra_modes}
11290
11291
11292 cat >>confdefs.h <<_ACEOF
11293 #define EXTRA_MODES_FILE "config/$extra_modes"
11294 _ACEOF
11295
11296 fi
11297
11298 # Convert extra_options into a form suitable for Makefile use.
11299 extra_opt_files=
11300 all_opt_files=
11301 for f in $extra_options; do
11302   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
11303   all_opt_files="$all_opt_files $srcdir/config/$f"
11304 done
11305
11306
11307 # auto-host.h is the file containing items generated by autoconf and is
11308 # the first file included by config.h.
11309 # If host=build, it is correct to have bconfig include auto-host.h
11310 # as well.  If host!=build, we are in error and need to do more
11311 # work to find out the build config parameters.
11312 if test x$host = x$build
11313 then
11314         build_auto=auto-host.h
11315 else
11316         # We create a subdir, then run autoconf in the subdir.
11317         # To prevent recursion we set host and build for the new
11318         # invocation of configure to the build for this invocation
11319         # of configure.
11320         tempdir=build.$$
11321         rm -rf $tempdir
11322         mkdir $tempdir
11323         cd $tempdir
11324         case ${srcdir} in
11325         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11326         *) realsrcdir=../${srcdir};;
11327         esac
11328         saved_CFLAGS="${CFLAGS}"
11329         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11330         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11331         ${realsrcdir}/configure \
11332                 --enable-languages=${enable_languages-all} \
11333                 --target=$target_alias --host=$build_alias --build=$build_alias
11334         CFLAGS="${saved_CFLAGS}"
11335
11336         # We just finished tests for the build machine, so rename
11337         # the file auto-build.h in the gcc directory.
11338         mv auto-host.h ../auto-build.h
11339         cd ..
11340         rm -rf $tempdir
11341         build_auto=auto-build.h
11342 fi
11343
11344
11345 tm_file="${tm_file} defaults.h"
11346 tm_p_file="${tm_p_file} tm-preds.h"
11347 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11348 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11349 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11350 # put this back in temporarily.
11351 xm_file="auto-host.h ansidecl.h ${xm_file}"
11352
11353 # --------
11354 # UNSORTED
11355 # --------
11356
11357 # Compile in configure arguments.
11358 if test -f configargs.h ; then
11359         # Being re-configured.
11360         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11361         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11362 else
11363         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11364 fi
11365
11366 # Double all backslashes and backslash all quotes to turn
11367 # gcc_config_arguments into a C string.
11368 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11369 $gcc_config_arguments
11370 EOF
11371 gcc_config_arguments_str=`cat conftest.out`
11372 rm -f conftest.out
11373
11374 cat > configargs.h <<EOF
11375 /* Generated automatically. */
11376 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11377 static const char thread_model[] = "$thread_file";
11378
11379 static const struct {
11380   const char *name, *value;
11381 } configure_default_options[] = $configure_default_options;
11382 EOF
11383
11384 gcc_BASEVER=`cat $srcdir/BASE-VER`
11385 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11386 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11387 if test -f $srcdir/REVISION ; then
11388         gcc_REVISION=`cat $srcdir/REVISION`
11389 else
11390         gcc_REVISION=""
11391 fi
11392 cat > plugin-version.h <<EOF
11393 #include "configargs.h"
11394
11395 #define GCCPLUGIN_VERSION_MAJOR   `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11396 #define GCCPLUGIN_VERSION_MINOR   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11397 #define GCCPLUGIN_VERSION_PATCHLEVEL   `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11398 #define GCCPLUGIN_VERSION  (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11399
11400 static char basever[] = "$gcc_BASEVER";
11401 static char datestamp[] = "$gcc_DATESTAMP";
11402 static char devphase[] = "$gcc_DEVPHASE";
11403 static char revision[] = "$gcc_REVISION";
11404
11405 /* FIXME plugins: We should make the version information more precise.
11406    One way to do is to add a checksum. */
11407
11408 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11409                                                 devphase, revision,
11410                                                 configuration_arguments};
11411 EOF
11412
11413 # Internationalization
11414 # If we haven't got the data from the intl directory,
11415 # assume NLS is disabled.
11416 USE_NLS=no
11417 LIBINTL=
11418 LIBINTL_DEP=
11419 INCINTL=
11420 XGETTEXT=
11421 GMSGFMT=
11422 POSUB=
11423
11424 if test -f  ../intl/config.intl; then
11425   .  ../intl/config.intl
11426 fi
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11428 $as_echo_n "checking whether NLS is requested... " >&6; }
11429 if test x"$USE_NLS" != xyes; then
11430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431 $as_echo "no" >&6; }
11432 else
11433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11434 $as_echo "yes" >&6; }
11435
11436 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11437
11438
11439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11440 $as_echo_n "checking for catalogs to be installed... " >&6; }
11441   # Look for .po and .gmo files in the source directory.
11442   CATALOGS=
11443   XLINGUAS=
11444   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11445     # If there aren't any .gmo files the shell will give us the
11446     # literal string "../path/to/srcdir/po/*.gmo" which has to be
11447     # weeded out.
11448     case "$cat" in *\**)
11449       continue;;
11450     esac
11451     # The quadruple backslash is collapsed to a double backslash
11452     # by the backticks, then collapsed again by the double quotes,
11453     # leaving us with one backslash in the sed expression (right
11454     # before the dot that mustn't act as a wildcard).
11455     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11456     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11457     # The user is allowed to set LINGUAS to a list of languages to
11458     # install catalogs for.  If it's empty that means "all of them."
11459     if test "x$LINGUAS" = x; then
11460       CATALOGS="$CATALOGS $cat"
11461       XLINGUAS="$XLINGUAS $lang"
11462     else
11463       case "$LINGUAS" in *$lang*)
11464         CATALOGS="$CATALOGS $cat"
11465         XLINGUAS="$XLINGUAS $lang"
11466         ;;
11467       esac
11468     fi
11469   done
11470   LINGUAS="$XLINGUAS"
11471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11472 $as_echo "$LINGUAS" >&6; }
11473
11474
11475     DATADIRNAME=share
11476
11477   INSTOBJEXT=.mo
11478
11479   GENCAT=gencat
11480
11481   CATOBJEXT=.gmo
11482
11483 fi
11484
11485 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11486 # -liconv on the link line twice.
11487 case "$LIBINTL" in *$LIBICONV*)
11488         LIBICONV= ;;
11489 esac
11490
11491 # Check whether --enable-secureplt was given.
11492 if test "${enable_secureplt+set}" = set; then :
11493   enableval=$enable_secureplt;
11494 fi
11495
11496
11497 # Check whether --enable-leading-mingw64-underscores was given.
11498 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11499   enableval=$enable_leading_mingw64_underscores;
11500 fi
11501
11502 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
11503
11504 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11505
11506 fi
11507
11508 # Check whether --enable-cld was given.
11509 if test "${enable_cld+set}" = set; then :
11510   enableval=$enable_cld;
11511 else
11512   enable_cld=no
11513 fi
11514
11515
11516 # Check whether --enable-frame-pointer was given.
11517 if test "${enable_frame_pointer+set}" = set; then :
11518   enableval=$enable_frame_pointer;
11519 else
11520
11521 case $target_os in
11522 linux* | darwin[8912]*)
11523   # Enable -fomit-frame-pointer by default for Linux and Darwin with
11524   # DWARF2.
11525   enable_frame_pointer=no
11526   ;;
11527 *)
11528   enable_frame_pointer=yes
11529   ;;
11530 esac
11531
11532 fi
11533
11534
11535 # Windows32 Registry support for specifying GCC installation paths.
11536 # Check whether --enable-win32-registry was given.
11537 if test "${enable_win32_registry+set}" = set; then :
11538   enableval=$enable_win32_registry;
11539 fi
11540
11541
11542 case $host_os in
11543   win32 | pe | cygwin* | mingw32* | uwin*)
11544     if test "x$enable_win32_registry" != xno; then
11545       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11546 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11547 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11548   $as_echo_n "(cached) " >&6
11549 else
11550   ac_func_search_save_LIBS=$LIBS
11551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11552 /* end confdefs.h.  */
11553
11554 /* Override any GCC internal prototype to avoid an error.
11555    Use char because int might match the return type of a GCC
11556    builtin and then its argument prototype would still apply.  */
11557 #ifdef __cplusplus
11558 extern "C"
11559 #endif
11560 char RegOpenKeyExA ();
11561 int
11562 main ()
11563 {
11564 return RegOpenKeyExA ();
11565   ;
11566   return 0;
11567 }
11568 _ACEOF
11569 for ac_lib in '' advapi32; do
11570   if test -z "$ac_lib"; then
11571     ac_res="none required"
11572   else
11573     ac_res=-l$ac_lib
11574     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11575   fi
11576   if ac_fn_c_try_link "$LINENO"; then :
11577   ac_cv_search_RegOpenKeyExA=$ac_res
11578 fi
11579 rm -f core conftest.err conftest.$ac_objext \
11580     conftest$ac_exeext
11581   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11582   break
11583 fi
11584 done
11585 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11586
11587 else
11588   ac_cv_search_RegOpenKeyExA=no
11589 fi
11590 rm conftest.$ac_ext
11591 LIBS=$ac_func_search_save_LIBS
11592 fi
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11594 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11595 ac_res=$ac_cv_search_RegOpenKeyExA
11596 if test "$ac_res" != no; then :
11597   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11598
11599 else
11600   enable_win32_registry=no
11601 fi
11602
11603     fi
11604
11605     if test "x$enable_win32_registry" != xno; then
11606
11607 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11608
11609
11610       if test "x$enable_win32_registry" != xyes \
11611          && test "x$enable_win32_registry" != x; then
11612
11613 cat >>confdefs.h <<_ACEOF
11614 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11615 _ACEOF
11616
11617       fi
11618     fi
11619   ;;
11620 esac
11621
11622 # Get an absolute path to the GCC top-level source directory
11623 holddir=`${PWDCMD-pwd}`
11624 cd $srcdir
11625 topdir=`${PWDCMD-pwd}`
11626 cd $holddir
11627
11628 # Conditionalize the makefile for this host machine.
11629 xmake_file=
11630 for f in ${host_xmake_file}
11631 do
11632         if test -f ${srcdir}/config/$f
11633         then
11634                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11635         fi
11636 done
11637
11638 # Conditionalize the makefile for this target machine.
11639 tmake_file_=
11640 for f in ${tmake_file}
11641 do
11642         if test -f ${srcdir}/config/$f
11643         then
11644                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11645         fi
11646 done
11647 tmake_file="${tmake_file_}"
11648
11649 out_object_file=`basename $out_file .c`.o
11650 common_out_object_file=`basename $common_out_file .c`.o
11651
11652 tm_file_list="options.h"
11653 tm_include_list="options.h insn-constants.h"
11654 for f in $tm_file; do
11655   case $f in
11656     ./* )
11657        f=`echo $f | sed 's/^..//'`
11658        tm_file_list="${tm_file_list} $f"
11659        tm_include_list="${tm_include_list} $f"
11660        ;;
11661     defaults.h )
11662        tm_file_list="${tm_file_list} \$(srcdir)/$f"
11663        tm_include_list="${tm_include_list} $f"
11664        ;;
11665     * )
11666        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11667        tm_include_list="${tm_include_list} config/$f"
11668        ;;
11669   esac
11670 done
11671
11672 libgcc_tm_file_list=
11673 libgcc_tm_include_list=
11674 for f in $libgcc_tm_file; do
11675   libgcc_tm_file_list="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11676   libgcc_tm_include_list="${libgcc_tm_include_list} ../libgcc/config/$f"
11677 done
11678
11679 tm_p_file_list=
11680 tm_p_include_list=
11681 for f in $tm_p_file; do
11682   case $f in
11683     tm-preds.h )
11684        tm_p_file_list="${tm_p_file_list} $f"
11685        tm_p_include_list="${tm_p_include_list} $f"
11686        ;;
11687     * )
11688        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11689        tm_p_include_list="${tm_p_include_list} config/$f"
11690   esac
11691 done
11692
11693 xm_file_list=
11694 xm_include_list=
11695 for f in $xm_file; do
11696   case $f in
11697     ansidecl.h )
11698        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11699        xm_include_list="${xm_include_list} $f"
11700        ;;
11701     auto-host.h )
11702        xm_file_list="${xm_file_list} $f"
11703        xm_include_list="${xm_include_list} $f"
11704        ;;
11705     * )
11706        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11707        xm_include_list="${xm_include_list} config/$f"
11708        ;;
11709   esac
11710 done
11711
11712 host_xm_file_list=
11713 host_xm_include_list=
11714 for f in $host_xm_file; do
11715   case $f in
11716     ansidecl.h )
11717        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11718        host_xm_include_list="${host_xm_include_list} $f"
11719        ;;
11720     auto-host.h )
11721        host_xm_file_list="${host_xm_file_list} $f"
11722        host_xm_include_list="${host_xm_include_list} $f"
11723        ;;
11724     * )
11725        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11726        host_xm_include_list="${host_xm_include_list} config/$f"
11727        ;;
11728   esac
11729 done
11730
11731 build_xm_file_list=
11732 for f in $build_xm_file; do
11733   case $f in
11734     ansidecl.h )
11735        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11736        build_xm_include_list="${build_xm_include_list} $f"
11737        ;;
11738     auto-build.h | auto-host.h )
11739        build_xm_file_list="${build_xm_file_list} $f"
11740        build_xm_include_list="${build_xm_include_list} $f"
11741        ;;
11742     * )
11743        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11744        build_xm_include_list="${build_xm_include_list} config/$f"
11745        ;;
11746   esac
11747 done
11748
11749 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11750 # cross-compiler which does not use the native headers and libraries.
11751 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11752 CROSS=
11753 ALL=all.internal
11754 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11755
11756 if test "x$with_build_sysroot" != x; then
11757   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11758 else
11759   # This value is used, even on a native system, because
11760   # CROSS_SYSTEM_HEADER_DIR is just
11761   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11762   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11763 fi
11764
11765 if test x$host != x$target
11766 then
11767         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11768         ALL=all.cross
11769         SYSTEM_HEADER_DIR=$build_system_header_dir
11770         case "$host","$target" in
11771         # Darwin crosses can use the host system's libraries and headers,
11772         # because of the fat library support.  Of course, it must be the
11773         # same version of Darwin on both sides.  Allow the user to
11774         # just say --target=foo-darwin without a version number to mean
11775         # "the version on this system".
11776             *-*-darwin*,*-*-darwin*)
11777                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11778                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11779                 if test $hostos = $targetos -o $targetos = darwin ; then
11780                     CROSS=
11781                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11782                     with_headers=yes
11783                 fi
11784                 ;;
11785
11786             i?86-*-*,x86_64-*-* \
11787             | powerpc*-*-*,powerpc64*-*-*)
11788                 CROSS="$CROSS -DNATIVE_CROSS" ;;
11789         esac
11790
11791         case $target in
11792                 *-*-mingw*)
11793                         if test "x$with_headers" = x; then
11794                                 with_headers=yes
11795                         fi
11796                         ;;
11797                 *)
11798                         ;;
11799         esac
11800 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11801         SYSTEM_HEADER_DIR=$build_system_header_dir
11802 fi
11803
11804 # If this is a cross-compiler that does not
11805 # have its own set of headers then define
11806 # inhibit_libc
11807
11808 # If this is using newlib, without having the headers available now,
11809 # then define inhibit_libc in LIBGCC2_CFLAGS.
11810 # This prevents libgcc2 from containing any code which requires libc
11811 # support.
11812 : ${inhibit_libc=false}
11813 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11814        test x$with_newlib = xyes ; } &&
11815      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11816        inhibit_libc=true
11817 fi
11818
11819
11820 # When building gcc with a cross-compiler, we need to adjust things so
11821 # that the generator programs are still built with the native compiler.
11822 # Also, we cannot run fixincludes.
11823
11824 # These are the normal (build=host) settings:
11825 CC_FOR_BUILD='$(CC)'
11826 BUILD_CFLAGS='$(ALL_CFLAGS)'
11827 BUILD_LDFLAGS='$(LDFLAGS)'
11828 STMP_FIXINC=stmp-fixinc
11829
11830 # And these apply if build != host, or we are generating coverage data
11831 if test x$build != x$host || test "x$coverage_flags" != x
11832 then
11833     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11834     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11835 fi
11836
11837 # Expand extra_headers to include complete path.
11838 # This substitutes for lots of t-* files.
11839 extra_headers_list=
11840 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11841 for file in ${extra_headers} ; do
11842   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11843 done
11844
11845 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11846 if test x"$use_gcc_tgmath" = xyes
11847 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11848 fi
11849
11850 # Define collect2 in Makefile.
11851 case $host_can_use_collect2 in
11852   no) collect2= ;;
11853   *) collect2='collect2$(exeext)' ;;
11854 esac
11855
11856
11857 # Add a definition of USE_COLLECT2 if system wants one.
11858 case $use_collect2 in
11859   no) use_collect2= ;;
11860   "") ;;
11861   *)
11862     host_xm_defines="${host_xm_defines} USE_COLLECT2"
11863     xm_defines="${xm_defines} USE_COLLECT2"
11864     case $host_can_use_collect2 in
11865       no)
11866         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11867         ;;
11868     esac
11869     ;;
11870 esac
11871
11872
11873 cat >>confdefs.h <<_ACEOF
11874 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11875 _ACEOF
11876
11877
11878 # ---------------------------
11879 # Assembler & linker features
11880 # ---------------------------
11881
11882 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11883 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11884 # However when ld-new is first executed from the build tree, libtool will
11885 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11886 # to the build tree.  While doing this we need to use the previous-stage
11887 # linker, or we have an infinite loop.  The presence of a shell script as
11888 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11889 # the gcc/collect-ld script.  So we need to know how libtool works, or
11890 # exec-tool will fail.
11891
11892
11893 case `pwd` in
11894   *\ * | *\     *)
11895     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11896 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11897 esac
11898
11899
11900
11901 macro_version='2.2.7a'
11902 macro_revision='1.3134'
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916 ltmain="$ac_aux_dir/ltmain.sh"
11917
11918 # Backslashify metacharacters that are still active within
11919 # double-quoted strings.
11920 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11921
11922 # Same as above, but do not quote variable references.
11923 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11924
11925 # Sed substitution to delay expansion of an escaped shell variable in a
11926 # double_quote_subst'ed string.
11927 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11928
11929 # Sed substitution to delay expansion of an escaped single quote.
11930 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11931
11932 # Sed substitution to avoid accidental globbing in evaled expressions
11933 no_glob_subst='s/\*/\\\*/g'
11934
11935 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11936 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11937 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11938
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11940 $as_echo_n "checking how to print strings... " >&6; }
11941 # Test print first, because it will be a builtin if present.
11942 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11943    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11944   ECHO='print -r --'
11945 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11946   ECHO='printf %s\n'
11947 else
11948   # Use this function as a fallback that always works.
11949   func_fallback_echo ()
11950   {
11951     eval 'cat <<_LTECHO_EOF
11952 $1
11953 _LTECHO_EOF'
11954   }
11955   ECHO='func_fallback_echo'
11956 fi
11957
11958 # func_echo_all arg...
11959 # Invoke $ECHO with all args, space-separated.
11960 func_echo_all ()
11961 {
11962     $ECHO ""
11963 }
11964
11965 case "$ECHO" in
11966   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11967 $as_echo "printf" >&6; } ;;
11968   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11969 $as_echo "print -r" >&6; } ;;
11970   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11971 $as_echo "cat" >&6; } ;;
11972 esac
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11988 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11989 if test "${ac_cv_path_SED+set}" = set; then :
11990   $as_echo_n "(cached) " >&6
11991 else
11992             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11993      for ac_i in 1 2 3 4 5 6 7; do
11994        ac_script="$ac_script$as_nl$ac_script"
11995      done
11996      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11997      { ac_script=; unset ac_script;}
11998      if test -z "$SED"; then
11999   ac_path_SED_found=false
12000   # Loop through the user's path and test for each of PROGNAME-LIST
12001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12002 for as_dir in $PATH
12003 do
12004   IFS=$as_save_IFS
12005   test -z "$as_dir" && as_dir=.
12006     for ac_prog in sed gsed; do
12007     for ac_exec_ext in '' $ac_executable_extensions; do
12008       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12009       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12010 # Check for GNU ac_path_SED and select it if it is found.
12011   # Check for GNU $ac_path_SED
12012 case `"$ac_path_SED" --version 2>&1` in
12013 *GNU*)
12014   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12015 *)
12016   ac_count=0
12017   $as_echo_n 0123456789 >"conftest.in"
12018   while :
12019   do
12020     cat "conftest.in" "conftest.in" >"conftest.tmp"
12021     mv "conftest.tmp" "conftest.in"
12022     cp "conftest.in" "conftest.nl"
12023     $as_echo '' >> "conftest.nl"
12024     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12025     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12026     as_fn_arith $ac_count + 1 && ac_count=$as_val
12027     if test $ac_count -gt ${ac_path_SED_max-0}; then
12028       # Best one so far, save it but keep looking for a better one
12029       ac_cv_path_SED="$ac_path_SED"
12030       ac_path_SED_max=$ac_count
12031     fi
12032     # 10*(2^10) chars as input seems more than enough
12033     test $ac_count -gt 10 && break
12034   done
12035   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12036 esac
12037
12038       $ac_path_SED_found && break 3
12039     done
12040   done
12041   done
12042 IFS=$as_save_IFS
12043   if test -z "$ac_cv_path_SED"; then
12044     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
12045   fi
12046 else
12047   ac_cv_path_SED=$SED
12048 fi
12049
12050 fi
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12052 $as_echo "$ac_cv_path_SED" >&6; }
12053  SED="$ac_cv_path_SED"
12054   rm -f conftest.sed
12055
12056 test -z "$SED" && SED=sed
12057 Xsed="$SED -e 1s/^X//"
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12070 $as_echo_n "checking for fgrep... " >&6; }
12071 if test "${ac_cv_path_FGREP+set}" = set; then :
12072   $as_echo_n "(cached) " >&6
12073 else
12074   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12075    then ac_cv_path_FGREP="$GREP -F"
12076    else
12077      if test -z "$FGREP"; then
12078   ac_path_FGREP_found=false
12079   # Loop through the user's path and test for each of PROGNAME-LIST
12080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12082 do
12083   IFS=$as_save_IFS
12084   test -z "$as_dir" && as_dir=.
12085     for ac_prog in fgrep; do
12086     for ac_exec_ext in '' $ac_executable_extensions; do
12087       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12088       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
12089 # Check for GNU ac_path_FGREP and select it if it is found.
12090   # Check for GNU $ac_path_FGREP
12091 case `"$ac_path_FGREP" --version 2>&1` in
12092 *GNU*)
12093   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12094 *)
12095   ac_count=0
12096   $as_echo_n 0123456789 >"conftest.in"
12097   while :
12098   do
12099     cat "conftest.in" "conftest.in" >"conftest.tmp"
12100     mv "conftest.tmp" "conftest.in"
12101     cp "conftest.in" "conftest.nl"
12102     $as_echo 'FGREP' >> "conftest.nl"
12103     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12104     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12105     as_fn_arith $ac_count + 1 && ac_count=$as_val
12106     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12107       # Best one so far, save it but keep looking for a better one
12108       ac_cv_path_FGREP="$ac_path_FGREP"
12109       ac_path_FGREP_max=$ac_count
12110     fi
12111     # 10*(2^10) chars as input seems more than enough
12112     test $ac_count -gt 10 && break
12113   done
12114   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12115 esac
12116
12117       $ac_path_FGREP_found && break 3
12118     done
12119   done
12120   done
12121 IFS=$as_save_IFS
12122   if test -z "$ac_cv_path_FGREP"; then
12123     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12124   fi
12125 else
12126   ac_cv_path_FGREP=$FGREP
12127 fi
12128
12129    fi
12130 fi
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12132 $as_echo "$ac_cv_path_FGREP" >&6; }
12133  FGREP="$ac_cv_path_FGREP"
12134
12135
12136 test -z "$GREP" && GREP=grep
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156 # Check whether --with-gnu-ld was given.
12157 if test "${with_gnu_ld+set}" = set; then :
12158   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12159 else
12160   with_gnu_ld=no
12161 fi
12162
12163 ac_prog=ld
12164 if test "$GCC" = yes; then
12165   # Check if gcc -print-prog-name=ld gives a path.
12166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12167 $as_echo_n "checking for ld used by $CC... " >&6; }
12168   case $host in
12169   *-*-mingw*)
12170     # gcc leaves a trailing carriage return which upsets mingw
12171     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12172   *)
12173     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12174   esac
12175   case $ac_prog in
12176     # Accept absolute paths.
12177     [\\/]* | ?:[\\/]*)
12178       re_direlt='/[^/][^/]*/\.\./'
12179       # Canonicalize the pathname of ld
12180       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12181       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12182         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12183       done
12184       test -z "$LD" && LD="$ac_prog"
12185       ;;
12186   "")
12187     # If it fails, then pretend we aren't using GCC.
12188     ac_prog=ld
12189     ;;
12190   *)
12191     # If it is relative, then search for the first ld in PATH.
12192     with_gnu_ld=unknown
12193     ;;
12194   esac
12195 elif test "$with_gnu_ld" = yes; then
12196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12197 $as_echo_n "checking for GNU ld... " >&6; }
12198 else
12199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12200 $as_echo_n "checking for non-GNU ld... " >&6; }
12201 fi
12202 if test "${lt_cv_path_LD+set}" = set; then :
12203   $as_echo_n "(cached) " >&6
12204 else
12205   if test -z "$LD"; then
12206   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12207   for ac_dir in $PATH; do
12208     IFS="$lt_save_ifs"
12209     test -z "$ac_dir" && ac_dir=.
12210     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12211       lt_cv_path_LD="$ac_dir/$ac_prog"
12212       # Check to see if the program is GNU ld.  I'd rather use --version,
12213       # but apparently some variants of GNU ld only accept -v.
12214       # Break only if it was the GNU/non-GNU ld that we prefer.
12215       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12216       *GNU* | *'with BFD'*)
12217         test "$with_gnu_ld" != no && break
12218         ;;
12219       *)
12220         test "$with_gnu_ld" != yes && break
12221         ;;
12222       esac
12223     fi
12224   done
12225   IFS="$lt_save_ifs"
12226 else
12227   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12228 fi
12229 fi
12230
12231 LD="$lt_cv_path_LD"
12232 if test -n "$LD"; then
12233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12234 $as_echo "$LD" >&6; }
12235 else
12236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12237 $as_echo "no" >&6; }
12238 fi
12239 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12241 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12242 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12243   $as_echo_n "(cached) " >&6
12244 else
12245   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12246 case `$LD -v 2>&1 </dev/null` in
12247 *GNU* | *'with BFD'*)
12248   lt_cv_prog_gnu_ld=yes
12249   ;;
12250 *)
12251   lt_cv_prog_gnu_ld=no
12252   ;;
12253 esac
12254 fi
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12256 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12257 with_gnu_ld=$lt_cv_prog_gnu_ld
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12268 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12269 if test "${lt_cv_path_NM+set}" = set; then :
12270   $as_echo_n "(cached) " >&6
12271 else
12272   if test -n "$NM"; then
12273   # Let the user override the test.
12274   lt_cv_path_NM="$NM"
12275 else
12276   lt_nm_to_check="${ac_tool_prefix}nm"
12277   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12278     lt_nm_to_check="$lt_nm_to_check nm"
12279   fi
12280   for lt_tmp_nm in $lt_nm_to_check; do
12281     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12282     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12283       IFS="$lt_save_ifs"
12284       test -z "$ac_dir" && ac_dir=.
12285       tmp_nm="$ac_dir/$lt_tmp_nm"
12286       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12287         # Check to see if the nm accepts a BSD-compat flag.
12288         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12289         #   nm: unknown option "B" ignored
12290         # Tru64's nm complains that /dev/null is an invalid object file
12291         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12292         */dev/null* | *'Invalid file or object type'*)
12293           lt_cv_path_NM="$tmp_nm -B"
12294           break
12295           ;;
12296         *)
12297           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12298           */dev/null*)
12299             lt_cv_path_NM="$tmp_nm -p"
12300             break
12301             ;;
12302           *)
12303             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12304             continue # so that we can try to find one that supports BSD flags
12305             ;;
12306           esac
12307           ;;
12308         esac
12309       fi
12310     done
12311     IFS="$lt_save_ifs"
12312   done
12313   : ${lt_cv_path_NM=no}
12314 fi
12315 fi
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12317 $as_echo "$lt_cv_path_NM" >&6; }
12318 if test "$lt_cv_path_NM" != "no"; then
12319   NM="$lt_cv_path_NM"
12320 else
12321   # Didn't find any BSD compatible name lister, look for dumpbin.
12322   if test -n "$DUMPBIN"; then :
12323     # Let the user override the test.
12324   else
12325     if test -n "$ac_tool_prefix"; then
12326   for ac_prog in dumpbin "link -dump"
12327   do
12328     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12329 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12331 $as_echo_n "checking for $ac_word... " >&6; }
12332 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12333   $as_echo_n "(cached) " >&6
12334 else
12335   if test -n "$DUMPBIN"; then
12336   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12337 else
12338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12339 for as_dir in $PATH
12340 do
12341   IFS=$as_save_IFS
12342   test -z "$as_dir" && as_dir=.
12343     for ac_exec_ext in '' $ac_executable_extensions; do
12344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12345     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12347     break 2
12348   fi
12349 done
12350   done
12351 IFS=$as_save_IFS
12352
12353 fi
12354 fi
12355 DUMPBIN=$ac_cv_prog_DUMPBIN
12356 if test -n "$DUMPBIN"; then
12357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12358 $as_echo "$DUMPBIN" >&6; }
12359 else
12360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361 $as_echo "no" >&6; }
12362 fi
12363
12364
12365     test -n "$DUMPBIN" && break
12366   done
12367 fi
12368 if test -z "$DUMPBIN"; then
12369   ac_ct_DUMPBIN=$DUMPBIN
12370   for ac_prog in dumpbin "link -dump"
12371 do
12372   # Extract the first word of "$ac_prog", so it can be a program name with args.
12373 set dummy $ac_prog; ac_word=$2
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12375 $as_echo_n "checking for $ac_word... " >&6; }
12376 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12377   $as_echo_n "(cached) " >&6
12378 else
12379   if test -n "$ac_ct_DUMPBIN"; then
12380   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12381 else
12382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12383 for as_dir in $PATH
12384 do
12385   IFS=$as_save_IFS
12386   test -z "$as_dir" && as_dir=.
12387     for ac_exec_ext in '' $ac_executable_extensions; do
12388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12389     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12391     break 2
12392   fi
12393 done
12394   done
12395 IFS=$as_save_IFS
12396
12397 fi
12398 fi
12399 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12400 if test -n "$ac_ct_DUMPBIN"; then
12401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12402 $as_echo "$ac_ct_DUMPBIN" >&6; }
12403 else
12404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405 $as_echo "no" >&6; }
12406 fi
12407
12408
12409   test -n "$ac_ct_DUMPBIN" && break
12410 done
12411
12412   if test "x$ac_ct_DUMPBIN" = x; then
12413     DUMPBIN=":"
12414   else
12415     case $cross_compiling:$ac_tool_warned in
12416 yes:)
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12419 ac_tool_warned=yes ;;
12420 esac
12421     DUMPBIN=$ac_ct_DUMPBIN
12422   fi
12423 fi
12424
12425     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12426     *COFF*)
12427       DUMPBIN="$DUMPBIN -symbols"
12428       ;;
12429     *)
12430       DUMPBIN=:
12431       ;;
12432     esac
12433   fi
12434
12435   if test "$DUMPBIN" != ":"; then
12436     NM="$DUMPBIN"
12437   fi
12438 fi
12439 test -z "$NM" && NM=nm
12440
12441
12442
12443
12444
12445
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12447 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12448 if test "${lt_cv_nm_interface+set}" = set; then :
12449   $as_echo_n "(cached) " >&6
12450 else
12451   lt_cv_nm_interface="BSD nm"
12452   echo "int some_variable = 0;" > conftest.$ac_ext
12453   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12454   (eval "$ac_compile" 2>conftest.err)
12455   cat conftest.err >&5
12456   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12457   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12458   cat conftest.err >&5
12459   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12460   cat conftest.out >&5
12461   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12462     lt_cv_nm_interface="MS dumpbin"
12463   fi
12464   rm -f conftest*
12465 fi
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12467 $as_echo "$lt_cv_nm_interface" >&6; }
12468
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12470 $as_echo_n "checking whether ln -s works... " >&6; }
12471 LN_S=$as_ln_s
12472 if test "$LN_S" = "ln -s"; then
12473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12474 $as_echo "yes" >&6; }
12475 else
12476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12477 $as_echo "no, using $LN_S" >&6; }
12478 fi
12479
12480 # find the maximum length of command line arguments
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12482 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12483 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12484   $as_echo_n "(cached) " >&6
12485 else
12486     i=0
12487   teststring="ABCD"
12488
12489   case $build_os in
12490   msdosdjgpp*)
12491     # On DJGPP, this test can blow up pretty badly due to problems in libc
12492     # (any single argument exceeding 2000 bytes causes a buffer overrun
12493     # during glob expansion).  Even if it were fixed, the result of this
12494     # check would be larger than it should be.
12495     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12496     ;;
12497
12498   gnu*)
12499     # Under GNU Hurd, this test is not required because there is
12500     # no limit to the length of command line arguments.
12501     # Libtool will interpret -1 as no limit whatsoever
12502     lt_cv_sys_max_cmd_len=-1;
12503     ;;
12504
12505   cygwin* | mingw* | cegcc*)
12506     # On Win9x/ME, this test blows up -- it succeeds, but takes
12507     # about 5 minutes as the teststring grows exponentially.
12508     # Worse, since 9x/ME are not pre-emptively multitasking,
12509     # you end up with a "frozen" computer, even though with patience
12510     # the test eventually succeeds (with a max line length of 256k).
12511     # Instead, let's just punt: use the minimum linelength reported by
12512     # all of the supported platforms: 8192 (on NT/2K/XP).
12513     lt_cv_sys_max_cmd_len=8192;
12514     ;;
12515
12516   mint*)
12517     # On MiNT this can take a long time and run out of memory.
12518     lt_cv_sys_max_cmd_len=8192;
12519     ;;
12520
12521   amigaos*)
12522     # On AmigaOS with pdksh, this test takes hours, literally.
12523     # So we just punt and use a minimum line length of 8192.
12524     lt_cv_sys_max_cmd_len=8192;
12525     ;;
12526
12527   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12528     # This has been around since 386BSD, at least.  Likely further.
12529     if test -x /sbin/sysctl; then
12530       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12531     elif test -x /usr/sbin/sysctl; then
12532       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12533     else
12534       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12535     fi
12536     # And add a safety zone
12537     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12538     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12539     ;;
12540
12541   interix*)
12542     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12543     lt_cv_sys_max_cmd_len=196608
12544     ;;
12545
12546   osf*)
12547     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12548     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12549     # nice to cause kernel panics so lets avoid the loop below.
12550     # First set a reasonable default.
12551     lt_cv_sys_max_cmd_len=16384
12552     #
12553     if test -x /sbin/sysconfig; then
12554       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12555         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12556       esac
12557     fi
12558     ;;
12559   sco3.2v5*)
12560     lt_cv_sys_max_cmd_len=102400
12561     ;;
12562   sysv5* | sco5v6* | sysv4.2uw2*)
12563     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12564     if test -n "$kargmax"; then
12565       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
12566     else
12567       lt_cv_sys_max_cmd_len=32768
12568     fi
12569     ;;
12570   *)
12571     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12572     if test -n "$lt_cv_sys_max_cmd_len"; then
12573       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12574       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12575     else
12576       # Make teststring a little bigger before we do anything with it.
12577       # a 1K string should be a reasonable start.
12578       for i in 1 2 3 4 5 6 7 8 ; do
12579         teststring=$teststring$teststring
12580       done
12581       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12582       # If test is not a shell built-in, we'll probably end up computing a
12583       # maximum length that is only half of the actual maximum length, but
12584       # we can't tell.
12585       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12586                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12587               test $i != 17 # 1/2 MB should be enough
12588       do
12589         i=`expr $i + 1`
12590         teststring=$teststring$teststring
12591       done
12592       # Only check the string length outside the loop.
12593       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12594       teststring=
12595       # Add a significant safety factor because C++ compilers can tack on
12596       # massive amounts of additional arguments before passing them to the
12597       # linker.  It appears as though 1/2 is a usable value.
12598       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12599     fi
12600     ;;
12601   esac
12602
12603 fi
12604
12605 if test -n $lt_cv_sys_max_cmd_len ; then
12606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12607 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12608 else
12609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12610 $as_echo "none" >&6; }
12611 fi
12612 max_cmd_len=$lt_cv_sys_max_cmd_len
12613
12614
12615
12616
12617
12618
12619 : ${CP="cp -f"}
12620 : ${MV="mv -f"}
12621 : ${RM="rm -f"}
12622
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12624 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12625 # Try some XSI features
12626 xsi_shell=no
12627 ( _lt_dummy="a/b/c"
12628   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12629       = c,a/b,, \
12630     && eval 'test $(( 1 + 1 )) -eq 2 \
12631     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12632   && xsi_shell=yes
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12634 $as_echo "$xsi_shell" >&6; }
12635
12636
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12638 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12639 lt_shell_append=no
12640 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12641     >/dev/null 2>&1 \
12642   && lt_shell_append=yes
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12644 $as_echo "$lt_shell_append" >&6; }
12645
12646
12647 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12648   lt_unset=unset
12649 else
12650   lt_unset=false
12651 fi
12652
12653
12654
12655
12656
12657 # test EBCDIC or ASCII
12658 case `echo X|tr X '\101'` in
12659  A) # ASCII based system
12660     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12661   lt_SP2NL='tr \040 \012'
12662   lt_NL2SP='tr \015\012 \040\040'
12663   ;;
12664  *) # EBCDIC based system
12665   lt_SP2NL='tr \100 \n'
12666   lt_NL2SP='tr \r\n \100\100'
12667   ;;
12668 esac
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12679 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12680 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12681   $as_echo_n "(cached) " >&6
12682 else
12683   lt_cv_ld_reload_flag='-r'
12684 fi
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12686 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12687 reload_flag=$lt_cv_ld_reload_flag
12688 case $reload_flag in
12689 "" | " "*) ;;
12690 *) reload_flag=" $reload_flag" ;;
12691 esac
12692 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12693 case $host_os in
12694   darwin*)
12695     if test "$GCC" = yes; then
12696       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12697     else
12698       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12699     fi
12700     ;;
12701 esac
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711 if test -n "$ac_tool_prefix"; then
12712   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12713 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12715 $as_echo_n "checking for $ac_word... " >&6; }
12716 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12717   $as_echo_n "(cached) " >&6
12718 else
12719   if test -n "$OBJDUMP"; then
12720   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12721 else
12722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12723 for as_dir in $PATH
12724 do
12725   IFS=$as_save_IFS
12726   test -z "$as_dir" && as_dir=.
12727     for ac_exec_ext in '' $ac_executable_extensions; do
12728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12729     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12731     break 2
12732   fi
12733 done
12734   done
12735 IFS=$as_save_IFS
12736
12737 fi
12738 fi
12739 OBJDUMP=$ac_cv_prog_OBJDUMP
12740 if test -n "$OBJDUMP"; then
12741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12742 $as_echo "$OBJDUMP" >&6; }
12743 else
12744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12745 $as_echo "no" >&6; }
12746 fi
12747
12748
12749 fi
12750 if test -z "$ac_cv_prog_OBJDUMP"; then
12751   ac_ct_OBJDUMP=$OBJDUMP
12752   # Extract the first word of "objdump", so it can be a program name with args.
12753 set dummy objdump; ac_word=$2
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12755 $as_echo_n "checking for $ac_word... " >&6; }
12756 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12757   $as_echo_n "(cached) " >&6
12758 else
12759   if test -n "$ac_ct_OBJDUMP"; then
12760   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12761 else
12762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12763 for as_dir in $PATH
12764 do
12765   IFS=$as_save_IFS
12766   test -z "$as_dir" && as_dir=.
12767     for ac_exec_ext in '' $ac_executable_extensions; do
12768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12769     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12771     break 2
12772   fi
12773 done
12774   done
12775 IFS=$as_save_IFS
12776
12777 fi
12778 fi
12779 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12780 if test -n "$ac_ct_OBJDUMP"; then
12781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12782 $as_echo "$ac_ct_OBJDUMP" >&6; }
12783 else
12784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785 $as_echo "no" >&6; }
12786 fi
12787
12788   if test "x$ac_ct_OBJDUMP" = x; then
12789     OBJDUMP="false"
12790   else
12791     case $cross_compiling:$ac_tool_warned in
12792 yes:)
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12795 ac_tool_warned=yes ;;
12796 esac
12797     OBJDUMP=$ac_ct_OBJDUMP
12798   fi
12799 else
12800   OBJDUMP="$ac_cv_prog_OBJDUMP"
12801 fi
12802
12803 test -z "$OBJDUMP" && OBJDUMP=objdump
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12814 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12815 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12816   $as_echo_n "(cached) " >&6
12817 else
12818   lt_cv_file_magic_cmd='$MAGIC_CMD'
12819 lt_cv_file_magic_test_file=
12820 lt_cv_deplibs_check_method='unknown'
12821 # Need to set the preceding variable on all platforms that support
12822 # interlibrary dependencies.
12823 # 'none' -- dependencies not supported.
12824 # `unknown' -- same as none, but documents that we really don't know.
12825 # 'pass_all' -- all dependencies passed with no checks.
12826 # 'test_compile' -- check by making test program.
12827 # 'file_magic [[regex]]' -- check by looking for files in library path
12828 # which responds to the $file_magic_cmd with a given extended regex.
12829 # If you have `file' or equivalent on your system and you're not sure
12830 # whether `pass_all' will *always* work, you probably want this one.
12831
12832 case $host_os in
12833 aix[4-9]*)
12834   lt_cv_deplibs_check_method=pass_all
12835   ;;
12836
12837 beos*)
12838   lt_cv_deplibs_check_method=pass_all
12839   ;;
12840
12841 bsdi[45]*)
12842   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12843   lt_cv_file_magic_cmd='/usr/bin/file -L'
12844   lt_cv_file_magic_test_file=/shlib/libc.so
12845   ;;
12846
12847 cygwin*)
12848   # func_win32_libid is a shell function defined in ltmain.sh
12849   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12850   lt_cv_file_magic_cmd='func_win32_libid'
12851   ;;
12852
12853 mingw* | pw32*)
12854   # Base MSYS/MinGW do not provide the 'file' command needed by
12855   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12856   # unless we find 'file', for example because we are cross-compiling.
12857   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12858   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12859     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12860     lt_cv_file_magic_cmd='func_win32_libid'
12861   else
12862     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12863     lt_cv_file_magic_cmd='$OBJDUMP -f'
12864   fi
12865   ;;
12866
12867 cegcc*)
12868   # use the weaker test based on 'objdump'. See mingw*.
12869   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12870   lt_cv_file_magic_cmd='$OBJDUMP -f'
12871   ;;
12872
12873 darwin* | rhapsody*)
12874   lt_cv_deplibs_check_method=pass_all
12875   ;;
12876
12877 freebsd* | dragonfly*)
12878   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12879     case $host_cpu in
12880     i*86 )
12881       # Not sure whether the presence of OpenBSD here was a mistake.
12882       # Let's accept both of them until this is cleared up.
12883       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12884       lt_cv_file_magic_cmd=/usr/bin/file
12885       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12886       ;;
12887     esac
12888   else
12889     lt_cv_deplibs_check_method=pass_all
12890   fi
12891   ;;
12892
12893 gnu*)
12894   lt_cv_deplibs_check_method=pass_all
12895   ;;
12896
12897 haiku*)
12898   lt_cv_deplibs_check_method=pass_all
12899   ;;
12900
12901 hpux10.20* | hpux11*)
12902   lt_cv_file_magic_cmd=/usr/bin/file
12903   case $host_cpu in
12904   ia64*)
12905     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12906     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12907     ;;
12908   hppa*64*)
12909     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]'
12910     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12911     ;;
12912   *)
12913     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12914     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12915     ;;
12916   esac
12917   ;;
12918
12919 interix[3-9]*)
12920   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12921   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12922   ;;
12923
12924 irix5* | irix6* | nonstopux*)
12925   case $LD in
12926   *-32|*"-32 ") libmagic=32-bit;;
12927   *-n32|*"-n32 ") libmagic=N32;;
12928   *-64|*"-64 ") libmagic=64-bit;;
12929   *) libmagic=never-match;;
12930   esac
12931   lt_cv_deplibs_check_method=pass_all
12932   ;;
12933
12934 # This must be Linux ELF.
12935 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12936   lt_cv_deplibs_check_method=pass_all
12937   ;;
12938
12939 netbsd*)
12940   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12941     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12942   else
12943     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12944   fi
12945   ;;
12946
12947 newos6*)
12948   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12949   lt_cv_file_magic_cmd=/usr/bin/file
12950   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12951   ;;
12952
12953 *nto* | *qnx*)
12954   lt_cv_deplibs_check_method=pass_all
12955   ;;
12956
12957 openbsd*)
12958   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12959     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12960   else
12961     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12962   fi
12963   ;;
12964
12965 osf3* | osf4* | osf5*)
12966   lt_cv_deplibs_check_method=pass_all
12967   ;;
12968
12969 rdos*)
12970   lt_cv_deplibs_check_method=pass_all
12971   ;;
12972
12973 solaris*)
12974   lt_cv_deplibs_check_method=pass_all
12975   ;;
12976
12977 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12978   lt_cv_deplibs_check_method=pass_all
12979   ;;
12980
12981 sysv4 | sysv4.3*)
12982   case $host_vendor in
12983   motorola)
12984     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]'
12985     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12986     ;;
12987   ncr)
12988     lt_cv_deplibs_check_method=pass_all
12989     ;;
12990   sequent)
12991     lt_cv_file_magic_cmd='/bin/file'
12992     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12993     ;;
12994   sni)
12995     lt_cv_file_magic_cmd='/bin/file'
12996     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12997     lt_cv_file_magic_test_file=/lib/libc.so
12998     ;;
12999   siemens)
13000     lt_cv_deplibs_check_method=pass_all
13001     ;;
13002   pc)
13003     lt_cv_deplibs_check_method=pass_all
13004     ;;
13005   esac
13006   ;;
13007
13008 tpf*)
13009   lt_cv_deplibs_check_method=pass_all
13010   ;;
13011 esac
13012
13013 fi
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13015 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13016 file_magic_cmd=$lt_cv_file_magic_cmd
13017 deplibs_check_method=$lt_cv_deplibs_check_method
13018 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031 if test -n "$ac_tool_prefix"; then
13032   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13033 set dummy ${ac_tool_prefix}ar; ac_word=$2
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13035 $as_echo_n "checking for $ac_word... " >&6; }
13036 if test "${ac_cv_prog_AR+set}" = set; then :
13037   $as_echo_n "(cached) " >&6
13038 else
13039   if test -n "$AR"; then
13040   ac_cv_prog_AR="$AR" # Let the user override the test.
13041 else
13042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13043 for as_dir in $PATH
13044 do
13045   IFS=$as_save_IFS
13046   test -z "$as_dir" && as_dir=.
13047     for ac_exec_ext in '' $ac_executable_extensions; do
13048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13049     ac_cv_prog_AR="${ac_tool_prefix}ar"
13050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13051     break 2
13052   fi
13053 done
13054   done
13055 IFS=$as_save_IFS
13056
13057 fi
13058 fi
13059 AR=$ac_cv_prog_AR
13060 if test -n "$AR"; then
13061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13062 $as_echo "$AR" >&6; }
13063 else
13064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13065 $as_echo "no" >&6; }
13066 fi
13067
13068
13069 fi
13070 if test -z "$ac_cv_prog_AR"; then
13071   ac_ct_AR=$AR
13072   # Extract the first word of "ar", so it can be a program name with args.
13073 set dummy ar; ac_word=$2
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13075 $as_echo_n "checking for $ac_word... " >&6; }
13076 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13077   $as_echo_n "(cached) " >&6
13078 else
13079   if test -n "$ac_ct_AR"; then
13080   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13081 else
13082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13083 for as_dir in $PATH
13084 do
13085   IFS=$as_save_IFS
13086   test -z "$as_dir" && as_dir=.
13087     for ac_exec_ext in '' $ac_executable_extensions; do
13088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13089     ac_cv_prog_ac_ct_AR="ar"
13090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13091     break 2
13092   fi
13093 done
13094   done
13095 IFS=$as_save_IFS
13096
13097 fi
13098 fi
13099 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13100 if test -n "$ac_ct_AR"; then
13101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13102 $as_echo "$ac_ct_AR" >&6; }
13103 else
13104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13105 $as_echo "no" >&6; }
13106 fi
13107
13108   if test "x$ac_ct_AR" = x; then
13109     AR="false"
13110   else
13111     case $cross_compiling:$ac_tool_warned in
13112 yes:)
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13115 ac_tool_warned=yes ;;
13116 esac
13117     AR=$ac_ct_AR
13118   fi
13119 else
13120   AR="$ac_cv_prog_AR"
13121 fi
13122
13123 test -z "$AR" && AR=ar
13124 test -z "$AR_FLAGS" && AR_FLAGS=cru
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136 if test -n "$ac_tool_prefix"; then
13137   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13138 set dummy ${ac_tool_prefix}strip; ac_word=$2
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13140 $as_echo_n "checking for $ac_word... " >&6; }
13141 if test "${ac_cv_prog_STRIP+set}" = set; then :
13142   $as_echo_n "(cached) " >&6
13143 else
13144   if test -n "$STRIP"; then
13145   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13146 else
13147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13148 for as_dir in $PATH
13149 do
13150   IFS=$as_save_IFS
13151   test -z "$as_dir" && as_dir=.
13152     for ac_exec_ext in '' $ac_executable_extensions; do
13153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13154     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13156     break 2
13157   fi
13158 done
13159   done
13160 IFS=$as_save_IFS
13161
13162 fi
13163 fi
13164 STRIP=$ac_cv_prog_STRIP
13165 if test -n "$STRIP"; then
13166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13167 $as_echo "$STRIP" >&6; }
13168 else
13169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13170 $as_echo "no" >&6; }
13171 fi
13172
13173
13174 fi
13175 if test -z "$ac_cv_prog_STRIP"; then
13176   ac_ct_STRIP=$STRIP
13177   # Extract the first word of "strip", so it can be a program name with args.
13178 set dummy strip; ac_word=$2
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13180 $as_echo_n "checking for $ac_word... " >&6; }
13181 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13182   $as_echo_n "(cached) " >&6
13183 else
13184   if test -n "$ac_ct_STRIP"; then
13185   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13186 else
13187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13188 for as_dir in $PATH
13189 do
13190   IFS=$as_save_IFS
13191   test -z "$as_dir" && as_dir=.
13192     for ac_exec_ext in '' $ac_executable_extensions; do
13193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13194     ac_cv_prog_ac_ct_STRIP="strip"
13195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13196     break 2
13197   fi
13198 done
13199   done
13200 IFS=$as_save_IFS
13201
13202 fi
13203 fi
13204 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13205 if test -n "$ac_ct_STRIP"; then
13206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13207 $as_echo "$ac_ct_STRIP" >&6; }
13208 else
13209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13210 $as_echo "no" >&6; }
13211 fi
13212
13213   if test "x$ac_ct_STRIP" = x; then
13214     STRIP=":"
13215   else
13216     case $cross_compiling:$ac_tool_warned in
13217 yes:)
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13220 ac_tool_warned=yes ;;
13221 esac
13222     STRIP=$ac_ct_STRIP
13223   fi
13224 else
13225   STRIP="$ac_cv_prog_STRIP"
13226 fi
13227
13228 test -z "$STRIP" && STRIP=:
13229
13230
13231
13232
13233
13234
13235 if test -n "$ac_tool_prefix"; then
13236   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13237 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13239 $as_echo_n "checking for $ac_word... " >&6; }
13240 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13241   $as_echo_n "(cached) " >&6
13242 else
13243   if test -n "$RANLIB"; then
13244   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13245 else
13246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247 for as_dir in $PATH
13248 do
13249   IFS=$as_save_IFS
13250   test -z "$as_dir" && as_dir=.
13251     for ac_exec_ext in '' $ac_executable_extensions; do
13252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13253     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13255     break 2
13256   fi
13257 done
13258   done
13259 IFS=$as_save_IFS
13260
13261 fi
13262 fi
13263 RANLIB=$ac_cv_prog_RANLIB
13264 if test -n "$RANLIB"; then
13265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13266 $as_echo "$RANLIB" >&6; }
13267 else
13268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13269 $as_echo "no" >&6; }
13270 fi
13271
13272
13273 fi
13274 if test -z "$ac_cv_prog_RANLIB"; then
13275   ac_ct_RANLIB=$RANLIB
13276   # Extract the first word of "ranlib", so it can be a program name with args.
13277 set dummy ranlib; ac_word=$2
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13279 $as_echo_n "checking for $ac_word... " >&6; }
13280 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13281   $as_echo_n "(cached) " >&6
13282 else
13283   if test -n "$ac_ct_RANLIB"; then
13284   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13285 else
13286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13287 for as_dir in $PATH
13288 do
13289   IFS=$as_save_IFS
13290   test -z "$as_dir" && as_dir=.
13291     for ac_exec_ext in '' $ac_executable_extensions; do
13292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13293     ac_cv_prog_ac_ct_RANLIB="ranlib"
13294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13295     break 2
13296   fi
13297 done
13298   done
13299 IFS=$as_save_IFS
13300
13301 fi
13302 fi
13303 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13304 if test -n "$ac_ct_RANLIB"; then
13305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13306 $as_echo "$ac_ct_RANLIB" >&6; }
13307 else
13308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13309 $as_echo "no" >&6; }
13310 fi
13311
13312   if test "x$ac_ct_RANLIB" = x; then
13313     RANLIB=":"
13314   else
13315     case $cross_compiling:$ac_tool_warned in
13316 yes:)
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13319 ac_tool_warned=yes ;;
13320 esac
13321     RANLIB=$ac_ct_RANLIB
13322   fi
13323 else
13324   RANLIB="$ac_cv_prog_RANLIB"
13325 fi
13326
13327 test -z "$RANLIB" && RANLIB=:
13328
13329
13330
13331
13332
13333
13334 # Determine commands to create old-style static archives.
13335 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13336 old_postinstall_cmds='chmod 644 $oldlib'
13337 old_postuninstall_cmds=
13338
13339 if test -n "$RANLIB"; then
13340   case $host_os in
13341   openbsd*)
13342     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13343     ;;
13344   *)
13345     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13346     ;;
13347   esac
13348   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13349 fi
13350
13351 case $host_os in
13352   darwin*)
13353     lock_old_archive_extraction=yes ;;
13354   *)
13355     lock_old_archive_extraction=no ;;
13356 esac
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396 # If no C compiler was specified, use CC.
13397 LTCC=${LTCC-"$CC"}
13398
13399 # If no C compiler flags were specified, use CFLAGS.
13400 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13401
13402 # Allow CC to be a program name with arguments.
13403 compiler=$CC
13404
13405
13406 # Check for command to grab the raw symbol name followed by C symbol from nm.
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13408 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13409 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13410   $as_echo_n "(cached) " >&6
13411 else
13412
13413 # These are sane defaults that work on at least a few old systems.
13414 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13415
13416 # Character class describing NM global symbol codes.
13417 symcode='[BCDEGRST]'
13418
13419 # Regexp to match symbols that can be accessed directly from C.
13420 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13421
13422 # Define system-specific variables.
13423 case $host_os in
13424 aix*)
13425   symcode='[BCDT]'
13426   ;;
13427 cygwin* | mingw* | pw32* | cegcc*)
13428   symcode='[ABCDGISTW]'
13429   ;;
13430 hpux*)
13431   if test "$host_cpu" = ia64; then
13432     symcode='[ABCDEGRST]'
13433   fi
13434   ;;
13435 irix* | nonstopux*)
13436   symcode='[BCDEGRST]'
13437   ;;
13438 osf*)
13439   symcode='[BCDEGQRST]'
13440   ;;
13441 solaris*)
13442   symcode='[BDRT]'
13443   ;;
13444 sco3.2v5*)
13445   symcode='[DT]'
13446   ;;
13447 sysv4.2uw2*)
13448   symcode='[DT]'
13449   ;;
13450 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13451   symcode='[ABDT]'
13452   ;;
13453 sysv4)
13454   symcode='[DFNSTU]'
13455   ;;
13456 esac
13457
13458 # If we're using GNU nm, then use its standard symbol codes.
13459 case `$NM -V 2>&1` in
13460 *GNU* | *'with BFD'*)
13461   symcode='[ABCDGIRSTW]' ;;
13462 esac
13463
13464 # Transform an extracted symbol line into a proper C declaration.
13465 # Some systems (esp. on ia64) link data and code symbols differently,
13466 # so use this general approach.
13467 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13468
13469 # Transform an extracted symbol line into symbol name and symbol address
13470 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13471 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'"
13472
13473 # Handle CRLF in mingw tool chain
13474 opt_cr=
13475 case $build_os in
13476 mingw*)
13477   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13478   ;;
13479 esac
13480
13481 # Try without a prefix underscore, then with it.
13482 for ac_symprfx in "" "_"; do
13483
13484   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13485   symxfrm="\\1 $ac_symprfx\\2 \\2"
13486
13487   # Write the raw and C identifiers.
13488   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13489     # Fake it for dumpbin and say T for any non-static function
13490     # and D for any global variable.
13491     # Also find C++ and __fastcall symbols from MSVC++,
13492     # which start with @ or ?.
13493     lt_cv_sys_global_symbol_pipe="$AWK '"\
13494 "     {last_section=section; section=\$ 3};"\
13495 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13496 "     \$ 0!~/External *\|/{next};"\
13497 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13498 "     {if(hide[section]) next};"\
13499 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13500 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13501 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13502 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13503 "     ' prfx=^$ac_symprfx"
13504   else
13505     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13506   fi
13507
13508   # Check to see that the pipe works correctly.
13509   pipe_works=no
13510
13511   rm -f conftest*
13512   cat > conftest.$ac_ext <<_LT_EOF
13513 #ifdef __cplusplus
13514 extern "C" {
13515 #endif
13516 char nm_test_var;
13517 void nm_test_func(void);
13518 void nm_test_func(void){}
13519 #ifdef __cplusplus
13520 }
13521 #endif
13522 int main(){nm_test_var='a';nm_test_func();return(0);}
13523 _LT_EOF
13524
13525   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13526   (eval $ac_compile) 2>&5
13527   ac_status=$?
13528   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13529   test $ac_status = 0; }; then
13530     # Now try to grab the symbols.
13531     nlist=conftest.nm
13532     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13533   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13534   ac_status=$?
13535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13536   test $ac_status = 0; } && test -s "$nlist"; then
13537       # Try sorting and uniquifying the output.
13538       if sort "$nlist" | uniq > "$nlist"T; then
13539         mv -f "$nlist"T "$nlist"
13540       else
13541         rm -f "$nlist"T
13542       fi
13543
13544       # Make sure that we snagged all the symbols we need.
13545       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13546         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13547           cat <<_LT_EOF > conftest.$ac_ext
13548 #ifdef __cplusplus
13549 extern "C" {
13550 #endif
13551
13552 _LT_EOF
13553           # Now generate the symbol file.
13554           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13555
13556           cat <<_LT_EOF >> conftest.$ac_ext
13557
13558 /* The mapping between symbol names and symbols.  */
13559 const struct {
13560   const char *name;
13561   void       *address;
13562 }
13563 lt__PROGRAM__LTX_preloaded_symbols[] =
13564 {
13565   { "@PROGRAM@", (void *) 0 },
13566 _LT_EOF
13567           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13568           cat <<\_LT_EOF >> conftest.$ac_ext
13569   {0, (void *) 0}
13570 };
13571
13572 /* This works around a problem in FreeBSD linker */
13573 #ifdef FREEBSD_WORKAROUND
13574 static const void *lt_preloaded_setup() {
13575   return lt__PROGRAM__LTX_preloaded_symbols;
13576 }
13577 #endif
13578
13579 #ifdef __cplusplus
13580 }
13581 #endif
13582 _LT_EOF
13583           # Now try linking the two files.
13584           mv conftest.$ac_objext conftstm.$ac_objext
13585           lt_save_LIBS="$LIBS"
13586           lt_save_CFLAGS="$CFLAGS"
13587           LIBS="conftstm.$ac_objext"
13588           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13589           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13590   (eval $ac_link) 2>&5
13591   ac_status=$?
13592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13593   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13594             pipe_works=yes
13595           fi
13596           LIBS="$lt_save_LIBS"
13597           CFLAGS="$lt_save_CFLAGS"
13598         else
13599           echo "cannot find nm_test_func in $nlist" >&5
13600         fi
13601       else
13602         echo "cannot find nm_test_var in $nlist" >&5
13603       fi
13604     else
13605       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13606     fi
13607   else
13608     echo "$progname: failed program was:" >&5
13609     cat conftest.$ac_ext >&5
13610   fi
13611   rm -rf conftest* conftst*
13612
13613   # Do not use the global_symbol_pipe unless it works.
13614   if test "$pipe_works" = yes; then
13615     break
13616   else
13617     lt_cv_sys_global_symbol_pipe=
13618   fi
13619 done
13620
13621 fi
13622
13623 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13624   lt_cv_sys_global_symbol_to_cdecl=
13625 fi
13626 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13628 $as_echo "failed" >&6; }
13629 else
13630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13631 $as_echo "ok" >&6; }
13632 fi
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655 # Check whether --enable-libtool-lock was given.
13656 if test "${enable_libtool_lock+set}" = set; then :
13657   enableval=$enable_libtool_lock;
13658 fi
13659
13660 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13661
13662 # Some flags need to be propagated to the compiler or linker for good
13663 # libtool support.
13664 case $host in
13665 ia64-*-hpux*)
13666   # Find out which ABI we are using.
13667   echo 'int i;' > conftest.$ac_ext
13668   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13669   (eval $ac_compile) 2>&5
13670   ac_status=$?
13671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13672   test $ac_status = 0; }; then
13673     case `/usr/bin/file conftest.$ac_objext` in
13674       *ELF-32*)
13675         HPUX_IA64_MODE="32"
13676         ;;
13677       *ELF-64*)
13678         HPUX_IA64_MODE="64"
13679         ;;
13680     esac
13681   fi
13682   rm -rf conftest*
13683   ;;
13684 *-*-irix6*)
13685   # Find out which ABI we are using.
13686   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13687   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13688   (eval $ac_compile) 2>&5
13689   ac_status=$?
13690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13691   test $ac_status = 0; }; then
13692     if test "$lt_cv_prog_gnu_ld" = yes; then
13693       case `/usr/bin/file conftest.$ac_objext` in
13694         *32-bit*)
13695           LD="${LD-ld} -melf32bsmip"
13696           ;;
13697         *N32*)
13698           LD="${LD-ld} -melf32bmipn32"
13699           ;;
13700         *64-bit*)
13701           LD="${LD-ld} -melf64bmip"
13702         ;;
13703       esac
13704     else
13705       case `/usr/bin/file conftest.$ac_objext` in
13706         *32-bit*)
13707           LD="${LD-ld} -32"
13708           ;;
13709         *N32*)
13710           LD="${LD-ld} -n32"
13711           ;;
13712         *64-bit*)
13713           LD="${LD-ld} -64"
13714           ;;
13715       esac
13716     fi
13717   fi
13718   rm -rf conftest*
13719   ;;
13720
13721 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13722 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13723   # Find out which ABI we are using.
13724   echo 'int i;' > conftest.$ac_ext
13725   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13726   (eval $ac_compile) 2>&5
13727   ac_status=$?
13728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13729   test $ac_status = 0; }; then
13730     case `/usr/bin/file conftest.o` in
13731       *32-bit*)
13732         case $host in
13733           x86_64-*kfreebsd*-gnu)
13734             LD="${LD-ld} -m elf_i386_fbsd"
13735             ;;
13736           x86_64-*linux*)
13737             LD="${LD-ld} -m elf_i386"
13738             ;;
13739           ppc64-*linux*|powerpc64-*linux*)
13740             LD="${LD-ld} -m elf32ppclinux"
13741             ;;
13742           s390x-*linux*)
13743             LD="${LD-ld} -m elf_s390"
13744             ;;
13745           sparc64-*linux*)
13746             LD="${LD-ld} -m elf32_sparc"
13747             ;;
13748         esac
13749         ;;
13750       *64-bit*)
13751         case $host in
13752           x86_64-*kfreebsd*-gnu)
13753             LD="${LD-ld} -m elf_x86_64_fbsd"
13754             ;;
13755           x86_64-*linux*)
13756             LD="${LD-ld} -m elf_x86_64"
13757             ;;
13758           ppc*-*linux*|powerpc*-*linux*)
13759             LD="${LD-ld} -m elf64ppc"
13760             ;;
13761           s390*-*linux*|s390*-*tpf*)
13762             LD="${LD-ld} -m elf64_s390"
13763             ;;
13764           sparc*-*linux*)
13765             LD="${LD-ld} -m elf64_sparc"
13766             ;;
13767         esac
13768         ;;
13769     esac
13770   fi
13771   rm -rf conftest*
13772   ;;
13773
13774 *-*-sco3.2v5*)
13775   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13776   SAVE_CFLAGS="$CFLAGS"
13777   CFLAGS="$CFLAGS -belf"
13778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13779 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13780 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13781   $as_echo_n "(cached) " >&6
13782 else
13783   ac_ext=c
13784 ac_cpp='$CPP $CPPFLAGS'
13785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13788
13789      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13790 /* end confdefs.h.  */
13791
13792 int
13793 main ()
13794 {
13795
13796   ;
13797   return 0;
13798 }
13799 _ACEOF
13800 if ac_fn_c_try_link "$LINENO"; then :
13801   lt_cv_cc_needs_belf=yes
13802 else
13803   lt_cv_cc_needs_belf=no
13804 fi
13805 rm -f core conftest.err conftest.$ac_objext \
13806     conftest$ac_exeext conftest.$ac_ext
13807      ac_ext=c
13808 ac_cpp='$CPP $CPPFLAGS'
13809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13812
13813 fi
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13815 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13816   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13817     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13818     CFLAGS="$SAVE_CFLAGS"
13819   fi
13820   ;;
13821 sparc*-*solaris*)
13822   # Find out which ABI we are using.
13823   echo 'int i;' > conftest.$ac_ext
13824   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13825   (eval $ac_compile) 2>&5
13826   ac_status=$?
13827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13828   test $ac_status = 0; }; then
13829     case `/usr/bin/file conftest.o` in
13830     *64-bit*)
13831       case $lt_cv_prog_gnu_ld in
13832       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13833       *)
13834         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13835           LD="${LD-ld} -64"
13836         fi
13837         ;;
13838       esac
13839       ;;
13840     esac
13841   fi
13842   rm -rf conftest*
13843   ;;
13844 esac
13845
13846 need_locks="$enable_libtool_lock"
13847
13848
13849   case $host_os in
13850     rhapsody* | darwin*)
13851     if test -n "$ac_tool_prefix"; then
13852   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13853 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13855 $as_echo_n "checking for $ac_word... " >&6; }
13856 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13857   $as_echo_n "(cached) " >&6
13858 else
13859   if test -n "$DSYMUTIL"; then
13860   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13861 else
13862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13863 for as_dir in $PATH
13864 do
13865   IFS=$as_save_IFS
13866   test -z "$as_dir" && as_dir=.
13867     for ac_exec_ext in '' $ac_executable_extensions; do
13868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13869     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13871     break 2
13872   fi
13873 done
13874   done
13875 IFS=$as_save_IFS
13876
13877 fi
13878 fi
13879 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13880 if test -n "$DSYMUTIL"; then
13881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13882 $as_echo "$DSYMUTIL" >&6; }
13883 else
13884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13885 $as_echo "no" >&6; }
13886 fi
13887
13888
13889 fi
13890 if test -z "$ac_cv_prog_DSYMUTIL"; then
13891   ac_ct_DSYMUTIL=$DSYMUTIL
13892   # Extract the first word of "dsymutil", so it can be a program name with args.
13893 set dummy dsymutil; ac_word=$2
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13895 $as_echo_n "checking for $ac_word... " >&6; }
13896 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13897   $as_echo_n "(cached) " >&6
13898 else
13899   if test -n "$ac_ct_DSYMUTIL"; then
13900   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13901 else
13902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13903 for as_dir in $PATH
13904 do
13905   IFS=$as_save_IFS
13906   test -z "$as_dir" && as_dir=.
13907     for ac_exec_ext in '' $ac_executable_extensions; do
13908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13909     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13911     break 2
13912   fi
13913 done
13914   done
13915 IFS=$as_save_IFS
13916
13917 fi
13918 fi
13919 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13920 if test -n "$ac_ct_DSYMUTIL"; then
13921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13922 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13923 else
13924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13925 $as_echo "no" >&6; }
13926 fi
13927
13928   if test "x$ac_ct_DSYMUTIL" = x; then
13929     DSYMUTIL=":"
13930   else
13931     case $cross_compiling:$ac_tool_warned in
13932 yes:)
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13935 ac_tool_warned=yes ;;
13936 esac
13937     DSYMUTIL=$ac_ct_DSYMUTIL
13938   fi
13939 else
13940   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13941 fi
13942
13943     if test -n "$ac_tool_prefix"; then
13944   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13945 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13947 $as_echo_n "checking for $ac_word... " >&6; }
13948 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13949   $as_echo_n "(cached) " >&6
13950 else
13951   if test -n "$NMEDIT"; then
13952   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13953 else
13954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13955 for as_dir in $PATH
13956 do
13957   IFS=$as_save_IFS
13958   test -z "$as_dir" && as_dir=.
13959     for ac_exec_ext in '' $ac_executable_extensions; do
13960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13961     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13963     break 2
13964   fi
13965 done
13966   done
13967 IFS=$as_save_IFS
13968
13969 fi
13970 fi
13971 NMEDIT=$ac_cv_prog_NMEDIT
13972 if test -n "$NMEDIT"; then
13973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13974 $as_echo "$NMEDIT" >&6; }
13975 else
13976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13977 $as_echo "no" >&6; }
13978 fi
13979
13980
13981 fi
13982 if test -z "$ac_cv_prog_NMEDIT"; then
13983   ac_ct_NMEDIT=$NMEDIT
13984   # Extract the first word of "nmedit", so it can be a program name with args.
13985 set dummy nmedit; ac_word=$2
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13987 $as_echo_n "checking for $ac_word... " >&6; }
13988 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13989   $as_echo_n "(cached) " >&6
13990 else
13991   if test -n "$ac_ct_NMEDIT"; then
13992   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13993 else
13994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13995 for as_dir in $PATH
13996 do
13997   IFS=$as_save_IFS
13998   test -z "$as_dir" && as_dir=.
13999     for ac_exec_ext in '' $ac_executable_extensions; do
14000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14001     ac_cv_prog_ac_ct_NMEDIT="nmedit"
14002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14003     break 2
14004   fi
14005 done
14006   done
14007 IFS=$as_save_IFS
14008
14009 fi
14010 fi
14011 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14012 if test -n "$ac_ct_NMEDIT"; then
14013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14014 $as_echo "$ac_ct_NMEDIT" >&6; }
14015 else
14016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14017 $as_echo "no" >&6; }
14018 fi
14019
14020   if test "x$ac_ct_NMEDIT" = x; then
14021     NMEDIT=":"
14022   else
14023     case $cross_compiling:$ac_tool_warned in
14024 yes:)
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14027 ac_tool_warned=yes ;;
14028 esac
14029     NMEDIT=$ac_ct_NMEDIT
14030   fi
14031 else
14032   NMEDIT="$ac_cv_prog_NMEDIT"
14033 fi
14034
14035     if test -n "$ac_tool_prefix"; then
14036   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14037 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14039 $as_echo_n "checking for $ac_word... " >&6; }
14040 if test "${ac_cv_prog_LIPO+set}" = set; then :
14041   $as_echo_n "(cached) " >&6
14042 else
14043   if test -n "$LIPO"; then
14044   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14045 else
14046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14047 for as_dir in $PATH
14048 do
14049   IFS=$as_save_IFS
14050   test -z "$as_dir" && as_dir=.
14051     for ac_exec_ext in '' $ac_executable_extensions; do
14052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14053     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14055     break 2
14056   fi
14057 done
14058   done
14059 IFS=$as_save_IFS
14060
14061 fi
14062 fi
14063 LIPO=$ac_cv_prog_LIPO
14064 if test -n "$LIPO"; then
14065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14066 $as_echo "$LIPO" >&6; }
14067 else
14068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14069 $as_echo "no" >&6; }
14070 fi
14071
14072
14073 fi
14074 if test -z "$ac_cv_prog_LIPO"; then
14075   ac_ct_LIPO=$LIPO
14076   # Extract the first word of "lipo", so it can be a program name with args.
14077 set dummy lipo; ac_word=$2
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14079 $as_echo_n "checking for $ac_word... " >&6; }
14080 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14081   $as_echo_n "(cached) " >&6
14082 else
14083   if test -n "$ac_ct_LIPO"; then
14084   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14085 else
14086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14087 for as_dir in $PATH
14088 do
14089   IFS=$as_save_IFS
14090   test -z "$as_dir" && as_dir=.
14091     for ac_exec_ext in '' $ac_executable_extensions; do
14092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14093     ac_cv_prog_ac_ct_LIPO="lipo"
14094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14095     break 2
14096   fi
14097 done
14098   done
14099 IFS=$as_save_IFS
14100
14101 fi
14102 fi
14103 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14104 if test -n "$ac_ct_LIPO"; then
14105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14106 $as_echo "$ac_ct_LIPO" >&6; }
14107 else
14108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14109 $as_echo "no" >&6; }
14110 fi
14111
14112   if test "x$ac_ct_LIPO" = x; then
14113     LIPO=":"
14114   else
14115     case $cross_compiling:$ac_tool_warned in
14116 yes:)
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14119 ac_tool_warned=yes ;;
14120 esac
14121     LIPO=$ac_ct_LIPO
14122   fi
14123 else
14124   LIPO="$ac_cv_prog_LIPO"
14125 fi
14126
14127     if test -n "$ac_tool_prefix"; then
14128   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14129 set dummy ${ac_tool_prefix}otool; ac_word=$2
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14131 $as_echo_n "checking for $ac_word... " >&6; }
14132 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14133   $as_echo_n "(cached) " >&6
14134 else
14135   if test -n "$OTOOL"; then
14136   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14137 else
14138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14139 for as_dir in $PATH
14140 do
14141   IFS=$as_save_IFS
14142   test -z "$as_dir" && as_dir=.
14143     for ac_exec_ext in '' $ac_executable_extensions; do
14144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14145     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14147     break 2
14148   fi
14149 done
14150   done
14151 IFS=$as_save_IFS
14152
14153 fi
14154 fi
14155 OTOOL=$ac_cv_prog_OTOOL
14156 if test -n "$OTOOL"; then
14157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14158 $as_echo "$OTOOL" >&6; }
14159 else
14160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14161 $as_echo "no" >&6; }
14162 fi
14163
14164
14165 fi
14166 if test -z "$ac_cv_prog_OTOOL"; then
14167   ac_ct_OTOOL=$OTOOL
14168   # Extract the first word of "otool", so it can be a program name with args.
14169 set dummy otool; ac_word=$2
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14171 $as_echo_n "checking for $ac_word... " >&6; }
14172 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14173   $as_echo_n "(cached) " >&6
14174 else
14175   if test -n "$ac_ct_OTOOL"; then
14176   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14177 else
14178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14179 for as_dir in $PATH
14180 do
14181   IFS=$as_save_IFS
14182   test -z "$as_dir" && as_dir=.
14183     for ac_exec_ext in '' $ac_executable_extensions; do
14184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14185     ac_cv_prog_ac_ct_OTOOL="otool"
14186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14187     break 2
14188   fi
14189 done
14190   done
14191 IFS=$as_save_IFS
14192
14193 fi
14194 fi
14195 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14196 if test -n "$ac_ct_OTOOL"; then
14197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14198 $as_echo "$ac_ct_OTOOL" >&6; }
14199 else
14200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14201 $as_echo "no" >&6; }
14202 fi
14203
14204   if test "x$ac_ct_OTOOL" = x; then
14205     OTOOL=":"
14206   else
14207     case $cross_compiling:$ac_tool_warned in
14208 yes:)
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14211 ac_tool_warned=yes ;;
14212 esac
14213     OTOOL=$ac_ct_OTOOL
14214   fi
14215 else
14216   OTOOL="$ac_cv_prog_OTOOL"
14217 fi
14218
14219     if test -n "$ac_tool_prefix"; then
14220   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14221 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14223 $as_echo_n "checking for $ac_word... " >&6; }
14224 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14225   $as_echo_n "(cached) " >&6
14226 else
14227   if test -n "$OTOOL64"; then
14228   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14229 else
14230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14231 for as_dir in $PATH
14232 do
14233   IFS=$as_save_IFS
14234   test -z "$as_dir" && as_dir=.
14235     for ac_exec_ext in '' $ac_executable_extensions; do
14236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14237     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14239     break 2
14240   fi
14241 done
14242   done
14243 IFS=$as_save_IFS
14244
14245 fi
14246 fi
14247 OTOOL64=$ac_cv_prog_OTOOL64
14248 if test -n "$OTOOL64"; then
14249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14250 $as_echo "$OTOOL64" >&6; }
14251 else
14252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14253 $as_echo "no" >&6; }
14254 fi
14255
14256
14257 fi
14258 if test -z "$ac_cv_prog_OTOOL64"; then
14259   ac_ct_OTOOL64=$OTOOL64
14260   # Extract the first word of "otool64", so it can be a program name with args.
14261 set dummy otool64; ac_word=$2
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14263 $as_echo_n "checking for $ac_word... " >&6; }
14264 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14265   $as_echo_n "(cached) " >&6
14266 else
14267   if test -n "$ac_ct_OTOOL64"; then
14268   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14269 else
14270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14271 for as_dir in $PATH
14272 do
14273   IFS=$as_save_IFS
14274   test -z "$as_dir" && as_dir=.
14275     for ac_exec_ext in '' $ac_executable_extensions; do
14276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14277     ac_cv_prog_ac_ct_OTOOL64="otool64"
14278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14279     break 2
14280   fi
14281 done
14282   done
14283 IFS=$as_save_IFS
14284
14285 fi
14286 fi
14287 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14288 if test -n "$ac_ct_OTOOL64"; then
14289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14290 $as_echo "$ac_ct_OTOOL64" >&6; }
14291 else
14292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14293 $as_echo "no" >&6; }
14294 fi
14295
14296   if test "x$ac_ct_OTOOL64" = x; then
14297     OTOOL64=":"
14298   else
14299     case $cross_compiling:$ac_tool_warned in
14300 yes:)
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14303 ac_tool_warned=yes ;;
14304 esac
14305     OTOOL64=$ac_ct_OTOOL64
14306   fi
14307 else
14308   OTOOL64="$ac_cv_prog_OTOOL64"
14309 fi
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14338 $as_echo_n "checking for -single_module linker flag... " >&6; }
14339 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14340   $as_echo_n "(cached) " >&6
14341 else
14342   lt_cv_apple_cc_single_mod=no
14343       if test -z "${LT_MULTI_MODULE}"; then
14344         # By default we will add the -single_module flag. You can override
14345         # by either setting the environment variable LT_MULTI_MODULE
14346         # non-empty at configure time, or by adding -multi_module to the
14347         # link flags.
14348         rm -rf libconftest.dylib*
14349         echo "int foo(void){return 1;}" > conftest.c
14350         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14351 -dynamiclib -Wl,-single_module conftest.c" >&5
14352         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14353           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14354         _lt_result=$?
14355         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14356           lt_cv_apple_cc_single_mod=yes
14357         else
14358           cat conftest.err >&5
14359         fi
14360         rm -rf libconftest.dylib*
14361         rm -f conftest.*
14362       fi
14363 fi
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14365 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14366     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14367 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14368 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14369   $as_echo_n "(cached) " >&6
14370 else
14371   lt_cv_ld_exported_symbols_list=no
14372       save_LDFLAGS=$LDFLAGS
14373       echo "_main" > conftest.sym
14374       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14375       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14376 /* end confdefs.h.  */
14377
14378 int
14379 main ()
14380 {
14381
14382   ;
14383   return 0;
14384 }
14385 _ACEOF
14386 if ac_fn_c_try_link "$LINENO"; then :
14387   lt_cv_ld_exported_symbols_list=yes
14388 else
14389   lt_cv_ld_exported_symbols_list=no
14390 fi
14391 rm -f core conftest.err conftest.$ac_objext \
14392     conftest$ac_exeext conftest.$ac_ext
14393         LDFLAGS="$save_LDFLAGS"
14394
14395 fi
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14397 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14398     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14399 $as_echo_n "checking for -force_load linker flag... " >&6; }
14400 if test "${lt_cv_ld_force_load+set}" = set; then :
14401   $as_echo_n "(cached) " >&6
14402 else
14403   lt_cv_ld_force_load=no
14404       cat > conftest.c << _LT_EOF
14405 int forced_loaded() { return 2;}
14406 _LT_EOF
14407       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14408       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14409       echo "$AR cru libconftest.a conftest.o" >&5
14410       $AR cru libconftest.a conftest.o 2>&5
14411       cat > conftest.c << _LT_EOF
14412 int main() { return 0;}
14413 _LT_EOF
14414       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14415       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14416       _lt_result=$?
14417       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14418         lt_cv_ld_force_load=yes
14419       else
14420         cat conftest.err >&5
14421       fi
14422         rm -f conftest.err libconftest.a conftest conftest.c
14423         rm -rf conftest.dSYM
14424
14425 fi
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14427 $as_echo "$lt_cv_ld_force_load" >&6; }
14428     case $host_os in
14429     rhapsody* | darwin1.[012])
14430       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14431     darwin1.*)
14432       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14433     darwin*) # darwin 5.x on
14434       # if running on 10.5 or later, the deployment target defaults
14435       # to the OS version, if on x86, and 10.4, the deployment
14436       # target defaults to 10.4. Don't you love it?
14437       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14438         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14439           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14440         10.[012]*)
14441           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14442         10.*)
14443           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14444       esac
14445     ;;
14446   esac
14447     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14448       _lt_dar_single_mod='$single_module'
14449     fi
14450     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14451       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14452     else
14453       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14454     fi
14455     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14456       _lt_dsymutil='~$DSYMUTIL $lib || :'
14457     else
14458       _lt_dsymutil=
14459     fi
14460     ;;
14461   esac
14462
14463 for ac_header in dlfcn.h
14464 do :
14465   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14466 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14467   cat >>confdefs.h <<_ACEOF
14468 #define HAVE_DLFCN_H 1
14469 _ACEOF
14470
14471 fi
14472 done
14473
14474
14475
14476
14477
14478 # Set options
14479
14480
14481
14482         enable_dlopen=no
14483
14484
14485   enable_win32_dll=no
14486
14487
14488             # Check whether --enable-shared was given.
14489 if test "${enable_shared+set}" = set; then :
14490   enableval=$enable_shared; p=${PACKAGE-default}
14491     case $enableval in
14492     yes) enable_shared=yes ;;
14493     no) enable_shared=no ;;
14494     *)
14495       enable_shared=no
14496       # Look at the argument we got.  We use all the common list separators.
14497       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14498       for pkg in $enableval; do
14499         IFS="$lt_save_ifs"
14500         if test "X$pkg" = "X$p"; then
14501           enable_shared=yes
14502         fi
14503       done
14504       IFS="$lt_save_ifs"
14505       ;;
14506     esac
14507 else
14508   enable_shared=yes
14509 fi
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519   # Check whether --enable-static was given.
14520 if test "${enable_static+set}" = set; then :
14521   enableval=$enable_static; p=${PACKAGE-default}
14522     case $enableval in
14523     yes) enable_static=yes ;;
14524     no) enable_static=no ;;
14525     *)
14526      enable_static=no
14527       # Look at the argument we got.  We use all the common list separators.
14528       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14529       for pkg in $enableval; do
14530         IFS="$lt_save_ifs"
14531         if test "X$pkg" = "X$p"; then
14532           enable_static=yes
14533         fi
14534       done
14535       IFS="$lt_save_ifs"
14536       ;;
14537     esac
14538 else
14539   enable_static=yes
14540 fi
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551 # Check whether --with-pic was given.
14552 if test "${with_pic+set}" = set; then :
14553   withval=$with_pic; pic_mode="$withval"
14554 else
14555   pic_mode=default
14556 fi
14557
14558
14559 test -z "$pic_mode" && pic_mode=default
14560
14561
14562
14563
14564
14565
14566
14567   # Check whether --enable-fast-install was given.
14568 if test "${enable_fast_install+set}" = set; then :
14569   enableval=$enable_fast_install; p=${PACKAGE-default}
14570     case $enableval in
14571     yes) enable_fast_install=yes ;;
14572     no) enable_fast_install=no ;;
14573     *)
14574       enable_fast_install=no
14575       # Look at the argument we got.  We use all the common list separators.
14576       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14577       for pkg in $enableval; do
14578         IFS="$lt_save_ifs"
14579         if test "X$pkg" = "X$p"; then
14580           enable_fast_install=yes
14581         fi
14582       done
14583       IFS="$lt_save_ifs"
14584       ;;
14585     esac
14586 else
14587   enable_fast_install=yes
14588 fi
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600 # This can be used to rebuild libtool when needed
14601 LIBTOOL_DEPS="$ltmain"
14602
14603 # Always use our own libtool.
14604 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631 test -z "$LN_S" && LN_S="ln -s"
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646 if test -n "${ZSH_VERSION+set}" ; then
14647    setopt NO_GLOB_SUBST
14648 fi
14649
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14651 $as_echo_n "checking for objdir... " >&6; }
14652 if test "${lt_cv_objdir+set}" = set; then :
14653   $as_echo_n "(cached) " >&6
14654 else
14655   rm -f .libs 2>/dev/null
14656 mkdir .libs 2>/dev/null
14657 if test -d .libs; then
14658   lt_cv_objdir=.libs
14659 else
14660   # MS-DOS does not allow filenames that begin with a dot.
14661   lt_cv_objdir=_libs
14662 fi
14663 rmdir .libs 2>/dev/null
14664 fi
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14666 $as_echo "$lt_cv_objdir" >&6; }
14667 objdir=$lt_cv_objdir
14668
14669
14670
14671
14672
14673 cat >>confdefs.h <<_ACEOF
14674 #define LT_OBJDIR "$lt_cv_objdir/"
14675 _ACEOF
14676
14677
14678
14679
14680 case $host_os in
14681 aix3*)
14682   # AIX sometimes has problems with the GCC collect2 program.  For some
14683   # reason, if we set the COLLECT_NAMES environment variable, the problems
14684   # vanish in a puff of smoke.
14685   if test "X${COLLECT_NAMES+set}" != Xset; then
14686     COLLECT_NAMES=
14687     export COLLECT_NAMES
14688   fi
14689   ;;
14690 esac
14691
14692 # Global variables:
14693 ofile=libtool
14694 can_build_shared=yes
14695
14696 # All known linkers require a `.a' archive for static linking (except MSVC,
14697 # which needs '.lib').
14698 libext=a
14699
14700 with_gnu_ld="$lt_cv_prog_gnu_ld"
14701
14702 old_CC="$CC"
14703 old_CFLAGS="$CFLAGS"
14704
14705 # Set sane defaults for various variables
14706 test -z "$CC" && CC=cc
14707 test -z "$LTCC" && LTCC=$CC
14708 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14709 test -z "$LD" && LD=ld
14710 test -z "$ac_objext" && ac_objext=o
14711
14712 for cc_temp in $compiler""; do
14713   case $cc_temp in
14714     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14715     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14716     \-*) ;;
14717     *) break;;
14718   esac
14719 done
14720 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14721
14722
14723 # Only perform the check for file, if the check method requires it
14724 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14725 case $deplibs_check_method in
14726 file_magic*)
14727   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14729 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14730 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14731   $as_echo_n "(cached) " >&6
14732 else
14733   case $MAGIC_CMD in
14734 [\\/*] |  ?:[\\/]*)
14735   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14736   ;;
14737 *)
14738   lt_save_MAGIC_CMD="$MAGIC_CMD"
14739   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14740   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14741   for ac_dir in $ac_dummy; do
14742     IFS="$lt_save_ifs"
14743     test -z "$ac_dir" && ac_dir=.
14744     if test -f $ac_dir/${ac_tool_prefix}file; then
14745       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14746       if test -n "$file_magic_test_file"; then
14747         case $deplibs_check_method in
14748         "file_magic "*)
14749           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14750           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14751           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14752             $EGREP "$file_magic_regex" > /dev/null; then
14753             :
14754           else
14755             cat <<_LT_EOF 1>&2
14756
14757 *** Warning: the command libtool uses to detect shared libraries,
14758 *** $file_magic_cmd, produces output that libtool cannot recognize.
14759 *** The result is that libtool may fail to recognize shared libraries
14760 *** as such.  This will affect the creation of libtool libraries that
14761 *** depend on shared libraries, but programs linked with such libtool
14762 *** libraries will work regardless of this problem.  Nevertheless, you
14763 *** may want to report the problem to your system manager and/or to
14764 *** bug-libtool@gnu.org
14765
14766 _LT_EOF
14767           fi ;;
14768         esac
14769       fi
14770       break
14771     fi
14772   done
14773   IFS="$lt_save_ifs"
14774   MAGIC_CMD="$lt_save_MAGIC_CMD"
14775   ;;
14776 esac
14777 fi
14778
14779 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14780 if test -n "$MAGIC_CMD"; then
14781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14782 $as_echo "$MAGIC_CMD" >&6; }
14783 else
14784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14785 $as_echo "no" >&6; }
14786 fi
14787
14788
14789
14790
14791
14792 if test -z "$lt_cv_path_MAGIC_CMD"; then
14793   if test -n "$ac_tool_prefix"; then
14794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14795 $as_echo_n "checking for file... " >&6; }
14796 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14797   $as_echo_n "(cached) " >&6
14798 else
14799   case $MAGIC_CMD in
14800 [\\/*] |  ?:[\\/]*)
14801   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14802   ;;
14803 *)
14804   lt_save_MAGIC_CMD="$MAGIC_CMD"
14805   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14806   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14807   for ac_dir in $ac_dummy; do
14808     IFS="$lt_save_ifs"
14809     test -z "$ac_dir" && ac_dir=.
14810     if test -f $ac_dir/file; then
14811       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14812       if test -n "$file_magic_test_file"; then
14813         case $deplibs_check_method in
14814         "file_magic "*)
14815           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14816           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14817           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14818             $EGREP "$file_magic_regex" > /dev/null; then
14819             :
14820           else
14821             cat <<_LT_EOF 1>&2
14822
14823 *** Warning: the command libtool uses to detect shared libraries,
14824 *** $file_magic_cmd, produces output that libtool cannot recognize.
14825 *** The result is that libtool may fail to recognize shared libraries
14826 *** as such.  This will affect the creation of libtool libraries that
14827 *** depend on shared libraries, but programs linked with such libtool
14828 *** libraries will work regardless of this problem.  Nevertheless, you
14829 *** may want to report the problem to your system manager and/or to
14830 *** bug-libtool@gnu.org
14831
14832 _LT_EOF
14833           fi ;;
14834         esac
14835       fi
14836       break
14837     fi
14838   done
14839   IFS="$lt_save_ifs"
14840   MAGIC_CMD="$lt_save_MAGIC_CMD"
14841   ;;
14842 esac
14843 fi
14844
14845 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14846 if test -n "$MAGIC_CMD"; then
14847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14848 $as_echo "$MAGIC_CMD" >&6; }
14849 else
14850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14851 $as_echo "no" >&6; }
14852 fi
14853
14854
14855   else
14856     MAGIC_CMD=:
14857   fi
14858 fi
14859
14860   fi
14861   ;;
14862 esac
14863
14864 # Use C for the default configuration in the libtool script
14865
14866 lt_save_CC="$CC"
14867 ac_ext=c
14868 ac_cpp='$CPP $CPPFLAGS'
14869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14872
14873
14874 # Source file extension for C test sources.
14875 ac_ext=c
14876
14877 # Object file extension for compiled C test sources.
14878 objext=o
14879 objext=$objext
14880
14881 # Code to be used in simple compile tests
14882 lt_simple_compile_test_code="int some_variable = 0;"
14883
14884 # Code to be used in simple link tests
14885 lt_simple_link_test_code='int main(){return(0);}'
14886
14887
14888
14889
14890
14891
14892
14893 # If no C compiler was specified, use CC.
14894 LTCC=${LTCC-"$CC"}
14895
14896 # If no C compiler flags were specified, use CFLAGS.
14897 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14898
14899 # Allow CC to be a program name with arguments.
14900 compiler=$CC
14901
14902 # Save the default compiler, since it gets overwritten when the other
14903 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14904 compiler_DEFAULT=$CC
14905
14906 # save warnings/boilerplate of simple test code
14907 ac_outfile=conftest.$ac_objext
14908 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14909 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14910 _lt_compiler_boilerplate=`cat conftest.err`
14911 $RM conftest*
14912
14913 ac_outfile=conftest.$ac_objext
14914 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14915 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14916 _lt_linker_boilerplate=`cat conftest.err`
14917 $RM -r conftest*
14918
14919
14920 ## CAVEAT EMPTOR:
14921 ## There is no encapsulation within the following macros, do not change
14922 ## the running order or otherwise move them around unless you know exactly
14923 ## what you are doing...
14924 if test -n "$compiler"; then
14925
14926 lt_prog_compiler_no_builtin_flag=
14927
14928 if test "$GCC" = yes; then
14929   case $cc_basename in
14930   nvcc*)
14931     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14932   *)
14933     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14934   esac
14935
14936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14937 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14938 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14939   $as_echo_n "(cached) " >&6
14940 else
14941   lt_cv_prog_compiler_rtti_exceptions=no
14942    ac_outfile=conftest.$ac_objext
14943    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14944    lt_compiler_flag="-fno-rtti -fno-exceptions"
14945    # Insert the option either (1) after the last *FLAGS variable, or
14946    # (2) before a word containing "conftest.", or (3) at the end.
14947    # Note that $ac_compile itself does not contain backslashes and begins
14948    # with a dollar sign (not a hyphen), so the echo should work correctly.
14949    # The option is referenced via a variable to avoid confusing sed.
14950    lt_compile=`echo "$ac_compile" | $SED \
14951    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14952    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14953    -e 's:$: $lt_compiler_flag:'`
14954    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14955    (eval "$lt_compile" 2>conftest.err)
14956    ac_status=$?
14957    cat conftest.err >&5
14958    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959    if (exit $ac_status) && test -s "$ac_outfile"; then
14960      # The compiler can only warn and ignore the option if not recognized
14961      # So say no if there are warnings other than the usual output.
14962      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14963      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14964      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14965        lt_cv_prog_compiler_rtti_exceptions=yes
14966      fi
14967    fi
14968    $RM conftest*
14969
14970 fi
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14972 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14973
14974 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14975     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14976 else
14977     :
14978 fi
14979
14980 fi
14981
14982
14983
14984
14985
14986
14987   lt_prog_compiler_wl=
14988 lt_prog_compiler_pic=
14989 lt_prog_compiler_static=
14990
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14992 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14993
14994   if test "$GCC" = yes; then
14995     lt_prog_compiler_wl='-Wl,'
14996     lt_prog_compiler_static='-static'
14997
14998     case $host_os in
14999       aix*)
15000       # All AIX code is PIC.
15001       if test "$host_cpu" = ia64; then
15002         # AIX 5 now supports IA64 processor
15003         lt_prog_compiler_static='-Bstatic'
15004       fi
15005       ;;
15006
15007     amigaos*)
15008       case $host_cpu in
15009       powerpc)
15010             # see comment about AmigaOS4 .so support
15011             lt_prog_compiler_pic='-fPIC'
15012         ;;
15013       m68k)
15014             # FIXME: we need at least 68020 code to build shared libraries, but
15015             # adding the `-m68020' flag to GCC prevents building anything better,
15016             # like `-m68040'.
15017             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15018         ;;
15019       esac
15020       ;;
15021
15022     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15023       # PIC is the default for these OSes.
15024       ;;
15025
15026     mingw* | cygwin* | pw32* | os2* | cegcc*)
15027       # This hack is so that the source file can tell whether it is being
15028       # built for inclusion in a dll (and should export symbols for example).
15029       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15030       # (--disable-auto-import) libraries
15031       lt_prog_compiler_pic='-DDLL_EXPORT'
15032       ;;
15033
15034     darwin* | rhapsody*)
15035       # PIC is the default on this platform
15036       # Common symbols not allowed in MH_DYLIB files
15037       lt_prog_compiler_pic='-fno-common'
15038       ;;
15039
15040     haiku*)
15041       # PIC is the default for Haiku.
15042       # The "-static" flag exists, but is broken.
15043       lt_prog_compiler_static=
15044       ;;
15045
15046     hpux*)
15047       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15048       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15049       # sets the default TLS model and affects inlining.
15050       case $host_cpu in
15051       hppa*64*)
15052         # +Z the default
15053         ;;
15054       *)
15055         lt_prog_compiler_pic='-fPIC'
15056         ;;
15057       esac
15058       ;;
15059
15060     interix[3-9]*)
15061       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15062       # Instead, we relocate shared libraries at runtime.
15063       ;;
15064
15065     msdosdjgpp*)
15066       # Just because we use GCC doesn't mean we suddenly get shared libraries
15067       # on systems that don't support them.
15068       lt_prog_compiler_can_build_shared=no
15069       enable_shared=no
15070       ;;
15071
15072     *nto* | *qnx*)
15073       # QNX uses GNU C++, but need to define -shared option too, otherwise
15074       # it will coredump.
15075       lt_prog_compiler_pic='-fPIC -shared'
15076       ;;
15077
15078     sysv4*MP*)
15079       if test -d /usr/nec; then
15080         lt_prog_compiler_pic=-Kconform_pic
15081       fi
15082       ;;
15083
15084     *)
15085       lt_prog_compiler_pic='-fPIC'
15086       ;;
15087     esac
15088
15089     case $cc_basename in
15090     nvcc*) # Cuda Compiler Driver 2.2
15091       lt_prog_compiler_wl='-Xlinker '
15092       lt_prog_compiler_pic='-Xcompiler -fPIC'
15093       ;;
15094     esac
15095   else
15096     # PORTME Check for flag to pass linker flags through the system compiler.
15097     case $host_os in
15098     aix*)
15099       lt_prog_compiler_wl='-Wl,'
15100       if test "$host_cpu" = ia64; then
15101         # AIX 5 now supports IA64 processor
15102         lt_prog_compiler_static='-Bstatic'
15103       else
15104         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15105       fi
15106       ;;
15107
15108     mingw* | cygwin* | pw32* | os2* | cegcc*)
15109       # This hack is so that the source file can tell whether it is being
15110       # built for inclusion in a dll (and should export symbols for example).
15111       lt_prog_compiler_pic='-DDLL_EXPORT'
15112       ;;
15113
15114     hpux9* | hpux10* | hpux11*)
15115       lt_prog_compiler_wl='-Wl,'
15116       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15117       # not for PA HP-UX.
15118       case $host_cpu in
15119       hppa*64*|ia64*)
15120         # +Z the default
15121         ;;
15122       *)
15123         lt_prog_compiler_pic='+Z'
15124         ;;
15125       esac
15126       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15127       lt_prog_compiler_static='${wl}-a ${wl}archive'
15128       ;;
15129
15130     irix5* | irix6* | nonstopux*)
15131       lt_prog_compiler_wl='-Wl,'
15132       # PIC (with -KPIC) is the default.
15133       lt_prog_compiler_static='-non_shared'
15134       ;;
15135
15136     linux* | k*bsd*-gnu | kopensolaris*-gnu)
15137       case $cc_basename in
15138       # old Intel for x86_64 which still supported -KPIC.
15139       ecc*)
15140         lt_prog_compiler_wl='-Wl,'
15141         lt_prog_compiler_pic='-KPIC'
15142         lt_prog_compiler_static='-static'
15143         ;;
15144       # icc used to be incompatible with GCC.
15145       # ICC 10 doesn't accept -KPIC any more.
15146       icc* | ifort*)
15147         lt_prog_compiler_wl='-Wl,'
15148         lt_prog_compiler_pic='-fPIC'
15149         lt_prog_compiler_static='-static'
15150         ;;
15151       # Lahey Fortran 8.1.
15152       lf95*)
15153         lt_prog_compiler_wl='-Wl,'
15154         lt_prog_compiler_pic='--shared'
15155         lt_prog_compiler_static='--static'
15156         ;;
15157       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15158         # Portland Group compilers (*not* the Pentium gcc compiler,
15159         # which looks to be a dead project)
15160         lt_prog_compiler_wl='-Wl,'
15161         lt_prog_compiler_pic='-fpic'
15162         lt_prog_compiler_static='-Bstatic'
15163         ;;
15164       ccc*)
15165         lt_prog_compiler_wl='-Wl,'
15166         # All Alpha code is PIC.
15167         lt_prog_compiler_static='-non_shared'
15168         ;;
15169       xl* | bgxl* | bgf* | mpixl*)
15170         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15171         lt_prog_compiler_wl='-Wl,'
15172         lt_prog_compiler_pic='-qpic'
15173         lt_prog_compiler_static='-qstaticlink'
15174         ;;
15175       *)
15176         case `$CC -V 2>&1 | sed 5q` in
15177         *Sun\ F* | *Sun*Fortran*)
15178           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15179           lt_prog_compiler_pic='-KPIC'
15180           lt_prog_compiler_static='-Bstatic'
15181           lt_prog_compiler_wl=''
15182           ;;
15183         *Sun\ C*)
15184           # Sun C 5.9
15185           lt_prog_compiler_pic='-KPIC'
15186           lt_prog_compiler_static='-Bstatic'
15187           lt_prog_compiler_wl='-Wl,'
15188           ;;
15189         esac
15190         ;;
15191       esac
15192       ;;
15193
15194     newsos6)
15195       lt_prog_compiler_pic='-KPIC'
15196       lt_prog_compiler_static='-Bstatic'
15197       ;;
15198
15199     *nto* | *qnx*)
15200       # QNX uses GNU C++, but need to define -shared option too, otherwise
15201       # it will coredump.
15202       lt_prog_compiler_pic='-fPIC -shared'
15203       ;;
15204
15205     osf3* | osf4* | osf5*)
15206       lt_prog_compiler_wl='-Wl,'
15207       # All OSF/1 code is PIC.
15208       lt_prog_compiler_static='-non_shared'
15209       ;;
15210
15211     rdos*)
15212       lt_prog_compiler_static='-non_shared'
15213       ;;
15214
15215     solaris*)
15216       lt_prog_compiler_pic='-KPIC'
15217       lt_prog_compiler_static='-Bstatic'
15218       case $cc_basename in
15219       f77* | f90* | f95*)
15220         lt_prog_compiler_wl='-Qoption ld ';;
15221       *)
15222         lt_prog_compiler_wl='-Wl,';;
15223       esac
15224       ;;
15225
15226     sunos4*)
15227       lt_prog_compiler_wl='-Qoption ld '
15228       lt_prog_compiler_pic='-PIC'
15229       lt_prog_compiler_static='-Bstatic'
15230       ;;
15231
15232     sysv4 | sysv4.2uw2* | sysv4.3*)
15233       lt_prog_compiler_wl='-Wl,'
15234       lt_prog_compiler_pic='-KPIC'
15235       lt_prog_compiler_static='-Bstatic'
15236       ;;
15237
15238     sysv4*MP*)
15239       if test -d /usr/nec ;then
15240         lt_prog_compiler_pic='-Kconform_pic'
15241         lt_prog_compiler_static='-Bstatic'
15242       fi
15243       ;;
15244
15245     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15246       lt_prog_compiler_wl='-Wl,'
15247       lt_prog_compiler_pic='-KPIC'
15248       lt_prog_compiler_static='-Bstatic'
15249       ;;
15250
15251     unicos*)
15252       lt_prog_compiler_wl='-Wl,'
15253       lt_prog_compiler_can_build_shared=no
15254       ;;
15255
15256     uts4*)
15257       lt_prog_compiler_pic='-pic'
15258       lt_prog_compiler_static='-Bstatic'
15259       ;;
15260
15261     *)
15262       lt_prog_compiler_can_build_shared=no
15263       ;;
15264     esac
15265   fi
15266
15267 case $host_os in
15268   # For platforms which do not support PIC, -DPIC is meaningless:
15269   *djgpp*)
15270     lt_prog_compiler_pic=
15271     ;;
15272   *)
15273     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15274     ;;
15275 esac
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15277 $as_echo "$lt_prog_compiler_pic" >&6; }
15278
15279
15280
15281
15282
15283
15284 #
15285 # Check to make sure the PIC flag actually works.
15286 #
15287 if test -n "$lt_prog_compiler_pic"; then
15288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15289 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15290 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15291   $as_echo_n "(cached) " >&6
15292 else
15293   lt_cv_prog_compiler_pic_works=no
15294    ac_outfile=conftest.$ac_objext
15295    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15296    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15297    # Insert the option either (1) after the last *FLAGS variable, or
15298    # (2) before a word containing "conftest.", or (3) at the end.
15299    # Note that $ac_compile itself does not contain backslashes and begins
15300    # with a dollar sign (not a hyphen), so the echo should work correctly.
15301    # The option is referenced via a variable to avoid confusing sed.
15302    lt_compile=`echo "$ac_compile" | $SED \
15303    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15304    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15305    -e 's:$: $lt_compiler_flag:'`
15306    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15307    (eval "$lt_compile" 2>conftest.err)
15308    ac_status=$?
15309    cat conftest.err >&5
15310    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311    if (exit $ac_status) && test -s "$ac_outfile"; then
15312      # The compiler can only warn and ignore the option if not recognized
15313      # So say no if there are warnings other than the usual output.
15314      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15315      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15316      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15317        lt_cv_prog_compiler_pic_works=yes
15318      fi
15319    fi
15320    $RM conftest*
15321
15322 fi
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15324 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15325
15326 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15327     case $lt_prog_compiler_pic in
15328      "" | " "*) ;;
15329      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15330      esac
15331 else
15332     lt_prog_compiler_pic=
15333      lt_prog_compiler_can_build_shared=no
15334 fi
15335
15336 fi
15337
15338
15339
15340
15341
15342
15343 #
15344 # Check to make sure the static flag actually works.
15345 #
15346 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15348 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15349 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15350   $as_echo_n "(cached) " >&6
15351 else
15352   lt_cv_prog_compiler_static_works=no
15353    save_LDFLAGS="$LDFLAGS"
15354    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15355    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15356    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15357      # The linker can only warn and ignore the option if not recognized
15358      # So say no if there are warnings
15359      if test -s conftest.err; then
15360        # Append any errors to the config.log.
15361        cat conftest.err 1>&5
15362        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15363        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15364        if diff conftest.exp conftest.er2 >/dev/null; then
15365          lt_cv_prog_compiler_static_works=yes
15366        fi
15367      else
15368        lt_cv_prog_compiler_static_works=yes
15369      fi
15370    fi
15371    $RM -r conftest*
15372    LDFLAGS="$save_LDFLAGS"
15373
15374 fi
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15376 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15377
15378 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15379     :
15380 else
15381     lt_prog_compiler_static=
15382 fi
15383
15384
15385
15386
15387
15388
15389
15390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15391 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15392 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15393   $as_echo_n "(cached) " >&6
15394 else
15395   lt_cv_prog_compiler_c_o=no
15396    $RM -r conftest 2>/dev/null
15397    mkdir conftest
15398    cd conftest
15399    mkdir out
15400    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15401
15402    lt_compiler_flag="-o out/conftest2.$ac_objext"
15403    # Insert the option either (1) after the last *FLAGS variable, or
15404    # (2) before a word containing "conftest.", or (3) at the end.
15405    # Note that $ac_compile itself does not contain backslashes and begins
15406    # with a dollar sign (not a hyphen), so the echo should work correctly.
15407    lt_compile=`echo "$ac_compile" | $SED \
15408    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15409    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15410    -e 's:$: $lt_compiler_flag:'`
15411    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15412    (eval "$lt_compile" 2>out/conftest.err)
15413    ac_status=$?
15414    cat out/conftest.err >&5
15415    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15417    then
15418      # The compiler can only warn and ignore the option if not recognized
15419      # So say no if there are warnings
15420      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15421      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15422      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15423        lt_cv_prog_compiler_c_o=yes
15424      fi
15425    fi
15426    chmod u+w . 2>&5
15427    $RM conftest*
15428    # SGI C++ compiler will create directory out/ii_files/ for
15429    # template instantiation
15430    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15431    $RM out/* && rmdir out
15432    cd ..
15433    $RM -r conftest
15434    $RM conftest*
15435
15436 fi
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15438 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15439
15440
15441
15442
15443
15444
15445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15446 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15447 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15448   $as_echo_n "(cached) " >&6
15449 else
15450   lt_cv_prog_compiler_c_o=no
15451    $RM -r conftest 2>/dev/null
15452    mkdir conftest
15453    cd conftest
15454    mkdir out
15455    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15456
15457    lt_compiler_flag="-o out/conftest2.$ac_objext"
15458    # Insert the option either (1) after the last *FLAGS variable, or
15459    # (2) before a word containing "conftest.", or (3) at the end.
15460    # Note that $ac_compile itself does not contain backslashes and begins
15461    # with a dollar sign (not a hyphen), so the echo should work correctly.
15462    lt_compile=`echo "$ac_compile" | $SED \
15463    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15464    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15465    -e 's:$: $lt_compiler_flag:'`
15466    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15467    (eval "$lt_compile" 2>out/conftest.err)
15468    ac_status=$?
15469    cat out/conftest.err >&5
15470    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15472    then
15473      # The compiler can only warn and ignore the option if not recognized
15474      # So say no if there are warnings
15475      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15476      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15477      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15478        lt_cv_prog_compiler_c_o=yes
15479      fi
15480    fi
15481    chmod u+w . 2>&5
15482    $RM conftest*
15483    # SGI C++ compiler will create directory out/ii_files/ for
15484    # template instantiation
15485    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15486    $RM out/* && rmdir out
15487    cd ..
15488    $RM -r conftest
15489    $RM conftest*
15490
15491 fi
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15493 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15494
15495
15496
15497
15498 hard_links="nottested"
15499 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15500   # do not overwrite the value of need_locks provided by the user
15501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15502 $as_echo_n "checking if we can lock with hard links... " >&6; }
15503   hard_links=yes
15504   $RM conftest*
15505   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15506   touch conftest.a
15507   ln conftest.a conftest.b 2>&5 || hard_links=no
15508   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15510 $as_echo "$hard_links" >&6; }
15511   if test "$hard_links" = no; then
15512     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15513 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15514     need_locks=warn
15515   fi
15516 else
15517   need_locks=no
15518 fi
15519
15520
15521
15522
15523
15524
15525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15526 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15527
15528   runpath_var=
15529   allow_undefined_flag=
15530   always_export_symbols=no
15531   archive_cmds=
15532   archive_expsym_cmds=
15533   compiler_needs_object=no
15534   enable_shared_with_static_runtimes=no
15535   export_dynamic_flag_spec=
15536   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15537   hardcode_automatic=no
15538   hardcode_direct=no
15539   hardcode_direct_absolute=no
15540   hardcode_libdir_flag_spec=
15541   hardcode_libdir_flag_spec_ld=
15542   hardcode_libdir_separator=
15543   hardcode_minus_L=no
15544   hardcode_shlibpath_var=unsupported
15545   inherit_rpath=no
15546   link_all_deplibs=unknown
15547   module_cmds=
15548   module_expsym_cmds=
15549   old_archive_from_new_cmds=
15550   old_archive_from_expsyms_cmds=
15551   thread_safe_flag_spec=
15552   whole_archive_flag_spec=
15553   # include_expsyms should be a list of space-separated symbols to be *always*
15554   # included in the symbol list
15555   include_expsyms=
15556   # exclude_expsyms can be an extended regexp of symbols to exclude
15557   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15558   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15559   # as well as any symbol that contains `d'.
15560   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15561   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15562   # platforms (ab)use it in PIC code, but their linkers get confused if
15563   # the symbol is explicitly referenced.  Since portable code cannot
15564   # rely on this symbol name, it's probably fine to never include it in
15565   # preloaded symbol tables.
15566   # Exclude shared library initialization/finalization symbols.
15567   extract_expsyms_cmds=
15568
15569   case $host_os in
15570   cygwin* | mingw* | pw32* | cegcc*)
15571     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15572     # When not using gcc, we currently assume that we are using
15573     # Microsoft Visual C++.
15574     if test "$GCC" != yes; then
15575       with_gnu_ld=no
15576     fi
15577     ;;
15578   interix*)
15579     # we just hope/assume this is gcc and not c89 (= MSVC++)
15580     with_gnu_ld=yes
15581     ;;
15582   openbsd*)
15583     with_gnu_ld=no
15584     ;;
15585   esac
15586
15587   ld_shlibs=yes
15588
15589   # On some targets, GNU ld is compatible enough with the native linker
15590   # that we're better off using the native interface for both.
15591   lt_use_gnu_ld_interface=no
15592   if test "$with_gnu_ld" = yes; then
15593     case $host_os in
15594       aix*)
15595         # The AIX port of GNU ld has always aspired to compatibility
15596         # with the native linker.  However, as the warning in the GNU ld
15597         # block says, versions before 2.19.5* couldn't really create working
15598         # shared libraries, regardless of the interface used.
15599         case `$LD -v 2>&1` in
15600           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15601           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15602           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15603           *)
15604             lt_use_gnu_ld_interface=yes
15605             ;;
15606         esac
15607         ;;
15608       *)
15609         lt_use_gnu_ld_interface=yes
15610         ;;
15611     esac
15612   fi
15613
15614   if test "$lt_use_gnu_ld_interface" = yes; then
15615     # If archive_cmds runs LD, not CC, wlarc should be empty
15616     wlarc='${wl}'
15617
15618     # Set some defaults for GNU ld with shared library support. These
15619     # are reset later if shared libraries are not supported. Putting them
15620     # here allows them to be overridden if necessary.
15621     runpath_var=LD_RUN_PATH
15622     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15623     export_dynamic_flag_spec='${wl}--export-dynamic'
15624     # ancient GNU ld didn't support --whole-archive et. al.
15625     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15626       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15627     else
15628       whole_archive_flag_spec=
15629     fi
15630     supports_anon_versioning=no
15631     case `$LD -v 2>&1` in
15632       *GNU\ gold*) supports_anon_versioning=yes ;;
15633       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15634       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15635       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15636       *\ 2.11.*) ;; # other 2.11 versions
15637       *) supports_anon_versioning=yes ;;
15638     esac
15639
15640     # See if GNU ld supports shared libraries.
15641     case $host_os in
15642     aix[3-9]*)
15643       # On AIX/PPC, the GNU linker is very broken
15644       if test "$host_cpu" != ia64; then
15645         ld_shlibs=no
15646         cat <<_LT_EOF 1>&2
15647
15648 *** Warning: the GNU linker, at least up to release 2.19, is reported
15649 *** to be unable to reliably create shared libraries on AIX.
15650 *** Therefore, libtool is disabling shared libraries support.  If you
15651 *** really care for shared libraries, you may want to install binutils
15652 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15653 *** You will then need to restart the configuration process.
15654
15655 _LT_EOF
15656       fi
15657       ;;
15658
15659     amigaos*)
15660       case $host_cpu in
15661       powerpc)
15662             # see comment about AmigaOS4 .so support
15663             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15664             archive_expsym_cmds=''
15665         ;;
15666       m68k)
15667             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)'
15668             hardcode_libdir_flag_spec='-L$libdir'
15669             hardcode_minus_L=yes
15670         ;;
15671       esac
15672       ;;
15673
15674     beos*)
15675       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15676         allow_undefined_flag=unsupported
15677         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15678         # support --undefined.  This deserves some investigation.  FIXME
15679         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15680       else
15681         ld_shlibs=no
15682       fi
15683       ;;
15684
15685     cygwin* | mingw* | pw32* | cegcc*)
15686       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15687       # as there is no search path for DLLs.
15688       hardcode_libdir_flag_spec='-L$libdir'
15689       export_dynamic_flag_spec='${wl}--export-all-symbols'
15690       allow_undefined_flag=unsupported
15691       always_export_symbols=no
15692       enable_shared_with_static_runtimes=yes
15693       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15694
15695       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15696         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15697         # If the export-symbols file already is a .def file (1st line
15698         # is EXPORTS), use it as is; otherwise, prepend...
15699         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15700           cp $export_symbols $output_objdir/$soname.def;
15701         else
15702           echo EXPORTS > $output_objdir/$soname.def;
15703           cat $export_symbols >> $output_objdir/$soname.def;
15704         fi~
15705         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15706       else
15707         ld_shlibs=no
15708       fi
15709       ;;
15710
15711     haiku*)
15712       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15713       link_all_deplibs=yes
15714       ;;
15715
15716     interix[3-9]*)
15717       hardcode_direct=no
15718       hardcode_shlibpath_var=no
15719       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15720       export_dynamic_flag_spec='${wl}-E'
15721       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15722       # Instead, shared libraries are loaded at an image base (0x10000000 by
15723       # default) and relocated if they conflict, which is a slow very memory
15724       # consuming and fragmenting process.  To avoid this, we pick a random,
15725       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15726       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15727       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15728       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'
15729       ;;
15730
15731     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15732       tmp_diet=no
15733       if test "$host_os" = linux-dietlibc; then
15734         case $cc_basename in
15735           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15736         esac
15737       fi
15738       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15739          && test "$tmp_diet" = no
15740       then
15741         tmp_addflag=
15742         tmp_sharedflag='-shared'
15743         case $cc_basename,$host_cpu in
15744         pgcc*)                          # Portland Group C compiler
15745           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'
15746           tmp_addflag=' $pic_flag'
15747           ;;
15748         pgf77* | pgf90* | pgf95* | pgfortran*)
15749                                         # Portland Group f77 and f90 compilers
15750           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'
15751           tmp_addflag=' $pic_flag -Mnomain' ;;
15752         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15753           tmp_addflag=' -i_dynamic' ;;
15754         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15755           tmp_addflag=' -i_dynamic -nofor_main' ;;
15756         ifc* | ifort*)                  # Intel Fortran compiler
15757           tmp_addflag=' -nofor_main' ;;
15758         lf95*)                          # Lahey Fortran 8.1
15759           whole_archive_flag_spec=
15760           tmp_sharedflag='--shared' ;;
15761         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15762           tmp_sharedflag='-qmkshrobj'
15763           tmp_addflag= ;;
15764         nvcc*)  # Cuda Compiler Driver 2.2
15765           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'
15766           compiler_needs_object=yes
15767           ;;
15768         esac
15769         case `$CC -V 2>&1 | sed 5q` in
15770         *Sun\ C*)                       # Sun C 5.9
15771           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'
15772           compiler_needs_object=yes
15773           tmp_sharedflag='-G' ;;
15774         *Sun\ F*)                       # Sun Fortran 8.3
15775           tmp_sharedflag='-G' ;;
15776         esac
15777         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15778
15779         if test "x$supports_anon_versioning" = xyes; then
15780           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15781             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15782             echo "local: *; };" >> $output_objdir/$libname.ver~
15783             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15784         fi
15785
15786         case $cc_basename in
15787         xlf* | bgf* | bgxlf* | mpixlf*)
15788           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15789           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15790           hardcode_libdir_flag_spec=
15791           hardcode_libdir_flag_spec_ld='-rpath $libdir'
15792           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15793           if test "x$supports_anon_versioning" = xyes; then
15794             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15795               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15796               echo "local: *; };" >> $output_objdir/$libname.ver~
15797               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15798           fi
15799           ;;
15800         esac
15801       else
15802         ld_shlibs=no
15803       fi
15804       ;;
15805
15806     netbsd*)
15807       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15808         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15809         wlarc=
15810       else
15811         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15812         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15813       fi
15814       ;;
15815
15816     solaris*)
15817       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15818         ld_shlibs=no
15819         cat <<_LT_EOF 1>&2
15820
15821 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15822 *** create shared libraries on Solaris systems.  Therefore, libtool
15823 *** is disabling shared libraries support.  We urge you to upgrade GNU
15824 *** binutils to release 2.9.1 or newer.  Another option is to modify
15825 *** your PATH or compiler configuration so that the native linker is
15826 *** used, and then restart.
15827
15828 _LT_EOF
15829       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15830         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15831         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15832       else
15833         ld_shlibs=no
15834       fi
15835       ;;
15836
15837     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15838       case `$LD -v 2>&1` in
15839         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15840         ld_shlibs=no
15841         cat <<_LT_EOF 1>&2
15842
15843 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15844 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15845 *** is disabling shared libraries support.  We urge you to upgrade GNU
15846 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15847 *** your PATH or compiler configuration so that the native linker is
15848 *** used, and then restart.
15849
15850 _LT_EOF
15851         ;;
15852         *)
15853           # For security reasons, it is highly recommended that you always
15854           # use absolute paths for naming shared libraries, and exclude the
15855           # DT_RUNPATH tag from executables and libraries.  But doing so
15856           # requires that you compile everything twice, which is a pain.
15857           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15858             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15859             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15860             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15861           else
15862             ld_shlibs=no
15863           fi
15864         ;;
15865       esac
15866       ;;
15867
15868     sunos4*)
15869       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15870       wlarc=
15871       hardcode_direct=yes
15872       hardcode_shlibpath_var=no
15873       ;;
15874
15875     *)
15876       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15877         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15878         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15879       else
15880         ld_shlibs=no
15881       fi
15882       ;;
15883     esac
15884
15885     if test "$ld_shlibs" = no; then
15886       runpath_var=
15887       hardcode_libdir_flag_spec=
15888       export_dynamic_flag_spec=
15889       whole_archive_flag_spec=
15890     fi
15891   else
15892     # PORTME fill in a description of your system's linker (not GNU ld)
15893     case $host_os in
15894     aix3*)
15895       allow_undefined_flag=unsupported
15896       always_export_symbols=yes
15897       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'
15898       # Note: this linker hardcodes the directories in LIBPATH if there
15899       # are no directories specified by -L.
15900       hardcode_minus_L=yes
15901       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15902         # Neither direct hardcoding nor static linking is supported with a
15903         # broken collect2.
15904         hardcode_direct=unsupported
15905       fi
15906       ;;
15907
15908     aix[4-9]*)
15909       if test "$host_cpu" = ia64; then
15910         # On IA64, the linker does run time linking by default, so we don't
15911         # have to do anything special.
15912         aix_use_runtimelinking=no
15913         exp_sym_flag='-Bexport'
15914         no_entry_flag=""
15915       else
15916         # If we're using GNU nm, then we don't want the "-C" option.
15917         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15918         # Also, AIX nm treats weak defined symbols like other global
15919         # defined symbols, whereas GNU nm marks them as "W".
15920         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15921           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'
15922         else
15923           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'
15924         fi
15925         aix_use_runtimelinking=no
15926
15927         # Test if we are trying to use run time linking or normal
15928         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15929         # need to do runtime linking.
15930         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15931           for ld_flag in $LDFLAGS; do
15932           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15933             aix_use_runtimelinking=yes
15934             break
15935           fi
15936           done
15937           ;;
15938         esac
15939
15940         exp_sym_flag='-bexport'
15941         no_entry_flag='-bnoentry'
15942       fi
15943
15944       # When large executables or shared objects are built, AIX ld can
15945       # have problems creating the table of contents.  If linking a library
15946       # or program results in "error TOC overflow" add -mminimal-toc to
15947       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15948       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15949
15950       archive_cmds=''
15951       hardcode_direct=yes
15952       hardcode_direct_absolute=yes
15953       hardcode_libdir_separator=':'
15954       link_all_deplibs=yes
15955       file_list_spec='${wl}-f,'
15956
15957       if test "$GCC" = yes; then
15958         case $host_os in aix4.[012]|aix4.[012].*)
15959         # We only want to do this on AIX 4.2 and lower, the check
15960         # below for broken collect2 doesn't work under 4.3+
15961           collect2name=`${CC} -print-prog-name=collect2`
15962           if test -f "$collect2name" &&
15963            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15964           then
15965           # We have reworked collect2
15966           :
15967           else
15968           # We have old collect2
15969           hardcode_direct=unsupported
15970           # It fails to find uninstalled libraries when the uninstalled
15971           # path is not listed in the libpath.  Setting hardcode_minus_L
15972           # to unsupported forces relinking
15973           hardcode_minus_L=yes
15974           hardcode_libdir_flag_spec='-L$libdir'
15975           hardcode_libdir_separator=
15976           fi
15977           ;;
15978         esac
15979         shared_flag='-shared'
15980         if test "$aix_use_runtimelinking" = yes; then
15981           shared_flag="$shared_flag "'${wl}-G'
15982         fi
15983       else
15984         # not using gcc
15985         if test "$host_cpu" = ia64; then
15986         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15987         # chokes on -Wl,-G. The following line is correct:
15988           shared_flag='-G'
15989         else
15990           if test "$aix_use_runtimelinking" = yes; then
15991             shared_flag='${wl}-G'
15992           else
15993             shared_flag='${wl}-bM:SRE'
15994           fi
15995         fi
15996       fi
15997
15998       export_dynamic_flag_spec='${wl}-bexpall'
15999       # It seems that -bexpall does not export symbols beginning with
16000       # underscore (_), so it is better to generate a list of symbols to export.
16001       always_export_symbols=yes
16002       if test "$aix_use_runtimelinking" = yes; then
16003         # Warning - without using the other runtime loading flags (-brtl),
16004         # -berok will link without error, but may produce a broken library.
16005         allow_undefined_flag='-berok'
16006         # Determine the default libpath from the value encoded in an
16007         # empty executable.
16008         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009 /* end confdefs.h.  */
16010
16011 int
16012 main ()
16013 {
16014
16015   ;
16016   return 0;
16017 }
16018 _ACEOF
16019 if ac_fn_c_try_link "$LINENO"; then :
16020
16021 lt_aix_libpath_sed='
16022     /Import File Strings/,/^$/ {
16023         /^0/ {
16024             s/^0  *\(.*\)$/\1/
16025             p
16026         }
16027     }'
16028 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16029 # Check for a 64-bit object if we didn't find anything.
16030 if test -z "$aix_libpath"; then
16031   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16032 fi
16033 fi
16034 rm -f core conftest.err conftest.$ac_objext \
16035     conftest$ac_exeext conftest.$ac_ext
16036 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16037
16038         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16039         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"
16040       else
16041         if test "$host_cpu" = ia64; then
16042           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16043           allow_undefined_flag="-z nodefs"
16044           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"
16045         else
16046          # Determine the default libpath from the value encoded in an
16047          # empty executable.
16048          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16049 /* end confdefs.h.  */
16050
16051 int
16052 main ()
16053 {
16054
16055   ;
16056   return 0;
16057 }
16058 _ACEOF
16059 if ac_fn_c_try_link "$LINENO"; then :
16060
16061 lt_aix_libpath_sed='
16062     /Import File Strings/,/^$/ {
16063         /^0/ {
16064             s/^0  *\(.*\)$/\1/
16065             p
16066         }
16067     }'
16068 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16069 # Check for a 64-bit object if we didn't find anything.
16070 if test -z "$aix_libpath"; then
16071   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16072 fi
16073 fi
16074 rm -f core conftest.err conftest.$ac_objext \
16075     conftest$ac_exeext conftest.$ac_ext
16076 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16077
16078          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16079           # Warning - without using the other run time loading flags,
16080           # -berok will link without error, but may produce a broken library.
16081           no_undefined_flag=' ${wl}-bernotok'
16082           allow_undefined_flag=' ${wl}-berok'
16083           if test "$with_gnu_ld" = yes; then
16084             # We only use this code for GNU lds that support --whole-archive.
16085             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16086           else
16087             # Exported symbols can be pulled into shared objects from archives
16088             whole_archive_flag_spec='$convenience'
16089           fi
16090           archive_cmds_need_lc=yes
16091           # This is similar to how AIX traditionally builds its shared libraries.
16092           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'
16093         fi
16094       fi
16095       ;;
16096
16097     amigaos*)
16098       case $host_cpu in
16099       powerpc)
16100             # see comment about AmigaOS4 .so support
16101             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16102             archive_expsym_cmds=''
16103         ;;
16104       m68k)
16105             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)'
16106             hardcode_libdir_flag_spec='-L$libdir'
16107             hardcode_minus_L=yes
16108         ;;
16109       esac
16110       ;;
16111
16112     bsdi[45]*)
16113       export_dynamic_flag_spec=-rdynamic
16114       ;;
16115
16116     cygwin* | mingw* | pw32* | cegcc*)
16117       # When not using gcc, we currently assume that we are using
16118       # Microsoft Visual C++.
16119       # hardcode_libdir_flag_spec is actually meaningless, as there is
16120       # no search path for DLLs.
16121       hardcode_libdir_flag_spec=' '
16122       allow_undefined_flag=unsupported
16123       # Tell ltmain to make .lib files, not .a files.
16124       libext=lib
16125       # Tell ltmain to make .dll files, not .so files.
16126       shrext_cmds=".dll"
16127       # FIXME: Setting linknames here is a bad hack.
16128       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16129       # The linker will automatically build a .lib file if we build a DLL.
16130       old_archive_from_new_cmds='true'
16131       # FIXME: Should let the user specify the lib program.
16132       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16133       fix_srcfile_path='`cygpath -w "$srcfile"`'
16134       enable_shared_with_static_runtimes=yes
16135       ;;
16136
16137     darwin* | rhapsody*)
16138
16139
16140   archive_cmds_need_lc=no
16141   hardcode_direct=no
16142   hardcode_automatic=yes
16143   hardcode_shlibpath_var=unsupported
16144   if test "$lt_cv_ld_force_load" = "yes"; then
16145     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\"`'
16146   else
16147     whole_archive_flag_spec=''
16148   fi
16149   link_all_deplibs=yes
16150   allow_undefined_flag="$_lt_dar_allow_undefined"
16151   case $cc_basename in
16152      ifort*) _lt_dar_can_shared=yes ;;
16153      *) _lt_dar_can_shared=$GCC ;;
16154   esac
16155   if test "$_lt_dar_can_shared" = "yes"; then
16156     output_verbose_link_cmd=func_echo_all
16157     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16158     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16159     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}"
16160     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}"
16161
16162   else
16163   ld_shlibs=no
16164   fi
16165
16166       ;;
16167
16168     dgux*)
16169       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16170       hardcode_libdir_flag_spec='-L$libdir'
16171       hardcode_shlibpath_var=no
16172       ;;
16173
16174     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16175     # support.  Future versions do this automatically, but an explicit c++rt0.o
16176     # does not break anything, and helps significantly (at the cost of a little
16177     # extra space).
16178     freebsd2.2*)
16179       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16180       hardcode_libdir_flag_spec='-R$libdir'
16181       hardcode_direct=yes
16182       hardcode_shlibpath_var=no
16183       ;;
16184
16185     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16186     freebsd2*)
16187       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16188       hardcode_direct=yes
16189       hardcode_minus_L=yes
16190       hardcode_shlibpath_var=no
16191       ;;
16192
16193     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16194     freebsd* | dragonfly*)
16195       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16196       hardcode_libdir_flag_spec='-R$libdir'
16197       hardcode_direct=yes
16198       hardcode_shlibpath_var=no
16199       ;;
16200
16201     hpux9*)
16202       if test "$GCC" = yes; then
16203         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'
16204       else
16205         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'
16206       fi
16207       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16208       hardcode_libdir_separator=:
16209       hardcode_direct=yes
16210
16211       # hardcode_minus_L: Not really in the search PATH,
16212       # but as the default location of the library.
16213       hardcode_minus_L=yes
16214       export_dynamic_flag_spec='${wl}-E'
16215       ;;
16216
16217     hpux10*)
16218       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16219         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16220       else
16221         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16222       fi
16223       if test "$with_gnu_ld" = no; then
16224         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16225         hardcode_libdir_flag_spec_ld='+b $libdir'
16226         hardcode_libdir_separator=:
16227         hardcode_direct=yes
16228         hardcode_direct_absolute=yes
16229         export_dynamic_flag_spec='${wl}-E'
16230         # hardcode_minus_L: Not really in the search PATH,
16231         # but as the default location of the library.
16232         hardcode_minus_L=yes
16233       fi
16234       ;;
16235
16236     hpux11*)
16237       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16238         case $host_cpu in
16239         hppa*64*)
16240           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16241           ;;
16242         ia64*)
16243           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16244           ;;
16245         *)
16246           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16247           ;;
16248         esac
16249       else
16250         case $host_cpu in
16251         hppa*64*)
16252           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16253           ;;
16254         ia64*)
16255           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16256           ;;
16257         *)
16258
16259           # Older versions of the 11.00 compiler do not understand -b yet
16260           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16261           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16262 $as_echo_n "checking if $CC understands -b... " >&6; }
16263 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16264   $as_echo_n "(cached) " >&6
16265 else
16266   lt_cv_prog_compiler__b=no
16267    save_LDFLAGS="$LDFLAGS"
16268    LDFLAGS="$LDFLAGS -b"
16269    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16270    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16271      # The linker can only warn and ignore the option if not recognized
16272      # So say no if there are warnings
16273      if test -s conftest.err; then
16274        # Append any errors to the config.log.
16275        cat conftest.err 1>&5
16276        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16277        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16278        if diff conftest.exp conftest.er2 >/dev/null; then
16279          lt_cv_prog_compiler__b=yes
16280        fi
16281      else
16282        lt_cv_prog_compiler__b=yes
16283      fi
16284    fi
16285    $RM -r conftest*
16286    LDFLAGS="$save_LDFLAGS"
16287
16288 fi
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16290 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16291
16292 if test x"$lt_cv_prog_compiler__b" = xyes; then
16293     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16294 else
16295     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16296 fi
16297
16298           ;;
16299         esac
16300       fi
16301       if test "$with_gnu_ld" = no; then
16302         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16303         hardcode_libdir_separator=:
16304
16305         case $host_cpu in
16306         hppa*64*|ia64*)
16307           hardcode_direct=no
16308           hardcode_shlibpath_var=no
16309           ;;
16310         *)
16311           hardcode_direct=yes
16312           hardcode_direct_absolute=yes
16313           export_dynamic_flag_spec='${wl}-E'
16314
16315           # hardcode_minus_L: Not really in the search PATH,
16316           # but as the default location of the library.
16317           hardcode_minus_L=yes
16318           ;;
16319         esac
16320       fi
16321       ;;
16322
16323     irix5* | irix6* | nonstopux*)
16324       if test "$GCC" = yes; then
16325         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'
16326         # Try to use the -exported_symbol ld option, if it does not
16327         # work, assume that -exports_file does not work either and
16328         # implicitly export all symbols.
16329         save_LDFLAGS="$LDFLAGS"
16330         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16331         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16332 /* end confdefs.h.  */
16333 int foo(void) {}
16334 _ACEOF
16335 if ac_fn_c_try_link "$LINENO"; then :
16336   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'
16337
16338 fi
16339 rm -f core conftest.err conftest.$ac_objext \
16340     conftest$ac_exeext conftest.$ac_ext
16341         LDFLAGS="$save_LDFLAGS"
16342       else
16343         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'
16344         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'
16345       fi
16346       archive_cmds_need_lc='no'
16347       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16348       hardcode_libdir_separator=:
16349       inherit_rpath=yes
16350       link_all_deplibs=yes
16351       ;;
16352
16353     netbsd*)
16354       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16355         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16356       else
16357         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16358       fi
16359       hardcode_libdir_flag_spec='-R$libdir'
16360       hardcode_direct=yes
16361       hardcode_shlibpath_var=no
16362       ;;
16363
16364     newsos6)
16365       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16366       hardcode_direct=yes
16367       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16368       hardcode_libdir_separator=:
16369       hardcode_shlibpath_var=no
16370       ;;
16371
16372     *nto* | *qnx*)
16373       ;;
16374
16375     openbsd*)
16376       if test -f /usr/libexec/ld.so; then
16377         hardcode_direct=yes
16378         hardcode_shlibpath_var=no
16379         hardcode_direct_absolute=yes
16380         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16381           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16382           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16383           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16384           export_dynamic_flag_spec='${wl}-E'
16385         else
16386           case $host_os in
16387            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16388              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16389              hardcode_libdir_flag_spec='-R$libdir'
16390              ;;
16391            *)
16392              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16393              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16394              ;;
16395           esac
16396         fi
16397       else
16398         ld_shlibs=no
16399       fi
16400       ;;
16401
16402     os2*)
16403       hardcode_libdir_flag_spec='-L$libdir'
16404       hardcode_minus_L=yes
16405       allow_undefined_flag=unsupported
16406       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'
16407       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16408       ;;
16409
16410     osf3*)
16411       if test "$GCC" = yes; then
16412         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16413         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'
16414       else
16415         allow_undefined_flag=' -expect_unresolved \*'
16416         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'
16417       fi
16418       archive_cmds_need_lc='no'
16419       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16420       hardcode_libdir_separator=:
16421       ;;
16422
16423     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16424       if test "$GCC" = yes; then
16425         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16426         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'
16427         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16428       else
16429         allow_undefined_flag=' -expect_unresolved \*'
16430         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'
16431         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~
16432         $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'
16433
16434         # Both c and cxx compiler support -rpath directly
16435         hardcode_libdir_flag_spec='-rpath $libdir'
16436       fi
16437       archive_cmds_need_lc='no'
16438       hardcode_libdir_separator=:
16439       ;;
16440
16441     solaris*)
16442       no_undefined_flag=' -z defs'
16443       if test "$GCC" = yes; then
16444         wlarc='${wl}'
16445         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16446         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16447           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16448       else
16449         case `$CC -V 2>&1` in
16450         *"Compilers 5.0"*)
16451           wlarc=''
16452           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16453           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16454           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16455           ;;
16456         *)
16457           wlarc='${wl}'
16458           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16459           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16460           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16461           ;;
16462         esac
16463       fi
16464       hardcode_libdir_flag_spec='-R$libdir'
16465       hardcode_shlibpath_var=no
16466       case $host_os in
16467       solaris2.[0-5] | solaris2.[0-5].*) ;;
16468       *)
16469         # The compiler driver will combine and reorder linker options,
16470         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16471         # but is careful enough not to reorder.
16472         # Supported since Solaris 2.6 (maybe 2.5.1?)
16473         if test "$GCC" = yes; then
16474           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16475         else
16476           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16477         fi
16478         ;;
16479       esac
16480       link_all_deplibs=yes
16481       ;;
16482
16483     sunos4*)
16484       if test "x$host_vendor" = xsequent; then
16485         # Use $CC to link under sequent, because it throws in some extra .o
16486         # files that make .init and .fini sections work.
16487         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16488       else
16489         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16490       fi
16491       hardcode_libdir_flag_spec='-L$libdir'
16492       hardcode_direct=yes
16493       hardcode_minus_L=yes
16494       hardcode_shlibpath_var=no
16495       ;;
16496
16497     sysv4)
16498       case $host_vendor in
16499         sni)
16500           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16501           hardcode_direct=yes # is this really true???
16502         ;;
16503         siemens)
16504           ## LD is ld it makes a PLAMLIB
16505           ## CC just makes a GrossModule.
16506           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16507           reload_cmds='$CC -r -o $output$reload_objs'
16508           hardcode_direct=no
16509         ;;
16510         motorola)
16511           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16512           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16513         ;;
16514       esac
16515       runpath_var='LD_RUN_PATH'
16516       hardcode_shlibpath_var=no
16517       ;;
16518
16519     sysv4.3*)
16520       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16521       hardcode_shlibpath_var=no
16522       export_dynamic_flag_spec='-Bexport'
16523       ;;
16524
16525     sysv4*MP*)
16526       if test -d /usr/nec; then
16527         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16528         hardcode_shlibpath_var=no
16529         runpath_var=LD_RUN_PATH
16530         hardcode_runpath_var=yes
16531         ld_shlibs=yes
16532       fi
16533       ;;
16534
16535     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16536       no_undefined_flag='${wl}-z,text'
16537       archive_cmds_need_lc=no
16538       hardcode_shlibpath_var=no
16539       runpath_var='LD_RUN_PATH'
16540
16541       if test "$GCC" = yes; then
16542         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16543         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16544       else
16545         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16546         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16547       fi
16548       ;;
16549
16550     sysv5* | sco3.2v5* | sco5v6*)
16551       # Note: We can NOT use -z defs as we might desire, because we do not
16552       # link with -lc, and that would cause any symbols used from libc to
16553       # always be unresolved, which means just about no library would
16554       # ever link correctly.  If we're not using GNU ld we use -z text
16555       # though, which does catch some bad symbols but isn't as heavy-handed
16556       # as -z defs.
16557       no_undefined_flag='${wl}-z,text'
16558       allow_undefined_flag='${wl}-z,nodefs'
16559       archive_cmds_need_lc=no
16560       hardcode_shlibpath_var=no
16561       hardcode_libdir_flag_spec='${wl}-R,$libdir'
16562       hardcode_libdir_separator=':'
16563       link_all_deplibs=yes
16564       export_dynamic_flag_spec='${wl}-Bexport'
16565       runpath_var='LD_RUN_PATH'
16566
16567       if test "$GCC" = yes; then
16568         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16569         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16570       else
16571         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16572         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16573       fi
16574       ;;
16575
16576     uts4*)
16577       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16578       hardcode_libdir_flag_spec='-L$libdir'
16579       hardcode_shlibpath_var=no
16580       ;;
16581
16582     *)
16583       ld_shlibs=no
16584       ;;
16585     esac
16586
16587     if test x$host_vendor = xsni; then
16588       case $host in
16589       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16590         export_dynamic_flag_spec='${wl}-Blargedynsym'
16591         ;;
16592       esac
16593     fi
16594   fi
16595
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16597 $as_echo "$ld_shlibs" >&6; }
16598 test "$ld_shlibs" = no && can_build_shared=no
16599
16600 with_gnu_ld=$with_gnu_ld
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616 #
16617 # Do we need to explicitly link libc?
16618 #
16619 case "x$archive_cmds_need_lc" in
16620 x|xyes)
16621   # Assume -lc should be added
16622   archive_cmds_need_lc=yes
16623
16624   if test "$enable_shared" = yes && test "$GCC" = yes; then
16625     case $archive_cmds in
16626     *'~'*)
16627       # FIXME: we may have to deal with multi-command sequences.
16628       ;;
16629     '$CC '*)
16630       # Test whether the compiler implicitly links with -lc since on some
16631       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16632       # to ld, don't add -lc before -lgcc.
16633       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16634 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16635 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16636   $as_echo_n "(cached) " >&6
16637 else
16638   $RM conftest*
16639         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16640
16641         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16642   (eval $ac_compile) 2>&5
16643   ac_status=$?
16644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16645   test $ac_status = 0; } 2>conftest.err; then
16646           soname=conftest
16647           lib=conftest
16648           libobjs=conftest.$ac_objext
16649           deplibs=
16650           wl=$lt_prog_compiler_wl
16651           pic_flag=$lt_prog_compiler_pic
16652           compiler_flags=-v
16653           linker_flags=-v
16654           verstring=
16655           output_objdir=.
16656           libname=conftest
16657           lt_save_allow_undefined_flag=$allow_undefined_flag
16658           allow_undefined_flag=
16659           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16660   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16661   ac_status=$?
16662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16663   test $ac_status = 0; }
16664           then
16665             lt_cv_archive_cmds_need_lc=no
16666           else
16667             lt_cv_archive_cmds_need_lc=yes
16668           fi
16669           allow_undefined_flag=$lt_save_allow_undefined_flag
16670         else
16671           cat conftest.err 1>&5
16672         fi
16673         $RM conftest*
16674
16675 fi
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16677 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16678       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16679       ;;
16680     esac
16681   fi
16682   ;;
16683 esac
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16842 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16843
16844 if test "$GCC" = yes; then
16845   case $host_os in
16846     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16847     *) lt_awk_arg="/^libraries:/" ;;
16848   esac
16849   case $host_os in
16850     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16851     *) lt_sed_strip_eq="s,=/,/,g" ;;
16852   esac
16853   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16854   case $lt_search_path_spec in
16855   *\;*)
16856     # if the path contains ";" then we assume it to be the separator
16857     # otherwise default to the standard path separator (i.e. ":") - it is
16858     # assumed that no part of a normal pathname contains ";" but that should
16859     # okay in the real world where ";" in dirpaths is itself problematic.
16860     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16861     ;;
16862   *)
16863     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16864     ;;
16865   esac
16866   # Ok, now we have the path, separated by spaces, we can step through it
16867   # and add multilib dir if necessary.
16868   lt_tmp_lt_search_path_spec=
16869   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16870   for lt_sys_path in $lt_search_path_spec; do
16871     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16872       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16873     else
16874       test -d "$lt_sys_path" && \
16875         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16876     fi
16877   done
16878   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16879 BEGIN {RS=" "; FS="/|\n";} {
16880   lt_foo="";
16881   lt_count=0;
16882   for (lt_i = NF; lt_i > 0; lt_i--) {
16883     if ($lt_i != "" && $lt_i != ".") {
16884       if ($lt_i == "..") {
16885         lt_count++;
16886       } else {
16887         if (lt_count == 0) {
16888           lt_foo="/" $lt_i lt_foo;
16889         } else {
16890           lt_count--;
16891         }
16892       }
16893     }
16894   }
16895   if (lt_foo != "") { lt_freq[lt_foo]++; }
16896   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16897 }'`
16898   # AWK program above erroneously prepends '/' to C:/dos/paths
16899   # for these hosts.
16900   case $host_os in
16901     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16902       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16903   esac
16904   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16905 else
16906   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16907 fi
16908 library_names_spec=
16909 libname_spec='lib$name'
16910 soname_spec=
16911 shrext_cmds=".so"
16912 postinstall_cmds=
16913 postuninstall_cmds=
16914 finish_cmds=
16915 finish_eval=
16916 shlibpath_var=
16917 shlibpath_overrides_runpath=unknown
16918 version_type=none
16919 dynamic_linker="$host_os ld.so"
16920 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16921 need_lib_prefix=unknown
16922 hardcode_into_libs=no
16923
16924 # when you set need_version to no, make sure it does not cause -set_version
16925 # flags to be left without arguments
16926 need_version=unknown
16927
16928 case $host_os in
16929 aix3*)
16930   version_type=linux
16931   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16932   shlibpath_var=LIBPATH
16933
16934   # AIX 3 has no versioning support, so we append a major version to the name.
16935   soname_spec='${libname}${release}${shared_ext}$major'
16936   ;;
16937
16938 aix[4-9]*)
16939   version_type=linux
16940   need_lib_prefix=no
16941   need_version=no
16942   hardcode_into_libs=yes
16943   if test "$host_cpu" = ia64; then
16944     # AIX 5 supports IA64
16945     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16946     shlibpath_var=LD_LIBRARY_PATH
16947   else
16948     # With GCC up to 2.95.x, collect2 would create an import file
16949     # for dependence libraries.  The import file would start with
16950     # the line `#! .'.  This would cause the generated library to
16951     # depend on `.', always an invalid library.  This was fixed in
16952     # development snapshots of GCC prior to 3.0.
16953     case $host_os in
16954       aix4 | aix4.[01] | aix4.[01].*)
16955       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16956            echo ' yes '
16957            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16958         :
16959       else
16960         can_build_shared=no
16961       fi
16962       ;;
16963     esac
16964     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16965     # soname into executable. Probably we can add versioning support to
16966     # collect2, so additional links can be useful in future.
16967     if test "$aix_use_runtimelinking" = yes; then
16968       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16969       # instead of lib<name>.a to let people know that these are not
16970       # typical AIX shared libraries.
16971       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16972     else
16973       # We preserve .a as extension for shared libraries through AIX4.2
16974       # and later when we are not doing run time linking.
16975       library_names_spec='${libname}${release}.a $libname.a'
16976       soname_spec='${libname}${release}${shared_ext}$major'
16977     fi
16978     shlibpath_var=LIBPATH
16979   fi
16980   ;;
16981
16982 amigaos*)
16983   case $host_cpu in
16984   powerpc)
16985     # Since July 2007 AmigaOS4 officially supports .so libraries.
16986     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16987     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16988     ;;
16989   m68k)
16990     library_names_spec='$libname.ixlibrary $libname.a'
16991     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16992     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'
16993     ;;
16994   esac
16995   ;;
16996
16997 beos*)
16998   library_names_spec='${libname}${shared_ext}'
16999   dynamic_linker="$host_os ld.so"
17000   shlibpath_var=LIBRARY_PATH
17001   ;;
17002
17003 bsdi[45]*)
17004   version_type=linux
17005   need_version=no
17006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17007   soname_spec='${libname}${release}${shared_ext}$major'
17008   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17009   shlibpath_var=LD_LIBRARY_PATH
17010   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17011   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17012   # the default ld.so.conf also contains /usr/contrib/lib and
17013   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17014   # libtool to hard-code these into programs
17015   ;;
17016
17017 cygwin* | mingw* | pw32* | cegcc*)
17018   version_type=windows
17019   shrext_cmds=".dll"
17020   need_version=no
17021   need_lib_prefix=no
17022
17023   case $GCC,$host_os in
17024   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17025     library_names_spec='$libname.dll.a'
17026     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17027     postinstall_cmds='base_file=`basename \${file}`~
17028       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17029       dldir=$destdir/`dirname \$dlpath`~
17030       test -d \$dldir || mkdir -p \$dldir~
17031       $install_prog $dir/$dlname \$dldir/$dlname~
17032       chmod a+x \$dldir/$dlname~
17033       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17034         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17035       fi'
17036     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17037       dlpath=$dir/\$dldll~
17038        $RM \$dlpath'
17039     shlibpath_overrides_runpath=yes
17040
17041     case $host_os in
17042     cygwin*)
17043       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17044       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17045
17046       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17047       ;;
17048     mingw* | cegcc*)
17049       # MinGW DLLs use traditional 'lib' prefix
17050       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17051       ;;
17052     pw32*)
17053       # pw32 DLLs use 'pw' prefix rather than 'lib'
17054       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17055       ;;
17056     esac
17057     ;;
17058
17059   *)
17060     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17061     ;;
17062   esac
17063   dynamic_linker='Win32 ld.exe'
17064   # FIXME: first we should search . and the directory the executable is in
17065   shlibpath_var=PATH
17066   ;;
17067
17068 darwin* | rhapsody*)
17069   dynamic_linker="$host_os dyld"
17070   version_type=darwin
17071   need_lib_prefix=no
17072   need_version=no
17073   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17074   soname_spec='${libname}${release}${major}$shared_ext'
17075   shlibpath_overrides_runpath=yes
17076   shlibpath_var=DYLD_LIBRARY_PATH
17077   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17078
17079   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17080   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17081   ;;
17082
17083 dgux*)
17084   version_type=linux
17085   need_lib_prefix=no
17086   need_version=no
17087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17088   soname_spec='${libname}${release}${shared_ext}$major'
17089   shlibpath_var=LD_LIBRARY_PATH
17090   ;;
17091
17092 freebsd* | dragonfly*)
17093   # DragonFly does not have aout.  When/if they implement a new
17094   # versioning mechanism, adjust this.
17095   if test -x /usr/bin/objformat; then
17096     objformat=`/usr/bin/objformat`
17097   else
17098     case $host_os in
17099     freebsd[123]*) objformat=aout ;;
17100     *) objformat=elf ;;
17101     esac
17102   fi
17103   version_type=freebsd-$objformat
17104   case $version_type in
17105     freebsd-elf*)
17106       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17107       need_version=no
17108       need_lib_prefix=no
17109       ;;
17110     freebsd-*)
17111       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17112       need_version=yes
17113       ;;
17114   esac
17115   shlibpath_var=LD_LIBRARY_PATH
17116   case $host_os in
17117   freebsd2*)
17118     shlibpath_overrides_runpath=yes
17119     ;;
17120   freebsd3.[01]* | freebsdelf3.[01]*)
17121     shlibpath_overrides_runpath=yes
17122     hardcode_into_libs=yes
17123     ;;
17124   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17125   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17126     shlibpath_overrides_runpath=no
17127     hardcode_into_libs=yes
17128     ;;
17129   *) # from 4.6 on, and DragonFly
17130     shlibpath_overrides_runpath=yes
17131     hardcode_into_libs=yes
17132     ;;
17133   esac
17134   ;;
17135
17136 gnu*)
17137   version_type=linux
17138   need_lib_prefix=no
17139   need_version=no
17140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17141   soname_spec='${libname}${release}${shared_ext}$major'
17142   shlibpath_var=LD_LIBRARY_PATH
17143   hardcode_into_libs=yes
17144   ;;
17145
17146 haiku*)
17147   version_type=linux
17148   need_lib_prefix=no
17149   need_version=no
17150   dynamic_linker="$host_os runtime_loader"
17151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17152   soname_spec='${libname}${release}${shared_ext}$major'
17153   shlibpath_var=LIBRARY_PATH
17154   shlibpath_overrides_runpath=yes
17155   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17156   hardcode_into_libs=yes
17157   ;;
17158
17159 hpux9* | hpux10* | hpux11*)
17160   # Give a soname corresponding to the major version so that dld.sl refuses to
17161   # link against other versions.
17162   version_type=sunos
17163   need_lib_prefix=no
17164   need_version=no
17165   case $host_cpu in
17166   ia64*)
17167     shrext_cmds='.so'
17168     hardcode_into_libs=yes
17169     dynamic_linker="$host_os dld.so"
17170     shlibpath_var=LD_LIBRARY_PATH
17171     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17172     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17173     soname_spec='${libname}${release}${shared_ext}$major'
17174     if test "X$HPUX_IA64_MODE" = X32; then
17175       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17176     else
17177       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17178     fi
17179     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17180     ;;
17181   hppa*64*)
17182     shrext_cmds='.sl'
17183     hardcode_into_libs=yes
17184     dynamic_linker="$host_os dld.sl"
17185     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17186     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17187     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17188     soname_spec='${libname}${release}${shared_ext}$major'
17189     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17190     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17191     ;;
17192   *)
17193     shrext_cmds='.sl'
17194     dynamic_linker="$host_os dld.sl"
17195     shlibpath_var=SHLIB_PATH
17196     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17197     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17198     soname_spec='${libname}${release}${shared_ext}$major'
17199     ;;
17200   esac
17201   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17202   postinstall_cmds='chmod 555 $lib'
17203   # or fails outright, so override atomically:
17204   install_override_mode=555
17205   ;;
17206
17207 interix[3-9]*)
17208   version_type=linux
17209   need_lib_prefix=no
17210   need_version=no
17211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17212   soname_spec='${libname}${release}${shared_ext}$major'
17213   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17214   shlibpath_var=LD_LIBRARY_PATH
17215   shlibpath_overrides_runpath=no
17216   hardcode_into_libs=yes
17217   ;;
17218
17219 irix5* | irix6* | nonstopux*)
17220   case $host_os in
17221     nonstopux*) version_type=nonstopux ;;
17222     *)
17223         if test "$lt_cv_prog_gnu_ld" = yes; then
17224                 version_type=linux
17225         else
17226                 version_type=irix
17227         fi ;;
17228   esac
17229   need_lib_prefix=no
17230   need_version=no
17231   soname_spec='${libname}${release}${shared_ext}$major'
17232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17233   case $host_os in
17234   irix5* | nonstopux*)
17235     libsuff= shlibsuff=
17236     ;;
17237   *)
17238     case $LD in # libtool.m4 will add one of these switches to LD
17239     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17240       libsuff= shlibsuff= libmagic=32-bit;;
17241     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17242       libsuff=32 shlibsuff=N32 libmagic=N32;;
17243     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17244       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17245     *) libsuff= shlibsuff= libmagic=never-match;;
17246     esac
17247     ;;
17248   esac
17249   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17250   shlibpath_overrides_runpath=no
17251   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17252   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17253   hardcode_into_libs=yes
17254   ;;
17255
17256 # No shared lib support for Linux oldld, aout, or coff.
17257 linux*oldld* | linux*aout* | linux*coff*)
17258   dynamic_linker=no
17259   ;;
17260
17261 # This must be Linux ELF.
17262 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17263   version_type=linux
17264   need_lib_prefix=no
17265   need_version=no
17266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17267   soname_spec='${libname}${release}${shared_ext}$major'
17268   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17269   shlibpath_var=LD_LIBRARY_PATH
17270   shlibpath_overrides_runpath=no
17271
17272   # Some binutils ld are patched to set DT_RUNPATH
17273   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17274   $as_echo_n "(cached) " >&6
17275 else
17276   lt_cv_shlibpath_overrides_runpath=no
17277     save_LDFLAGS=$LDFLAGS
17278     save_libdir=$libdir
17279     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17280          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17281     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17282 /* end confdefs.h.  */
17283
17284 int
17285 main ()
17286 {
17287
17288   ;
17289   return 0;
17290 }
17291 _ACEOF
17292 if ac_fn_c_try_link "$LINENO"; then :
17293   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17294   lt_cv_shlibpath_overrides_runpath=yes
17295 fi
17296 fi
17297 rm -f core conftest.err conftest.$ac_objext \
17298     conftest$ac_exeext conftest.$ac_ext
17299     LDFLAGS=$save_LDFLAGS
17300     libdir=$save_libdir
17301
17302 fi
17303
17304   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17305
17306   # This implies no fast_install, which is unacceptable.
17307   # Some rework will be needed to allow for fast_install
17308   # before this can be enabled.
17309   hardcode_into_libs=yes
17310
17311   # Append ld.so.conf contents to the search path
17312   if test -f /etc/ld.so.conf; then
17313     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' ' '`
17314     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17315   fi
17316
17317   # We used to test for /lib/ld.so.1 and disable shared libraries on
17318   # powerpc, because MkLinux only supported shared libraries with the
17319   # GNU dynamic linker.  Since this was broken with cross compilers,
17320   # most powerpc-linux boxes support dynamic linking these days and
17321   # people can always --disable-shared, the test was removed, and we
17322   # assume the GNU/Linux dynamic linker is in use.
17323   dynamic_linker='GNU/Linux ld.so'
17324   ;;
17325
17326 netbsd*)
17327   version_type=sunos
17328   need_lib_prefix=no
17329   need_version=no
17330   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17331     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17332     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17333     dynamic_linker='NetBSD (a.out) ld.so'
17334   else
17335     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17336     soname_spec='${libname}${release}${shared_ext}$major'
17337     dynamic_linker='NetBSD ld.elf_so'
17338   fi
17339   shlibpath_var=LD_LIBRARY_PATH
17340   shlibpath_overrides_runpath=yes
17341   hardcode_into_libs=yes
17342   ;;
17343
17344 newsos6)
17345   version_type=linux
17346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17347   shlibpath_var=LD_LIBRARY_PATH
17348   shlibpath_overrides_runpath=yes
17349   ;;
17350
17351 *nto* | *qnx*)
17352   version_type=qnx
17353   need_lib_prefix=no
17354   need_version=no
17355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17356   soname_spec='${libname}${release}${shared_ext}$major'
17357   shlibpath_var=LD_LIBRARY_PATH
17358   shlibpath_overrides_runpath=no
17359   hardcode_into_libs=yes
17360   dynamic_linker='ldqnx.so'
17361   ;;
17362
17363 openbsd*)
17364   version_type=sunos
17365   sys_lib_dlsearch_path_spec="/usr/lib"
17366   need_lib_prefix=no
17367   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17368   case $host_os in
17369     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17370     *)                          need_version=no  ;;
17371   esac
17372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17373   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17374   shlibpath_var=LD_LIBRARY_PATH
17375   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17376     case $host_os in
17377       openbsd2.[89] | openbsd2.[89].*)
17378         shlibpath_overrides_runpath=no
17379         ;;
17380       *)
17381         shlibpath_overrides_runpath=yes
17382         ;;
17383       esac
17384   else
17385     shlibpath_overrides_runpath=yes
17386   fi
17387   ;;
17388
17389 os2*)
17390   libname_spec='$name'
17391   shrext_cmds=".dll"
17392   need_lib_prefix=no
17393   library_names_spec='$libname${shared_ext} $libname.a'
17394   dynamic_linker='OS/2 ld.exe'
17395   shlibpath_var=LIBPATH
17396   ;;
17397
17398 osf3* | osf4* | osf5*)
17399   version_type=osf
17400   need_lib_prefix=no
17401   need_version=no
17402   soname_spec='${libname}${release}${shared_ext}$major'
17403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17404   shlibpath_var=LD_LIBRARY_PATH
17405   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17406   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17407   ;;
17408
17409 rdos*)
17410   dynamic_linker=no
17411   ;;
17412
17413 solaris*)
17414   version_type=linux
17415   need_lib_prefix=no
17416   need_version=no
17417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17418   soname_spec='${libname}${release}${shared_ext}$major'
17419   shlibpath_var=LD_LIBRARY_PATH
17420   shlibpath_overrides_runpath=yes
17421   hardcode_into_libs=yes
17422   # ldd complains unless libraries are executable
17423   postinstall_cmds='chmod +x $lib'
17424   ;;
17425
17426 sunos4*)
17427   version_type=sunos
17428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17429   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17430   shlibpath_var=LD_LIBRARY_PATH
17431   shlibpath_overrides_runpath=yes
17432   if test "$with_gnu_ld" = yes; then
17433     need_lib_prefix=no
17434   fi
17435   need_version=yes
17436   ;;
17437
17438 sysv4 | sysv4.3*)
17439   version_type=linux
17440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441   soname_spec='${libname}${release}${shared_ext}$major'
17442   shlibpath_var=LD_LIBRARY_PATH
17443   case $host_vendor in
17444     sni)
17445       shlibpath_overrides_runpath=no
17446       need_lib_prefix=no
17447       runpath_var=LD_RUN_PATH
17448       ;;
17449     siemens)
17450       need_lib_prefix=no
17451       ;;
17452     motorola)
17453       need_lib_prefix=no
17454       need_version=no
17455       shlibpath_overrides_runpath=no
17456       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17457       ;;
17458   esac
17459   ;;
17460
17461 sysv4*MP*)
17462   if test -d /usr/nec ;then
17463     version_type=linux
17464     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17465     soname_spec='$libname${shared_ext}.$major'
17466     shlibpath_var=LD_LIBRARY_PATH
17467   fi
17468   ;;
17469
17470 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17471   version_type=freebsd-elf
17472   need_lib_prefix=no
17473   need_version=no
17474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17475   soname_spec='${libname}${release}${shared_ext}$major'
17476   shlibpath_var=LD_LIBRARY_PATH
17477   shlibpath_overrides_runpath=yes
17478   hardcode_into_libs=yes
17479   if test "$with_gnu_ld" = yes; then
17480     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17481   else
17482     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17483     case $host_os in
17484       sco3.2v5*)
17485         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17486         ;;
17487     esac
17488   fi
17489   sys_lib_dlsearch_path_spec='/usr/lib'
17490   ;;
17491
17492 tpf*)
17493   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17494   version_type=linux
17495   need_lib_prefix=no
17496   need_version=no
17497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17498   shlibpath_var=LD_LIBRARY_PATH
17499   shlibpath_overrides_runpath=no
17500   hardcode_into_libs=yes
17501   ;;
17502
17503 uts4*)
17504   version_type=linux
17505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17506   soname_spec='${libname}${release}${shared_ext}$major'
17507   shlibpath_var=LD_LIBRARY_PATH
17508   ;;
17509
17510 *)
17511   dynamic_linker=no
17512   ;;
17513 esac
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17515 $as_echo "$dynamic_linker" >&6; }
17516 test "$dynamic_linker" = no && can_build_shared=no
17517
17518 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17519 if test "$GCC" = yes; then
17520   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17521 fi
17522
17523 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17524   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17525 fi
17526 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17527   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17528 fi
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17622 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17623 hardcode_action=
17624 if test -n "$hardcode_libdir_flag_spec" ||
17625    test -n "$runpath_var" ||
17626    test "X$hardcode_automatic" = "Xyes" ; then
17627
17628   # We can hardcode non-existent directories.
17629   if test "$hardcode_direct" != no &&
17630      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17631      # have to relink, otherwise we might link with an installed library
17632      # when we should be linking with a yet-to-be-installed one
17633      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17634      test "$hardcode_minus_L" != no; then
17635     # Linking always hardcodes the temporary library directory.
17636     hardcode_action=relink
17637   else
17638     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17639     hardcode_action=immediate
17640   fi
17641 else
17642   # We cannot hardcode anything, or else we can only hardcode existing
17643   # directories.
17644   hardcode_action=unsupported
17645 fi
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17647 $as_echo "$hardcode_action" >&6; }
17648
17649 if test "$hardcode_action" = relink ||
17650    test "$inherit_rpath" = yes; then
17651   # Fast installation is not supported
17652   enable_fast_install=no
17653 elif test "$shlibpath_overrides_runpath" = yes ||
17654      test "$enable_shared" = no; then
17655   # Fast installation is not necessary
17656   enable_fast_install=needless
17657 fi
17658
17659
17660
17661
17662
17663
17664   if test "x$enable_dlopen" != xyes; then
17665   enable_dlopen=unknown
17666   enable_dlopen_self=unknown
17667   enable_dlopen_self_static=unknown
17668 else
17669   lt_cv_dlopen=no
17670   lt_cv_dlopen_libs=
17671
17672   case $host_os in
17673   beos*)
17674     lt_cv_dlopen="load_add_on"
17675     lt_cv_dlopen_libs=
17676     lt_cv_dlopen_self=yes
17677     ;;
17678
17679   mingw* | pw32* | cegcc*)
17680     lt_cv_dlopen="LoadLibrary"
17681     lt_cv_dlopen_libs=
17682     ;;
17683
17684   cygwin*)
17685     lt_cv_dlopen="dlopen"
17686     lt_cv_dlopen_libs=
17687     ;;
17688
17689   darwin*)
17690   # if libdl is installed we need to link against it
17691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17692 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17693 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17694   $as_echo_n "(cached) " >&6
17695 else
17696   ac_check_lib_save_LIBS=$LIBS
17697 LIBS="-ldl  $LIBS"
17698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17699 /* end confdefs.h.  */
17700
17701 /* Override any GCC internal prototype to avoid an error.
17702    Use char because int might match the return type of a GCC
17703    builtin and then its argument prototype would still apply.  */
17704 #ifdef __cplusplus
17705 extern "C"
17706 #endif
17707 char dlopen ();
17708 int
17709 main ()
17710 {
17711 return dlopen ();
17712   ;
17713   return 0;
17714 }
17715 _ACEOF
17716 if ac_fn_c_try_link "$LINENO"; then :
17717   ac_cv_lib_dl_dlopen=yes
17718 else
17719   ac_cv_lib_dl_dlopen=no
17720 fi
17721 rm -f core conftest.err conftest.$ac_objext \
17722     conftest$ac_exeext conftest.$ac_ext
17723 LIBS=$ac_check_lib_save_LIBS
17724 fi
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17726 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17727 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17728   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17729 else
17730
17731     lt_cv_dlopen="dyld"
17732     lt_cv_dlopen_libs=
17733     lt_cv_dlopen_self=yes
17734
17735 fi
17736
17737     ;;
17738
17739   *)
17740     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17741 if test "x$ac_cv_func_shl_load" = x""yes; then :
17742   lt_cv_dlopen="shl_load"
17743 else
17744   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17745 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17746 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17747   $as_echo_n "(cached) " >&6
17748 else
17749   ac_check_lib_save_LIBS=$LIBS
17750 LIBS="-ldld  $LIBS"
17751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17752 /* end confdefs.h.  */
17753
17754 /* Override any GCC internal prototype to avoid an error.
17755    Use char because int might match the return type of a GCC
17756    builtin and then its argument prototype would still apply.  */
17757 #ifdef __cplusplus
17758 extern "C"
17759 #endif
17760 char shl_load ();
17761 int
17762 main ()
17763 {
17764 return shl_load ();
17765   ;
17766   return 0;
17767 }
17768 _ACEOF
17769 if ac_fn_c_try_link "$LINENO"; then :
17770   ac_cv_lib_dld_shl_load=yes
17771 else
17772   ac_cv_lib_dld_shl_load=no
17773 fi
17774 rm -f core conftest.err conftest.$ac_objext \
17775     conftest$ac_exeext conftest.$ac_ext
17776 LIBS=$ac_check_lib_save_LIBS
17777 fi
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17779 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17780 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17781   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17782 else
17783   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17784 if test "x$ac_cv_func_dlopen" = x""yes; then :
17785   lt_cv_dlopen="dlopen"
17786 else
17787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17788 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17789 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17790   $as_echo_n "(cached) " >&6
17791 else
17792   ac_check_lib_save_LIBS=$LIBS
17793 LIBS="-ldl  $LIBS"
17794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17795 /* end confdefs.h.  */
17796
17797 /* Override any GCC internal prototype to avoid an error.
17798    Use char because int might match the return type of a GCC
17799    builtin and then its argument prototype would still apply.  */
17800 #ifdef __cplusplus
17801 extern "C"
17802 #endif
17803 char dlopen ();
17804 int
17805 main ()
17806 {
17807 return dlopen ();
17808   ;
17809   return 0;
17810 }
17811 _ACEOF
17812 if ac_fn_c_try_link "$LINENO"; then :
17813   ac_cv_lib_dl_dlopen=yes
17814 else
17815   ac_cv_lib_dl_dlopen=no
17816 fi
17817 rm -f core conftest.err conftest.$ac_objext \
17818     conftest$ac_exeext conftest.$ac_ext
17819 LIBS=$ac_check_lib_save_LIBS
17820 fi
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17822 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17823 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17824   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17825 else
17826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17827 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17828 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17829   $as_echo_n "(cached) " >&6
17830 else
17831   ac_check_lib_save_LIBS=$LIBS
17832 LIBS="-lsvld  $LIBS"
17833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17834 /* end confdefs.h.  */
17835
17836 /* Override any GCC internal prototype to avoid an error.
17837    Use char because int might match the return type of a GCC
17838    builtin and then its argument prototype would still apply.  */
17839 #ifdef __cplusplus
17840 extern "C"
17841 #endif
17842 char dlopen ();
17843 int
17844 main ()
17845 {
17846 return dlopen ();
17847   ;
17848   return 0;
17849 }
17850 _ACEOF
17851 if ac_fn_c_try_link "$LINENO"; then :
17852   ac_cv_lib_svld_dlopen=yes
17853 else
17854   ac_cv_lib_svld_dlopen=no
17855 fi
17856 rm -f core conftest.err conftest.$ac_objext \
17857     conftest$ac_exeext conftest.$ac_ext
17858 LIBS=$ac_check_lib_save_LIBS
17859 fi
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17861 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17862 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17863   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17864 else
17865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17866 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17867 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17868   $as_echo_n "(cached) " >&6
17869 else
17870   ac_check_lib_save_LIBS=$LIBS
17871 LIBS="-ldld  $LIBS"
17872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17873 /* end confdefs.h.  */
17874
17875 /* Override any GCC internal prototype to avoid an error.
17876    Use char because int might match the return type of a GCC
17877    builtin and then its argument prototype would still apply.  */
17878 #ifdef __cplusplus
17879 extern "C"
17880 #endif
17881 char dld_link ();
17882 int
17883 main ()
17884 {
17885 return dld_link ();
17886   ;
17887   return 0;
17888 }
17889 _ACEOF
17890 if ac_fn_c_try_link "$LINENO"; then :
17891   ac_cv_lib_dld_dld_link=yes
17892 else
17893   ac_cv_lib_dld_dld_link=no
17894 fi
17895 rm -f core conftest.err conftest.$ac_objext \
17896     conftest$ac_exeext conftest.$ac_ext
17897 LIBS=$ac_check_lib_save_LIBS
17898 fi
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17900 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17901 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17902   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17903 fi
17904
17905
17906 fi
17907
17908
17909 fi
17910
17911
17912 fi
17913
17914
17915 fi
17916
17917
17918 fi
17919
17920     ;;
17921   esac
17922
17923   if test "x$lt_cv_dlopen" != xno; then
17924     enable_dlopen=yes
17925   else
17926     enable_dlopen=no
17927   fi
17928
17929   case $lt_cv_dlopen in
17930   dlopen)
17931     save_CPPFLAGS="$CPPFLAGS"
17932     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17933
17934     save_LDFLAGS="$LDFLAGS"
17935     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17936
17937     save_LIBS="$LIBS"
17938     LIBS="$lt_cv_dlopen_libs $LIBS"
17939
17940     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17941 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17942 if test "${lt_cv_dlopen_self+set}" = set; then :
17943   $as_echo_n "(cached) " >&6
17944 else
17945           if test "$cross_compiling" = yes; then :
17946   lt_cv_dlopen_self=cross
17947 else
17948   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17949   lt_status=$lt_dlunknown
17950   cat > conftest.$ac_ext <<_LT_EOF
17951 #line 17951 "configure"
17952 #include "confdefs.h"
17953
17954 #if HAVE_DLFCN_H
17955 #include <dlfcn.h>
17956 #endif
17957
17958 #include <stdio.h>
17959
17960 #ifdef RTLD_GLOBAL
17961 #  define LT_DLGLOBAL           RTLD_GLOBAL
17962 #else
17963 #  ifdef DL_GLOBAL
17964 #    define LT_DLGLOBAL         DL_GLOBAL
17965 #  else
17966 #    define LT_DLGLOBAL         0
17967 #  endif
17968 #endif
17969
17970 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17971    find out it does not work in some platform. */
17972 #ifndef LT_DLLAZY_OR_NOW
17973 #  ifdef RTLD_LAZY
17974 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17975 #  else
17976 #    ifdef DL_LAZY
17977 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17978 #    else
17979 #      ifdef RTLD_NOW
17980 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17981 #      else
17982 #        ifdef DL_NOW
17983 #          define LT_DLLAZY_OR_NOW      DL_NOW
17984 #        else
17985 #          define LT_DLLAZY_OR_NOW      0
17986 #        endif
17987 #      endif
17988 #    endif
17989 #  endif
17990 #endif
17991
17992 /* When -fvisbility=hidden is used, assume the code has been annotated
17993    correspondingly for the symbols needed.  */
17994 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17995 void fnord () __attribute__((visibility("default")));
17996 #endif
17997
17998 void fnord () { int i=42; }
17999 int main ()
18000 {
18001   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18002   int status = $lt_dlunknown;
18003
18004   if (self)
18005     {
18006       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18007       else
18008         {
18009           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18010           else puts (dlerror ());
18011         }
18012       /* dlclose (self); */
18013     }
18014   else
18015     puts (dlerror ());
18016
18017   return status;
18018 }
18019 _LT_EOF
18020   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18021   (eval $ac_link) 2>&5
18022   ac_status=$?
18023   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18024   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18025     (./conftest; exit; ) >&5 2>/dev/null
18026     lt_status=$?
18027     case x$lt_status in
18028       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18029       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18030       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18031     esac
18032   else :
18033     # compilation failed
18034     lt_cv_dlopen_self=no
18035   fi
18036 fi
18037 rm -fr conftest*
18038
18039
18040 fi
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18042 $as_echo "$lt_cv_dlopen_self" >&6; }
18043
18044     if test "x$lt_cv_dlopen_self" = xyes; then
18045       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18046       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18047 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18048 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18049   $as_echo_n "(cached) " >&6
18050 else
18051           if test "$cross_compiling" = yes; then :
18052   lt_cv_dlopen_self_static=cross
18053 else
18054   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18055   lt_status=$lt_dlunknown
18056   cat > conftest.$ac_ext <<_LT_EOF
18057 #line 18057 "configure"
18058 #include "confdefs.h"
18059
18060 #if HAVE_DLFCN_H
18061 #include <dlfcn.h>
18062 #endif
18063
18064 #include <stdio.h>
18065
18066 #ifdef RTLD_GLOBAL
18067 #  define LT_DLGLOBAL           RTLD_GLOBAL
18068 #else
18069 #  ifdef DL_GLOBAL
18070 #    define LT_DLGLOBAL         DL_GLOBAL
18071 #  else
18072 #    define LT_DLGLOBAL         0
18073 #  endif
18074 #endif
18075
18076 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18077    find out it does not work in some platform. */
18078 #ifndef LT_DLLAZY_OR_NOW
18079 #  ifdef RTLD_LAZY
18080 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18081 #  else
18082 #    ifdef DL_LAZY
18083 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18084 #    else
18085 #      ifdef RTLD_NOW
18086 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18087 #      else
18088 #        ifdef DL_NOW
18089 #          define LT_DLLAZY_OR_NOW      DL_NOW
18090 #        else
18091 #          define LT_DLLAZY_OR_NOW      0
18092 #        endif
18093 #      endif
18094 #    endif
18095 #  endif
18096 #endif
18097
18098 /* When -fvisbility=hidden is used, assume the code has been annotated
18099    correspondingly for the symbols needed.  */
18100 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18101 void fnord () __attribute__((visibility("default")));
18102 #endif
18103
18104 void fnord () { int i=42; }
18105 int main ()
18106 {
18107   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18108   int status = $lt_dlunknown;
18109
18110   if (self)
18111     {
18112       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18113       else
18114         {
18115           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18116           else puts (dlerror ());
18117         }
18118       /* dlclose (self); */
18119     }
18120   else
18121     puts (dlerror ());
18122
18123   return status;
18124 }
18125 _LT_EOF
18126   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18127   (eval $ac_link) 2>&5
18128   ac_status=$?
18129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18130   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18131     (./conftest; exit; ) >&5 2>/dev/null
18132     lt_status=$?
18133     case x$lt_status in
18134       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18135       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18136       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18137     esac
18138   else :
18139     # compilation failed
18140     lt_cv_dlopen_self_static=no
18141   fi
18142 fi
18143 rm -fr conftest*
18144
18145
18146 fi
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18148 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18149     fi
18150
18151     CPPFLAGS="$save_CPPFLAGS"
18152     LDFLAGS="$save_LDFLAGS"
18153     LIBS="$save_LIBS"
18154     ;;
18155   esac
18156
18157   case $lt_cv_dlopen_self in
18158   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18159   *) enable_dlopen_self=unknown ;;
18160   esac
18161
18162   case $lt_cv_dlopen_self_static in
18163   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18164   *) enable_dlopen_self_static=unknown ;;
18165   esac
18166 fi
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184 striplib=
18185 old_striplib=
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18187 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18188 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18189   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18190   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18192 $as_echo "yes" >&6; }
18193 else
18194 # FIXME - insert some real tests, host_os isn't really good enough
18195   case $host_os in
18196   darwin*)
18197     if test -n "$STRIP" ; then
18198       striplib="$STRIP -x"
18199       old_striplib="$STRIP -S"
18200       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18201 $as_echo "yes" >&6; }
18202     else
18203       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18204 $as_echo "no" >&6; }
18205     fi
18206     ;;
18207   *)
18208     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18209 $as_echo "no" >&6; }
18210     ;;
18211   esac
18212 fi
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225   # Report which library types will actually be built
18226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18227 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18229 $as_echo "$can_build_shared" >&6; }
18230
18231   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18232 $as_echo_n "checking whether to build shared libraries... " >&6; }
18233   test "$can_build_shared" = "no" && enable_shared=no
18234
18235   # On AIX, shared libraries and static libraries use the same namespace, and
18236   # are all built from PIC.
18237   case $host_os in
18238   aix3*)
18239     test "$enable_shared" = yes && enable_static=no
18240     if test -n "$RANLIB"; then
18241       archive_cmds="$archive_cmds~\$RANLIB \$lib"
18242       postinstall_cmds='$RANLIB $lib'
18243     fi
18244     ;;
18245
18246   aix[4-9]*)
18247     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18248       test "$enable_shared" = yes && enable_static=no
18249     fi
18250     ;;
18251   esac
18252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18253 $as_echo "$enable_shared" >&6; }
18254
18255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18256 $as_echo_n "checking whether to build static libraries... " >&6; }
18257   # Make sure either enable_shared or enable_static is yes.
18258   test "$enable_shared" = yes || enable_static=yes
18259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18260 $as_echo "$enable_static" >&6; }
18261
18262
18263
18264
18265 fi
18266 ac_ext=c
18267 ac_cpp='$CPP $CPPFLAGS'
18268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18271
18272 CC="$lt_save_CC"
18273
18274       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18275     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18276     (test "X$CXX" != "Xg++"))) ; then
18277   ac_ext=cpp
18278 ac_cpp='$CXXCPP $CPPFLAGS'
18279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18283 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18284 if test -z "$CXXCPP"; then
18285   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18286   $as_echo_n "(cached) " >&6
18287 else
18288       # Double quotes because CXXCPP needs to be expanded
18289     for CXXCPP in "$CXX -E" "/lib/cpp"
18290     do
18291       ac_preproc_ok=false
18292 for ac_cxx_preproc_warn_flag in '' yes
18293 do
18294   # Use a header file that comes with gcc, so configuring glibc
18295   # with a fresh cross-compiler works.
18296   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18297   # <limits.h> exists even on freestanding compilers.
18298   # On the NeXT, cc -E runs the code through the compiler's parser,
18299   # not just through cpp. "Syntax error" is here to catch this case.
18300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18301 /* end confdefs.h.  */
18302 #ifdef __STDC__
18303 # include <limits.h>
18304 #else
18305 # include <assert.h>
18306 #endif
18307                      Syntax error
18308 _ACEOF
18309 if ac_fn_cxx_try_cpp "$LINENO"; then :
18310
18311 else
18312   # Broken: fails on valid input.
18313 continue
18314 fi
18315 rm -f conftest.err conftest.$ac_ext
18316
18317   # OK, works on sane cases.  Now check whether nonexistent headers
18318   # can be detected and how.
18319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18320 /* end confdefs.h.  */
18321 #include <ac_nonexistent.h>
18322 _ACEOF
18323 if ac_fn_cxx_try_cpp "$LINENO"; then :
18324   # Broken: success on invalid input.
18325 continue
18326 else
18327   # Passes both tests.
18328 ac_preproc_ok=:
18329 break
18330 fi
18331 rm -f conftest.err conftest.$ac_ext
18332
18333 done
18334 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18335 rm -f conftest.err conftest.$ac_ext
18336 if $ac_preproc_ok; then :
18337   break
18338 fi
18339
18340     done
18341     ac_cv_prog_CXXCPP=$CXXCPP
18342
18343 fi
18344   CXXCPP=$ac_cv_prog_CXXCPP
18345 else
18346   ac_cv_prog_CXXCPP=$CXXCPP
18347 fi
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18349 $as_echo "$CXXCPP" >&6; }
18350 ac_preproc_ok=false
18351 for ac_cxx_preproc_warn_flag in '' yes
18352 do
18353   # Use a header file that comes with gcc, so configuring glibc
18354   # with a fresh cross-compiler works.
18355   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18356   # <limits.h> exists even on freestanding compilers.
18357   # On the NeXT, cc -E runs the code through the compiler's parser,
18358   # not just through cpp. "Syntax error" is here to catch this case.
18359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18360 /* end confdefs.h.  */
18361 #ifdef __STDC__
18362 # include <limits.h>
18363 #else
18364 # include <assert.h>
18365 #endif
18366                      Syntax error
18367 _ACEOF
18368 if ac_fn_cxx_try_cpp "$LINENO"; then :
18369
18370 else
18371   # Broken: fails on valid input.
18372 continue
18373 fi
18374 rm -f conftest.err conftest.$ac_ext
18375
18376   # OK, works on sane cases.  Now check whether nonexistent headers
18377   # can be detected and how.
18378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18379 /* end confdefs.h.  */
18380 #include <ac_nonexistent.h>
18381 _ACEOF
18382 if ac_fn_cxx_try_cpp "$LINENO"; then :
18383   # Broken: success on invalid input.
18384 continue
18385 else
18386   # Passes both tests.
18387 ac_preproc_ok=:
18388 break
18389 fi
18390 rm -f conftest.err conftest.$ac_ext
18391
18392 done
18393 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18394 rm -f conftest.err conftest.$ac_ext
18395 if $ac_preproc_ok; then :
18396
18397 else
18398   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18400 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18401 See \`config.log' for more details." "$LINENO" 5; }
18402 fi
18403
18404 ac_ext=c
18405 ac_cpp='$CPP $CPPFLAGS'
18406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18409
18410 else
18411   _lt_caught_CXX_error=yes
18412 fi
18413
18414 ac_ext=cpp
18415 ac_cpp='$CXXCPP $CPPFLAGS'
18416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18419
18420 archive_cmds_need_lc_CXX=no
18421 allow_undefined_flag_CXX=
18422 always_export_symbols_CXX=no
18423 archive_expsym_cmds_CXX=
18424 compiler_needs_object_CXX=no
18425 export_dynamic_flag_spec_CXX=
18426 hardcode_direct_CXX=no
18427 hardcode_direct_absolute_CXX=no
18428 hardcode_libdir_flag_spec_CXX=
18429 hardcode_libdir_flag_spec_ld_CXX=
18430 hardcode_libdir_separator_CXX=
18431 hardcode_minus_L_CXX=no
18432 hardcode_shlibpath_var_CXX=unsupported
18433 hardcode_automatic_CXX=no
18434 inherit_rpath_CXX=no
18435 module_cmds_CXX=
18436 module_expsym_cmds_CXX=
18437 link_all_deplibs_CXX=unknown
18438 old_archive_cmds_CXX=$old_archive_cmds
18439 reload_flag_CXX=$reload_flag
18440 reload_cmds_CXX=$reload_cmds
18441 no_undefined_flag_CXX=
18442 whole_archive_flag_spec_CXX=
18443 enable_shared_with_static_runtimes_CXX=no
18444
18445 # Source file extension for C++ test sources.
18446 ac_ext=cpp
18447
18448 # Object file extension for compiled C++ test sources.
18449 objext=o
18450 objext_CXX=$objext
18451
18452 # No sense in running all these tests if we already determined that
18453 # the CXX compiler isn't working.  Some variables (like enable_shared)
18454 # are currently assumed to apply to all compilers on this platform,
18455 # and will be corrupted by setting them based on a non-working compiler.
18456 if test "$_lt_caught_CXX_error" != yes; then
18457   # Code to be used in simple compile tests
18458   lt_simple_compile_test_code="int some_variable = 0;"
18459
18460   # Code to be used in simple link tests
18461   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18462
18463   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18464
18465
18466
18467
18468
18469
18470 # If no C compiler was specified, use CC.
18471 LTCC=${LTCC-"$CC"}
18472
18473 # If no C compiler flags were specified, use CFLAGS.
18474 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18475
18476 # Allow CC to be a program name with arguments.
18477 compiler=$CC
18478
18479
18480   # save warnings/boilerplate of simple test code
18481   ac_outfile=conftest.$ac_objext
18482 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18483 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18484 _lt_compiler_boilerplate=`cat conftest.err`
18485 $RM conftest*
18486
18487   ac_outfile=conftest.$ac_objext
18488 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18489 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18490 _lt_linker_boilerplate=`cat conftest.err`
18491 $RM -r conftest*
18492
18493
18494   # Allow CC to be a program name with arguments.
18495   lt_save_CC=$CC
18496   lt_save_LD=$LD
18497   lt_save_GCC=$GCC
18498   GCC=$GXX
18499   lt_save_with_gnu_ld=$with_gnu_ld
18500   lt_save_path_LD=$lt_cv_path_LD
18501   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18502     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18503   else
18504     $as_unset lt_cv_prog_gnu_ld
18505   fi
18506   if test -n "${lt_cv_path_LDCXX+set}"; then
18507     lt_cv_path_LD=$lt_cv_path_LDCXX
18508   else
18509     $as_unset lt_cv_path_LD
18510   fi
18511   test -z "${LDCXX+set}" || LD=$LDCXX
18512   CC=${CXX-"c++"}
18513   compiler=$CC
18514   compiler_CXX=$CC
18515   for cc_temp in $compiler""; do
18516   case $cc_temp in
18517     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18518     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18519     \-*) ;;
18520     *) break;;
18521   esac
18522 done
18523 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18524
18525
18526   if test -n "$compiler"; then
18527     # We don't want -fno-exception when compiling C++ code, so set the
18528     # no_builtin_flag separately
18529     if test "$GXX" = yes; then
18530       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18531     else
18532       lt_prog_compiler_no_builtin_flag_CXX=
18533     fi
18534
18535     if test "$GXX" = yes; then
18536       # Set up default GNU C++ configuration
18537
18538
18539
18540 # Check whether --with-gnu-ld was given.
18541 if test "${with_gnu_ld+set}" = set; then :
18542   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18543 else
18544   with_gnu_ld=no
18545 fi
18546
18547 ac_prog=ld
18548 if test "$GCC" = yes; then
18549   # Check if gcc -print-prog-name=ld gives a path.
18550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18551 $as_echo_n "checking for ld used by $CC... " >&6; }
18552   case $host in
18553   *-*-mingw*)
18554     # gcc leaves a trailing carriage return which upsets mingw
18555     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18556   *)
18557     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18558   esac
18559   case $ac_prog in
18560     # Accept absolute paths.
18561     [\\/]* | ?:[\\/]*)
18562       re_direlt='/[^/][^/]*/\.\./'
18563       # Canonicalize the pathname of ld
18564       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18565       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18566         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18567       done
18568       test -z "$LD" && LD="$ac_prog"
18569       ;;
18570   "")
18571     # If it fails, then pretend we aren't using GCC.
18572     ac_prog=ld
18573     ;;
18574   *)
18575     # If it is relative, then search for the first ld in PATH.
18576     with_gnu_ld=unknown
18577     ;;
18578   esac
18579 elif test "$with_gnu_ld" = yes; then
18580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18581 $as_echo_n "checking for GNU ld... " >&6; }
18582 else
18583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18584 $as_echo_n "checking for non-GNU ld... " >&6; }
18585 fi
18586 if test "${lt_cv_path_LD+set}" = set; then :
18587   $as_echo_n "(cached) " >&6
18588 else
18589   if test -z "$LD"; then
18590   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18591   for ac_dir in $PATH; do
18592     IFS="$lt_save_ifs"
18593     test -z "$ac_dir" && ac_dir=.
18594     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18595       lt_cv_path_LD="$ac_dir/$ac_prog"
18596       # Check to see if the program is GNU ld.  I'd rather use --version,
18597       # but apparently some variants of GNU ld only accept -v.
18598       # Break only if it was the GNU/non-GNU ld that we prefer.
18599       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18600       *GNU* | *'with BFD'*)
18601         test "$with_gnu_ld" != no && break
18602         ;;
18603       *)
18604         test "$with_gnu_ld" != yes && break
18605         ;;
18606       esac
18607     fi
18608   done
18609   IFS="$lt_save_ifs"
18610 else
18611   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18612 fi
18613 fi
18614
18615 LD="$lt_cv_path_LD"
18616 if test -n "$LD"; then
18617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18618 $as_echo "$LD" >&6; }
18619 else
18620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18621 $as_echo "no" >&6; }
18622 fi
18623 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18625 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18626 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18627   $as_echo_n "(cached) " >&6
18628 else
18629   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18630 case `$LD -v 2>&1 </dev/null` in
18631 *GNU* | *'with BFD'*)
18632   lt_cv_prog_gnu_ld=yes
18633   ;;
18634 *)
18635   lt_cv_prog_gnu_ld=no
18636   ;;
18637 esac
18638 fi
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18640 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18641 with_gnu_ld=$lt_cv_prog_gnu_ld
18642
18643
18644
18645
18646
18647
18648
18649       # Check if GNU C++ uses GNU ld as the underlying linker, since the
18650       # archiving commands below assume that GNU ld is being used.
18651       if test "$with_gnu_ld" = yes; then
18652         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18653         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'
18654
18655         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18656         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18657
18658         # If archive_cmds runs LD, not CC, wlarc should be empty
18659         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18660         #     investigate it a little bit more. (MM)
18661         wlarc='${wl}'
18662
18663         # ancient GNU ld didn't support --whole-archive et. al.
18664         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18665           $GREP 'no-whole-archive' > /dev/null; then
18666           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18667         else
18668           whole_archive_flag_spec_CXX=
18669         fi
18670       else
18671         with_gnu_ld=no
18672         wlarc=
18673
18674         # A generic and very simple default shared library creation
18675         # command for GNU C++ for the case where it uses the native
18676         # linker, instead of GNU ld.  If possible, this setting should
18677         # overridden to take advantage of the native linker features on
18678         # the platform it is being used on.
18679         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18680       fi
18681
18682       # Commands to make compiler produce verbose output that lists
18683       # what "hidden" libraries, object files and flags are used when
18684       # linking a shared library.
18685       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18686
18687     else
18688       GXX=no
18689       with_gnu_ld=no
18690       wlarc=
18691     fi
18692
18693     # PORTME: fill in a description of your system's C++ link characteristics
18694     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18695 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18696     ld_shlibs_CXX=yes
18697     case $host_os in
18698       aix3*)
18699         # FIXME: insert proper C++ library support
18700         ld_shlibs_CXX=no
18701         ;;
18702       aix[4-9]*)
18703         if test "$host_cpu" = ia64; then
18704           # On IA64, the linker does run time linking by default, so we don't
18705           # have to do anything special.
18706           aix_use_runtimelinking=no
18707           exp_sym_flag='-Bexport'
18708           no_entry_flag=""
18709         else
18710           aix_use_runtimelinking=no
18711
18712           # Test if we are trying to use run time linking or normal
18713           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18714           # need to do runtime linking.
18715           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18716             for ld_flag in $LDFLAGS; do
18717               case $ld_flag in
18718               *-brtl*)
18719                 aix_use_runtimelinking=yes
18720                 break
18721                 ;;
18722               esac
18723             done
18724             ;;
18725           esac
18726
18727           exp_sym_flag='-bexport'
18728           no_entry_flag='-bnoentry'
18729         fi
18730
18731         # When large executables or shared objects are built, AIX ld can
18732         # have problems creating the table of contents.  If linking a library
18733         # or program results in "error TOC overflow" add -mminimal-toc to
18734         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18735         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18736
18737         archive_cmds_CXX=''
18738         hardcode_direct_CXX=yes
18739         hardcode_direct_absolute_CXX=yes
18740         hardcode_libdir_separator_CXX=':'
18741         link_all_deplibs_CXX=yes
18742         file_list_spec_CXX='${wl}-f,'
18743
18744         if test "$GXX" = yes; then
18745           case $host_os in aix4.[012]|aix4.[012].*)
18746           # We only want to do this on AIX 4.2 and lower, the check
18747           # below for broken collect2 doesn't work under 4.3+
18748           collect2name=`${CC} -print-prog-name=collect2`
18749           if test -f "$collect2name" &&
18750              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18751           then
18752             # We have reworked collect2
18753             :
18754           else
18755             # We have old collect2
18756             hardcode_direct_CXX=unsupported
18757             # It fails to find uninstalled libraries when the uninstalled
18758             # path is not listed in the libpath.  Setting hardcode_minus_L
18759             # to unsupported forces relinking
18760             hardcode_minus_L_CXX=yes
18761             hardcode_libdir_flag_spec_CXX='-L$libdir'
18762             hardcode_libdir_separator_CXX=
18763           fi
18764           esac
18765           shared_flag='-shared'
18766           if test "$aix_use_runtimelinking" = yes; then
18767             shared_flag="$shared_flag "'${wl}-G'
18768           fi
18769         else
18770           # not using gcc
18771           if test "$host_cpu" = ia64; then
18772           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18773           # chokes on -Wl,-G. The following line is correct:
18774           shared_flag='-G'
18775           else
18776             if test "$aix_use_runtimelinking" = yes; then
18777               shared_flag='${wl}-G'
18778             else
18779               shared_flag='${wl}-bM:SRE'
18780             fi
18781           fi
18782         fi
18783
18784         export_dynamic_flag_spec_CXX='${wl}-bexpall'
18785         # It seems that -bexpall does not export symbols beginning with
18786         # underscore (_), so it is better to generate a list of symbols to
18787         # export.
18788         always_export_symbols_CXX=yes
18789         if test "$aix_use_runtimelinking" = yes; then
18790           # Warning - without using the other runtime loading flags (-brtl),
18791           # -berok will link without error, but may produce a broken library.
18792           allow_undefined_flag_CXX='-berok'
18793           # Determine the default libpath from the value encoded in an empty
18794           # executable.
18795           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18796 /* end confdefs.h.  */
18797
18798 int
18799 main ()
18800 {
18801
18802   ;
18803   return 0;
18804 }
18805 _ACEOF
18806 if ac_fn_cxx_try_link "$LINENO"; then :
18807
18808 lt_aix_libpath_sed='
18809     /Import File Strings/,/^$/ {
18810         /^0/ {
18811             s/^0  *\(.*\)$/\1/
18812             p
18813         }
18814     }'
18815 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18816 # Check for a 64-bit object if we didn't find anything.
18817 if test -z "$aix_libpath"; then
18818   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18819 fi
18820 fi
18821 rm -f core conftest.err conftest.$ac_objext \
18822     conftest$ac_exeext conftest.$ac_ext
18823 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18824
18825           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18826
18827           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"
18828         else
18829           if test "$host_cpu" = ia64; then
18830             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18831             allow_undefined_flag_CXX="-z nodefs"
18832             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"
18833           else
18834             # Determine the default libpath from the value encoded in an
18835             # empty executable.
18836             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18837 /* end confdefs.h.  */
18838
18839 int
18840 main ()
18841 {
18842
18843   ;
18844   return 0;
18845 }
18846 _ACEOF
18847 if ac_fn_cxx_try_link "$LINENO"; then :
18848
18849 lt_aix_libpath_sed='
18850     /Import File Strings/,/^$/ {
18851         /^0/ {
18852             s/^0  *\(.*\)$/\1/
18853             p
18854         }
18855     }'
18856 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18857 # Check for a 64-bit object if we didn't find anything.
18858 if test -z "$aix_libpath"; then
18859   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18860 fi
18861 fi
18862 rm -f core conftest.err conftest.$ac_objext \
18863     conftest$ac_exeext conftest.$ac_ext
18864 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18865
18866             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18867             # Warning - without using the other run time loading flags,
18868             # -berok will link without error, but may produce a broken library.
18869             no_undefined_flag_CXX=' ${wl}-bernotok'
18870             allow_undefined_flag_CXX=' ${wl}-berok'
18871             if test "$with_gnu_ld" = yes; then
18872               # We only use this code for GNU lds that support --whole-archive.
18873               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18874             else
18875               # Exported symbols can be pulled into shared objects from archives
18876               whole_archive_flag_spec_CXX='$convenience'
18877             fi
18878             archive_cmds_need_lc_CXX=yes
18879             # This is similar to how AIX traditionally builds its shared
18880             # libraries.
18881             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'
18882           fi
18883         fi
18884         ;;
18885
18886       beos*)
18887         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18888           allow_undefined_flag_CXX=unsupported
18889           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18890           # support --undefined.  This deserves some investigation.  FIXME
18891           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18892         else
18893           ld_shlibs_CXX=no
18894         fi
18895         ;;
18896
18897       chorus*)
18898         case $cc_basename in
18899           *)
18900           # FIXME: insert proper C++ library support
18901           ld_shlibs_CXX=no
18902           ;;
18903         esac
18904         ;;
18905
18906       cygwin* | mingw* | pw32* | cegcc*)
18907         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18908         # as there is no search path for DLLs.
18909         hardcode_libdir_flag_spec_CXX='-L$libdir'
18910         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18911         allow_undefined_flag_CXX=unsupported
18912         always_export_symbols_CXX=no
18913         enable_shared_with_static_runtimes_CXX=yes
18914
18915         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18916           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'
18917           # If the export-symbols file already is a .def file (1st line
18918           # is EXPORTS), use it as is; otherwise, prepend...
18919           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18920             cp $export_symbols $output_objdir/$soname.def;
18921           else
18922             echo EXPORTS > $output_objdir/$soname.def;
18923             cat $export_symbols >> $output_objdir/$soname.def;
18924           fi~
18925           $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'
18926         else
18927           ld_shlibs_CXX=no
18928         fi
18929         ;;
18930       darwin* | rhapsody*)
18931
18932
18933   archive_cmds_need_lc_CXX=no
18934   hardcode_direct_CXX=no
18935   hardcode_automatic_CXX=yes
18936   hardcode_shlibpath_var_CXX=unsupported
18937   if test "$lt_cv_ld_force_load" = "yes"; then
18938     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\"`'
18939   else
18940     whole_archive_flag_spec_CXX=''
18941   fi
18942   link_all_deplibs_CXX=yes
18943   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18944   case $cc_basename in
18945      ifort*) _lt_dar_can_shared=yes ;;
18946      *) _lt_dar_can_shared=$GCC ;;
18947   esac
18948   if test "$_lt_dar_can_shared" = "yes"; then
18949     output_verbose_link_cmd=func_echo_all
18950     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}"
18951     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18952     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}"
18953     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}"
18954        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18955       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}"
18956       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}"
18957     fi
18958
18959   else
18960   ld_shlibs_CXX=no
18961   fi
18962
18963         ;;
18964
18965       dgux*)
18966         case $cc_basename in
18967           ec++*)
18968             # FIXME: insert proper C++ library support
18969             ld_shlibs_CXX=no
18970             ;;
18971           ghcx*)
18972             # Green Hills C++ Compiler
18973             # FIXME: insert proper C++ library support
18974             ld_shlibs_CXX=no
18975             ;;
18976           *)
18977             # FIXME: insert proper C++ library support
18978             ld_shlibs_CXX=no
18979             ;;
18980         esac
18981         ;;
18982
18983       freebsd[12]*)
18984         # C++ shared libraries reported to be fairly broken before
18985         # switch to ELF
18986         ld_shlibs_CXX=no
18987         ;;
18988
18989       freebsd-elf*)
18990         archive_cmds_need_lc_CXX=no
18991         ;;
18992
18993       freebsd* | dragonfly*)
18994         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18995         # conventions
18996         ld_shlibs_CXX=yes
18997         ;;
18998
18999       gnu*)
19000         ;;
19001
19002       haiku*)
19003         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19004         link_all_deplibs_CXX=yes
19005         ;;
19006
19007       hpux9*)
19008         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19009         hardcode_libdir_separator_CXX=:
19010         export_dynamic_flag_spec_CXX='${wl}-E'
19011         hardcode_direct_CXX=yes
19012         hardcode_minus_L_CXX=yes # Not in the search PATH,
19013                                              # but as the default
19014                                              # location of the library.
19015
19016         case $cc_basename in
19017           CC*)
19018             # FIXME: insert proper C++ library support
19019             ld_shlibs_CXX=no
19020             ;;
19021           aCC*)
19022             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'
19023             # Commands to make compiler produce verbose output that lists
19024             # what "hidden" libraries, object files and flags are used when
19025             # linking a shared library.
19026             #
19027             # There doesn't appear to be a way to prevent this compiler from
19028             # explicitly linking system object files so we need to strip them
19029             # from the output so that they don't get included in the library
19030             # dependencies.
19031             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"'
19032             ;;
19033           *)
19034             if test "$GXX" = yes; then
19035               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'
19036             else
19037               # FIXME: insert proper C++ library support
19038               ld_shlibs_CXX=no
19039             fi
19040             ;;
19041         esac
19042         ;;
19043
19044       hpux10*|hpux11*)
19045         if test $with_gnu_ld = no; then
19046           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19047           hardcode_libdir_separator_CXX=:
19048
19049           case $host_cpu in
19050             hppa*64*|ia64*)
19051               ;;
19052             *)
19053               export_dynamic_flag_spec_CXX='${wl}-E'
19054               ;;
19055           esac
19056         fi
19057         case $host_cpu in
19058           hppa*64*|ia64*)
19059             hardcode_direct_CXX=no
19060             hardcode_shlibpath_var_CXX=no
19061             ;;
19062           *)
19063             hardcode_direct_CXX=yes
19064             hardcode_direct_absolute_CXX=yes
19065             hardcode_minus_L_CXX=yes # Not in the search PATH,
19066                                                  # but as the default
19067                                                  # location of the library.
19068             ;;
19069         esac
19070
19071         case $cc_basename in
19072           CC*)
19073             # FIXME: insert proper C++ library support
19074             ld_shlibs_CXX=no
19075             ;;
19076           aCC*)
19077             case $host_cpu in
19078               hppa*64*)
19079                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19080                 ;;
19081               ia64*)
19082                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19083                 ;;
19084               *)
19085                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19086                 ;;
19087             esac
19088             # Commands to make compiler produce verbose output that lists
19089             # what "hidden" libraries, object files and flags are used when
19090             # linking a shared library.
19091             #
19092             # There doesn't appear to be a way to prevent this compiler from
19093             # explicitly linking system object files so we need to strip them
19094             # from the output so that they don't get included in the library
19095             # dependencies.
19096             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"'
19097             ;;
19098           *)
19099             if test "$GXX" = yes; then
19100               if test $with_gnu_ld = no; then
19101                 case $host_cpu in
19102                   hppa*64*)
19103                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19104                     ;;
19105                   ia64*)
19106                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19107                     ;;
19108                   *)
19109                     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'
19110                     ;;
19111                 esac
19112               fi
19113             else
19114               # FIXME: insert proper C++ library support
19115               ld_shlibs_CXX=no
19116             fi
19117             ;;
19118         esac
19119         ;;
19120
19121       interix[3-9]*)
19122         hardcode_direct_CXX=no
19123         hardcode_shlibpath_var_CXX=no
19124         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19125         export_dynamic_flag_spec_CXX='${wl}-E'
19126         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19127         # Instead, shared libraries are loaded at an image base (0x10000000 by
19128         # default) and relocated if they conflict, which is a slow very memory
19129         # consuming and fragmenting process.  To avoid this, we pick a random,
19130         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19131         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19132         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'
19133         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'
19134         ;;
19135       irix5* | irix6*)
19136         case $cc_basename in
19137           CC*)
19138             # SGI C++
19139             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'
19140
19141             # Archives containing C++ object files must be created using
19142             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19143             # necessary to make sure instantiated templates are included
19144             # in the archive.
19145             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19146             ;;
19147           *)
19148             if test "$GXX" = yes; then
19149               if test "$with_gnu_ld" = no; then
19150                 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'
19151               else
19152                 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'
19153               fi
19154             fi
19155             link_all_deplibs_CXX=yes
19156             ;;
19157         esac
19158         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19159         hardcode_libdir_separator_CXX=:
19160         inherit_rpath_CXX=yes
19161         ;;
19162
19163       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19164         case $cc_basename in
19165           KCC*)
19166             # Kuck and Associates, Inc. (KAI) C++ Compiler
19167
19168             # KCC will only create a shared library if the output file
19169             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19170             # to its proper name (with version) after linking.
19171             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'
19172             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'
19173             # Commands to make compiler produce verbose output that lists
19174             # what "hidden" libraries, object files and flags are used when
19175             # linking a shared library.
19176             #
19177             # There doesn't appear to be a way to prevent this compiler from
19178             # explicitly linking system object files so we need to strip them
19179             # from the output so that they don't get included in the library
19180             # dependencies.
19181             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"'
19182
19183             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19184             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19185
19186             # Archives containing C++ object files must be created using
19187             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19188             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19189             ;;
19190           icpc* | ecpc* )
19191             # Intel C++
19192             with_gnu_ld=yes
19193             # version 8.0 and above of icpc choke on multiply defined symbols
19194             # if we add $predep_objects and $postdep_objects, however 7.1 and
19195             # earlier do not add the objects themselves.
19196             case `$CC -V 2>&1` in
19197               *"Version 7."*)
19198                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19199                 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'
19200                 ;;
19201               *)  # Version 8.0 or newer
19202                 tmp_idyn=
19203                 case $host_cpu in
19204                   ia64*) tmp_idyn=' -i_dynamic';;
19205                 esac
19206                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19207                 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'
19208                 ;;
19209             esac
19210             archive_cmds_need_lc_CXX=no
19211             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19212             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19213             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19214             ;;
19215           pgCC* | pgcpp*)
19216             # Portland Group C++ compiler
19217             case `$CC -V` in
19218             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
19219               prelink_cmds_CXX='tpldir=Template.dir~
19220                 rm -rf $tpldir~
19221                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19222                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19223               old_archive_cmds_CXX='tpldir=Template.dir~
19224                 rm -rf $tpldir~
19225                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19226                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19227                 $RANLIB $oldlib'
19228               archive_cmds_CXX='tpldir=Template.dir~
19229                 rm -rf $tpldir~
19230                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19231                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19232               archive_expsym_cmds_CXX='tpldir=Template.dir~
19233                 rm -rf $tpldir~
19234                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19235                 $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'
19236               ;;
19237             *) # Version 6 and above use weak symbols
19238               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19239               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'
19240               ;;
19241             esac
19242
19243             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19244             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19245             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'
19246             ;;
19247           cxx*)
19248             # Compaq C++
19249             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19250             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'
19251
19252             runpath_var=LD_RUN_PATH
19253             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19254             hardcode_libdir_separator_CXX=:
19255
19256             # Commands to make compiler produce verbose output that lists
19257             # what "hidden" libraries, object files and flags are used when
19258             # linking a shared library.
19259             #
19260             # There doesn't appear to be a way to prevent this compiler from
19261             # explicitly linking system object files so we need to strip them
19262             # from the output so that they don't get included in the library
19263             # dependencies.
19264             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'
19265             ;;
19266           xl* | mpixl* | bgxl*)
19267             # IBM XL 8.0 on PPC, with GNU ld
19268             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19269             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19270             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19271             if test "x$supports_anon_versioning" = xyes; then
19272               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19273                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19274                 echo "local: *; };" >> $output_objdir/$libname.ver~
19275                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19276             fi
19277             ;;
19278           *)
19279             case `$CC -V 2>&1 | sed 5q` in
19280             *Sun\ C*)
19281               # Sun C++ 5.9
19282               no_undefined_flag_CXX=' -zdefs'
19283               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19284               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'
19285               hardcode_libdir_flag_spec_CXX='-R$libdir'
19286               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'
19287               compiler_needs_object_CXX=yes
19288
19289               # Not sure whether something based on
19290               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19291               # would be better.
19292               output_verbose_link_cmd='func_echo_all'
19293
19294               # Archives containing C++ object files must be created using
19295               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19296               # necessary to make sure instantiated templates are included
19297               # in the archive.
19298               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19299               ;;
19300             esac
19301             ;;
19302         esac
19303         ;;
19304
19305       lynxos*)
19306         # FIXME: insert proper C++ library support
19307         ld_shlibs_CXX=no
19308         ;;
19309
19310       m88k*)
19311         # FIXME: insert proper C++ library support
19312         ld_shlibs_CXX=no
19313         ;;
19314
19315       mvs*)
19316         case $cc_basename in
19317           cxx*)
19318             # FIXME: insert proper C++ library support
19319             ld_shlibs_CXX=no
19320             ;;
19321           *)
19322             # FIXME: insert proper C++ library support
19323             ld_shlibs_CXX=no
19324             ;;
19325         esac
19326         ;;
19327
19328       netbsd*)
19329         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19330           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19331           wlarc=
19332           hardcode_libdir_flag_spec_CXX='-R$libdir'
19333           hardcode_direct_CXX=yes
19334           hardcode_shlibpath_var_CXX=no
19335         fi
19336         # Workaround some broken pre-1.5 toolchains
19337         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19338         ;;
19339
19340       *nto* | *qnx*)
19341         ld_shlibs_CXX=yes
19342         ;;
19343
19344       openbsd2*)
19345         # C++ shared libraries are fairly broken
19346         ld_shlibs_CXX=no
19347         ;;
19348
19349       openbsd*)
19350         if test -f /usr/libexec/ld.so; then
19351           hardcode_direct_CXX=yes
19352           hardcode_shlibpath_var_CXX=no
19353           hardcode_direct_absolute_CXX=yes
19354           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19355           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19356           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19357             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19358             export_dynamic_flag_spec_CXX='${wl}-E'
19359             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19360           fi
19361           output_verbose_link_cmd=func_echo_all
19362         else
19363           ld_shlibs_CXX=no
19364         fi
19365         ;;
19366
19367       osf3* | osf4* | osf5*)
19368         case $cc_basename in
19369           KCC*)
19370             # Kuck and Associates, Inc. (KAI) C++ Compiler
19371
19372             # KCC will only create a shared library if the output file
19373             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19374             # to its proper name (with version) after linking.
19375             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'
19376
19377             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19378             hardcode_libdir_separator_CXX=:
19379
19380             # Archives containing C++ object files must be created using
19381             # the KAI C++ compiler.
19382             case $host in
19383               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19384               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19385             esac
19386             ;;
19387           RCC*)
19388             # Rational C++ 2.4.1
19389             # FIXME: insert proper C++ library support
19390             ld_shlibs_CXX=no
19391             ;;
19392           cxx*)
19393             case $host in
19394               osf3*)
19395                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19396                 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'
19397                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19398                 ;;
19399               *)
19400                 allow_undefined_flag_CXX=' -expect_unresolved \*'
19401                 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'
19402                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19403                   echo "-hidden">> $lib.exp~
19404                   $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~
19405                   $RM $lib.exp'
19406                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19407                 ;;
19408             esac
19409
19410             hardcode_libdir_separator_CXX=:
19411
19412             # Commands to make compiler produce verbose output that lists
19413             # what "hidden" libraries, object files and flags are used when
19414             # linking a shared library.
19415             #
19416             # There doesn't appear to be a way to prevent this compiler from
19417             # explicitly linking system object files so we need to strip them
19418             # from the output so that they don't get included in the library
19419             # dependencies.
19420             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"'
19421             ;;
19422           *)
19423             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19424               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19425               case $host in
19426                 osf3*)
19427                   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'
19428                   ;;
19429                 *)
19430                   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'
19431                   ;;
19432               esac
19433
19434               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19435               hardcode_libdir_separator_CXX=:
19436
19437               # Commands to make compiler produce verbose output that lists
19438               # what "hidden" libraries, object files and flags are used when
19439               # linking a shared library.
19440               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19441
19442             else
19443               # FIXME: insert proper C++ library support
19444               ld_shlibs_CXX=no
19445             fi
19446             ;;
19447         esac
19448         ;;
19449
19450       psos*)
19451         # FIXME: insert proper C++ library support
19452         ld_shlibs_CXX=no
19453         ;;
19454
19455       sunos4*)
19456         case $cc_basename in
19457           CC*)
19458             # Sun C++ 4.x
19459             # FIXME: insert proper C++ library support
19460             ld_shlibs_CXX=no
19461             ;;
19462           lcc*)
19463             # Lucid
19464             # FIXME: insert proper C++ library support
19465             ld_shlibs_CXX=no
19466             ;;
19467           *)
19468             # FIXME: insert proper C++ library support
19469             ld_shlibs_CXX=no
19470             ;;
19471         esac
19472         ;;
19473
19474       solaris*)
19475         case $cc_basename in
19476           CC*)
19477             # Sun C++ 4.2, 5.x and Centerline C++
19478             archive_cmds_need_lc_CXX=yes
19479             no_undefined_flag_CXX=' -zdefs'
19480             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19481             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19482               $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'
19483
19484             hardcode_libdir_flag_spec_CXX='-R$libdir'
19485             hardcode_shlibpath_var_CXX=no
19486             case $host_os in
19487               solaris2.[0-5] | solaris2.[0-5].*) ;;
19488               *)
19489                 # The compiler driver will combine and reorder linker options,
19490                 # but understands `-z linker_flag'.
19491                 # Supported since Solaris 2.6 (maybe 2.5.1?)
19492                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19493                 ;;
19494             esac
19495             link_all_deplibs_CXX=yes
19496
19497             output_verbose_link_cmd='func_echo_all'
19498
19499             # Archives containing C++ object files must be created using
19500             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19501             # necessary to make sure instantiated templates are included
19502             # in the archive.
19503             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19504             ;;
19505           gcx*)
19506             # Green Hills C++ Compiler
19507             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19508
19509             # The C++ compiler must be used to create the archive.
19510             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19511             ;;
19512           *)
19513             # GNU C++ compiler with Solaris linker
19514             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19515               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19516               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19517                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19518                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19519                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19520
19521                 # Commands to make compiler produce verbose output that lists
19522                 # what "hidden" libraries, object files and flags are used when
19523                 # linking a shared library.
19524                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19525               else
19526                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19527                 # platform.
19528                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19529                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19530                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19531
19532                 # Commands to make compiler produce verbose output that lists
19533                 # what "hidden" libraries, object files and flags are used when
19534                 # linking a shared library.
19535                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19536               fi
19537
19538               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19539               case $host_os in
19540                 solaris2.[0-5] | solaris2.[0-5].*) ;;
19541                 *)
19542                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19543                   ;;
19544               esac
19545             fi
19546             ;;
19547         esac
19548         ;;
19549
19550     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19551       no_undefined_flag_CXX='${wl}-z,text'
19552       archive_cmds_need_lc_CXX=no
19553       hardcode_shlibpath_var_CXX=no
19554       runpath_var='LD_RUN_PATH'
19555
19556       case $cc_basename in
19557         CC*)
19558           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19559           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19560           ;;
19561         *)
19562           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19563           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19564           ;;
19565       esac
19566       ;;
19567
19568       sysv5* | sco3.2v5* | sco5v6*)
19569         # Note: We can NOT use -z defs as we might desire, because we do not
19570         # link with -lc, and that would cause any symbols used from libc to
19571         # always be unresolved, which means just about no library would
19572         # ever link correctly.  If we're not using GNU ld we use -z text
19573         # though, which does catch some bad symbols but isn't as heavy-handed
19574         # as -z defs.
19575         no_undefined_flag_CXX='${wl}-z,text'
19576         allow_undefined_flag_CXX='${wl}-z,nodefs'
19577         archive_cmds_need_lc_CXX=no
19578         hardcode_shlibpath_var_CXX=no
19579         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19580         hardcode_libdir_separator_CXX=':'
19581         link_all_deplibs_CXX=yes
19582         export_dynamic_flag_spec_CXX='${wl}-Bexport'
19583         runpath_var='LD_RUN_PATH'
19584
19585         case $cc_basename in
19586           CC*)
19587             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19588             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19589             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19590               '"$old_archive_cmds_CXX"
19591             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19592               '"$reload_cmds_CXX"
19593             ;;
19594           *)
19595             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19596             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19597             ;;
19598         esac
19599       ;;
19600
19601       tandem*)
19602         case $cc_basename in
19603           NCC*)
19604             # NonStop-UX NCC 3.20
19605             # FIXME: insert proper C++ library support
19606             ld_shlibs_CXX=no
19607             ;;
19608           *)
19609             # FIXME: insert proper C++ library support
19610             ld_shlibs_CXX=no
19611             ;;
19612         esac
19613         ;;
19614
19615       vxworks*)
19616         # FIXME: insert proper C++ library support
19617         ld_shlibs_CXX=no
19618         ;;
19619
19620       *)
19621         # FIXME: insert proper C++ library support
19622         ld_shlibs_CXX=no
19623         ;;
19624     esac
19625
19626     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19627 $as_echo "$ld_shlibs_CXX" >&6; }
19628     test "$ld_shlibs_CXX" = no && can_build_shared=no
19629
19630     GCC_CXX="$GXX"
19631     LD_CXX="$LD"
19632
19633     ## CAVEAT EMPTOR:
19634     ## There is no encapsulation within the following macros, do not change
19635     ## the running order or otherwise move them around unless you know exactly
19636     ## what you are doing...
19637     # Dependencies to place before and after the object being linked:
19638 predep_objects_CXX=
19639 postdep_objects_CXX=
19640 predeps_CXX=
19641 postdeps_CXX=
19642 compiler_lib_search_path_CXX=
19643
19644 cat > conftest.$ac_ext <<_LT_EOF
19645 class Foo
19646 {
19647 public:
19648   Foo (void) { a = 0; }
19649 private:
19650   int a;
19651 };
19652 _LT_EOF
19653
19654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19655   (eval $ac_compile) 2>&5
19656   ac_status=$?
19657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19658   test $ac_status = 0; }; then
19659   # Parse the compiler output and extract the necessary
19660   # objects, libraries and library flags.
19661
19662   # Sentinel used to keep track of whether or not we are before
19663   # the conftest object file.
19664   pre_test_object_deps_done=no
19665
19666   for p in `eval "$output_verbose_link_cmd"`; do
19667     case $p in
19668
19669     -L* | -R* | -l*)
19670        # Some compilers place space between "-{L,R}" and the path.
19671        # Remove the space.
19672        if test $p = "-L" ||
19673           test $p = "-R"; then
19674          prev=$p
19675          continue
19676        else
19677          prev=
19678        fi
19679
19680        if test "$pre_test_object_deps_done" = no; then
19681          case $p in
19682          -L* | -R*)
19683            # Internal compiler library paths should come after those
19684            # provided the user.  The postdeps already come after the
19685            # user supplied libs so there is no need to process them.
19686            if test -z "$compiler_lib_search_path_CXX"; then
19687              compiler_lib_search_path_CXX="${prev}${p}"
19688            else
19689              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19690            fi
19691            ;;
19692          # The "-l" case would never come before the object being
19693          # linked, so don't bother handling this case.
19694          esac
19695        else
19696          if test -z "$postdeps_CXX"; then
19697            postdeps_CXX="${prev}${p}"
19698          else
19699            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19700          fi
19701        fi
19702        ;;
19703
19704     *.$objext)
19705        # This assumes that the test object file only shows up
19706        # once in the compiler output.
19707        if test "$p" = "conftest.$objext"; then
19708          pre_test_object_deps_done=yes
19709          continue
19710        fi
19711
19712        if test "$pre_test_object_deps_done" = no; then
19713          if test -z "$predep_objects_CXX"; then
19714            predep_objects_CXX="$p"
19715          else
19716            predep_objects_CXX="$predep_objects_CXX $p"
19717          fi
19718        else
19719          if test -z "$postdep_objects_CXX"; then
19720            postdep_objects_CXX="$p"
19721          else
19722            postdep_objects_CXX="$postdep_objects_CXX $p"
19723          fi
19724        fi
19725        ;;
19726
19727     *) ;; # Ignore the rest.
19728
19729     esac
19730   done
19731
19732   # Clean up.
19733   rm -f a.out a.exe
19734 else
19735   echo "libtool.m4: error: problem compiling CXX test program"
19736 fi
19737
19738 $RM -f confest.$objext
19739
19740 # PORTME: override above test on systems where it is broken
19741 case $host_os in
19742 interix[3-9]*)
19743   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19744   # hack all around it, let's just trust "g++" to DTRT.
19745   predep_objects_CXX=
19746   postdep_objects_CXX=
19747   postdeps_CXX=
19748   ;;
19749
19750 linux*)
19751   case `$CC -V 2>&1 | sed 5q` in
19752   *Sun\ C*)
19753     # Sun C++ 5.9
19754
19755     # The more standards-conforming stlport4 library is
19756     # incompatible with the Cstd library. Avoid specifying
19757     # it if it's in CXXFLAGS. Ignore libCrun as
19758     # -library=stlport4 depends on it.
19759     case " $CXX $CXXFLAGS " in
19760     *" -library=stlport4 "*)
19761       solaris_use_stlport4=yes
19762       ;;
19763     esac
19764
19765     if test "$solaris_use_stlport4" != yes; then
19766       postdeps_CXX='-library=Cstd -library=Crun'
19767     fi
19768     ;;
19769   esac
19770   ;;
19771
19772 solaris*)
19773   case $cc_basename in
19774   CC*)
19775     # The more standards-conforming stlport4 library is
19776     # incompatible with the Cstd library. Avoid specifying
19777     # it if it's in CXXFLAGS. Ignore libCrun as
19778     # -library=stlport4 depends on it.
19779     case " $CXX $CXXFLAGS " in
19780     *" -library=stlport4 "*)
19781       solaris_use_stlport4=yes
19782       ;;
19783     esac
19784
19785     # Adding this requires a known-good setup of shared libraries for
19786     # Sun compiler versions before 5.6, else PIC objects from an old
19787     # archive will be linked into the output, leading to subtle bugs.
19788     if test "$solaris_use_stlport4" != yes; then
19789       postdeps_CXX='-library=Cstd -library=Crun'
19790     fi
19791     ;;
19792   esac
19793   ;;
19794 esac
19795
19796
19797 case " $postdeps_CXX " in
19798 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19799 esac
19800  compiler_lib_search_dirs_CXX=
19801 if test -n "${compiler_lib_search_path_CXX}"; then
19802  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19803 fi
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835     lt_prog_compiler_wl_CXX=
19836 lt_prog_compiler_pic_CXX=
19837 lt_prog_compiler_static_CXX=
19838
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19840 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19841
19842   # C++ specific cases for pic, static, wl, etc.
19843   if test "$GXX" = yes; then
19844     lt_prog_compiler_wl_CXX='-Wl,'
19845     lt_prog_compiler_static_CXX='-static'
19846
19847     case $host_os in
19848     aix*)
19849       # All AIX code is PIC.
19850       if test "$host_cpu" = ia64; then
19851         # AIX 5 now supports IA64 processor
19852         lt_prog_compiler_static_CXX='-Bstatic'
19853       fi
19854       ;;
19855
19856     amigaos*)
19857       case $host_cpu in
19858       powerpc)
19859             # see comment about AmigaOS4 .so support
19860             lt_prog_compiler_pic_CXX='-fPIC'
19861         ;;
19862       m68k)
19863             # FIXME: we need at least 68020 code to build shared libraries, but
19864             # adding the `-m68020' flag to GCC prevents building anything better,
19865             # like `-m68040'.
19866             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19867         ;;
19868       esac
19869       ;;
19870
19871     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19872       # PIC is the default for these OSes.
19873       ;;
19874     mingw* | cygwin* | os2* | pw32* | cegcc*)
19875       # This hack is so that the source file can tell whether it is being
19876       # built for inclusion in a dll (and should export symbols for example).
19877       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19878       # (--disable-auto-import) libraries
19879       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19880       ;;
19881     darwin* | rhapsody*)
19882       # PIC is the default on this platform
19883       # Common symbols not allowed in MH_DYLIB files
19884       lt_prog_compiler_pic_CXX='-fno-common'
19885       ;;
19886     *djgpp*)
19887       # DJGPP does not support shared libraries at all
19888       lt_prog_compiler_pic_CXX=
19889       ;;
19890     haiku*)
19891       # PIC is the default for Haiku.
19892       # The "-static" flag exists, but is broken.
19893       lt_prog_compiler_static_CXX=
19894       ;;
19895     interix[3-9]*)
19896       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19897       # Instead, we relocate shared libraries at runtime.
19898       ;;
19899     sysv4*MP*)
19900       if test -d /usr/nec; then
19901         lt_prog_compiler_pic_CXX=-Kconform_pic
19902       fi
19903       ;;
19904     hpux*)
19905       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19906       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19907       # sets the default TLS model and affects inlining.
19908       case $host_cpu in
19909       hppa*64*)
19910         ;;
19911       *)
19912         lt_prog_compiler_pic_CXX='-fPIC'
19913         ;;
19914       esac
19915       ;;
19916     *qnx* | *nto*)
19917       # QNX uses GNU C++, but need to define -shared option too, otherwise
19918       # it will coredump.
19919       lt_prog_compiler_pic_CXX='-fPIC -shared'
19920       ;;
19921     *)
19922       lt_prog_compiler_pic_CXX='-fPIC'
19923       ;;
19924     esac
19925   else
19926     case $host_os in
19927       aix[4-9]*)
19928         # All AIX code is PIC.
19929         if test "$host_cpu" = ia64; then
19930           # AIX 5 now supports IA64 processor
19931           lt_prog_compiler_static_CXX='-Bstatic'
19932         else
19933           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19934         fi
19935         ;;
19936       chorus*)
19937         case $cc_basename in
19938         cxch68*)
19939           # Green Hills C++ Compiler
19940           # _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"
19941           ;;
19942         esac
19943         ;;
19944       dgux*)
19945         case $cc_basename in
19946           ec++*)
19947             lt_prog_compiler_pic_CXX='-KPIC'
19948             ;;
19949           ghcx*)
19950             # Green Hills C++ Compiler
19951             lt_prog_compiler_pic_CXX='-pic'
19952             ;;
19953           *)
19954             ;;
19955         esac
19956         ;;
19957       freebsd* | dragonfly*)
19958         # FreeBSD uses GNU C++
19959         ;;
19960       hpux9* | hpux10* | hpux11*)
19961         case $cc_basename in
19962           CC*)
19963             lt_prog_compiler_wl_CXX='-Wl,'
19964             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19965             if test "$host_cpu" != ia64; then
19966               lt_prog_compiler_pic_CXX='+Z'
19967             fi
19968             ;;
19969           aCC*)
19970             lt_prog_compiler_wl_CXX='-Wl,'
19971             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19972             case $host_cpu in
19973             hppa*64*|ia64*)
19974               # +Z the default
19975               ;;
19976             *)
19977               lt_prog_compiler_pic_CXX='+Z'
19978               ;;
19979             esac
19980             ;;
19981           *)
19982             ;;
19983         esac
19984         ;;
19985       interix*)
19986         # This is c89, which is MS Visual C++ (no shared libs)
19987         # Anyone wants to do a port?
19988         ;;
19989       irix5* | irix6* | nonstopux*)
19990         case $cc_basename in
19991           CC*)
19992             lt_prog_compiler_wl_CXX='-Wl,'
19993             lt_prog_compiler_static_CXX='-non_shared'
19994             # CC pic flag -KPIC is the default.
19995             ;;
19996           *)
19997             ;;
19998         esac
19999         ;;
20000       linux* | k*bsd*-gnu | kopensolaris*-gnu)
20001         case $cc_basename in
20002           KCC*)
20003             # KAI C++ Compiler
20004             lt_prog_compiler_wl_CXX='--backend -Wl,'
20005             lt_prog_compiler_pic_CXX='-fPIC'
20006             ;;
20007           ecpc* )
20008             # old Intel C++ for x86_64 which still supported -KPIC.
20009             lt_prog_compiler_wl_CXX='-Wl,'
20010             lt_prog_compiler_pic_CXX='-KPIC'
20011             lt_prog_compiler_static_CXX='-static'
20012             ;;
20013           icpc* )
20014             # Intel C++, used to be incompatible with GCC.
20015             # ICC 10 doesn't accept -KPIC any more.
20016             lt_prog_compiler_wl_CXX='-Wl,'
20017             lt_prog_compiler_pic_CXX='-fPIC'
20018             lt_prog_compiler_static_CXX='-static'
20019             ;;
20020           pgCC* | pgcpp*)
20021             # Portland Group C++ compiler
20022             lt_prog_compiler_wl_CXX='-Wl,'
20023             lt_prog_compiler_pic_CXX='-fpic'
20024             lt_prog_compiler_static_CXX='-Bstatic'
20025             ;;
20026           cxx*)
20027             # Compaq C++
20028             # Make sure the PIC flag is empty.  It appears that all Alpha
20029             # Linux and Compaq Tru64 Unix objects are PIC.
20030             lt_prog_compiler_pic_CXX=
20031             lt_prog_compiler_static_CXX='-non_shared'
20032             ;;
20033           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20034             # IBM XL 8.0, 9.0 on PPC and BlueGene
20035             lt_prog_compiler_wl_CXX='-Wl,'
20036             lt_prog_compiler_pic_CXX='-qpic'
20037             lt_prog_compiler_static_CXX='-qstaticlink'
20038             ;;
20039           *)
20040             case `$CC -V 2>&1 | sed 5q` in
20041             *Sun\ C*)
20042               # Sun C++ 5.9
20043               lt_prog_compiler_pic_CXX='-KPIC'
20044               lt_prog_compiler_static_CXX='-Bstatic'
20045               lt_prog_compiler_wl_CXX='-Qoption ld '
20046               ;;
20047             esac
20048             ;;
20049         esac
20050         ;;
20051       lynxos*)
20052         ;;
20053       m88k*)
20054         ;;
20055       mvs*)
20056         case $cc_basename in
20057           cxx*)
20058             lt_prog_compiler_pic_CXX='-W c,exportall'
20059             ;;
20060           *)
20061             ;;
20062         esac
20063         ;;
20064       netbsd*)
20065         ;;
20066       *qnx* | *nto*)
20067         # QNX uses GNU C++, but need to define -shared option too, otherwise
20068         # it will coredump.
20069         lt_prog_compiler_pic_CXX='-fPIC -shared'
20070         ;;
20071       osf3* | osf4* | osf5*)
20072         case $cc_basename in
20073           KCC*)
20074             lt_prog_compiler_wl_CXX='--backend -Wl,'
20075             ;;
20076           RCC*)
20077             # Rational C++ 2.4.1
20078             lt_prog_compiler_pic_CXX='-pic'
20079             ;;
20080           cxx*)
20081             # Digital/Compaq C++
20082             lt_prog_compiler_wl_CXX='-Wl,'
20083             # Make sure the PIC flag is empty.  It appears that all Alpha
20084             # Linux and Compaq Tru64 Unix objects are PIC.
20085             lt_prog_compiler_pic_CXX=
20086             lt_prog_compiler_static_CXX='-non_shared'
20087             ;;
20088           *)
20089             ;;
20090         esac
20091         ;;
20092       psos*)
20093         ;;
20094       solaris*)
20095         case $cc_basename in
20096           CC*)
20097             # Sun C++ 4.2, 5.x and Centerline C++
20098             lt_prog_compiler_pic_CXX='-KPIC'
20099             lt_prog_compiler_static_CXX='-Bstatic'
20100             lt_prog_compiler_wl_CXX='-Qoption ld '
20101             ;;
20102           gcx*)
20103             # Green Hills C++ Compiler
20104             lt_prog_compiler_pic_CXX='-PIC'
20105             ;;
20106           *)
20107             ;;
20108         esac
20109         ;;
20110       sunos4*)
20111         case $cc_basename in
20112           CC*)
20113             # Sun C++ 4.x
20114             lt_prog_compiler_pic_CXX='-pic'
20115             lt_prog_compiler_static_CXX='-Bstatic'
20116             ;;
20117           lcc*)
20118             # Lucid
20119             lt_prog_compiler_pic_CXX='-pic'
20120             ;;
20121           *)
20122             ;;
20123         esac
20124         ;;
20125       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20126         case $cc_basename in
20127           CC*)
20128             lt_prog_compiler_wl_CXX='-Wl,'
20129             lt_prog_compiler_pic_CXX='-KPIC'
20130             lt_prog_compiler_static_CXX='-Bstatic'
20131             ;;
20132         esac
20133         ;;
20134       tandem*)
20135         case $cc_basename in
20136           NCC*)
20137             # NonStop-UX NCC 3.20
20138             lt_prog_compiler_pic_CXX='-KPIC'
20139             ;;
20140           *)
20141             ;;
20142         esac
20143         ;;
20144       vxworks*)
20145         ;;
20146       *)
20147         lt_prog_compiler_can_build_shared_CXX=no
20148         ;;
20149     esac
20150   fi
20151
20152 case $host_os in
20153   # For platforms which do not support PIC, -DPIC is meaningless:
20154   *djgpp*)
20155     lt_prog_compiler_pic_CXX=
20156     ;;
20157   *)
20158     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20159     ;;
20160 esac
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20162 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20163
20164
20165
20166 #
20167 # Check to make sure the PIC flag actually works.
20168 #
20169 if test -n "$lt_prog_compiler_pic_CXX"; then
20170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20171 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20172 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20173   $as_echo_n "(cached) " >&6
20174 else
20175   lt_cv_prog_compiler_pic_works_CXX=no
20176    ac_outfile=conftest.$ac_objext
20177    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20178    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20179    # Insert the option either (1) after the last *FLAGS variable, or
20180    # (2) before a word containing "conftest.", or (3) at the end.
20181    # Note that $ac_compile itself does not contain backslashes and begins
20182    # with a dollar sign (not a hyphen), so the echo should work correctly.
20183    # The option is referenced via a variable to avoid confusing sed.
20184    lt_compile=`echo "$ac_compile" | $SED \
20185    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20186    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20187    -e 's:$: $lt_compiler_flag:'`
20188    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20189    (eval "$lt_compile" 2>conftest.err)
20190    ac_status=$?
20191    cat conftest.err >&5
20192    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193    if (exit $ac_status) && test -s "$ac_outfile"; then
20194      # The compiler can only warn and ignore the option if not recognized
20195      # So say no if there are warnings other than the usual output.
20196      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20197      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20198      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20199        lt_cv_prog_compiler_pic_works_CXX=yes
20200      fi
20201    fi
20202    $RM conftest*
20203
20204 fi
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20206 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20207
20208 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20209     case $lt_prog_compiler_pic_CXX in
20210      "" | " "*) ;;
20211      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20212      esac
20213 else
20214     lt_prog_compiler_pic_CXX=
20215      lt_prog_compiler_can_build_shared_CXX=no
20216 fi
20217
20218 fi
20219
20220
20221
20222 #
20223 # Check to make sure the static flag actually works.
20224 #
20225 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20227 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20228 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20229   $as_echo_n "(cached) " >&6
20230 else
20231   lt_cv_prog_compiler_static_works_CXX=no
20232    save_LDFLAGS="$LDFLAGS"
20233    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20234    echo "$lt_simple_link_test_code" > conftest.$ac_ext
20235    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20236      # The linker can only warn and ignore the option if not recognized
20237      # So say no if there are warnings
20238      if test -s conftest.err; then
20239        # Append any errors to the config.log.
20240        cat conftest.err 1>&5
20241        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20242        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20243        if diff conftest.exp conftest.er2 >/dev/null; then
20244          lt_cv_prog_compiler_static_works_CXX=yes
20245        fi
20246      else
20247        lt_cv_prog_compiler_static_works_CXX=yes
20248      fi
20249    fi
20250    $RM -r conftest*
20251    LDFLAGS="$save_LDFLAGS"
20252
20253 fi
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20255 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20256
20257 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20258     :
20259 else
20260     lt_prog_compiler_static_CXX=
20261 fi
20262
20263
20264
20265
20266     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20267 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20268 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20269   $as_echo_n "(cached) " >&6
20270 else
20271   lt_cv_prog_compiler_c_o_CXX=no
20272    $RM -r conftest 2>/dev/null
20273    mkdir conftest
20274    cd conftest
20275    mkdir out
20276    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20277
20278    lt_compiler_flag="-o out/conftest2.$ac_objext"
20279    # Insert the option either (1) after the last *FLAGS variable, or
20280    # (2) before a word containing "conftest.", or (3) at the end.
20281    # Note that $ac_compile itself does not contain backslashes and begins
20282    # with a dollar sign (not a hyphen), so the echo should work correctly.
20283    lt_compile=`echo "$ac_compile" | $SED \
20284    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20285    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20286    -e 's:$: $lt_compiler_flag:'`
20287    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20288    (eval "$lt_compile" 2>out/conftest.err)
20289    ac_status=$?
20290    cat out/conftest.err >&5
20291    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20293    then
20294      # The compiler can only warn and ignore the option if not recognized
20295      # So say no if there are warnings
20296      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20297      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20298      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20299        lt_cv_prog_compiler_c_o_CXX=yes
20300      fi
20301    fi
20302    chmod u+w . 2>&5
20303    $RM conftest*
20304    # SGI C++ compiler will create directory out/ii_files/ for
20305    # template instantiation
20306    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20307    $RM out/* && rmdir out
20308    cd ..
20309    $RM -r conftest
20310    $RM conftest*
20311
20312 fi
20313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20314 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20315
20316
20317
20318     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20319 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20320 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20321   $as_echo_n "(cached) " >&6
20322 else
20323   lt_cv_prog_compiler_c_o_CXX=no
20324    $RM -r conftest 2>/dev/null
20325    mkdir conftest
20326    cd conftest
20327    mkdir out
20328    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20329
20330    lt_compiler_flag="-o out/conftest2.$ac_objext"
20331    # Insert the option either (1) after the last *FLAGS variable, or
20332    # (2) before a word containing "conftest.", or (3) at the end.
20333    # Note that $ac_compile itself does not contain backslashes and begins
20334    # with a dollar sign (not a hyphen), so the echo should work correctly.
20335    lt_compile=`echo "$ac_compile" | $SED \
20336    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20337    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20338    -e 's:$: $lt_compiler_flag:'`
20339    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20340    (eval "$lt_compile" 2>out/conftest.err)
20341    ac_status=$?
20342    cat out/conftest.err >&5
20343    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20345    then
20346      # The compiler can only warn and ignore the option if not recognized
20347      # So say no if there are warnings
20348      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20349      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20350      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20351        lt_cv_prog_compiler_c_o_CXX=yes
20352      fi
20353    fi
20354    chmod u+w . 2>&5
20355    $RM conftest*
20356    # SGI C++ compiler will create directory out/ii_files/ for
20357    # template instantiation
20358    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20359    $RM out/* && rmdir out
20360    cd ..
20361    $RM -r conftest
20362    $RM conftest*
20363
20364 fi
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20366 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20367
20368
20369
20370
20371 hard_links="nottested"
20372 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20373   # do not overwrite the value of need_locks provided by the user
20374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20375 $as_echo_n "checking if we can lock with hard links... " >&6; }
20376   hard_links=yes
20377   $RM conftest*
20378   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20379   touch conftest.a
20380   ln conftest.a conftest.b 2>&5 || hard_links=no
20381   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20383 $as_echo "$hard_links" >&6; }
20384   if test "$hard_links" = no; then
20385     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20386 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20387     need_locks=warn
20388   fi
20389 else
20390   need_locks=no
20391 fi
20392
20393
20394
20395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20396 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20397
20398   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20399   case $host_os in
20400   aix[4-9]*)
20401     # If we're using GNU nm, then we don't want the "-C" option.
20402     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20403     # Also, AIX nm treats weak defined symbols like other global defined
20404     # symbols, whereas GNU nm marks them as "W".
20405     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20406       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'
20407     else
20408       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'
20409     fi
20410     ;;
20411   pw32*)
20412     export_symbols_cmds_CXX="$ltdll_cmds"
20413   ;;
20414   cygwin* | mingw* | cegcc*)
20415     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'
20416   ;;
20417   *)
20418     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20419   ;;
20420   esac
20421   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20422
20423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20424 $as_echo "$ld_shlibs_CXX" >&6; }
20425 test "$ld_shlibs_CXX" = no && can_build_shared=no
20426
20427 with_gnu_ld_CXX=$with_gnu_ld
20428
20429
20430
20431
20432
20433
20434 #
20435 # Do we need to explicitly link libc?
20436 #
20437 case "x$archive_cmds_need_lc_CXX" in
20438 x|xyes)
20439   # Assume -lc should be added
20440   archive_cmds_need_lc_CXX=yes
20441
20442   if test "$enable_shared" = yes && test "$GCC" = yes; then
20443     case $archive_cmds_CXX in
20444     *'~'*)
20445       # FIXME: we may have to deal with multi-command sequences.
20446       ;;
20447     '$CC '*)
20448       # Test whether the compiler implicitly links with -lc since on some
20449       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20450       # to ld, don't add -lc before -lgcc.
20451       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20452 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20453 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20454   $as_echo_n "(cached) " >&6
20455 else
20456   $RM conftest*
20457         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20458
20459         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20460   (eval $ac_compile) 2>&5
20461   ac_status=$?
20462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20463   test $ac_status = 0; } 2>conftest.err; then
20464           soname=conftest
20465           lib=conftest
20466           libobjs=conftest.$ac_objext
20467           deplibs=
20468           wl=$lt_prog_compiler_wl_CXX
20469           pic_flag=$lt_prog_compiler_pic_CXX
20470           compiler_flags=-v
20471           linker_flags=-v
20472           verstring=
20473           output_objdir=.
20474           libname=conftest
20475           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20476           allow_undefined_flag_CXX=
20477           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20478   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20479   ac_status=$?
20480   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20481   test $ac_status = 0; }
20482           then
20483             lt_cv_archive_cmds_need_lc_CXX=no
20484           else
20485             lt_cv_archive_cmds_need_lc_CXX=yes
20486           fi
20487           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20488         else
20489           cat conftest.err 1>&5
20490         fi
20491         $RM conftest*
20492
20493 fi
20494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20495 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20496       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20497       ;;
20498     esac
20499   fi
20500   ;;
20501 esac
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20567 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20568
20569 library_names_spec=
20570 libname_spec='lib$name'
20571 soname_spec=
20572 shrext_cmds=".so"
20573 postinstall_cmds=
20574 postuninstall_cmds=
20575 finish_cmds=
20576 finish_eval=
20577 shlibpath_var=
20578 shlibpath_overrides_runpath=unknown
20579 version_type=none
20580 dynamic_linker="$host_os ld.so"
20581 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20582 need_lib_prefix=unknown
20583 hardcode_into_libs=no
20584
20585 # when you set need_version to no, make sure it does not cause -set_version
20586 # flags to be left without arguments
20587 need_version=unknown
20588
20589 case $host_os in
20590 aix3*)
20591   version_type=linux
20592   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20593   shlibpath_var=LIBPATH
20594
20595   # AIX 3 has no versioning support, so we append a major version to the name.
20596   soname_spec='${libname}${release}${shared_ext}$major'
20597   ;;
20598
20599 aix[4-9]*)
20600   version_type=linux
20601   need_lib_prefix=no
20602   need_version=no
20603   hardcode_into_libs=yes
20604   if test "$host_cpu" = ia64; then
20605     # AIX 5 supports IA64
20606     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20607     shlibpath_var=LD_LIBRARY_PATH
20608   else
20609     # With GCC up to 2.95.x, collect2 would create an import file
20610     # for dependence libraries.  The import file would start with
20611     # the line `#! .'.  This would cause the generated library to
20612     # depend on `.', always an invalid library.  This was fixed in
20613     # development snapshots of GCC prior to 3.0.
20614     case $host_os in
20615       aix4 | aix4.[01] | aix4.[01].*)
20616       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20617            echo ' yes '
20618            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20619         :
20620       else
20621         can_build_shared=no
20622       fi
20623       ;;
20624     esac
20625     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20626     # soname into executable. Probably we can add versioning support to
20627     # collect2, so additional links can be useful in future.
20628     if test "$aix_use_runtimelinking" = yes; then
20629       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20630       # instead of lib<name>.a to let people know that these are not
20631       # typical AIX shared libraries.
20632       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20633     else
20634       # We preserve .a as extension for shared libraries through AIX4.2
20635       # and later when we are not doing run time linking.
20636       library_names_spec='${libname}${release}.a $libname.a'
20637       soname_spec='${libname}${release}${shared_ext}$major'
20638     fi
20639     shlibpath_var=LIBPATH
20640   fi
20641   ;;
20642
20643 amigaos*)
20644   case $host_cpu in
20645   powerpc)
20646     # Since July 2007 AmigaOS4 officially supports .so libraries.
20647     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20648     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20649     ;;
20650   m68k)
20651     library_names_spec='$libname.ixlibrary $libname.a'
20652     # Create ${libname}_ixlibrary.a entries in /sys/libs.
20653     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'
20654     ;;
20655   esac
20656   ;;
20657
20658 beos*)
20659   library_names_spec='${libname}${shared_ext}'
20660   dynamic_linker="$host_os ld.so"
20661   shlibpath_var=LIBRARY_PATH
20662   ;;
20663
20664 bsdi[45]*)
20665   version_type=linux
20666   need_version=no
20667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20668   soname_spec='${libname}${release}${shared_ext}$major'
20669   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20670   shlibpath_var=LD_LIBRARY_PATH
20671   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20672   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20673   # the default ld.so.conf also contains /usr/contrib/lib and
20674   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20675   # libtool to hard-code these into programs
20676   ;;
20677
20678 cygwin* | mingw* | pw32* | cegcc*)
20679   version_type=windows
20680   shrext_cmds=".dll"
20681   need_version=no
20682   need_lib_prefix=no
20683
20684   case $GCC,$host_os in
20685   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20686     library_names_spec='$libname.dll.a'
20687     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20688     postinstall_cmds='base_file=`basename \${file}`~
20689       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20690       dldir=$destdir/`dirname \$dlpath`~
20691       test -d \$dldir || mkdir -p \$dldir~
20692       $install_prog $dir/$dlname \$dldir/$dlname~
20693       chmod a+x \$dldir/$dlname~
20694       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20695         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20696       fi'
20697     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20698       dlpath=$dir/\$dldll~
20699        $RM \$dlpath'
20700     shlibpath_overrides_runpath=yes
20701
20702     case $host_os in
20703     cygwin*)
20704       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20705       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20706
20707       ;;
20708     mingw* | cegcc*)
20709       # MinGW DLLs use traditional 'lib' prefix
20710       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20711       ;;
20712     pw32*)
20713       # pw32 DLLs use 'pw' prefix rather than 'lib'
20714       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20715       ;;
20716     esac
20717     ;;
20718
20719   *)
20720     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20721     ;;
20722   esac
20723   dynamic_linker='Win32 ld.exe'
20724   # FIXME: first we should search . and the directory the executable is in
20725   shlibpath_var=PATH
20726   ;;
20727
20728 darwin* | rhapsody*)
20729   dynamic_linker="$host_os dyld"
20730   version_type=darwin
20731   need_lib_prefix=no
20732   need_version=no
20733   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20734   soname_spec='${libname}${release}${major}$shared_ext'
20735   shlibpath_overrides_runpath=yes
20736   shlibpath_var=DYLD_LIBRARY_PATH
20737   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20738
20739   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20740   ;;
20741
20742 dgux*)
20743   version_type=linux
20744   need_lib_prefix=no
20745   need_version=no
20746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20747   soname_spec='${libname}${release}${shared_ext}$major'
20748   shlibpath_var=LD_LIBRARY_PATH
20749   ;;
20750
20751 freebsd* | dragonfly*)
20752   # DragonFly does not have aout.  When/if they implement a new
20753   # versioning mechanism, adjust this.
20754   if test -x /usr/bin/objformat; then
20755     objformat=`/usr/bin/objformat`
20756   else
20757     case $host_os in
20758     freebsd[123]*) objformat=aout ;;
20759     *) objformat=elf ;;
20760     esac
20761   fi
20762   version_type=freebsd-$objformat
20763   case $version_type in
20764     freebsd-elf*)
20765       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20766       need_version=no
20767       need_lib_prefix=no
20768       ;;
20769     freebsd-*)
20770       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20771       need_version=yes
20772       ;;
20773   esac
20774   shlibpath_var=LD_LIBRARY_PATH
20775   case $host_os in
20776   freebsd2*)
20777     shlibpath_overrides_runpath=yes
20778     ;;
20779   freebsd3.[01]* | freebsdelf3.[01]*)
20780     shlibpath_overrides_runpath=yes
20781     hardcode_into_libs=yes
20782     ;;
20783   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20784   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20785     shlibpath_overrides_runpath=no
20786     hardcode_into_libs=yes
20787     ;;
20788   *) # from 4.6 on, and DragonFly
20789     shlibpath_overrides_runpath=yes
20790     hardcode_into_libs=yes
20791     ;;
20792   esac
20793   ;;
20794
20795 gnu*)
20796   version_type=linux
20797   need_lib_prefix=no
20798   need_version=no
20799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20800   soname_spec='${libname}${release}${shared_ext}$major'
20801   shlibpath_var=LD_LIBRARY_PATH
20802   hardcode_into_libs=yes
20803   ;;
20804
20805 haiku*)
20806   version_type=linux
20807   need_lib_prefix=no
20808   need_version=no
20809   dynamic_linker="$host_os runtime_loader"
20810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20811   soname_spec='${libname}${release}${shared_ext}$major'
20812   shlibpath_var=LIBRARY_PATH
20813   shlibpath_overrides_runpath=yes
20814   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20815   hardcode_into_libs=yes
20816   ;;
20817
20818 hpux9* | hpux10* | hpux11*)
20819   # Give a soname corresponding to the major version so that dld.sl refuses to
20820   # link against other versions.
20821   version_type=sunos
20822   need_lib_prefix=no
20823   need_version=no
20824   case $host_cpu in
20825   ia64*)
20826     shrext_cmds='.so'
20827     hardcode_into_libs=yes
20828     dynamic_linker="$host_os dld.so"
20829     shlibpath_var=LD_LIBRARY_PATH
20830     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20831     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20832     soname_spec='${libname}${release}${shared_ext}$major'
20833     if test "X$HPUX_IA64_MODE" = X32; then
20834       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20835     else
20836       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20837     fi
20838     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20839     ;;
20840   hppa*64*)
20841     shrext_cmds='.sl'
20842     hardcode_into_libs=yes
20843     dynamic_linker="$host_os dld.sl"
20844     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20845     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20846     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20847     soname_spec='${libname}${release}${shared_ext}$major'
20848     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20849     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20850     ;;
20851   *)
20852     shrext_cmds='.sl'
20853     dynamic_linker="$host_os dld.sl"
20854     shlibpath_var=SHLIB_PATH
20855     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20856     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20857     soname_spec='${libname}${release}${shared_ext}$major'
20858     ;;
20859   esac
20860   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20861   postinstall_cmds='chmod 555 $lib'
20862   # or fails outright, so override atomically:
20863   install_override_mode=555
20864   ;;
20865
20866 interix[3-9]*)
20867   version_type=linux
20868   need_lib_prefix=no
20869   need_version=no
20870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20871   soname_spec='${libname}${release}${shared_ext}$major'
20872   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20873   shlibpath_var=LD_LIBRARY_PATH
20874   shlibpath_overrides_runpath=no
20875   hardcode_into_libs=yes
20876   ;;
20877
20878 irix5* | irix6* | nonstopux*)
20879   case $host_os in
20880     nonstopux*) version_type=nonstopux ;;
20881     *)
20882         if test "$lt_cv_prog_gnu_ld" = yes; then
20883                 version_type=linux
20884         else
20885                 version_type=irix
20886         fi ;;
20887   esac
20888   need_lib_prefix=no
20889   need_version=no
20890   soname_spec='${libname}${release}${shared_ext}$major'
20891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20892   case $host_os in
20893   irix5* | nonstopux*)
20894     libsuff= shlibsuff=
20895     ;;
20896   *)
20897     case $LD in # libtool.m4 will add one of these switches to LD
20898     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20899       libsuff= shlibsuff= libmagic=32-bit;;
20900     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20901       libsuff=32 shlibsuff=N32 libmagic=N32;;
20902     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20903       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20904     *) libsuff= shlibsuff= libmagic=never-match;;
20905     esac
20906     ;;
20907   esac
20908   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20909   shlibpath_overrides_runpath=no
20910   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20911   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20912   hardcode_into_libs=yes
20913   ;;
20914
20915 # No shared lib support for Linux oldld, aout, or coff.
20916 linux*oldld* | linux*aout* | linux*coff*)
20917   dynamic_linker=no
20918   ;;
20919
20920 # This must be Linux ELF.
20921 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20922   version_type=linux
20923   need_lib_prefix=no
20924   need_version=no
20925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20926   soname_spec='${libname}${release}${shared_ext}$major'
20927   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20928   shlibpath_var=LD_LIBRARY_PATH
20929   shlibpath_overrides_runpath=no
20930
20931   # Some binutils ld are patched to set DT_RUNPATH
20932   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20933   $as_echo_n "(cached) " >&6
20934 else
20935   lt_cv_shlibpath_overrides_runpath=no
20936     save_LDFLAGS=$LDFLAGS
20937     save_libdir=$libdir
20938     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20939          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20940     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20941 /* end confdefs.h.  */
20942
20943 int
20944 main ()
20945 {
20946
20947   ;
20948   return 0;
20949 }
20950 _ACEOF
20951 if ac_fn_cxx_try_link "$LINENO"; then :
20952   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20953   lt_cv_shlibpath_overrides_runpath=yes
20954 fi
20955 fi
20956 rm -f core conftest.err conftest.$ac_objext \
20957     conftest$ac_exeext conftest.$ac_ext
20958     LDFLAGS=$save_LDFLAGS
20959     libdir=$save_libdir
20960
20961 fi
20962
20963   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20964
20965   # This implies no fast_install, which is unacceptable.
20966   # Some rework will be needed to allow for fast_install
20967   # before this can be enabled.
20968   hardcode_into_libs=yes
20969
20970   # Append ld.so.conf contents to the search path
20971   if test -f /etc/ld.so.conf; then
20972     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' ' '`
20973     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20974   fi
20975
20976   # We used to test for /lib/ld.so.1 and disable shared libraries on
20977   # powerpc, because MkLinux only supported shared libraries with the
20978   # GNU dynamic linker.  Since this was broken with cross compilers,
20979   # most powerpc-linux boxes support dynamic linking these days and
20980   # people can always --disable-shared, the test was removed, and we
20981   # assume the GNU/Linux dynamic linker is in use.
20982   dynamic_linker='GNU/Linux ld.so'
20983   ;;
20984
20985 netbsd*)
20986   version_type=sunos
20987   need_lib_prefix=no
20988   need_version=no
20989   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20990     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20991     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20992     dynamic_linker='NetBSD (a.out) ld.so'
20993   else
20994     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20995     soname_spec='${libname}${release}${shared_ext}$major'
20996     dynamic_linker='NetBSD ld.elf_so'
20997   fi
20998   shlibpath_var=LD_LIBRARY_PATH
20999   shlibpath_overrides_runpath=yes
21000   hardcode_into_libs=yes
21001   ;;
21002
21003 newsos6)
21004   version_type=linux
21005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21006   shlibpath_var=LD_LIBRARY_PATH
21007   shlibpath_overrides_runpath=yes
21008   ;;
21009
21010 *nto* | *qnx*)
21011   version_type=qnx
21012   need_lib_prefix=no
21013   need_version=no
21014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21015   soname_spec='${libname}${release}${shared_ext}$major'
21016   shlibpath_var=LD_LIBRARY_PATH
21017   shlibpath_overrides_runpath=no
21018   hardcode_into_libs=yes
21019   dynamic_linker='ldqnx.so'
21020   ;;
21021
21022 openbsd*)
21023   version_type=sunos
21024   sys_lib_dlsearch_path_spec="/usr/lib"
21025   need_lib_prefix=no
21026   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21027   case $host_os in
21028     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
21029     *)                          need_version=no  ;;
21030   esac
21031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21032   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21033   shlibpath_var=LD_LIBRARY_PATH
21034   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21035     case $host_os in
21036       openbsd2.[89] | openbsd2.[89].*)
21037         shlibpath_overrides_runpath=no
21038         ;;
21039       *)
21040         shlibpath_overrides_runpath=yes
21041         ;;
21042       esac
21043   else
21044     shlibpath_overrides_runpath=yes
21045   fi
21046   ;;
21047
21048 os2*)
21049   libname_spec='$name'
21050   shrext_cmds=".dll"
21051   need_lib_prefix=no
21052   library_names_spec='$libname${shared_ext} $libname.a'
21053   dynamic_linker='OS/2 ld.exe'
21054   shlibpath_var=LIBPATH
21055   ;;
21056
21057 osf3* | osf4* | osf5*)
21058   version_type=osf
21059   need_lib_prefix=no
21060   need_version=no
21061   soname_spec='${libname}${release}${shared_ext}$major'
21062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21063   shlibpath_var=LD_LIBRARY_PATH
21064   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21065   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21066   ;;
21067
21068 rdos*)
21069   dynamic_linker=no
21070   ;;
21071
21072 solaris*)
21073   version_type=linux
21074   need_lib_prefix=no
21075   need_version=no
21076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21077   soname_spec='${libname}${release}${shared_ext}$major'
21078   shlibpath_var=LD_LIBRARY_PATH
21079   shlibpath_overrides_runpath=yes
21080   hardcode_into_libs=yes
21081   # ldd complains unless libraries are executable
21082   postinstall_cmds='chmod +x $lib'
21083   ;;
21084
21085 sunos4*)
21086   version_type=sunos
21087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21088   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21089   shlibpath_var=LD_LIBRARY_PATH
21090   shlibpath_overrides_runpath=yes
21091   if test "$with_gnu_ld" = yes; then
21092     need_lib_prefix=no
21093   fi
21094   need_version=yes
21095   ;;
21096
21097 sysv4 | sysv4.3*)
21098   version_type=linux
21099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21100   soname_spec='${libname}${release}${shared_ext}$major'
21101   shlibpath_var=LD_LIBRARY_PATH
21102   case $host_vendor in
21103     sni)
21104       shlibpath_overrides_runpath=no
21105       need_lib_prefix=no
21106       runpath_var=LD_RUN_PATH
21107       ;;
21108     siemens)
21109       need_lib_prefix=no
21110       ;;
21111     motorola)
21112       need_lib_prefix=no
21113       need_version=no
21114       shlibpath_overrides_runpath=no
21115       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21116       ;;
21117   esac
21118   ;;
21119
21120 sysv4*MP*)
21121   if test -d /usr/nec ;then
21122     version_type=linux
21123     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21124     soname_spec='$libname${shared_ext}.$major'
21125     shlibpath_var=LD_LIBRARY_PATH
21126   fi
21127   ;;
21128
21129 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21130   version_type=freebsd-elf
21131   need_lib_prefix=no
21132   need_version=no
21133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21134   soname_spec='${libname}${release}${shared_ext}$major'
21135   shlibpath_var=LD_LIBRARY_PATH
21136   shlibpath_overrides_runpath=yes
21137   hardcode_into_libs=yes
21138   if test "$with_gnu_ld" = yes; then
21139     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21140   else
21141     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21142     case $host_os in
21143       sco3.2v5*)
21144         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21145         ;;
21146     esac
21147   fi
21148   sys_lib_dlsearch_path_spec='/usr/lib'
21149   ;;
21150
21151 tpf*)
21152   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21153   version_type=linux
21154   need_lib_prefix=no
21155   need_version=no
21156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21157   shlibpath_var=LD_LIBRARY_PATH
21158   shlibpath_overrides_runpath=no
21159   hardcode_into_libs=yes
21160   ;;
21161
21162 uts4*)
21163   version_type=linux
21164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21165   soname_spec='${libname}${release}${shared_ext}$major'
21166   shlibpath_var=LD_LIBRARY_PATH
21167   ;;
21168
21169 *)
21170   dynamic_linker=no
21171   ;;
21172 esac
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21174 $as_echo "$dynamic_linker" >&6; }
21175 test "$dynamic_linker" = no && can_build_shared=no
21176
21177 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21178 if test "$GCC" = yes; then
21179   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21180 fi
21181
21182 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21183   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21184 fi
21185 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21186   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21187 fi
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21227 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21228 hardcode_action_CXX=
21229 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21230    test -n "$runpath_var_CXX" ||
21231    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21232
21233   # We can hardcode non-existent directories.
21234   if test "$hardcode_direct_CXX" != no &&
21235      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21236      # have to relink, otherwise we might link with an installed library
21237      # when we should be linking with a yet-to-be-installed one
21238      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21239      test "$hardcode_minus_L_CXX" != no; then
21240     # Linking always hardcodes the temporary library directory.
21241     hardcode_action_CXX=relink
21242   else
21243     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21244     hardcode_action_CXX=immediate
21245   fi
21246 else
21247   # We cannot hardcode anything, or else we can only hardcode existing
21248   # directories.
21249   hardcode_action_CXX=unsupported
21250 fi
21251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21252 $as_echo "$hardcode_action_CXX" >&6; }
21253
21254 if test "$hardcode_action_CXX" = relink ||
21255    test "$inherit_rpath_CXX" = yes; then
21256   # Fast installation is not supported
21257   enable_fast_install=no
21258 elif test "$shlibpath_overrides_runpath" = yes ||
21259      test "$enable_shared" = no; then
21260   # Fast installation is not necessary
21261   enable_fast_install=needless
21262 fi
21263
21264
21265
21266
21267
21268
21269
21270   fi # test -n "$compiler"
21271
21272   CC=$lt_save_CC
21273   LDCXX=$LD
21274   LD=$lt_save_LD
21275   GCC=$lt_save_GCC
21276   with_gnu_ld=$lt_save_with_gnu_ld
21277   lt_cv_path_LDCXX=$lt_cv_path_LD
21278   lt_cv_path_LD=$lt_save_path_LD
21279   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21280   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21281 fi # test "$_lt_caught_CXX_error" != yes
21282
21283 ac_ext=c
21284 ac_cpp='$CPP $CPPFLAGS'
21285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304 # Only expand once:
21305
21306
21307
21308
21309
21310 # Identify the assembler which will work hand-in-glove with the newly
21311 # built GCC, so that we can examine its features.  This is the assembler
21312 # which will be driven by the driver program.
21313 #
21314 # If build != host, and we aren't building gas in-tree, we identify a
21315 # build->target assembler and hope that it will have the same features
21316 # as the host->target assembler we'll be using.
21317 gcc_cv_gas_major_version=
21318 gcc_cv_gas_minor_version=
21319 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21320
21321 if test "${gcc_cv_as+set}" = set; then :
21322
21323 else
21324
21325 if test -x "$DEFAULT_ASSEMBLER"; then
21326         gcc_cv_as="$DEFAULT_ASSEMBLER"
21327 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21328      && test -f ../gas/Makefile \
21329      && test x$build = x$host; then
21330         gcc_cv_as=../gas/as-new$build_exeext
21331 elif test -x as$build_exeext; then
21332         # Build using assembler in the current directory.
21333         gcc_cv_as=./as$build_exeext
21334 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21335         gcc_cv_as="$AS_FOR_TARGET"
21336 else
21337         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21338 set dummy $AS_FOR_TARGET; ac_word=$2
21339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21340 $as_echo_n "checking for $ac_word... " >&6; }
21341 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21342   $as_echo_n "(cached) " >&6
21343 else
21344   case $gcc_cv_as in
21345   [\\/]* | ?:[\\/]*)
21346   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21347   ;;
21348   *)
21349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21350 for as_dir in $PATH
21351 do
21352   IFS=$as_save_IFS
21353   test -z "$as_dir" && as_dir=.
21354     for ac_exec_ext in '' $ac_executable_extensions; do
21355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21356     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21358     break 2
21359   fi
21360 done
21361   done
21362 IFS=$as_save_IFS
21363
21364   ;;
21365 esac
21366 fi
21367 gcc_cv_as=$ac_cv_path_gcc_cv_as
21368 if test -n "$gcc_cv_as"; then
21369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21370 $as_echo "$gcc_cv_as" >&6; }
21371 else
21372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21373 $as_echo "no" >&6; }
21374 fi
21375
21376
21377 fi
21378 fi
21379
21380 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21381
21382 case "$ORIGINAL_AS_FOR_TARGET" in
21383   ./as | ./as$build_exeext) ;;
21384   *) ac_config_files="$ac_config_files as:exec-tool.in"
21385  ;;
21386 esac
21387
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21389 $as_echo_n "checking what assembler to use... " >&6; }
21390 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21391   # Single tree build which includes gas.  We want to prefer it
21392   # over whatever linker top-level may have detected, since
21393   # we'll use what we're building after installation anyway.
21394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21395 $as_echo "newly built gas" >&6; }
21396   in_tree_gas=yes
21397   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21398 for f in $gcc_cv_as_bfd_srcdir/configure \
21399          $gcc_cv_as_gas_srcdir/configure \
21400          $gcc_cv_as_gas_srcdir/configure.in \
21401          $gcc_cv_as_gas_srcdir/Makefile.in ; do
21402   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21403   if test x$gcc_cv_gas_version != x; then
21404     break
21405   fi
21406 done
21407 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21408 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21409 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21410 case $gcc_cv_gas_patch_version in
21411   "") gcc_cv_gas_patch_version="0" ;;
21412 esac
21413 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21414                             + $gcc_cv_gas_minor_version \) \* 1000 \
21415                             + $gcc_cv_gas_patch_version`
21416
21417   in_tree_gas_is_elf=no
21418   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21419      || (grep 'obj_format = multi' ../gas/Makefile \
21420          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21421   then
21422     in_tree_gas_is_elf=yes
21423   fi
21424 else
21425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21426 $as_echo "$gcc_cv_as" >&6; }
21427   in_tree_gas=no
21428 fi
21429
21430 # Identify the linker which will work hand-in-glove with the newly
21431 # built GCC, so that we can examine its features.  This is the linker
21432 # which will be driven by the driver program.
21433 #
21434 # If build != host, and we aren't building gas in-tree, we identify a
21435 # build->target linker and hope that it will have the same features
21436 # as the host->target linker we'll be using.
21437 gcc_cv_gld_major_version=
21438 gcc_cv_gld_minor_version=
21439 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21440 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21441
21442 if test "${gcc_cv_ld+set}" = set; then :
21443
21444 else
21445
21446 if test -x "$DEFAULT_LINKER"; then
21447         gcc_cv_ld="$DEFAULT_LINKER"
21448 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21449      && test -f ../ld/Makefile \
21450      && test x$build = x$host; then
21451         gcc_cv_ld=../ld/ld-new$build_exeext
21452 elif test -x collect-ld$build_exeext; then
21453         # Build using linker in the current directory.
21454         gcc_cv_ld=./collect-ld$build_exeext
21455 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21456         gcc_cv_ld="$LD_FOR_TARGET"
21457 else
21458         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21459 set dummy $LD_FOR_TARGET; ac_word=$2
21460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21461 $as_echo_n "checking for $ac_word... " >&6; }
21462 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21463   $as_echo_n "(cached) " >&6
21464 else
21465   case $gcc_cv_ld in
21466   [\\/]* | ?:[\\/]*)
21467   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21468   ;;
21469   *)
21470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21471 for as_dir in $PATH
21472 do
21473   IFS=$as_save_IFS
21474   test -z "$as_dir" && as_dir=.
21475     for ac_exec_ext in '' $ac_executable_extensions; do
21476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21477     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21479     break 2
21480   fi
21481 done
21482   done
21483 IFS=$as_save_IFS
21484
21485   ;;
21486 esac
21487 fi
21488 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21489 if test -n "$gcc_cv_ld"; then
21490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21491 $as_echo "$gcc_cv_ld" >&6; }
21492 else
21493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21494 $as_echo "no" >&6; }
21495 fi
21496
21497
21498 fi
21499 fi
21500
21501 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21502 PLUGIN_LD=`basename $gcc_cv_ld`
21503
21504 # Check whether --with-plugin-ld was given.
21505 if test "${with_plugin_ld+set}" = set; then :
21506   withval=$with_plugin_ld; if test x"$withval" != x; then
21507    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21508    PLUGIN_LD="$withval"
21509  fi
21510 fi
21511
21512
21513
21514 cat >>confdefs.h <<_ACEOF
21515 #define PLUGIN_LD "$PLUGIN_LD"
21516 _ACEOF
21517
21518
21519 # Check to see if we are using gold instead of ld
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21521 $as_echo_n "checking whether we are using gold... " >&6; }
21522 ld_is_gold=no
21523 if test x$gcc_cv_ld != x; then
21524   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21525      | grep "GNU gold" > /dev/null; then
21526     ld_is_gold=yes
21527   fi
21528 fi
21529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21530 $as_echo "$ld_is_gold" >&6; }
21531
21532 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21533
21534 case "$ORIGINAL_LD_FOR_TARGET" in
21535   ./collect-ld | ./collect-ld$build_exeext) ;;
21536   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21537  ;;
21538 esac
21539
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21541 $as_echo_n "checking what linker to use... " >&6; }
21542 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21543    || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21544         # Single tree build which includes ld.  We want to prefer it
21545         # over whatever linker top-level may have detected, since
21546         # we'll use what we're building after installation anyway.
21547         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21548 $as_echo "newly built ld" >&6; }
21549         in_tree_ld=yes
21550         in_tree_ld_is_elf=no
21551         if (grep 'EMUL = .*elf' ../ld/Makefile \
21552             || grep 'EMUL = .*linux' ../ld/Makefile \
21553             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21554           in_tree_ld_is_elf=yes
21555         elif test "$ld_is_gold" = yes; then
21556           in_tree_ld_is_elf=yes
21557         fi
21558         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
21559         do
21560                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21561                 if test x$gcc_cv_gld_version != x; then
21562                         break
21563                 fi
21564         done
21565         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21566         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21567 else
21568         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21569 $as_echo "$gcc_cv_ld" >&6; }
21570         in_tree_ld=no
21571 fi
21572
21573 # Figure out what nm we will be using.
21574 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21575 if test "${gcc_cv_nm+set}" = set; then :
21576
21577 else
21578
21579 if test -f $gcc_cv_binutils_srcdir/configure.in \
21580      && test -f ../binutils/Makefile \
21581      && test x$build = x$host; then
21582         gcc_cv_nm=../binutils/nm-new$build_exeext
21583 elif test -x nm$build_exeext; then
21584         gcc_cv_nm=./nm$build_exeext
21585 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21586         gcc_cv_nm="$NM_FOR_TARGET"
21587 else
21588         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21589 set dummy $NM_FOR_TARGET; ac_word=$2
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21591 $as_echo_n "checking for $ac_word... " >&6; }
21592 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21593   $as_echo_n "(cached) " >&6
21594 else
21595   case $gcc_cv_nm in
21596   [\\/]* | ?:[\\/]*)
21597   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21598   ;;
21599   *)
21600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21601 for as_dir in $PATH
21602 do
21603   IFS=$as_save_IFS
21604   test -z "$as_dir" && as_dir=.
21605     for ac_exec_ext in '' $ac_executable_extensions; do
21606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21607     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21609     break 2
21610   fi
21611 done
21612   done
21613 IFS=$as_save_IFS
21614
21615   ;;
21616 esac
21617 fi
21618 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21619 if test -n "$gcc_cv_nm"; then
21620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21621 $as_echo "$gcc_cv_nm" >&6; }
21622 else
21623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21624 $as_echo "no" >&6; }
21625 fi
21626
21627
21628 fi
21629 fi
21630
21631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21632 $as_echo_n "checking what nm to use... " >&6; }
21633 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21634         # Single tree build which includes binutils.
21635         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21636 $as_echo "newly built nm" >&6; }
21637         in_tree_nm=yes
21638 else
21639         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21640 $as_echo "$gcc_cv_nm" >&6; }
21641         in_tree_nm=no
21642 fi
21643
21644 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21645
21646 case "$ORIGINAL_NM_FOR_TARGET" in
21647   ./nm | ./nm$build_exeext) ;;
21648   *) ac_config_files="$ac_config_files nm:exec-tool.in"
21649  ;;
21650 esac
21651
21652
21653 # Figure out what objdump we will be using.
21654 if test "${gcc_cv_objdump+set}" = set; then :
21655
21656 else
21657
21658 if test -f $gcc_cv_binutils_srcdir/configure.in \
21659      && test -f ../binutils/Makefile \
21660      && test x$build = x$host; then
21661         # Single tree build which includes binutils.
21662         gcc_cv_objdump=../binutils/objdump$build_exeext
21663 elif test -x objdump$build_exeext; then
21664         gcc_cv_objdump=./objdump$build_exeext
21665 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21666         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21667 else
21668         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21669 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21671 $as_echo_n "checking for $ac_word... " >&6; }
21672 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21673   $as_echo_n "(cached) " >&6
21674 else
21675   case $gcc_cv_objdump in
21676   [\\/]* | ?:[\\/]*)
21677   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21678   ;;
21679   *)
21680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21681 for as_dir in $PATH
21682 do
21683   IFS=$as_save_IFS
21684   test -z "$as_dir" && as_dir=.
21685     for ac_exec_ext in '' $ac_executable_extensions; do
21686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21687     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21689     break 2
21690   fi
21691 done
21692   done
21693 IFS=$as_save_IFS
21694
21695   ;;
21696 esac
21697 fi
21698 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21699 if test -n "$gcc_cv_objdump"; then
21700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21701 $as_echo "$gcc_cv_objdump" >&6; }
21702 else
21703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21704 $as_echo "no" >&6; }
21705 fi
21706
21707
21708 fi
21709 fi
21710
21711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21712 $as_echo_n "checking what objdump to use... " >&6; }
21713 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21714         # Single tree build which includes binutils.
21715         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21716 $as_echo "newly built objdump" >&6; }
21717 elif test x$gcc_cv_objdump = x; then
21718         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21719 $as_echo "not found" >&6; }
21720 else
21721         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21722 $as_echo "$gcc_cv_objdump" >&6; }
21723 fi
21724
21725 # Figure out what readelf we will be using.
21726 if test "${gcc_cv_readelf+set}" = set; then :
21727
21728 else
21729
21730 if test -f $gcc_cv_binutils_srcdir/configure.in \
21731      && test -f ../binutils/Makefile \
21732      && test x$build = x$host; then
21733         # Single tree build which includes binutils.
21734         gcc_cv_readelf=../binutils/readelf$build_exeext
21735 elif test -x readelf$build_exeext; then
21736         gcc_cv_readelf=./readelf$build_exeext
21737 else
21738         # Extract the first word of "readelf", so it can be a program name with args.
21739 set dummy readelf; ac_word=$2
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21741 $as_echo_n "checking for $ac_word... " >&6; }
21742 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21743   $as_echo_n "(cached) " >&6
21744 else
21745   case $gcc_cv_readelf in
21746   [\\/]* | ?:[\\/]*)
21747   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21748   ;;
21749   *)
21750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21751 for as_dir in $PATH
21752 do
21753   IFS=$as_save_IFS
21754   test -z "$as_dir" && as_dir=.
21755     for ac_exec_ext in '' $ac_executable_extensions; do
21756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21757     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21759     break 2
21760   fi
21761 done
21762   done
21763 IFS=$as_save_IFS
21764
21765   ;;
21766 esac
21767 fi
21768 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21769 if test -n "$gcc_cv_readelf"; then
21770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21771 $as_echo "$gcc_cv_readelf" >&6; }
21772 else
21773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21774 $as_echo "no" >&6; }
21775 fi
21776
21777
21778 fi
21779 fi
21780
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21782 $as_echo_n "checking what readelf to use... " >&6; }
21783 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21784         # Single tree build which includes binutils.
21785         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21786 $as_echo "newly built readelf" >&6; }
21787 elif test x$gcc_cv_readelf = x; then
21788         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21789 $as_echo "not found" >&6; }
21790 else
21791         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21792 $as_echo "$gcc_cv_readelf" >&6; }
21793 fi
21794
21795 # Figure out what assembler alignment features are present.
21796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21797 $as_echo_n "checking assembler flags... " >&6; }
21798 if test "${gcc_cv_as_flags+set}" = set; then :
21799   $as_echo_n "(cached) " >&6
21800 else
21801    case "$target" in
21802   i[34567]86-*-linux*)
21803         gcc_cv_as_flags="--32"
21804     ;;
21805   powerpc*-*-darwin*)
21806         gcc_cv_as_flags="-arch ppc"
21807     ;;
21808   *)
21809     gcc_cv_as_flags=" "
21810     ;;
21811   esac
21812 fi
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21814 $as_echo "$gcc_cv_as_flags" >&6; }
21815
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21817 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21818 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21819   $as_echo_n "(cached) " >&6
21820 else
21821   gcc_cv_as_balign_and_p2align=no
21822     if test $in_tree_gas = yes; then
21823     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21824   then gcc_cv_as_balign_and_p2align=yes
21825 fi
21826   elif test x$gcc_cv_as != x; then
21827     $as_echo '.balign 4
21828 .p2align 2' > conftest.s
21829     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21830   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21831   (eval $ac_try) 2>&5
21832   ac_status=$?
21833   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21834   test $ac_status = 0; }; }
21835     then
21836         gcc_cv_as_balign_and_p2align=yes
21837     else
21838       echo "configure: failed program was" >&5
21839       cat conftest.s >&5
21840     fi
21841     rm -f conftest.o conftest.s
21842   fi
21843 fi
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21845 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21846 if test $gcc_cv_as_balign_and_p2align = yes; then
21847
21848 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21849
21850 fi
21851
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21853 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21854 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21855   $as_echo_n "(cached) " >&6
21856 else
21857   gcc_cv_as_max_skip_p2align=no
21858     if test $in_tree_gas = yes; then
21859     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21860   then gcc_cv_as_max_skip_p2align=yes
21861 fi
21862   elif test x$gcc_cv_as != x; then
21863     $as_echo '.p2align 4,,7' > conftest.s
21864     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21865   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21866   (eval $ac_try) 2>&5
21867   ac_status=$?
21868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21869   test $ac_status = 0; }; }
21870     then
21871         gcc_cv_as_max_skip_p2align=yes
21872     else
21873       echo "configure: failed program was" >&5
21874       cat conftest.s >&5
21875     fi
21876     rm -f conftest.o conftest.s
21877   fi
21878 fi
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21880 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21881 if test $gcc_cv_as_max_skip_p2align = yes; then
21882
21883 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21884
21885 fi
21886
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21888 $as_echo_n "checking assembler for .literal16... " >&6; }
21889 if test "${gcc_cv_as_literal16+set}" = set; then :
21890   $as_echo_n "(cached) " >&6
21891 else
21892   gcc_cv_as_literal16=no
21893     if test $in_tree_gas = yes; then
21894     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21895   then gcc_cv_as_literal16=yes
21896 fi
21897   elif test x$gcc_cv_as != x; then
21898     $as_echo '.literal16' > conftest.s
21899     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21900   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21901   (eval $ac_try) 2>&5
21902   ac_status=$?
21903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21904   test $ac_status = 0; }; }
21905     then
21906         gcc_cv_as_literal16=yes
21907     else
21908       echo "configure: failed program was" >&5
21909       cat conftest.s >&5
21910     fi
21911     rm -f conftest.o conftest.s
21912   fi
21913 fi
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21915 $as_echo "$gcc_cv_as_literal16" >&6; }
21916 if test $gcc_cv_as_literal16 = yes; then
21917
21918 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21919
21920 fi
21921
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21923 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21924 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21925   $as_echo_n "(cached) " >&6
21926 else
21927   gcc_cv_as_subsection_m1=no
21928     if test $in_tree_gas = yes; then
21929     if test $in_tree_gas_is_elf = yes \
21930   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21931   then gcc_cv_as_subsection_m1=yes
21932 fi
21933   elif test x$gcc_cv_as != x; then
21934     $as_echo 'conftest_label1: .word 0
21935 .subsection -1
21936 conftest_label2: .word 0
21937 .previous' > 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         if test x$gcc_cv_nm != x; then
21946     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21947     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21948     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21949     then :
21950     else gcc_cv_as_subsection_m1=yes
21951     fi
21952     rm -f conftest.nm1 conftest.nm2
21953   fi
21954     else
21955       echo "configure: failed program was" >&5
21956       cat conftest.s >&5
21957     fi
21958     rm -f conftest.o conftest.s
21959   fi
21960 fi
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21962 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21963 if test $gcc_cv_as_subsection_m1 = yes; then
21964
21965 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21966
21967 fi
21968
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21970 $as_echo_n "checking assembler for .weak... " >&6; }
21971 if test "${gcc_cv_as_weak+set}" = set; then :
21972   $as_echo_n "(cached) " >&6
21973 else
21974   gcc_cv_as_weak=no
21975     if test $in_tree_gas = yes; then
21976     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21977   then gcc_cv_as_weak=yes
21978 fi
21979   elif test x$gcc_cv_as != x; then
21980     $as_echo '  .weak foobar' > conftest.s
21981     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21982   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21983   (eval $ac_try) 2>&5
21984   ac_status=$?
21985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21986   test $ac_status = 0; }; }
21987     then
21988         gcc_cv_as_weak=yes
21989     else
21990       echo "configure: failed program was" >&5
21991       cat conftest.s >&5
21992     fi
21993     rm -f conftest.o conftest.s
21994   fi
21995 fi
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21997 $as_echo "$gcc_cv_as_weak" >&6; }
21998 if test $gcc_cv_as_weak = yes; then
21999
22000 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22001
22002 fi
22003
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22005 $as_echo_n "checking assembler for .weakref... " >&6; }
22006 if test "${gcc_cv_as_weakref+set}" = set; then :
22007   $as_echo_n "(cached) " >&6
22008 else
22009   gcc_cv_as_weakref=no
22010     if test $in_tree_gas = yes; then
22011     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22012   then gcc_cv_as_weakref=yes
22013 fi
22014   elif test x$gcc_cv_as != x; then
22015     $as_echo '  .weakref foobar, barfnot' > conftest.s
22016     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22017   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22018   (eval $ac_try) 2>&5
22019   ac_status=$?
22020   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22021   test $ac_status = 0; }; }
22022     then
22023         gcc_cv_as_weakref=yes
22024     else
22025       echo "configure: failed program was" >&5
22026       cat conftest.s >&5
22027     fi
22028     rm -f conftest.o conftest.s
22029   fi
22030 fi
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22032 $as_echo "$gcc_cv_as_weakref" >&6; }
22033 if test $gcc_cv_as_weakref = yes; then
22034
22035 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22036
22037 fi
22038
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22040 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22041 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22042   $as_echo_n "(cached) " >&6
22043 else
22044   gcc_cv_as_nsubspa_comdat=no
22045     if test $in_tree_gas = yes; then
22046     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22047   then gcc_cv_as_nsubspa_comdat=yes
22048 fi
22049   elif test x$gcc_cv_as != x; then
22050     $as_echo '  .SPACE $TEXT$
22051         .NSUBSPA $CODE$,COMDAT' > conftest.s
22052     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22053   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22054   (eval $ac_try) 2>&5
22055   ac_status=$?
22056   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22057   test $ac_status = 0; }; }
22058     then
22059         gcc_cv_as_nsubspa_comdat=yes
22060     else
22061       echo "configure: failed program was" >&5
22062       cat conftest.s >&5
22063     fi
22064     rm -f conftest.o conftest.s
22065   fi
22066 fi
22067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22068 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22069 if test $gcc_cv_as_nsubspa_comdat = yes; then
22070
22071 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22072
22073 fi
22074
22075 # .hidden needs to be supported in both the assembler and the linker,
22076 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22077 # This is irritatingly difficult to feature test for; we have to check the
22078 # date string after the version number.  If we've got an in-tree
22079 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22080 # to be safe.
22081 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22083 $as_echo_n "checking assembler for .hidden... " >&6; }
22084 if test "${gcc_cv_as_hidden+set}" = set; then :
22085   $as_echo_n "(cached) " >&6
22086 else
22087   gcc_cv_as_hidden=no
22088     if test $in_tree_gas = yes; then
22089     if test $in_tree_gas_is_elf = yes \
22090   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22091   then gcc_cv_as_hidden=yes
22092 fi
22093   elif test x$gcc_cv_as != x; then
22094     $as_echo '  .hidden foobar
22095 foobar:' > conftest.s
22096     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22097   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22098   (eval $ac_try) 2>&5
22099   ac_status=$?
22100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22101   test $ac_status = 0; }; }
22102     then
22103
22104 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
22105 # STV_HIDDEN, so disable .hidden support if so.
22106 case "${target}" in
22107   i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22108     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
22109       cat > conftest.s <<EOF
22110 .globl hidden
22111         .hidden hidden
22112 hidden:
22113 .globl default
22114         .set    default,hidden
22115 EOF
22116       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
22117         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
22118         grep '\.hidden default' > /dev/null; then
22119         gcc_cv_as_hidden=no
22120       else
22121         gcc_cv_as_hidden=yes
22122       fi
22123     else
22124       # Assume bug is present if objdump is missing.
22125       gcc_cv_as_hidden=no
22126     fi
22127     ;;
22128   *)
22129     gcc_cv_as_hidden=yes
22130     ;;
22131 esac
22132     else
22133       echo "configure: failed program was" >&5
22134       cat conftest.s >&5
22135     fi
22136     rm -f conftest.o conftest.s
22137   fi
22138 fi
22139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22140 $as_echo "$gcc_cv_as_hidden" >&6; }
22141
22142 case "${target}" in
22143   *-*-darwin*)
22144     # Darwin as has some visibility support, though with a different syntax.
22145     gcc_cv_as_hidden=yes
22146     ;;
22147 esac
22148
22149 # gnu_indirect_function type is an extension proposed at
22150 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22151 # selection of function implementation
22152 # Check whether --enable-gnu-indirect-function was given.
22153 if test "${enable_gnu_indirect_function+set}" = set; then :
22154   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22155     yes | no) ;;
22156     *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22157 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22158   esac
22159 else
22160   enable_gnu_indirect_function="$default_gnu_indirect_function"
22161 fi
22162
22163 if test x$enable_gnu_indirect_function = xyes; then
22164
22165 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
22166
22167 fi
22168
22169 if test $in_tree_ld != yes ; then
22170   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22171   if echo "$ld_ver" | grep GNU > /dev/null; then
22172     if test x"$ld_is_gold" = xyes; then
22173       # GNU gold --version looks like this:
22174       #
22175       # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22176       #
22177       # We extract the binutils version which is more familiar and specific
22178       # than the gold version.
22179       ld_vers=`echo $ld_ver | sed -n \
22180           -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22181     else
22182       # GNU ld --version looks like this:
22183       #
22184       # GNU ld (GNU Binutils) 2.21.51.20110225
22185       ld_vers=`echo $ld_ver | sed -n \
22186           -e 's,^.*[     ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22187     fi
22188     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'`
22189     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22190     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22191     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22192   else
22193     case "${target}" in
22194       *-*-solaris2*)
22195         #
22196         # Solaris 2 ld -V output looks like this for a regular version:
22197         #
22198         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22199         #
22200         # but test versions add stuff at the end:
22201         #
22202         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22203         #
22204         ld_ver=`$gcc_cv_ld -V 2>&1`
22205         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
22206           ld_vers=`echo $ld_ver | sed -n \
22207             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22208           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
22209           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22210         fi
22211         ;;
22212     esac
22213   fi
22214 fi
22215
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22217 $as_echo_n "checking linker for .hidden support... " >&6; }
22218 if test "${gcc_cv_ld_hidden+set}" = set; then :
22219   $as_echo_n "(cached) " >&6
22220 else
22221   if test $in_tree_ld = yes ; then
22222   gcc_cv_ld_hidden=no
22223   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 \
22224      && test $in_tree_ld_is_elf = yes; then
22225      gcc_cv_ld_hidden=yes
22226   fi
22227 else
22228   gcc_cv_ld_hidden=yes
22229   if test x"$ld_is_gold" = xyes; then
22230     :
22231   elif echo "$ld_ver" | grep GNU > /dev/null; then
22232     if test 0"$ld_date" -lt 20020404; then
22233       if test -n "$ld_date"; then
22234         # If there was date string, but was earlier than 2002-04-04, fail
22235         gcc_cv_ld_hidden=no
22236       elif test -z "$ld_vers"; then
22237         # If there was no date string nor ld version number, something is wrong
22238         gcc_cv_ld_hidden=no
22239       else
22240         test -z "$ld_vers_patch" && ld_vers_patch=0
22241         if test "$ld_vers_major" -lt 2; then
22242           gcc_cv_ld_hidden=no
22243         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22244           gcc_cv_ld_hidden="no"
22245         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22246           gcc_cv_ld_hidden=no
22247         fi
22248       fi
22249     fi
22250   else
22251     case "${target}" in
22252       *-*-darwin*)
22253         # Darwin ld has some visibility support.
22254         gcc_cv_ld_hidden=yes
22255         ;;
22256       hppa64*-*-hpux* | ia64*-*-hpux*)
22257         gcc_cv_ld_hidden=yes
22258         ;;
22259       *-*-solaris2.8*)
22260         # .hidden support was backported to Solaris 8, starting with ld
22261         # version 1.276.
22262         if test "$ld_vers_minor" -ge 276; then
22263           gcc_cv_ld_hidden=yes
22264         else
22265           gcc_cv_ld_hidden=no
22266         fi
22267         ;;
22268       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
22269         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22270         # .symbolic was only added in Solaris 9 12/02.
22271         gcc_cv_ld_hidden=yes
22272         ;;
22273       *)
22274         gcc_cv_ld_hidden=no
22275         ;;
22276     esac
22277   fi
22278 fi
22279 fi
22280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22281 $as_echo "$gcc_cv_ld_hidden" >&6; }
22282 libgcc_visibility=no
22283
22284
22285 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22286   libgcc_visibility=yes
22287
22288 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22289
22290 fi
22291
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22293 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22294 gcc_cv_ld_ro_rw_mix=unknown
22295 if test $in_tree_ld = yes ; then
22296   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 \
22297      && test $in_tree_ld_is_elf = yes; then
22298     gcc_cv_ld_ro_rw_mix=read-write
22299   fi
22300 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
22301   echo '.section myfoosect, "a"' > conftest1.s
22302   echo '.section myfoosect, "aw"' > conftest2.s
22303   echo '.byte 1' >> conftest2.s
22304   echo '.section myfoosect, "a"' > conftest3.s
22305   echo '.byte 0' >> conftest3.s
22306   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
22307      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
22308      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
22309      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22310         conftest2.o conftest3.o > /dev/null 2>&1; then
22311     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
22312                          | sed -e '/myfoosect/!d' -e N`
22313     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
22314       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
22315         gcc_cv_ld_ro_rw_mix=read-only
22316       else
22317         gcc_cv_ld_ro_rw_mix=read-write
22318       fi
22319     fi
22320   fi
22321   rm -f conftest.* conftest[123].*
22322 fi
22323 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22324
22325 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22326
22327 fi
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22329 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22330
22331 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22333 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22334 if test "${gcc_cv_as_leb128+set}" = set; then :
22335   $as_echo_n "(cached) " >&6
22336 else
22337   gcc_cv_as_leb128=no
22338     if test $in_tree_gas = yes; then
22339     if test $in_tree_gas_is_elf = yes \
22340   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22341   then gcc_cv_as_leb128=yes
22342 fi
22343   elif test x$gcc_cv_as != x; then
22344     $as_echo '  .data
22345         .uleb128 L2 - L1
22346 L1:
22347         .uleb128 1280
22348         .sleb128 -1010
22349 L2:' > conftest.s
22350     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22351   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22352   (eval $ac_try) 2>&5
22353   ac_status=$?
22354   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22355   test $ac_status = 0; }; }
22356     then
22357         # GAS versions before 2.11 do not support uleb128,
22358   # despite appearing to.
22359   # ??? There exists an elf-specific test that will crash
22360   # the assembler.  Perhaps it's better to figure out whether
22361   # arbitrary sections are supported and try the test.
22362   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22363   if echo "$as_ver" | grep GNU > /dev/null; then
22364     as_vers=`echo $as_ver | sed -n \
22365         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22366     as_major=`expr "$as_vers" : '\([0-9]*\)'`
22367     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22368     if test $as_major -eq 2 && test $as_minor -lt 11
22369     then :
22370     else gcc_cv_as_leb128=yes
22371     fi
22372   fi
22373     else
22374       echo "configure: failed program was" >&5
22375       cat conftest.s >&5
22376     fi
22377     rm -f conftest.o conftest.s
22378   fi
22379 fi
22380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22381 $as_echo "$gcc_cv_as_leb128" >&6; }
22382 if test $gcc_cv_as_leb128 = yes; then
22383
22384 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22385
22386 fi
22387
22388 # Check if we have assembler support for unwind directives.
22389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22390 $as_echo_n "checking assembler for cfi directives... " >&6; }
22391 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22392   $as_echo_n "(cached) " >&6
22393 else
22394   gcc_cv_as_cfi_directive=no
22395   if test x$gcc_cv_as != x; then
22396     $as_echo '  .text
22397         .cfi_startproc
22398         .cfi_offset 0, 0
22399         .cfi_same_value 1
22400         .cfi_def_cfa 1, 2
22401         .cfi_escape 1, 2, 3, 4, 5
22402         .cfi_endproc' > conftest.s
22403     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22404   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22405   (eval $ac_try) 2>&5
22406   ac_status=$?
22407   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22408   test $ac_status = 0; }; }
22409     then
22410         case "$target" in
22411   *-*-solaris*)
22412     # If the linker used on Solaris (like Sun ld) isn't capable of merging
22413     # read-only and read-write sections, we need to make sure that the
22414     # assembler used emits read-write .eh_frame sections.
22415     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22416       if test "x$gcc_cv_objdump" != x; then
22417         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22418                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22419           gcc_cv_as_cfi_directive=no
22420         else
22421           case "$target" in
22422             i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22423               # On Solaris/x86, make sure that GCC and gas agree on using
22424               # read-only .eh_frame sections for 64-bit.
22425               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22426                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22427                         sed -e /.eh_frame/!d -e N | \
22428                         grep READONLY > /dev/null; then
22429                 gcc_cv_as_cfi_directive=yes
22430               else
22431                 gcc_cv_as_cfi_directive=no
22432               fi
22433               ;;
22434             *)
22435               gcc_cv_as_cfi_directive=yes
22436               ;;
22437           esac
22438         fi
22439       else
22440         # no objdump, err on the side of caution
22441         gcc_cv_as_cfi_directive=no
22442       fi
22443     else
22444       gcc_cv_as_cfi_directive=yes
22445     fi
22446     ;;
22447   *-*-*)
22448     gcc_cv_as_cfi_directive=yes
22449     ;;
22450 esac
22451     else
22452       echo "configure: failed program was" >&5
22453       cat conftest.s >&5
22454     fi
22455     rm -f conftest.o conftest.s
22456   fi
22457 fi
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22459 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22460
22461 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22463 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22464 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22465   $as_echo_n "(cached) " >&6
22466 else
22467   gcc_cv_as_cfi_advance_working=no
22468   if test x$gcc_cv_as != x; then
22469     $as_echo '  .text
22470         .cfi_startproc
22471         .cfi_adjust_cfa_offset 64
22472         .skip 75040, 0
22473         .cfi_adjust_cfa_offset 128
22474         .cfi_endproc' > conftest.s
22475     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22476   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22477   (eval $ac_try) 2>&5
22478   ac_status=$?
22479   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22480   test $ac_status = 0; }; }
22481     then
22482
22483 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22484     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
22485    gcc_cv_as_cfi_advance_working=yes
22486 fi
22487
22488     else
22489       echo "configure: failed program was" >&5
22490       cat conftest.s >&5
22491     fi
22492     rm -f conftest.o conftest.s
22493   fi
22494 fi
22495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22496 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22497
22498 else
22499   # no objdump, err on the side of caution
22500   gcc_cv_as_cfi_advance_working=no
22501 fi
22502
22503
22504 cat >>confdefs.h <<_ACEOF
22505 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22506        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22507 _ACEOF
22508
22509
22510
22511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22512 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22513 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22514   $as_echo_n "(cached) " >&6
22515 else
22516   gcc_cv_as_cfi_personality_directive=no
22517   if test x$gcc_cv_as != x; then
22518     $as_echo '  .text
22519         .cfi_startproc
22520         .cfi_personality 0, symbol
22521         .cfi_endproc' > conftest.s
22522     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22523   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22524   (eval $ac_try) 2>&5
22525   ac_status=$?
22526   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22527   test $ac_status = 0; }; }
22528     then
22529         gcc_cv_as_cfi_personality_directive=yes
22530     else
22531       echo "configure: failed program was" >&5
22532       cat conftest.s >&5
22533     fi
22534     rm -f conftest.o conftest.s
22535   fi
22536 fi
22537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22538 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22539
22540
22541 cat >>confdefs.h <<_ACEOF
22542 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22543     then echo 1; else echo 0; fi`
22544 _ACEOF
22545
22546
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22548 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22549 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22550   $as_echo_n "(cached) " >&6
22551 else
22552   gcc_cv_as_cfi_sections_directive=no
22553   if test x$gcc_cv_as != x; then
22554     $as_echo '  .text
22555         .cfi_sections .debug_frame, .eh_frame
22556         .cfi_startproc
22557         .cfi_endproc' > conftest.s
22558     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22559   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22560   (eval $ac_try) 2>&5
22561   ac_status=$?
22562   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22563   test $ac_status = 0; }; }
22564     then
22565         case $target_os in
22566   win32 | pe | cygwin* | mingw32* | uwin*)
22567     # Need to check that we generated the correct relocation for the
22568     # .debug_frame section.  This was fixed for binutils 2.21.
22569     gcc_cv_as_cfi_sections_directive=no
22570     if test "x$gcc_cv_objdump" != x; then
22571      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22572         grep secrel > /dev/null; then
22573       gcc_cv_as_cfi_sections_directive=yes
22574      fi
22575     fi
22576     ;;
22577   *)
22578     gcc_cv_as_cfi_sections_directive=yes
22579     ;;
22580 esac
22581     else
22582       echo "configure: failed program was" >&5
22583       cat conftest.s >&5
22584     fi
22585     rm -f conftest.o conftest.s
22586   fi
22587 fi
22588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22589 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22590
22591
22592
22593 cat >>confdefs.h <<_ACEOF
22594 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22595     then echo 1; else echo 0; fi`
22596 _ACEOF
22597
22598
22599 # GAS versions up to and including 2.11.0 may mis-optimize
22600 # .eh_frame data.
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22602 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22603 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22604   $as_echo_n "(cached) " >&6
22605 else
22606   gcc_cv_as_eh_frame=no
22607     if test $in_tree_gas = yes; then
22608     if test $in_tree_gas_is_elf = yes \
22609   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22610   then gcc_cv_as_eh_frame=yes
22611 fi
22612   elif test x$gcc_cv_as != x; then
22613     $as_echo '  .text
22614 .LFB1:
22615         .4byte  0
22616 .L1:
22617         .4byte  0
22618 .LFE1:
22619         .section        .eh_frame,"aw",@progbits
22620 __FRAME_BEGIN__:
22621         .4byte  .LECIE1-.LSCIE1
22622 .LSCIE1:
22623         .4byte  0x0
22624         .byte   0x1
22625         .ascii "z\0"
22626         .byte   0x1
22627         .byte   0x78
22628         .byte   0x1a
22629         .byte   0x0
22630         .byte   0x4
22631         .4byte  1
22632         .p2align 1
22633 .LECIE1:
22634 .LSFDE1:
22635         .4byte  .LEFDE1-.LASFDE1
22636 .LASFDE1:
22637         .4byte  .LASFDE1-__FRAME_BEGIN__
22638         .4byte  .LFB1
22639         .4byte  .LFE1-.LFB1
22640         .byte   0x4
22641         .4byte  .LFE1-.LFB1
22642         .byte   0x4
22643         .4byte  .L1-.LFB1
22644 .LEFDE1:' > conftest.s
22645     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22646   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22647   (eval $ac_try) 2>&5
22648   ac_status=$?
22649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22650   test $ac_status = 0; }; }
22651     then
22652           cat > conftest.lit <<EOF
22653  0000 10000000 00000000 017a0001 781a0004  .........z..x...
22654  0010 01000000 12000000 18000000 00000000  ................
22655  0020 08000000 04080000 0044               .........D      
22656 EOF
22657 cat > conftest.big <<EOF
22658  0000 00000010 00000000 017a0001 781a0004  .........z..x...
22659  0010 00000001 00000012 00000018 00000000  ................
22660  0020 00000008 04000000 0844               .........D      
22661 EOF
22662   # If the assembler didn't choke, and we can objdump,
22663   # and we got the correct data, then succeed.
22664   # The text in the here-document typically retains its unix-style line
22665   # endings, while the output of objdump will use host line endings.
22666   # Therefore, use diff -b for the comparisons.
22667   if test x$gcc_cv_objdump != x \
22668   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22669      | tail -3 > conftest.got \
22670   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22671     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22672   then
22673     gcc_cv_as_eh_frame=yes
22674   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22675   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22676   (eval $ac_try) 2>&5
22677   ac_status=$?
22678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22679   test $ac_status = 0; }; }; then
22680     gcc_cv_as_eh_frame=buggy
22681   else
22682     # Uh oh, what do we do now?
22683     gcc_cv_as_eh_frame=no
22684   fi
22685     else
22686       echo "configure: failed program was" >&5
22687       cat conftest.s >&5
22688     fi
22689     rm -f conftest.o conftest.s
22690   fi
22691 fi
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22693 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22694
22695
22696 if test $gcc_cv_as_eh_frame = buggy; then
22697
22698 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22699
22700 fi
22701
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22703 $as_echo_n "checking assembler for section merging support... " >&6; }
22704 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22705   $as_echo_n "(cached) " >&6
22706 else
22707   gcc_cv_as_shf_merge=no
22708     if test $in_tree_gas = yes; then
22709     if test $in_tree_gas_is_elf = yes \
22710   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22711   then gcc_cv_as_shf_merge=yes
22712 fi
22713   elif test x$gcc_cv_as != x; then
22714     $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22715     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22716   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22717   (eval $ac_try) 2>&5
22718   ac_status=$?
22719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22720   test $ac_status = 0; }; }
22721     then
22722         gcc_cv_as_shf_merge=yes
22723     else
22724       echo "configure: failed program was" >&5
22725       cat conftest.s >&5
22726     fi
22727     rm -f conftest.o conftest.s
22728   fi
22729 fi
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22731 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22732
22733 if test $gcc_cv_as_shf_merge = no; then
22734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22735 $as_echo_n "checking assembler for section merging support... " >&6; }
22736 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22737   $as_echo_n "(cached) " >&6
22738 else
22739   gcc_cv_as_shf_merge=no
22740     if test $in_tree_gas = yes; then
22741     if test $in_tree_gas_is_elf = yes \
22742   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22743   then gcc_cv_as_shf_merge=yes
22744 fi
22745   elif test x$gcc_cv_as != x; then
22746     $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22747     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22748   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22749   (eval $ac_try) 2>&5
22750   ac_status=$?
22751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22752   test $ac_status = 0; }; }
22753     then
22754         gcc_cv_as_shf_merge=yes
22755     else
22756       echo "configure: failed program was" >&5
22757       cat conftest.s >&5
22758     fi
22759     rm -f conftest.o conftest.s
22760   fi
22761 fi
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22763 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22764
22765 fi
22766
22767 cat >>confdefs.h <<_ACEOF
22768 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22769 _ACEOF
22770
22771
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22773 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22774 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22775   $as_echo_n "(cached) " >&6
22776 else
22777   gcc_cv_as_comdat_group=no
22778     if test $in_tree_gas = yes; then
22779     if test $in_tree_gas_is_elf = yes \
22780   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22781   then gcc_cv_as_comdat_group=yes
22782 fi
22783   elif test x$gcc_cv_as != x; then
22784     $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22785     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22786   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22787   (eval $ac_try) 2>&5
22788   ac_status=$?
22789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22790   test $ac_status = 0; }; }
22791     then
22792         gcc_cv_as_comdat_group=yes
22793     else
22794       echo "configure: failed program was" >&5
22795       cat conftest.s >&5
22796     fi
22797     rm -f conftest.o conftest.s
22798   fi
22799 fi
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22801 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22802
22803 if test $gcc_cv_as_comdat_group = yes; then
22804   gcc_cv_as_comdat_group_percent=no
22805   gcc_cv_as_comdat_group_group=no
22806 else
22807  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22808 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22809 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22810   $as_echo_n "(cached) " >&6
22811 else
22812   gcc_cv_as_comdat_group_percent=no
22813     if test $in_tree_gas = yes; then
22814     if test $in_tree_gas_is_elf = yes \
22815   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22816   then gcc_cv_as_comdat_group_percent=yes
22817 fi
22818   elif test x$gcc_cv_as != x; then
22819     $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22820     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22821   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22822   (eval $ac_try) 2>&5
22823   ac_status=$?
22824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22825   test $ac_status = 0; }; }
22826     then
22827         gcc_cv_as_comdat_group_percent=yes
22828     else
22829       echo "configure: failed program was" >&5
22830       cat conftest.s >&5
22831     fi
22832     rm -f conftest.o conftest.s
22833   fi
22834 fi
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22836 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22837
22838  if test $gcc_cv_as_comdat_group_percent = yes; then
22839    gcc_cv_as_comdat_group_group=no
22840  else
22841    case "${target}" in
22842      # Sun as uses a completely different syntax.
22843      *-*-solaris2*)
22844        case "${target}" in
22845          sparc*-*-solaris2*)
22846            conftest_s='
22847                .group foo,".text%foo",#comdat
22848                .section ".text%foo", #alloc,#execinstr,#progbits
22849                .globl foo
22850              foo:
22851              '
22852            ;;
22853          i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22854            conftest_s='
22855                .group foo,.text%foo,#comdat
22856                .section .text%foo, "ax", @progbits
22857                .globl  foo
22858              foo:
22859              '
22860            ;;
22861        esac
22862        { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22863 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22864 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22865   $as_echo_n "(cached) " >&6
22866 else
22867   gcc_cv_as_comdat_group_group=no
22868   if test x$gcc_cv_as != x; then
22869     $as_echo "$conftest_s" > conftest.s
22870     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22871   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22872   (eval $ac_try) 2>&5
22873   ac_status=$?
22874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22875   test $ac_status = 0; }; }
22876     then
22877         gcc_cv_as_comdat_group_group=yes
22878     else
22879       echo "configure: failed program was" >&5
22880       cat conftest.s >&5
22881     fi
22882     rm -f conftest.o conftest.s
22883   fi
22884 fi
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22886 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22887
22888        ;;
22889    esac
22890  fi
22891 fi
22892 if test x"$ld_is_gold" = xyes; then
22893   comdat_group=yes
22894 elif test $in_tree_ld = yes ; then
22895   comdat_group=no
22896   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 \
22897      && test $in_tree_ld_is_elf = yes; then
22898      comdat_group=yes
22899   fi
22900 elif echo "$ld_ver" | grep GNU > /dev/null; then
22901   comdat_group=yes
22902   if test 0"$ld_date" -lt 20050308; then
22903     if test -n "$ld_date"; then
22904       # If there was date string, but was earlier than 2005-03-08, fail
22905       comdat_group=no
22906     elif test "$ld_vers_major" -lt 2; then
22907       comdat_group=no
22908     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22909       comdat_group=no
22910     fi
22911   fi
22912 else
22913   case "${target}" in
22914     *-*-solaris2.1[1-9]*)
22915       comdat_group=no
22916       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22917       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22918       # version 1.688.
22919       #
22920       # If using Sun as for COMDAT group as emitted by GCC, one needs at
22921       # least ld version 1.2267.
22922       if test "$ld_vers_major" -gt 1; then
22923         comdat_group=yes
22924       elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22925         comdat_group=yes
22926       elif test "$ld_vers_minor" -ge 2267; then
22927         comdat_group=yes
22928       fi
22929       ;;
22930     *)
22931       # Assume linkers other than GNU ld don't support COMDAT group.
22932       comdat_group=no
22933       ;;
22934   esac
22935 fi
22936 # Allow overriding the automatic COMDAT group tests above.
22937 # Check whether --enable-comdat was given.
22938 if test "${enable_comdat+set}" = set; then :
22939   enableval=$enable_comdat; comdat_group="$enable_comdat"
22940 fi
22941
22942 if test $comdat_group = no; then
22943   gcc_cv_as_comdat_group=no
22944   gcc_cv_as_comdat_group_percent=no
22945   gcc_cv_as_comdat_group_group=no
22946 fi
22947
22948 cat >>confdefs.h <<_ACEOF
22949 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22950     || test $gcc_cv_as_comdat_group_percent = yes \
22951     || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22952 _ACEOF
22953
22954
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22956 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22957 if test "${gcc_cv_as_discriminator+set}" = set; then :
22958   $as_echo_n "(cached) " >&6
22959 else
22960   gcc_cv_as_discriminator=no
22961     if test $in_tree_gas = yes; then
22962     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22963   then gcc_cv_as_discriminator=yes
22964 fi
22965   elif test x$gcc_cv_as != x; then
22966     $as_echo '  .text
22967         .file 1 "conf.c"
22968         .loc 1 1 0 discriminator 1' > conftest.s
22969     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22970   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22971   (eval $ac_try) 2>&5
22972   ac_status=$?
22973   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22974   test $ac_status = 0; }; }
22975     then
22976         gcc_cv_as_discriminator=yes
22977     else
22978       echo "configure: failed program was" >&5
22979       cat conftest.s >&5
22980     fi
22981     rm -f conftest.o conftest.s
22982   fi
22983 fi
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22985 $as_echo "$gcc_cv_as_discriminator" >&6; }
22986 if test $gcc_cv_as_discriminator = yes; then
22987
22988 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22989
22990 fi
22991
22992 # Thread-local storage - the check is heavily parameterized.
22993 conftest_s=
22994 tls_first_major=
22995 tls_first_minor=
22996 tls_as_opt=
22997 case "$target" in
22998   alpha*-*-*)
22999     conftest_s='
23000         .section ".tdata","awT",@progbits
23001 foo:    .long   25
23002         .text
23003         ldq     $27,__tls_get_addr($29)         !literal!1
23004         lda     $16,foo($29)                    !tlsgd!1
23005         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
23006         ldq     $27,__tls_get_addr($29)         !literal!2
23007         lda     $16,foo($29)                    !tlsldm!2
23008         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
23009         ldq     $1,foo($29)                     !gotdtprel
23010         ldah    $2,foo($29)                     !dtprelhi
23011         lda     $3,foo($2)                      !dtprello
23012         lda     $4,foo($29)                     !dtprel
23013         ldq     $1,foo($29)                     !gottprel
23014         ldah    $2,foo($29)                     !tprelhi
23015         lda     $3,foo($2)                      !tprello
23016         lda     $4,foo($29)                     !tprel'
23017         tls_first_major=2
23018         tls_first_minor=13
23019         tls_as_opt=--fatal-warnings
23020         ;;
23021   cris-*-*|crisv32-*-*)
23022     conftest_s='
23023         .section ".tdata","awT",@progbits
23024 x:      .long   25
23025         .text
23026         move.d x:IE,$r10
23027         nop'
23028         tls_first_major=2
23029         tls_first_minor=20
23030         tls_as_opt=--fatal-warnings
23031         ;;
23032   frv*-*-*)
23033     conftest_s='
23034         .section ".tdata","awT",@progbits
23035 x:      .long   25
23036         .text
23037         call    #gettlsoff(x)'
23038         tls_first_major=2
23039         tls_first_minor=14
23040         ;;
23041   hppa*-*-linux*)
23042     conftest_s='
23043 t1:     .reg    %r20
23044 t2:     .reg    %r21
23045 gp:     .reg    %r19
23046         .section ".tdata","awT",@progbits
23047 foo:    .long   25
23048         .text
23049         .align  4
23050         addil LT%foo-$tls_gdidx$,gp
23051         ldo RT%foo-$tls_gdidx$(%r1),%arg0
23052         b __tls_get_addr
23053         nop
23054         addil LT%foo-$tls_ldidx$,gp
23055         b __tls_get_addr
23056         ldo RT%foo-$tls_ldidx$(%r1),%arg0
23057         addil LR%foo-$tls_dtpoff$,%ret0
23058         ldo RR%foo-$tls_dtpoff$(%r1),%t1
23059         mfctl %cr27,%t1
23060         addil LT%foo-$tls_ieoff$,gp
23061         ldw RT%foo-$tls_ieoff$(%r1),%t2
23062         add %t1,%t2,%t3
23063         mfctl %cr27,%t1
23064         addil LR%foo-$tls_leoff$,%t1
23065         ldo RR%foo-$tls_leoff$(%r1),%t2'
23066         tls_first_major=2
23067         tls_first_minor=15
23068         tls_as_opt=--fatal-warnings
23069         ;;
23070   arm*-*-*)
23071     conftest_s='
23072         .section ".tdata","awT",%progbits
23073 foo:    .long   25
23074         .text
23075 .word foo(gottpoff)
23076 .word foo(tpoff)
23077 .word foo(tlsgd)
23078 .word foo(tlsldm)
23079 .word foo(tlsldo)'
23080         tls_first_major=2
23081         tls_first_minor=17
23082         ;;
23083   i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
23084     case "$target" in
23085       i[34567]86-*-solaris2.*)
23086         on_solaris=yes
23087         tga_func=___tls_get_addr
23088         ;;
23089       x86_64-*-solaris2.1[0-9]*)
23090         on_solaris=yes
23091         tga_func=__tls_get_addr
23092         ;;
23093       *)
23094         on_solaris=no
23095         ;;
23096     esac
23097     if test x$on_solaris = xyes && test x$gas_flag = xno; then
23098       conftest_s='
23099         .section .tdata,"awt",@progbits'
23100       tls_first_major=0
23101       tls_first_minor=0
23102
23103 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23104
23105     else
23106       conftest_s='
23107         .section ".tdata","awT",@progbits'
23108       tls_first_major=2
23109       tls_first_minor=14
23110       tls_as_opt="--fatal-warnings"
23111     fi
23112     conftest_s="$conftest_s
23113 foo:    .long   25
23114         .text
23115         movl    %gs:0, %eax
23116         leal    foo@tlsgd(,%ebx,1), %eax
23117         leal    foo@tlsldm(%ebx), %eax
23118         leal    foo@dtpoff(%eax), %edx
23119         movl    foo@gottpoff(%ebx), %eax
23120         subl    foo@gottpoff(%ebx), %eax
23121         addl    foo@gotntpoff(%ebx), %eax
23122         movl    foo@indntpoff, %eax
23123         movl    \$foo@tpoff, %eax
23124         subl    \$foo@tpoff, %eax
23125         leal    foo@ntpoff(%ecx), %eax"
23126     ;;
23127   x86_64-*-*)
23128     conftest_s='
23129         .section ".tdata","awT",@progbits
23130 foo:    .long   25
23131         .text
23132         movq    %fs:0, %rax
23133         leaq    foo@TLSGD(%rip), %rdi
23134         leaq    foo@TLSLD(%rip), %rdi
23135         leaq    foo@DTPOFF(%rax), %rdx
23136         movq    foo@GOTTPOFF(%rip), %rax
23137         movq    $foo@TPOFF, %rax'
23138         tls_first_major=2
23139         tls_first_minor=14
23140         tls_as_opt=--fatal-warnings
23141         ;;
23142   ia64-*-*)
23143     conftest_s='
23144         .section ".tdata","awT",@progbits
23145 foo:    data8   25
23146         .text
23147         addl    r16 = @ltoff(@dtpmod(foo#)), gp
23148         addl    r17 = @ltoff(@dtprel(foo#)), gp
23149         addl    r18 = @ltoff(@tprel(foo#)), gp
23150         addl    r19 = @dtprel(foo#), gp
23151         adds    r21 = @dtprel(foo#), r13
23152         movl    r23 = @dtprel(foo#)
23153         addl    r20 = @tprel(foo#), gp
23154         adds    r22 = @tprel(foo#), r13
23155         movl    r24 = @tprel(foo#)'
23156         tls_first_major=2
23157         tls_first_minor=13
23158         tls_as_opt=--fatal-warnings
23159         ;;
23160   mips*-*-*)
23161     conftest_s='
23162         .section .tdata,"awT",@progbits
23163 x:
23164         .word 2
23165         .text
23166         addiu $4, $28, %tlsgd(x)
23167         addiu $4, $28, %tlsldm(x)
23168         lui $4, %dtprel_hi(x)
23169         addiu $4, $4, %dtprel_lo(x)
23170         lw $4, %gottprel(x)($28)
23171         lui $4, %tprel_hi(x)
23172         addiu $4, $4, %tprel_lo(x)'
23173         tls_first_major=2
23174         tls_first_minor=16
23175         tls_as_opt='-32 --fatal-warnings'
23176         ;;
23177   m68k-*-*)
23178     conftest_s='
23179         .section .tdata,"awT",@progbits
23180 x:
23181         .word 2
23182         .text
23183 foo:
23184         move.l x@TLSGD(%a5),%a0
23185         move.l x@TLSLDM(%a5),%a0
23186         move.l x@TLSLDO(%a5),%a0
23187         move.l x@TLSIE(%a5),%a0
23188         move.l x@TLSLE(%a5),%a0'
23189         tls_first_major=2
23190         tls_first_minor=19
23191         tls_as_opt='--fatal-warnings'
23192         ;;
23193   powerpc-*-*)
23194     conftest_s='
23195         .section ".tdata","awT",@progbits
23196         .align 2
23197 ld0:    .space 4
23198 ld1:    .space 4
23199 x1:     .space 4
23200 x2:     .space 4
23201 x3:     .space 4
23202         .text
23203         addi 3,31,ld0@got@tlsgd
23204         bl __tls_get_addr
23205         addi 3,31,x1@got@tlsld
23206         bl __tls_get_addr
23207         addi 9,3,x1@dtprel
23208         addis 9,3,x2@dtprel@ha
23209         addi 9,9,x2@dtprel@l
23210         lwz 9,x3@got@tprel(31)
23211         add 9,9,x@tls
23212         addi 9,2,x1@tprel
23213         addis 9,2,x2@tprel@ha
23214         addi 9,9,x2@tprel@l'
23215         tls_first_major=2
23216         tls_first_minor=14
23217         tls_as_opt="-a32 --fatal-warnings"
23218         ;;
23219   powerpc64-*-*)
23220     conftest_s='
23221         .section ".tdata","awT",@progbits
23222         .align 3
23223 ld0:    .space 8
23224 ld1:    .space 8
23225 x1:     .space 8
23226 x2:     .space 8
23227 x3:     .space 8
23228         .text
23229         addi 3,2,ld0@got@tlsgd
23230         bl .__tls_get_addr
23231         nop
23232         addi 3,2,ld1@toc
23233         bl .__tls_get_addr
23234         nop
23235         addi 3,2,x1@got@tlsld
23236         bl .__tls_get_addr
23237         nop
23238         addi 9,3,x1@dtprel
23239         bl .__tls_get_addr
23240         nop
23241         addis 9,3,x2@dtprel@ha
23242         addi 9,9,x2@dtprel@l
23243         bl .__tls_get_addr
23244         nop
23245         ld 9,x3@got@dtprel(2)
23246         add 9,9,3
23247         bl .__tls_get_addr
23248         nop'
23249         tls_first_major=2
23250         tls_first_minor=14
23251         tls_as_opt="-a64 --fatal-warnings"
23252         ;;
23253   s390-*-*)
23254     conftest_s='
23255         .section ".tdata","awT",@progbits
23256 foo:    .long   25
23257         .text
23258         .long   foo@TLSGD
23259         .long   foo@TLSLDM
23260         .long   foo@DTPOFF
23261         .long   foo@NTPOFF
23262         .long   foo@GOTNTPOFF
23263         .long   foo@INDNTPOFF
23264         l       %r1,foo@GOTNTPOFF(%r12)
23265         l       %r1,0(%r1):tls_load:foo
23266         bas     %r14,0(%r1,%r13):tls_gdcall:foo
23267         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
23268         tls_first_major=2
23269         tls_first_minor=14
23270         tls_as_opt="-m31 --fatal-warnings"
23271         ;;
23272   s390x-*-*)
23273     conftest_s='
23274         .section ".tdata","awT",@progbits
23275 foo:    .long   25
23276         .text
23277         .quad   foo@TLSGD
23278         .quad   foo@TLSLDM
23279         .quad   foo@DTPOFF
23280         .quad   foo@NTPOFF
23281         .quad   foo@GOTNTPOFF
23282         lg      %r1,foo@GOTNTPOFF(%r12)
23283         larl    %r1,foo@INDNTPOFF
23284         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
23285         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23286         tls_first_major=2
23287         tls_first_minor=14
23288         tls_as_opt="-m64 -Aesame --fatal-warnings"
23289         ;;
23290   sh-*-* | sh[34]-*-*)
23291     conftest_s='
23292         .section ".tdata","awT",@progbits
23293 foo:    .long   25
23294         .text
23295         .long   foo@TLSGD
23296         .long   foo@TLSLDM
23297         .long   foo@DTPOFF
23298         .long   foo@GOTTPOFF
23299         .long   foo@TPOFF'
23300         tls_first_major=2
23301         tls_first_minor=13
23302         tls_as_opt=--fatal-warnings
23303         ;;
23304   sparc*-*-*)
23305     case "$target" in
23306       sparc*-sun-solaris2.*)
23307         on_solaris=yes
23308         tga_func=__tls_get_addr
23309         ;;
23310       *)
23311         on_solaris=no
23312         ;;
23313     esac
23314     if test x$on_solaris = xyes && test x$gas_flag = xno; then
23315       conftest_s='
23316         .section ".tdata",#alloc,#write,#tls'
23317         tls_first_major=0
23318         tls_first_minor=0
23319     else
23320       conftest_s='
23321         .section ".tdata","awT",@progbits'
23322         tls_first_major=2
23323         tls_first_minor=14
23324         tls_as_opt="-32 --fatal-warnings"
23325     fi
23326     conftest_s="$conftest_s
23327 foo:    .long   25
23328         .text
23329         sethi   %tgd_hi22(foo), %o0
23330         add     %o0, %tgd_lo10(foo), %o1
23331         add     %l7, %o1, %o0, %tgd_add(foo)
23332         call    __tls_get_addr, %tgd_call(foo)
23333         sethi   %tldm_hi22(foo), %l1
23334         add     %l1, %tldm_lo10(foo), %l2
23335         add     %l7, %l2, %o0, %tldm_add(foo)
23336         call    __tls_get_addr, %tldm_call(foo)
23337         sethi   %tldo_hix22(foo), %l3
23338         xor     %l3, %tldo_lox10(foo), %l4
23339         add     %o0, %l4, %l5, %tldo_add(foo)
23340         sethi   %tie_hi22(foo), %o3
23341         add     %o3, %tie_lo10(foo), %o3
23342         ld      [%l7 + %o3], %o2, %tie_ld(foo)
23343         add     %g7, %o2, %o4, %tie_add(foo)
23344         sethi   %tle_hix22(foo), %l1
23345         xor     %l1, %tle_lox10(foo), %o5
23346         ld      [%g7 + %o5], %o1"
23347         ;;
23348   xtensa*-*-*)
23349     conftest_s='
23350         .section ".tdata","awT",@progbits
23351 foo:    .long   25
23352         .text
23353         movi    a8, foo@TLSFUNC
23354         movi    a10, foo@TLSARG
23355         callx8.tls a8, foo@TLSCALL'
23356         tls_first_major=2
23357         tls_first_minor=19
23358         ;;
23359 esac
23360 set_have_as_tls=no
23361 if test "x$enable_tls" = xno ; then
23362   : # TLS explicitly disabled.
23363 elif test "x$enable_tls" = xyes ; then
23364   set_have_as_tls=yes # TLS explicitly enabled.
23365 elif test -z "$tls_first_major"; then
23366   : # If we don't have a check, assume no support.
23367 else
23368   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23369 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23370 if test "${gcc_cv_as_tls+set}" = set; then :
23371   $as_echo_n "(cached) " >&6
23372 else
23373   gcc_cv_as_tls=no
23374     if test $in_tree_gas = yes; then
23375     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23376   then gcc_cv_as_tls=yes
23377 fi
23378   elif test x$gcc_cv_as != x; then
23379     $as_echo "$conftest_s" > conftest.s
23380     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23381   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23382   (eval $ac_try) 2>&5
23383   ac_status=$?
23384   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23385   test $ac_status = 0; }; }
23386     then
23387         gcc_cv_as_tls=yes
23388     else
23389       echo "configure: failed program was" >&5
23390       cat conftest.s >&5
23391     fi
23392     rm -f conftest.o conftest.s
23393   fi
23394 fi
23395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23396 $as_echo "$gcc_cv_as_tls" >&6; }
23397 if test $gcc_cv_as_tls = yes; then
23398   set_have_as_tls=yes
23399 fi
23400 fi
23401 case "$target" in
23402   *-*-irix6*)
23403     # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23404     # with TLS support are in use, native TLS cannot work.
23405     set_have_as_tls=no
23406     ;;
23407   *-*-osf*)
23408     # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23409     # gld with TLS support are in use, native TLS cannot work.
23410     set_have_as_tls=no
23411     ;;
23412   # TLS was introduced in the Solaris 9 FCS release and backported to
23413   # Solaris 8 patches.  Support for GNU-style TLS on x86 was only
23414   # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23415   # ld and GCC don't support any longer.
23416   *-*-solaris2.*)
23417     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23418 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23419     ld_tls_support=no
23420     # Check ld and ld.so.1 TLS support.
23421     if echo "$ld_ver" | grep GNU > /dev/null; then
23422       # Assume all interesting versions of GNU ld have TLS support.
23423       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23424       ld_tls_support=yes
23425     else
23426       case "$target" in
23427         # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23428         i?86-*-solaris2.8)
23429           min_tls_ld_vers_minor=280
23430           ;;
23431         # Solaris 8/SPARC ld has TLS support since version 1.272.
23432         sparc*-*-solaris2.8)
23433           min_tls_ld_vers_minor=272
23434           ;;
23435         # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23436         i?86-*-solaris2.9)
23437           min_tls_ld_vers_minor=374
23438           ;;
23439         # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23440         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23441           min_tls_ld_vers_minor=343
23442           ;;
23443       esac
23444       if test "$ld_vers_major" -gt 1 || \
23445         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23446         ld_tls_support=yes
23447       else
23448         set_have_as_tls=no
23449       fi
23450     fi
23451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23452 $as_echo "$ld_tls_support" >&6; }
23453
23454     save_LIBS="$LIBS"
23455     save_LDFLAGS="$LDFLAGS"
23456     LIBS=
23457     LDFLAGS=
23458
23459     { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23460 $as_echo_n "checking alternate thread library... " >&6; }
23461     case "$target" in
23462       # TLS support was backported to Solaris 8 patches, but only lives in
23463       # the alternate thread library which became the default in Solaris 9.
23464       # We want to always use that, irrespective of TLS support.
23465       *-*-solaris2.8)
23466         # Take multilib subdir into account.  There's no spec to handle
23467         # this.  The 64 symlink exists since Solaris 8.
23468         lwp_dir=/usr/lib/lwp
23469         lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23470         LDFLAGS="-L$lwp_dir -R$lwp_dir"
23471         ;;
23472       *-*-solaris2*)
23473         lwp_dir="none"
23474         lwp_spec=""
23475         ;;
23476     esac
23477     # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23478
23479 cat >>confdefs.h <<_ACEOF
23480 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23481 _ACEOF
23482
23483     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23484 $as_echo "$lwp_dir" >&6; }
23485
23486     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23487 $as_echo_n "checking library containing $tga_func... " >&6; }
23488     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23489     # (32-bit x86) only lived in libthread, so check for that.  Keep
23490     # set_have_as_tls if found, disable if not.
23491     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23493 $as_echo_n "checking for library containing $tga_func... " >&6; }
23494 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23495   $as_echo_n "(cached) " >&6
23496 else
23497   ac_func_search_save_LIBS=$LIBS
23498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23499 /* end confdefs.h.  */
23500
23501 /* Override any GCC internal prototype to avoid an error.
23502    Use char because int might match the return type of a GCC
23503    builtin and then its argument prototype would still apply.  */
23504 #ifdef __cplusplus
23505 extern "C"
23506 #endif
23507 char $tga_func ();
23508 int
23509 main ()
23510 {
23511 return $tga_func ();
23512   ;
23513   return 0;
23514 }
23515 _ACEOF
23516 for ac_lib in '' thread; do
23517   if test -z "$ac_lib"; then
23518     ac_res="none required"
23519   else
23520     ac_res=-l$ac_lib
23521     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23522   fi
23523   if ac_fn_c_try_link "$LINENO"; then :
23524   eval "$as_ac_Search=\$ac_res"
23525 fi
23526 rm -f core conftest.err conftest.$ac_objext \
23527     conftest$ac_exeext
23528   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23529   break
23530 fi
23531 done
23532 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23533
23534 else
23535   eval "$as_ac_Search=no"
23536 fi
23537 rm conftest.$ac_ext
23538 LIBS=$ac_func_search_save_LIBS
23539 fi
23540 eval ac_res=\$$as_ac_Search
23541                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23542 $as_echo "$ac_res" >&6; }
23543 eval ac_res=\$$as_ac_Search
23544 if test "$ac_res" != no; then :
23545   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23546
23547 else
23548   set_have_as_tls=no
23549 fi
23550
23551     # Clear LIBS if we cannot support TLS.
23552     if test $set_have_as_tls = no; then
23553       LIBS=
23554     fi
23555     # Always define LIB_TLS_SPEC, even without TLS support.
23556
23557 cat >>confdefs.h <<_ACEOF
23558 #define LIB_TLS_SPEC "$LIBS"
23559 _ACEOF
23560
23561     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23562 $as_echo "$LIBS" >&6; }
23563
23564     LIBS="$save_LIBS"
23565     LDFLAGS="$save_LDFLAGS"
23566     ;;
23567 esac
23568 if test $set_have_as_tls = yes ; then
23569
23570 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23571
23572 fi
23573
23574 # Target-specific assembler checks.
23575
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23577 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23578 gcc_cv_ld_static_dynamic=no
23579 gcc_cv_ld_static_option='-Bstatic'
23580 gcc_cv_ld_dynamic_option='-Bdynamic'
23581 if test $in_tree_ld = yes ; then
23582   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
23583     gcc_cv_ld_static_dynamic=yes
23584   fi
23585 elif test x$gcc_cv_ld != x; then
23586   # Check if linker supports -Bstatic/-Bdynamic option
23587   if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23588      && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23589       gcc_cv_ld_static_dynamic=yes
23590   else
23591     case "$target" in
23592       # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23593       alpha*-dec-osf*)
23594         gcc_cv_ld_static_dynamic=yes
23595         gcc_cv_ld_static_option="-noso"
23596         gcc_cv_ld_dynamic_option="-so_archive"
23597         ;;
23598       # HP-UX ld uses -a flags to select between shared and archive.
23599       *-*-hpux*)
23600         if test x"$gnu_ld" = xno; then
23601           gcc_cv_ld_static_dynamic=yes
23602           gcc_cv_ld_static_option="-aarchive_shared"
23603           gcc_cv_ld_dynamic_option="-adefault"
23604         fi
23605         ;;
23606       # IRIX 6 ld supports -Bstatic/-Bdynamic.
23607       mips-sgi-irix6*)
23608         gcc_cv_ld_static_dynamic=yes
23609         ;;
23610       # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23611       *-*-solaris2*)
23612         gcc_cv_ld_static_dynamic=yes
23613         ;;
23614     esac
23615   fi
23616 fi
23617 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23618
23619 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23620
23621
23622 cat >>confdefs.h <<_ACEOF
23623 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23624 _ACEOF
23625
23626
23627 cat >>confdefs.h <<_ACEOF
23628 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23629 _ACEOF
23630
23631 fi
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23633 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23634
23635 if test x"$demangler_in_ld" = xyes; then
23636   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23637 $as_echo_n "checking linker --demangle support... " >&6; }
23638   gcc_cv_ld_demangle=no
23639   if test $in_tree_ld = yes; then
23640     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 \
23641       gcc_cv_ld_demangle=yes
23642     fi
23643   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23644     # Check if the GNU linker supports --demangle option
23645     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23646       gcc_cv_ld_demangle=yes
23647     fi
23648   fi
23649   if test x"$gcc_cv_ld_demangle" = xyes; then
23650
23651 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23652
23653   fi
23654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23655 $as_echo "$gcc_cv_ld_demangle" >&6; }
23656 fi
23657
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23659 $as_echo_n "checking linker plugin support... " >&6; }
23660 gcc_cv_lto_plugin=0
23661 if test -f liblto_plugin.la; then
23662   save_ld_ver="$ld_ver"
23663   save_ld_vers_major="$ld_vers_major"
23664   save_ld_vers_minor="$ld_vers_minor"
23665   save_ld_is_gold="$ld_is_gold"
23666
23667   ld_is_gold=no
23668
23669   if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23670     ld_ver="GNU ld"
23671     # FIXME: ld_is_gold?
23672     ld_vers_major="$gcc_cv_gld_major_version"
23673     ld_vers_minor="$gcc_cv_gld_minor_version"
23674   else
23675     # Determine plugin linker version.
23676     # FIXME: Partial duplicate from above, generalize.
23677     ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23678     if echo "$ld_ver" | grep GNU > /dev/null; then
23679       if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23680         ld_is_gold=yes
23681         ld_vers=`echo $ld_ver | sed -n \
23682             -e 's,^[^)]*[        ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23683       else
23684         ld_vers=`echo $ld_ver | sed -n \
23685             -e 's,^.*[   ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23686       fi
23687       ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23688       ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23689     fi
23690   fi
23691
23692   # Determine plugin support.
23693   if echo "$ld_ver" | grep GNU > /dev/null; then
23694     # Require GNU ld or gold 2.21+ for plugin support by default.
23695     if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23696       gcc_cv_lto_plugin=2
23697     # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23698     elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23699       gcc_cv_lto_plugin=1
23700     fi
23701   fi
23702
23703   ld_ver="$save_ld_ver"
23704   ld_vers_major="$save_ld_vers_major"
23705   ld_vers_minor="$save_ld_vers_minor"
23706   ld_is_gold="$save_ld_is_gold"
23707 fi
23708
23709 cat >>confdefs.h <<_ACEOF
23710 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23711 _ACEOF
23712
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23714 $as_echo "$gcc_cv_lto_plugin" >&6; }
23715
23716 case "$target" in
23717   # All TARGET_ABI_OSF targets.
23718   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23719     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23720 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23721 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23722   $as_echo_n "(cached) " >&6
23723 else
23724   gcc_cv_as_alpha_explicit_relocs=no
23725     if test $in_tree_gas = yes; then
23726     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23727   then gcc_cv_as_alpha_explicit_relocs=yes
23728 fi
23729   elif test x$gcc_cv_as != x; then
23730     $as_echo '  .set nomacro
23731         .text
23732         extbl   $3, $2, $3      !lituse_bytoff!1
23733         ldq     $2, a($29)      !literal!1
23734         ldq     $4, b($29)      !literal!2
23735         ldq_u   $3, 0($2)       !lituse_base!1
23736         ldq     $27, f($29)     !literal!5
23737         jsr     $26, ($27), f   !lituse_jsr!5
23738         ldah    $29, 0($26)     !gpdisp!3
23739         lda     $0, c($29)      !gprel
23740         ldah    $1, d($29)      !gprelhigh
23741         lda     $1, d($1)       !gprellow
23742         lda     $29, 0($29)     !gpdisp!3' > conftest.s
23743     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23744   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23745   (eval $ac_try) 2>&5
23746   ac_status=$?
23747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23748   test $ac_status = 0; }; }
23749     then
23750         gcc_cv_as_alpha_explicit_relocs=yes
23751     else
23752       echo "configure: failed program was" >&5
23753       cat conftest.s >&5
23754     fi
23755     rm -f conftest.o conftest.s
23756   fi
23757 fi
23758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23759 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23760 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23761
23762 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23763
23764 fi
23765     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23766 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23767 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23768   $as_echo_n "(cached) " >&6
23769 else
23770   gcc_cv_as_alpha_jsrdirect_relocs=no
23771     if test $in_tree_gas = yes; then
23772     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23773   then gcc_cv_as_alpha_jsrdirect_relocs=yes
23774 fi
23775   elif test x$gcc_cv_as != x; then
23776     $as_echo '  .set nomacro
23777         .text
23778         ldq     $27, a($29)     !literal!1
23779         jsr     $26, ($27), a   !lituse_jsrdirect!1' > 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_alpha_jsrdirect_relocs=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_alpha_jsrdirect_relocs" >&5
23796 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23797 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23798
23799 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23800
23801 fi
23802     ;;
23803
23804   cris-*-*)
23805     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23806 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23807 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23808   $as_echo_n "(cached) " >&6
23809 else
23810   gcc_cv_as_cris_no_mul_bug=no
23811     if test $in_tree_gas = yes; then
23812     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23813   then gcc_cv_as_cris_no_mul_bug=yes
23814 fi
23815   elif test x$gcc_cv_as != x; then
23816     $as_echo '.text' > conftest.s
23817     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23818   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23819   (eval $ac_try) 2>&5
23820   ac_status=$?
23821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23822   test $ac_status = 0; }; }
23823     then
23824         gcc_cv_as_cris_no_mul_bug=yes
23825     else
23826       echo "configure: failed program was" >&5
23827       cat conftest.s >&5
23828     fi
23829     rm -f conftest.o conftest.s
23830   fi
23831 fi
23832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23833 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23834 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23835
23836 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23837
23838 fi
23839     ;;
23840
23841   sparc*-*-*)
23842     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23843 $as_echo_n "checking assembler for .register... " >&6; }
23844 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23845   $as_echo_n "(cached) " >&6
23846 else
23847   gcc_cv_as_sparc_register_op=no
23848   if test x$gcc_cv_as != x; then
23849     $as_echo '.register %g2, #scratch' > conftest.s
23850     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23851   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23852   (eval $ac_try) 2>&5
23853   ac_status=$?
23854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23855   test $ac_status = 0; }; }
23856     then
23857         gcc_cv_as_sparc_register_op=yes
23858     else
23859       echo "configure: failed program was" >&5
23860       cat conftest.s >&5
23861     fi
23862     rm -f conftest.o conftest.s
23863   fi
23864 fi
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23866 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23867 if test $gcc_cv_as_sparc_register_op = yes; then
23868
23869 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23870
23871 fi
23872
23873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23874 $as_echo_n "checking assembler for -relax option... " >&6; }
23875 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23876   $as_echo_n "(cached) " >&6
23877 else
23878   gcc_cv_as_sparc_relax=no
23879   if test x$gcc_cv_as != x; then
23880     $as_echo '.text' > conftest.s
23881     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23882   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23883   (eval $ac_try) 2>&5
23884   ac_status=$?
23885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23886   test $ac_status = 0; }; }
23887     then
23888         gcc_cv_as_sparc_relax=yes
23889     else
23890       echo "configure: failed program was" >&5
23891       cat conftest.s >&5
23892     fi
23893     rm -f conftest.o conftest.s
23894   fi
23895 fi
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23897 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23898 if test $gcc_cv_as_sparc_relax = yes; then
23899
23900 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23901
23902 fi
23903
23904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23905 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23906 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23907   $as_echo_n "(cached) " >&6
23908 else
23909   gcc_cv_as_sparc_gotdata_op=no
23910   if test x$gcc_cv_as != x; then
23911     $as_echo '.text
23912 .align 4
23913 foo:
23914         nop
23915 bar:
23916         sethi %gdop_hix22(foo), %g1
23917         xor    %g1, %gdop_lox10(foo), %g1
23918         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23919     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23920   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23921   (eval $ac_try) 2>&5
23922   ac_status=$?
23923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23924   test $ac_status = 0; }; }
23925     then
23926         if test x$gcc_cv_ld != x \
23927        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23928          if test x$gcc_cv_objdump != x; then
23929            if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23930               | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23931                gcc_cv_as_sparc_gotdata_op=no
23932            else
23933                gcc_cv_as_sparc_gotdata_op=yes
23934            fi
23935          fi
23936        fi
23937        rm -f conftest
23938     else
23939       echo "configure: failed program was" >&5
23940       cat conftest.s >&5
23941     fi
23942     rm -f conftest.o conftest.s
23943   fi
23944 fi
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23946 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23947 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23948
23949 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23950
23951 fi
23952
23953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23954 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23955 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23956   $as_echo_n "(cached) " >&6
23957 else
23958   gcc_cv_as_sparc_ua_pcrel=no
23959   if test x$gcc_cv_as != x; then
23960     $as_echo '.text
23961 foo:
23962         nop
23963 .data
23964 .align 4
23965 .byte 0
23966 .uaword %r_disp32(foo)' > conftest.s
23967     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23968   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23969   (eval $ac_try) 2>&5
23970   ac_status=$?
23971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23972   test $ac_status = 0; }; }
23973     then
23974         if test x$gcc_cv_ld != x \
23975        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23976          gcc_cv_as_sparc_ua_pcrel=yes
23977        fi
23978        rm -f conftest
23979     else
23980       echo "configure: failed program was" >&5
23981       cat conftest.s >&5
23982     fi
23983     rm -f conftest.o conftest.s
23984   fi
23985 fi
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23987 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23988 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23989
23990 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23991
23992
23993       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23994 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23995 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23996   $as_echo_n "(cached) " >&6
23997 else
23998   gcc_cv_as_sparc_ua_pcrel_hidden=no
23999   if test x$gcc_cv_as != x; then
24000     $as_echo '.data
24001 .align 4
24002 .byte 0x31
24003 .uaword %r_disp32(foo)
24004 .byte 0x32, 0x33, 0x34
24005 .global foo
24006 .hidden foo
24007 foo:
24008 .skip 4' > conftest.s
24009     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24010   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24011   (eval $ac_try) 2>&5
24012   ac_status=$?
24013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24014   test $ac_status = 0; }; }
24015     then
24016         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
24017          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
24018          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
24019             | grep ' 31000000 07323334' > /dev/null 2>&1; then
24020             if $gcc_cv_objdump -R conftest 2> /dev/null \
24021                | grep 'DISP32' > /dev/null 2>&1; then
24022                 :
24023             else
24024                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
24025             fi
24026          fi
24027          rm -f conftest
24028     else
24029       echo "configure: failed program was" >&5
24030       cat conftest.s >&5
24031     fi
24032     rm -f conftest.o conftest.s
24033   fi
24034 fi
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24036 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24037 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24038
24039 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24040
24041 fi
24042
24043 fi # unaligned pcrel relocs
24044
24045     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24046 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24047 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24048   $as_echo_n "(cached) " >&6
24049 else
24050   gcc_cv_as_sparc_offsetable_lo10=no
24051   if test x$gcc_cv_as != x; then
24052     $as_echo '.text
24053         or %g1, %lo(ab) + 12, %g1
24054         or %g1, %lo(ab + 12), %g1' > conftest.s
24055     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24056   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24057   (eval $ac_try) 2>&5
24058   ac_status=$?
24059   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24060   test $ac_status = 0; }; }
24061     then
24062         if test x$gcc_cv_objdump != x \
24063        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
24064           | grep ' 82106000 82106000' > /dev/null 2>&1; then
24065          gcc_cv_as_sparc_offsetable_lo10=yes
24066        fi
24067     else
24068       echo "configure: failed program was" >&5
24069       cat conftest.s >&5
24070     fi
24071     rm -f conftest.o conftest.s
24072   fi
24073 fi
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24075 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24076 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24077
24078 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24079
24080 fi
24081
24082     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24083 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24084 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24085   $as_echo_n "(cached) " >&6
24086 else
24087   gcc_cv_as_sparc_fmaf=no
24088   if test x$gcc_cv_as != x; then
24089     $as_echo '.text
24090        .register %g2, #scratch
24091        .register %g3, #scratch
24092        .align 4
24093        fmaddd %f0, %f2, %f4, %f6
24094        addxccc %g1, %g2, %g3
24095        fsrl32 %f2, %f4, %f8
24096        fnaddd %f10, %f12, %f14' > conftest.s
24097     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24098   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24099   (eval $ac_try) 2>&5
24100   ac_status=$?
24101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24102   test $ac_status = 0; }; }
24103     then
24104         gcc_cv_as_sparc_fmaf=yes
24105     else
24106       echo "configure: failed program was" >&5
24107       cat conftest.s >&5
24108     fi
24109     rm -f conftest.o conftest.s
24110   fi
24111 fi
24112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24113 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24114 if test $gcc_cv_as_sparc_fmaf = yes; then
24115
24116 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24117
24118 fi
24119     ;;
24120
24121   i[34567]86-*-* | x86_64-*-*)
24122     case $target_os in
24123       cygwin*)
24124         # Full C++ conformance when using a shared libstdc++-v3 requires some
24125         # support from the Cygwin DLL, which in more recent versions exports
24126         # wrappers to aid in interposing and redirecting operators new, delete,
24127         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
24128         # are configuring for a version of Cygwin that exports the wrappers.
24129         if test x$host = x$target; then
24130           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24131 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
24132   gcc_ac_cygwin_dll_wrappers=yes
24133 else
24134   gcc_ac_cygwin_dll_wrappers=no
24135 fi
24136
24137         else
24138           # Can't check presence of libc functions during cross-compile, so
24139           # we just have to assume we're building for an up-to-date target.
24140           gcc_ac_cygwin_dll_wrappers=yes
24141         fi
24142
24143 cat >>confdefs.h <<_ACEOF
24144 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24145 _ACEOF
24146
24147     esac
24148     case $target_os in
24149       cygwin* | pe | mingw32*)
24150         # Recent binutils allows the three-operand form of ".comm" on PE.  This
24151         # definition is used unconditionally to initialise the default state of
24152         # the target option variable that governs usage of the feature.
24153         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24154 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24155 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24156   $as_echo_n "(cached) " >&6
24157 else
24158   gcc_cv_as_comm_has_align=no
24159     if test $in_tree_gas = yes; then
24160     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24161   then gcc_cv_as_comm_has_align=yes
24162 fi
24163   elif test x$gcc_cv_as != x; then
24164     $as_echo '.comm foo,1,32' > conftest.s
24165     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24166   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24167   (eval $ac_try) 2>&5
24168   ac_status=$?
24169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24170   test $ac_status = 0; }; }
24171     then
24172         gcc_cv_as_comm_has_align=yes
24173     else
24174       echo "configure: failed program was" >&5
24175       cat conftest.s >&5
24176     fi
24177     rm -f conftest.o conftest.s
24178   fi
24179 fi
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24181 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24182
24183
24184 cat >>confdefs.h <<_ACEOF
24185 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24186 _ACEOF
24187
24188         # Used for DWARF 2 in PE
24189         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24190 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24191 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24192   $as_echo_n "(cached) " >&6
24193 else
24194   gcc_cv_as_ix86_pe_secrel32=no
24195     if test $in_tree_gas = yes; then
24196     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24197   then gcc_cv_as_ix86_pe_secrel32=yes
24198 fi
24199   elif test x$gcc_cv_as != x; then
24200     $as_echo '.text
24201 foo:    nop
24202 .data
24203         .secrel32 foo' > conftest.s
24204     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24205   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24206   (eval $ac_try) 2>&5
24207   ac_status=$?
24208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24209   test $ac_status = 0; }; }
24210     then
24211         if test x$gcc_cv_ld != x \
24212            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
24213              gcc_cv_as_ix86_pe_secrel32=yes
24214            fi
24215            rm -f conftest
24216     else
24217       echo "configure: failed program was" >&5
24218       cat conftest.s >&5
24219     fi
24220     rm -f conftest.o conftest.s
24221   fi
24222 fi
24223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24224 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24225 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24226
24227 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24228
24229 fi
24230         # Test if the assembler supports the extended form of the .section
24231         # directive that specifies section alignment.  LTO support uses this,
24232         # but normally only after installation, so we warn but don't fail the
24233         # configure if LTO is enabled but the assembler does not support it.
24234         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24235 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24236 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24237   $as_echo_n "(cached) " >&6
24238 else
24239   gcc_cv_as_section_has_align=no
24240     if test $in_tree_gas = yes; then
24241     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24242   then gcc_cv_as_section_has_align=yes
24243 fi
24244   elif test x$gcc_cv_as != x; then
24245     $as_echo '.section lto_test,"dr0"' > conftest.s
24246     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24247   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24248   (eval $ac_try) 2>&5
24249   ac_status=$?
24250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24251   test $ac_status = 0; }; }
24252     then
24253         gcc_cv_as_section_has_align=yes
24254     else
24255       echo "configure: failed program was" >&5
24256       cat conftest.s >&5
24257     fi
24258     rm -f conftest.o conftest.s
24259   fi
24260 fi
24261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24262 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24263
24264         if test x$gcc_cv_as_section_has_align != xyes; then
24265           case ",$enable_languages," in
24266             *,lto,*)
24267               { $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
24268 $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;}
24269               ;;
24270           esac
24271         fi
24272         # Test if the assembler supports the section flag 'e' for specifying
24273         # an excluded section.
24274         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24275 $as_echo_n "checking assembler for .section with e... " >&6; }
24276 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24277   $as_echo_n "(cached) " >&6
24278 else
24279   gcc_cv_as_section_has_e=no
24280     if test $in_tree_gas = yes; then
24281     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24282   then gcc_cv_as_section_has_e=yes
24283 fi
24284   elif test x$gcc_cv_as != x; then
24285     $as_echo '.section foo1,"e"
24286 .byte 0,0,0,0' > conftest.s
24287     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24288   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24289   (eval $ac_try) 2>&5
24290   ac_status=$?
24291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24292   test $ac_status = 0; }; }
24293     then
24294         gcc_cv_as_section_has_e=yes
24295     else
24296       echo "configure: failed program was" >&5
24297       cat conftest.s >&5
24298     fi
24299     rm -f conftest.o conftest.s
24300   fi
24301 fi
24302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24303 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24304
24305
24306 cat >>confdefs.h <<_ACEOF
24307 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24308 _ACEOF
24309
24310         ;;
24311     esac
24312
24313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24314 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24315 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24316   $as_echo_n "(cached) " >&6
24317 else
24318   gcc_cv_as_ix86_filds=no
24319   if test x$gcc_cv_as != x; then
24320     $as_echo 'filds mem; fists mem' > conftest.s
24321     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24322   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24323   (eval $ac_try) 2>&5
24324   ac_status=$?
24325   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24326   test $ac_status = 0; }; }
24327     then
24328         gcc_cv_as_ix86_filds=yes
24329     else
24330       echo "configure: failed program was" >&5
24331       cat conftest.s >&5
24332     fi
24333     rm -f conftest.o conftest.s
24334   fi
24335 fi
24336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24337 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24338 if test $gcc_cv_as_ix86_filds = yes; then
24339
24340 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24341
24342 fi
24343
24344     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24345 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24346 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24347   $as_echo_n "(cached) " >&6
24348 else
24349   gcc_cv_as_ix86_fildq=no
24350   if test x$gcc_cv_as != x; then
24351     $as_echo 'fildq mem; fistpq mem' > conftest.s
24352     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24353   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24354   (eval $ac_try) 2>&5
24355   ac_status=$?
24356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24357   test $ac_status = 0; }; }
24358     then
24359         gcc_cv_as_ix86_fildq=yes
24360     else
24361       echo "configure: failed program was" >&5
24362       cat conftest.s >&5
24363     fi
24364     rm -f conftest.o conftest.s
24365   fi
24366 fi
24367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24368 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24369 if test $gcc_cv_as_ix86_fildq = yes; then
24370
24371 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24372
24373 fi
24374
24375     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24376 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24377 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24378   $as_echo_n "(cached) " >&6
24379 else
24380   gcc_cv_as_ix86_cmov_sun_syntax=no
24381   if test x$gcc_cv_as != x; then
24382     $as_echo 'cmovl.l %edx, %eax' > conftest.s
24383     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24384   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24385   (eval $ac_try) 2>&5
24386   ac_status=$?
24387   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24388   test $ac_status = 0; }; }
24389     then
24390         gcc_cv_as_ix86_cmov_sun_syntax=yes
24391     else
24392       echo "configure: failed program was" >&5
24393       cat conftest.s >&5
24394     fi
24395     rm -f conftest.o conftest.s
24396   fi
24397 fi
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24399 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24400 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24401
24402 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24403
24404 fi
24405
24406     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24407 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24408 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24409   $as_echo_n "(cached) " >&6
24410 else
24411   gcc_cv_as_ix86_ffreep=no
24412   if test x$gcc_cv_as != x; then
24413     $as_echo 'ffreep %st(1)' > conftest.s
24414     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24415   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24416   (eval $ac_try) 2>&5
24417   ac_status=$?
24418   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24419   test $ac_status = 0; }; }
24420     then
24421         gcc_cv_as_ix86_ffreep=yes
24422     else
24423       echo "configure: failed program was" >&5
24424       cat conftest.s >&5
24425     fi
24426     rm -f conftest.o conftest.s
24427   fi
24428 fi
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24430 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24431 if test $gcc_cv_as_ix86_ffreep = yes; then
24432
24433 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24434
24435 fi
24436
24437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24438 $as_echo_n "checking assembler for .quad directive... " >&6; }
24439 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24440   $as_echo_n "(cached) " >&6
24441 else
24442   gcc_cv_as_ix86_quad=no
24443   if test x$gcc_cv_as != x; then
24444     $as_echo '.quad 0' > conftest.s
24445     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24446   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24447   (eval $ac_try) 2>&5
24448   ac_status=$?
24449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24450   test $ac_status = 0; }; }
24451     then
24452         gcc_cv_as_ix86_quad=yes
24453     else
24454       echo "configure: failed program was" >&5
24455       cat conftest.s >&5
24456     fi
24457     rm -f conftest.o conftest.s
24458   fi
24459 fi
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24461 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24462 if test $gcc_cv_as_ix86_quad = yes; then
24463
24464 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24465
24466 fi
24467
24468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24469 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24470 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24471   $as_echo_n "(cached) " >&6
24472 else
24473   gcc_cv_as_ix86_sahf=no
24474   if test x$gcc_cv_as != x; then
24475     $as_echo '.code64
24476        sahf' > conftest.s
24477     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24478   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24479   (eval $ac_try) 2>&5
24480   ac_status=$?
24481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24482   test $ac_status = 0; }; }
24483     then
24484         gcc_cv_as_ix86_sahf=yes
24485     else
24486       echo "configure: failed program was" >&5
24487       cat conftest.s >&5
24488     fi
24489     rm -f conftest.o conftest.s
24490   fi
24491 fi
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24493 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24494 if test $gcc_cv_as_ix86_sahf = yes; then
24495
24496 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24497
24498 fi
24499
24500     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24501 $as_echo_n "checking assembler for swap suffix... " >&6; }
24502 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24503   $as_echo_n "(cached) " >&6
24504 else
24505   gcc_cv_as_ix86_swap=no
24506   if test x$gcc_cv_as != x; then
24507     $as_echo 'movl.s %esp, %ebp' > conftest.s
24508     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24509   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24510   (eval $ac_try) 2>&5
24511   ac_status=$?
24512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24513   test $ac_status = 0; }; }
24514     then
24515         gcc_cv_as_ix86_swap=yes
24516     else
24517       echo "configure: failed program was" >&5
24518       cat conftest.s >&5
24519     fi
24520     rm -f conftest.o conftest.s
24521   fi
24522 fi
24523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24524 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24525 if test $gcc_cv_as_ix86_swap = yes; then
24526
24527 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24528
24529 fi
24530
24531     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24532 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24533 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24534   $as_echo_n "(cached) " >&6
24535 else
24536   gcc_cv_as_ix86_diff_sect_delta=no
24537   if test x$gcc_cv_as != x; then
24538     $as_echo '.section .rodata
24539 .L1:
24540         .long .L2-.L1
24541         .long .L3-.L1
24542         .text
24543 .L3:    nop
24544 .L2:    nop' > conftest.s
24545     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24546   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24547   (eval $ac_try) 2>&5
24548   ac_status=$?
24549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24550   test $ac_status = 0; }; }
24551     then
24552         gcc_cv_as_ix86_diff_sect_delta=yes
24553     else
24554       echo "configure: failed program was" >&5
24555       cat conftest.s >&5
24556     fi
24557     rm -f conftest.o conftest.s
24558   fi
24559 fi
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24561 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24562 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24563
24564 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24565
24566 fi
24567
24568     # These two are used unconditionally by i386.[ch]; it is to be defined
24569     # to 1 if the feature is present, 0 otherwise.
24570     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24571 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24572 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24573   $as_echo_n "(cached) " >&6
24574 else
24575   gcc_cv_as_ix86_gotoff_in_data=no
24576     if test $in_tree_gas = yes; then
24577     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24578   then gcc_cv_as_ix86_gotoff_in_data=yes
24579 fi
24580   elif test x$gcc_cv_as != x; then
24581     $as_echo '  .text
24582 .L0:
24583         nop
24584         .data
24585         .long .L0@GOTOFF' > conftest.s
24586     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24587   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24588   (eval $ac_try) 2>&5
24589   ac_status=$?
24590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24591   test $ac_status = 0; }; }
24592     then
24593         gcc_cv_as_ix86_gotoff_in_data=yes
24594     else
24595       echo "configure: failed program was" >&5
24596       cat conftest.s >&5
24597     fi
24598     rm -f conftest.o conftest.s
24599   fi
24600 fi
24601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24602 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24603
24604
24605 cat >>confdefs.h <<_ACEOF
24606 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24607 _ACEOF
24608
24609
24610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24611 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24612 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24613   $as_echo_n "(cached) " >&6
24614 else
24615   gcc_cv_as_ix86_rep_lock_prefix=no
24616   if test x$gcc_cv_as != x; then
24617     $as_echo 'rep movsl
24618          lock addl %edi, (%eax,%esi)
24619          lock orl $0, (%esp)' > conftest.s
24620     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24621   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24622   (eval $ac_try) 2>&5
24623   ac_status=$?
24624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24625   test $ac_status = 0; }; }
24626     then
24627         gcc_cv_as_ix86_rep_lock_prefix=yes
24628     else
24629       echo "configure: failed program was" >&5
24630       cat conftest.s >&5
24631     fi
24632     rm -f conftest.o conftest.s
24633   fi
24634 fi
24635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24636 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24637 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24638
24639 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24640
24641 fi
24642
24643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24644 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24645 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24646   $as_echo_n "(cached) " >&6
24647 else
24648   gcc_cv_as_ix86_tlsgdplt=no
24649   if test x$gcc_cv_as != x; then
24650     $as_echo 'call    tls_gd@tlsgdplt' > conftest.s
24651     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24652   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24653   (eval $ac_try) 2>&5
24654   ac_status=$?
24655   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24656   test $ac_status = 0; }; }
24657     then
24658         gcc_cv_as_ix86_tlsgdplt=yes
24659     else
24660       echo "configure: failed program was" >&5
24661       cat conftest.s >&5
24662     fi
24663     rm -f conftest.o conftest.s
24664   fi
24665 fi
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24667 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24668 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24669
24670 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24671
24672 fi
24673
24674     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24675 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24676 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24677   $as_echo_n "(cached) " >&6
24678 else
24679   gcc_cv_as_ix86_tlsldmplt=no
24680   if test x$gcc_cv_as != x; then
24681     $as_echo 'call    tls_ld@tlsldmplt' > conftest.s
24682     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24683   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24684   (eval $ac_try) 2>&5
24685   ac_status=$?
24686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24687   test $ac_status = 0; }; }
24688     then
24689         gcc_cv_as_ix86_tlsldmplt=yes
24690     else
24691       echo "configure: failed program was" >&5
24692       cat conftest.s >&5
24693     fi
24694     rm -f conftest.o conftest.s
24695   fi
24696 fi
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24698 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24699 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24700
24701 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24702
24703 fi
24704
24705     ;;
24706
24707   ia64*-*-*)
24708     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24709 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24710 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24711   $as_echo_n "(cached) " >&6
24712 else
24713   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24714     if test $in_tree_gas = yes; then
24715     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24716   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24717 fi
24718   elif test x$gcc_cv_as != x; then
24719     $as_echo '  .text
24720         addl r15 = @ltoffx(x#), gp
24721         ;;
24722         ld8.mov r16 = [r15], x#' > conftest.s
24723     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24724   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24725   (eval $ac_try) 2>&5
24726   ac_status=$?
24727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24728   test $ac_status = 0; }; }
24729     then
24730         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24731     else
24732       echo "configure: failed program was" >&5
24733       cat conftest.s >&5
24734     fi
24735     rm -f conftest.o conftest.s
24736   fi
24737 fi
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24739 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24740 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24741
24742 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24743
24744 fi
24745
24746     ;;
24747
24748   powerpc*-*-*)
24749     case $target in
24750       *-*-aix*) conftest_s='    .machine "pwr5"
24751         .csect .text[PR]
24752         mfcr 3,128';;
24753       *-*-darwin*)
24754         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24755 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24756 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24757   $as_echo_n "(cached) " >&6
24758 else
24759   gcc_cv_as_machine_directive=no
24760   if test x$gcc_cv_as != x; then
24761     $as_echo '  .machine ppc7400' > conftest.s
24762     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24763   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24764   (eval $ac_try) 2>&5
24765   ac_status=$?
24766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24767   test $ac_status = 0; }; }
24768     then
24769         gcc_cv_as_machine_directive=yes
24770     else
24771       echo "configure: failed program was" >&5
24772       cat conftest.s >&5
24773     fi
24774     rm -f conftest.o conftest.s
24775   fi
24776 fi
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24778 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24779
24780         if test x$gcc_cv_as_machine_directive != xyes; then
24781           echo "*** This target requires an assembler supporting \".machine\"" >&2
24782           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24783           test x$build = x$target && exit 1
24784         fi
24785         conftest_s='    .text
24786         mfcr r3,128';;
24787       *) conftest_s='   .machine power4
24788         .text
24789         mfcr 3,128';;
24790     esac
24791
24792     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24793 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24794 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24795   $as_echo_n "(cached) " >&6
24796 else
24797   gcc_cv_as_powerpc_mfcrf=no
24798     if test $in_tree_gas = yes; then
24799     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24800   then gcc_cv_as_powerpc_mfcrf=yes
24801 fi
24802   elif test x$gcc_cv_as != x; then
24803     $as_echo "$conftest_s" > conftest.s
24804     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24805   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24806   (eval $ac_try) 2>&5
24807   ac_status=$?
24808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24809   test $ac_status = 0; }; }
24810     then
24811         gcc_cv_as_powerpc_mfcrf=yes
24812     else
24813       echo "configure: failed program was" >&5
24814       cat conftest.s >&5
24815     fi
24816     rm -f conftest.o conftest.s
24817   fi
24818 fi
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24820 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24821 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24822
24823 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24824
24825 fi
24826
24827     case $target in
24828       *-*-aix*) conftest_s='    .machine "pwr5"
24829         .csect .text[PR]
24830         popcntb 3,3';;
24831       *) conftest_s='   .machine power5
24832         .text
24833         popcntb 3,3';;
24834     esac
24835
24836     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24837 $as_echo_n "checking assembler for popcntb support... " >&6; }
24838 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24839   $as_echo_n "(cached) " >&6
24840 else
24841   gcc_cv_as_powerpc_popcntb=no
24842     if test $in_tree_gas = yes; then
24843     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24844   then gcc_cv_as_powerpc_popcntb=yes
24845 fi
24846   elif test x$gcc_cv_as != x; then
24847     $as_echo "$conftest_s" > conftest.s
24848     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24849   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24850   (eval $ac_try) 2>&5
24851   ac_status=$?
24852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24853   test $ac_status = 0; }; }
24854     then
24855         gcc_cv_as_powerpc_popcntb=yes
24856     else
24857       echo "configure: failed program was" >&5
24858       cat conftest.s >&5
24859     fi
24860     rm -f conftest.o conftest.s
24861   fi
24862 fi
24863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24864 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24865 if test $gcc_cv_as_powerpc_popcntb = yes; then
24866
24867 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24868
24869 fi
24870
24871     case $target in
24872       *-*-aix*) conftest_s='    .machine "pwr5x"
24873         .csect .text[PR]
24874         frin 1,1';;
24875       *) conftest_s='   .machine power5
24876         .text
24877         frin 1,1';;
24878     esac
24879
24880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24881 $as_echo_n "checking assembler for fp round support... " >&6; }
24882 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24883   $as_echo_n "(cached) " >&6
24884 else
24885   gcc_cv_as_powerpc_fprnd=no
24886     if test $in_tree_gas = yes; then
24887     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24888   then gcc_cv_as_powerpc_fprnd=yes
24889 fi
24890   elif test x$gcc_cv_as != x; then
24891     $as_echo "$conftest_s" > conftest.s
24892     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24893   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24894   (eval $ac_try) 2>&5
24895   ac_status=$?
24896   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24897   test $ac_status = 0; }; }
24898     then
24899         gcc_cv_as_powerpc_fprnd=yes
24900     else
24901       echo "configure: failed program was" >&5
24902       cat conftest.s >&5
24903     fi
24904     rm -f conftest.o conftest.s
24905   fi
24906 fi
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24908 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24909 if test $gcc_cv_as_powerpc_fprnd = yes; then
24910
24911 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24912
24913 fi
24914
24915     case $target in
24916       *-*-aix*) conftest_s='    .machine "pwr6"
24917         .csect .text[PR]
24918         mffgpr 1,3';;
24919       *) conftest_s='   .machine power6
24920         .text
24921         mffgpr 1,3';;
24922     esac
24923
24924     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24925 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24926 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24927   $as_echo_n "(cached) " >&6
24928 else
24929   gcc_cv_as_powerpc_mfpgpr=no
24930     if test $in_tree_gas = yes; then
24931     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24932   then gcc_cv_as_powerpc_mfpgpr=yes
24933 fi
24934   elif test x$gcc_cv_as != x; then
24935     $as_echo "$conftest_s" > conftest.s
24936     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24937   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24938   (eval $ac_try) 2>&5
24939   ac_status=$?
24940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24941   test $ac_status = 0; }; }
24942     then
24943         gcc_cv_as_powerpc_mfpgpr=yes
24944     else
24945       echo "configure: failed program was" >&5
24946       cat conftest.s >&5
24947     fi
24948     rm -f conftest.o conftest.s
24949   fi
24950 fi
24951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24952 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24953 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24954
24955 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24956
24957 fi
24958
24959     case $target in
24960       *-*-aix*) conftest_s='    .csect .text[PR]
24961 LCF..0:
24962         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24963       *-*-darwin*)
24964         conftest_s='    .text
24965 LCF0:
24966         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24967       *) conftest_s='   .text
24968 .LCF0:
24969         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24970     esac
24971
24972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24973 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24974 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24975   $as_echo_n "(cached) " >&6
24976 else
24977   gcc_cv_as_powerpc_rel16=no
24978     if test $in_tree_gas = yes; then
24979     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24980   then gcc_cv_as_powerpc_rel16=yes
24981 fi
24982   elif test x$gcc_cv_as != x; then
24983     $as_echo "$conftest_s" > conftest.s
24984     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24985   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24986   (eval $ac_try) 2>&5
24987   ac_status=$?
24988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24989   test $ac_status = 0; }; }
24990     then
24991         gcc_cv_as_powerpc_rel16=yes
24992     else
24993       echo "configure: failed program was" >&5
24994       cat conftest.s >&5
24995     fi
24996     rm -f conftest.o conftest.s
24997   fi
24998 fi
24999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25000 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25001 if test $gcc_cv_as_powerpc_rel16 = yes; then
25002
25003 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25004
25005 fi
25006
25007     case $target in
25008       *-*-aix*) conftest_s='    .machine "pwr6"
25009         .csect .text[PR]
25010         cmpb 3,4,5';;
25011       *) conftest_s='   .machine power6
25012         .text
25013         cmpb 3,4,5';;
25014     esac
25015
25016     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25017 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25018 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25019   $as_echo_n "(cached) " >&6
25020 else
25021   gcc_cv_as_powerpc_cmpb=no
25022     if test $in_tree_gas = yes; then
25023     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25024   then gcc_cv_as_powerpc_cmpb=yes
25025 fi
25026   elif test x$gcc_cv_as != x; then
25027     $as_echo "$conftest_s" > conftest.s
25028     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -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_powerpc_cmpb=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_powerpc_cmpb" >&5
25044 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25045 if test $gcc_cv_as_powerpc_cmpb = yes; then
25046
25047 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25048
25049 fi
25050
25051     case $target in
25052       *-*-aix*) conftest_s='    .machine "pwr6"
25053         .csect .text[PR]
25054         dadd 1,2,3';;
25055       *) conftest_s='   .machine power6
25056         .text
25057         dadd 1,2,3';;
25058     esac
25059
25060     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25061 $as_echo_n "checking assembler for decimal float support... " >&6; }
25062 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25063   $as_echo_n "(cached) " >&6
25064 else
25065   gcc_cv_as_powerpc_dfp=no
25066     if test $in_tree_gas = yes; then
25067     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25068   then gcc_cv_as_powerpc_dfp=yes
25069 fi
25070   elif test x$gcc_cv_as != x; then
25071     $as_echo "$conftest_s" > conftest.s
25072     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25073   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25074   (eval $ac_try) 2>&5
25075   ac_status=$?
25076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25077   test $ac_status = 0; }; }
25078     then
25079         gcc_cv_as_powerpc_dfp=yes
25080     else
25081       echo "configure: failed program was" >&5
25082       cat conftest.s >&5
25083     fi
25084     rm -f conftest.o conftest.s
25085   fi
25086 fi
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25088 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25089 if test $gcc_cv_as_powerpc_dfp = yes; then
25090
25091 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25092
25093 fi
25094
25095     case $target in
25096       *-*-aix*) conftest_s='    .machine "pwr7"
25097         .csect .text[PR]
25098         lxvd2x 1,2,3';;
25099       *) conftest_s='   .machine power7
25100         .text
25101         lxvd2x 1,2,3';;
25102     esac
25103
25104     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25105 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25106 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25107   $as_echo_n "(cached) " >&6
25108 else
25109   gcc_cv_as_powerpc_vsx=no
25110     if test $in_tree_gas = yes; then
25111     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25112   then gcc_cv_as_powerpc_vsx=yes
25113 fi
25114   elif test x$gcc_cv_as != x; then
25115     $as_echo "$conftest_s" > conftest.s
25116     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25117   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25118   (eval $ac_try) 2>&5
25119   ac_status=$?
25120   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25121   test $ac_status = 0; }; }
25122     then
25123         gcc_cv_as_powerpc_vsx=yes
25124     else
25125       echo "configure: failed program was" >&5
25126       cat conftest.s >&5
25127     fi
25128     rm -f conftest.o conftest.s
25129   fi
25130 fi
25131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25132 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25133 if test $gcc_cv_as_powerpc_vsx = yes; then
25134
25135 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25136
25137 fi
25138
25139     case $target in
25140       *-*-aix*) conftest_s='    .machine "pwr7"
25141         .csect .text[PR]
25142         popcntd 3,3';;
25143       *) conftest_s='   .machine power7
25144         .text
25145         popcntd 3,3';;
25146     esac
25147
25148     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25149 $as_echo_n "checking assembler for popcntd support... " >&6; }
25150 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25151   $as_echo_n "(cached) " >&6
25152 else
25153   gcc_cv_as_powerpc_popcntd=no
25154     if test $in_tree_gas = yes; then
25155     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25156   then gcc_cv_as_powerpc_popcntd=yes
25157 fi
25158   elif test x$gcc_cv_as != x; then
25159     $as_echo "$conftest_s" > conftest.s
25160     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25161   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25162   (eval $ac_try) 2>&5
25163   ac_status=$?
25164   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25165   test $ac_status = 0; }; }
25166     then
25167         gcc_cv_as_powerpc_popcntd=yes
25168     else
25169       echo "configure: failed program was" >&5
25170       cat conftest.s >&5
25171     fi
25172     rm -f conftest.o conftest.s
25173   fi
25174 fi
25175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25176 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25177 if test $gcc_cv_as_powerpc_popcntd = yes; then
25178
25179 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25180
25181 fi
25182
25183     case $target in
25184       *-*-aix*) conftest_s='    .csect .text[PR]
25185         lwsync';;
25186       *) conftest_s='   .text
25187         lwsync';;
25188     esac
25189
25190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25191 $as_echo_n "checking assembler for lwsync support... " >&6; }
25192 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25193   $as_echo_n "(cached) " >&6
25194 else
25195   gcc_cv_as_powerpc_lwsync=no
25196     if test $in_tree_gas = yes; then
25197     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25198   then gcc_cv_as_powerpc_lwsync=yes
25199 fi
25200   elif test x$gcc_cv_as != x; then
25201     $as_echo "$conftest_s" > conftest.s
25202     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25203   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25204   (eval $ac_try) 2>&5
25205   ac_status=$?
25206   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25207   test $ac_status = 0; }; }
25208     then
25209         gcc_cv_as_powerpc_lwsync=yes
25210     else
25211       echo "configure: failed program was" >&5
25212       cat conftest.s >&5
25213     fi
25214     rm -f conftest.o conftest.s
25215   fi
25216 fi
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25218 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25219 if test $gcc_cv_as_powerpc_lwsync = yes; then
25220
25221 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25222
25223 fi
25224
25225     case $target in
25226       *-*-aix*) conftest_s='    .machine "476"
25227         .csect .text[PR]
25228         dci 0';;
25229       *) conftest_s='   .machine "476"
25230         .text
25231         dci 0';;
25232     esac
25233
25234     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25235 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25236 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25237   $as_echo_n "(cached) " >&6
25238 else
25239   gcc_cv_as_powerpc_dci=no
25240     if test $in_tree_gas = yes; then
25241     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25242   then gcc_cv_as_powerpc_dci=yes
25243 fi
25244   elif test x$gcc_cv_as != x; then
25245     $as_echo "$conftest_s" > conftest.s
25246     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25247   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25248   (eval $ac_try) 2>&5
25249   ac_status=$?
25250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25251   test $ac_status = 0; }; }
25252     then
25253         gcc_cv_as_powerpc_dci=yes
25254     else
25255       echo "configure: failed program was" >&5
25256       cat conftest.s >&5
25257     fi
25258     rm -f conftest.o conftest.s
25259   fi
25260 fi
25261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25262 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25263 if test $gcc_cv_as_powerpc_dci = yes; then
25264
25265 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25266
25267 fi
25268
25269     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25270 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25271 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25272   $as_echo_n "(cached) " >&6
25273 else
25274   gcc_cv_as_powerpc_gnu_attribute=no
25275     if test $in_tree_gas = yes; then
25276     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25277   then gcc_cv_as_powerpc_gnu_attribute=yes
25278 fi
25279   elif test x$gcc_cv_as != x; then
25280     $as_echo '.gnu_attribute 4,1' > conftest.s
25281     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25282   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25283   (eval $ac_try) 2>&5
25284   ac_status=$?
25285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25286   test $ac_status = 0; }; }
25287     then
25288         gcc_cv_as_powerpc_gnu_attribute=yes
25289     else
25290       echo "configure: failed program was" >&5
25291       cat conftest.s >&5
25292     fi
25293     rm -f conftest.o conftest.s
25294   fi
25295 fi
25296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25297 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25298 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25299
25300 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25301
25302 fi
25303
25304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25305 $as_echo_n "checking assembler for tls marker support... " >&6; }
25306 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25307   $as_echo_n "(cached) " >&6
25308 else
25309   gcc_cv_as_powerpc_tls_markers=no
25310     if test $in_tree_gas = yes; then
25311     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25312   then gcc_cv_as_powerpc_tls_markers=yes
25313 fi
25314   elif test x$gcc_cv_as != x; then
25315     $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25316     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25317   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25318   (eval $ac_try) 2>&5
25319   ac_status=$?
25320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25321   test $ac_status = 0; }; }
25322     then
25323         gcc_cv_as_powerpc_tls_markers=yes
25324     else
25325       echo "configure: failed program was" >&5
25326       cat conftest.s >&5
25327     fi
25328     rm -f conftest.o conftest.s
25329   fi
25330 fi
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25332 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25333 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25334
25335 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25336
25337 fi
25338
25339     case $target in
25340       *-*-aix*)
25341         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25342 $as_echo_n "checking assembler for .ref support... " >&6; }
25343 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25344   $as_echo_n "(cached) " >&6
25345 else
25346   gcc_cv_as_aix_ref=no
25347     if test $in_tree_gas = yes; then
25348     if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
25349   then :
25350 fi
25351   elif test x$gcc_cv_as != x; then
25352     $as_echo '  .csect stuff[rw]
25353              stuff:
25354                 .long 1
25355                 .extern sym
25356                 .ref sym
25357           ' > conftest.s
25358     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25359   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25360   (eval $ac_try) 2>&5
25361   ac_status=$?
25362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25363   test $ac_status = 0; }; }
25364     then
25365         gcc_cv_as_aix_ref=yes
25366     else
25367       echo "configure: failed program was" >&5
25368       cat conftest.s >&5
25369     fi
25370     rm -f conftest.o conftest.s
25371   fi
25372 fi
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
25374 $as_echo "$gcc_cv_as_aix_ref" >&6; }
25375 if test $gcc_cv_as_aix_ref = yes; then
25376
25377 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
25378
25379 fi
25380         ;;
25381     esac
25382     ;;
25383
25384   mips*-*-*)
25385     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25386 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25387 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
25388   $as_echo_n "(cached) " >&6
25389 else
25390   gcc_cv_as_mips_explicit_relocs=no
25391     if test $in_tree_gas = yes; then
25392     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25393   then gcc_cv_as_mips_explicit_relocs=yes
25394 fi
25395   elif test x$gcc_cv_as != x; then
25396     $as_echo '  lw $4,%gp_rel(foo)($4)' > conftest.s
25397     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25398   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25399   (eval $ac_try) 2>&5
25400   ac_status=$?
25401   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25402   test $ac_status = 0; }; }
25403     then
25404         gcc_cv_as_mips_explicit_relocs=yes
25405     else
25406       echo "configure: failed program was" >&5
25407       cat conftest.s >&5
25408     fi
25409     rm -f conftest.o conftest.s
25410   fi
25411 fi
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25413 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25414 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25415   if test x$target_cpu_default = x
25416        then target_cpu_default=MASK_EXPLICIT_RELOCS
25417        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25418        fi
25419 fi
25420     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25421 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25422 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25423   $as_echo_n "(cached) " >&6
25424 else
25425   gcc_cv_as_mips_no_shared=no
25426     if test $in_tree_gas = yes; then
25427     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25428   then gcc_cv_as_mips_no_shared=yes
25429 fi
25430   elif test x$gcc_cv_as != x; then
25431     $as_echo 'nop' > conftest.s
25432     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25433   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25434   (eval $ac_try) 2>&5
25435   ac_status=$?
25436   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25437   test $ac_status = 0; }; }
25438     then
25439         gcc_cv_as_mips_no_shared=yes
25440     else
25441       echo "configure: failed program was" >&5
25442       cat conftest.s >&5
25443     fi
25444     rm -f conftest.o conftest.s
25445   fi
25446 fi
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25448 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25449 if test $gcc_cv_as_mips_no_shared = yes; then
25450
25451 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25452
25453 fi
25454
25455     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25456 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25457 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25458   $as_echo_n "(cached) " >&6
25459 else
25460   gcc_cv_as_mips_gnu_attribute=no
25461     if test $in_tree_gas = yes; then
25462     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25463   then gcc_cv_as_mips_gnu_attribute=yes
25464 fi
25465   elif test x$gcc_cv_as != x; then
25466     $as_echo '.gnu_attribute 4,1' > conftest.s
25467     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25468   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25469   (eval $ac_try) 2>&5
25470   ac_status=$?
25471   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25472   test $ac_status = 0; }; }
25473     then
25474         gcc_cv_as_mips_gnu_attribute=yes
25475     else
25476       echo "configure: failed program was" >&5
25477       cat conftest.s >&5
25478     fi
25479     rm -f conftest.o conftest.s
25480   fi
25481 fi
25482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25483 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25484 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25485
25486 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25487
25488 fi
25489
25490     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25491 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25492 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25493   $as_echo_n "(cached) " >&6
25494 else
25495   gcc_cv_as_mips_dtprelword=no
25496     if test $in_tree_gas = yes; then
25497     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25498   then gcc_cv_as_mips_dtprelword=yes
25499 fi
25500   elif test x$gcc_cv_as != x; then
25501     $as_echo '.section .tdata,"awT",@progbits
25502 x:
25503         .word 2
25504         .text
25505         .dtprelword x+0x8000' > conftest.s
25506     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25507   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25508   (eval $ac_try) 2>&5
25509   ac_status=$?
25510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25511   test $ac_status = 0; }; }
25512     then
25513         gcc_cv_as_mips_dtprelword=yes
25514     else
25515       echo "configure: failed program was" >&5
25516       cat conftest.s >&5
25517     fi
25518     rm -f conftest.o conftest.s
25519   fi
25520 fi
25521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25522 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25523 if test $gcc_cv_as_mips_dtprelword = yes; then
25524
25525 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25526
25527 fi
25528
25529     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25530 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25531 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25532   $as_echo_n "(cached) " >&6
25533 else
25534   gcc_cv_as_mips_dspr1_mult=no
25535   if test x$gcc_cv_as != x; then
25536     $as_echo '  .set    mips32r2
25537         .set    nodspr2
25538         .set    dsp
25539         madd    $ac3,$4,$5
25540         maddu   $ac3,$4,$5
25541         msub    $ac3,$4,$5
25542         msubu   $ac3,$4,$5
25543         mult    $ac3,$4,$5
25544         multu   $ac3,$4,$5' > conftest.s
25545     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25546   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25547   (eval $ac_try) 2>&5
25548   ac_status=$?
25549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25550   test $ac_status = 0; }; }
25551     then
25552         gcc_cv_as_mips_dspr1_mult=yes
25553     else
25554       echo "configure: failed program was" >&5
25555       cat conftest.s >&5
25556     fi
25557     rm -f conftest.o conftest.s
25558   fi
25559 fi
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25561 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25562 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25563
25564 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25565
25566 fi
25567
25568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25569 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25570     gcc_cv_as_ld_jalr_reloc=no
25571     if test $gcc_cv_as_mips_explicit_relocs = yes; then
25572       if test $in_tree_ld = yes ; then
25573         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 \
25574            && test $in_tree_ld_is_elf = yes; then
25575           gcc_cv_as_ld_jalr_reloc=yes
25576         fi
25577       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25578         echo '  .ent x' > conftest.s
25579         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
25580         echo '  ld $25,%call16(y)($28)' >> conftest.s
25581         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
25582         echo '1:        jalr $25' >> conftest.s
25583         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
25584         echo '1:        jalr $25' >> conftest.s
25585         echo '  .end x' >> conftest.s
25586         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25587            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25588           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25589              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25590             gcc_cv_as_ld_jalr_reloc=yes
25591           fi
25592         fi
25593         rm -f conftest.*
25594       fi
25595     fi
25596     if test $gcc_cv_as_ld_jalr_reloc = yes; then
25597       if test x$target_cpu_default = x; then
25598         target_cpu_default=MASK_RELAX_PIC_CALLS
25599       else
25600         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25601       fi
25602     fi
25603     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25604 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25605
25606     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25607 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25608 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25609   $as_echo_n "(cached) " >&6
25610 else
25611   gcc_cv_ld_mips_personality_relaxation=no
25612        if test $in_tree_ld = yes ; then
25613          if test "$gcc_cv_gld_major_version" -eq 2 \
25614                  -a "$gcc_cv_gld_minor_version" -ge 21 \
25615                  -o "$gcc_cv_gld_major_version" -gt 2; then
25616            gcc_cv_ld_mips_personality_relaxation=yes
25617          fi
25618        elif test x$gcc_cv_as != x \
25619                  -a x$gcc_cv_ld != x \
25620                  -a x$gcc_cv_readelf != x ; then
25621          cat > conftest.s <<EOF
25622         .cfi_startproc
25623         .cfi_personality 0x80,indirect_ptr
25624         .ent test
25625 test:
25626         nop
25627         .end test
25628         .cfi_endproc
25629
25630         .section .data,"aw",@progbits
25631 indirect_ptr:
25632         .dc.a personality
25633 EOF
25634          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25635             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25636            if $gcc_cv_readelf -d conftest 2>&1 \
25637               | grep TEXTREL > /dev/null 2>&1; then
25638              :
25639            elif $gcc_cv_readelf --relocs conftest 2>&1 \
25640                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25641              :
25642            else
25643              gcc_cv_ld_mips_personality_relaxation=yes
25644            fi
25645          fi
25646        fi
25647        rm -f conftest.s conftest.o conftest
25648 fi
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25650 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25651     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25652
25653 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25654
25655     fi
25656     ;;
25657 esac
25658
25659 # Mips and HP-UX need the GNU assembler.
25660 # Linux on IA64 might be able to use the Intel assembler.
25661
25662 case "$target" in
25663   mips*-*-* | *-*-hpux* )
25664     if test x$gas_flag = xyes \
25665        || test x"$host" != x"$build" \
25666        || test ! -x "$gcc_cv_as" \
25667        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25668       :
25669     else
25670       echo "*** This configuration requires the GNU assembler" >&2
25671       exit 1
25672     fi
25673     ;;
25674 esac
25675
25676 # ??? Not all targets support dwarf2 debug_line, even within a version
25677 # of gas.  Moreover, we need to emit a valid instruction to trigger any
25678 # info to the output file.  So, as supported targets are added to gas 2.11,
25679 # add some instruction here to (also) show we expect this might work.
25680 # ??? Once 2.11 is released, probably need to add first known working
25681 # version to the per-target configury.
25682 case "$cpu_type" in
25683   alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25684   | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25685     insn="nop"
25686     ;;
25687   ia64 | s390)
25688     insn="nop 0"
25689     ;;
25690   mmix)
25691     insn="swym 0"
25692     ;;
25693 esac
25694 if test x"$insn" != x; then
25695  conftest_s="\
25696         .file 1 \"conftest.s\"
25697         .loc 1 3 0
25698         $insn"
25699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25700 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25701 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25702   $as_echo_n "(cached) " >&6
25703 else
25704   gcc_cv_as_dwarf2_debug_line=no
25705     if test $in_tree_gas = yes; then
25706     if test $in_tree_gas_is_elf = yes \
25707   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25708   then gcc_cv_as_dwarf2_debug_line=yes
25709 fi
25710   elif test x$gcc_cv_as != x; then
25711     $as_echo "$conftest_s" > conftest.s
25712     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25713   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25714   (eval $ac_try) 2>&5
25715   ac_status=$?
25716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25717   test $ac_status = 0; }; }
25718     then
25719         if test x$gcc_cv_objdump != x \
25720    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25721       | grep debug_line > /dev/null 2>&1; then
25722      gcc_cv_as_dwarf2_debug_line=yes
25723    fi
25724     else
25725       echo "configure: failed program was" >&5
25726       cat conftest.s >&5
25727     fi
25728     rm -f conftest.o conftest.s
25729   fi
25730 fi
25731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25732 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25733
25734
25735 # The .debug_line file table must be in the exact order that
25736 # we specified the files, since these indices are also used
25737 # by DW_AT_decl_file.  Approximate this test by testing if
25738 # the assembler bitches if the same index is assigned twice.
25739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25740 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25741 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25742   $as_echo_n "(cached) " >&6
25743 else
25744   gcc_cv_as_dwarf2_file_buggy=no
25745   if test x$gcc_cv_as != x; then
25746     $as_echo '  .file 1 "foo.s"
25747         .file 1 "bar.s"' > conftest.s
25748     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25749   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25750   (eval $ac_try) 2>&5
25751   ac_status=$?
25752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25753   test $ac_status = 0; }; }
25754     then
25755         gcc_cv_as_dwarf2_file_buggy=yes
25756     else
25757       echo "configure: failed program was" >&5
25758       cat conftest.s >&5
25759     fi
25760     rm -f conftest.o conftest.s
25761   fi
25762 fi
25763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25764 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25765
25766
25767  if test $gcc_cv_as_dwarf2_debug_line = yes \
25768  && test $gcc_cv_as_dwarf2_file_buggy = no; then
25769
25770 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25771
25772  fi
25773
25774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25775 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25776 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25777   $as_echo_n "(cached) " >&6
25778 else
25779   gcc_cv_as_gdwarf2_flag=no
25780     if test $in_tree_gas = yes; then
25781     if test $in_tree_gas_is_elf = yes \
25782   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25783   then gcc_cv_as_gdwarf2_flag=yes
25784 fi
25785   elif test x$gcc_cv_as != x; then
25786     $as_echo "$insn" > conftest.s
25787     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25788   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25789   (eval $ac_try) 2>&5
25790   ac_status=$?
25791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25792   test $ac_status = 0; }; }
25793     then
25794         gcc_cv_as_gdwarf2_flag=yes
25795     else
25796       echo "configure: failed program was" >&5
25797       cat conftest.s >&5
25798     fi
25799     rm -f conftest.o conftest.s
25800   fi
25801 fi
25802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25803 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25804 if test $gcc_cv_as_gdwarf2_flag = yes; then
25805
25806 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25807
25808 fi
25809
25810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25811 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25812 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25813   $as_echo_n "(cached) " >&6
25814 else
25815   gcc_cv_as_gstabs_flag=no
25816     if test $in_tree_gas = yes; then
25817     if test $in_tree_gas_is_elf = yes \
25818   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25819   then gcc_cv_as_gstabs_flag=yes
25820 fi
25821   elif test x$gcc_cv_as != x; then
25822     $as_echo "$insn" > conftest.s
25823     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25824   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25825   (eval $ac_try) 2>&5
25826   ac_status=$?
25827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25828   test $ac_status = 0; }; }
25829     then
25830         # The native Solaris 9/Intel assembler doesn't understand --gstabs
25831    # and warns about it, but still exits successfully.  So check for
25832    # this.
25833    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25834   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25835   (eval $ac_try) 2>&5
25836   ac_status=$?
25837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25838   test $ac_status = 0; }; }
25839    then :
25840    else gcc_cv_as_gstabs_flag=yes
25841    fi
25842     else
25843       echo "configure: failed program was" >&5
25844       cat conftest.s >&5
25845     fi
25846     rm -f conftest.o conftest.s
25847   fi
25848 fi
25849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25850 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25851 if test $gcc_cv_as_gstabs_flag = yes; then
25852
25853 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25854
25855 fi
25856
25857  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25858 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25859 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25860   $as_echo_n "(cached) " >&6
25861 else
25862   gcc_cv_as_debug_prefix_map_flag=no
25863     if test $in_tree_gas = yes; then
25864     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25865   then gcc_cv_as_debug_prefix_map_flag=yes
25866 fi
25867   elif test x$gcc_cv_as != x; then
25868     $as_echo "$insn" > conftest.s
25869     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25870   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25871   (eval $ac_try) 2>&5
25872   ac_status=$?
25873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25874   test $ac_status = 0; }; }
25875     then
25876         gcc_cv_as_debug_prefix_map_flag=yes
25877     else
25878       echo "configure: failed program was" >&5
25879       cat conftest.s >&5
25880     fi
25881     rm -f conftest.o conftest.s
25882   fi
25883 fi
25884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25885 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25886 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25887
25888 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25889
25890 fi
25891 fi
25892
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25894 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25895 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25896   $as_echo_n "(cached) " >&6
25897 else
25898   gcc_cv_as_lcomm_with_alignment=no
25899   if test x$gcc_cv_as != x; then
25900     $as_echo '.lcomm bar,4,16' > conftest.s
25901     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25902   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25903   (eval $ac_try) 2>&5
25904   ac_status=$?
25905   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25906   test $ac_status = 0; }; }
25907     then
25908         gcc_cv_as_lcomm_with_alignment=yes
25909     else
25910       echo "configure: failed program was" >&5
25911       cat conftest.s >&5
25912     fi
25913     rm -f conftest.o conftest.s
25914   fi
25915 fi
25916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25917 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25918 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25919
25920 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25921
25922 fi
25923
25924 # Check whether --enable-gnu-unique-object was given.
25925 if test "${enable_gnu_unique_object+set}" = set; then :
25926   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25927     yes | no) ;;
25928     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25929 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25930   esac
25931 else
25932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25933 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25934 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25935   $as_echo_n "(cached) " >&6
25936 else
25937   gcc_cv_as_gnu_unique_object=no
25938     if test $in_tree_gas = yes; then
25939     if test $in_tree_gas_is_elf = yes \
25940   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25941   then gcc_cv_as_gnu_unique_object=yes
25942 fi
25943   elif test x$gcc_cv_as != x; then
25944     $as_echo '.type foo, @gnu_unique_object' > conftest.s
25945     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25946   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25947   (eval $ac_try) 2>&5
25948   ac_status=$?
25949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25950   test $ac_status = 0; }; }
25951     then
25952         gcc_cv_as_gnu_unique_object=yes
25953     else
25954       echo "configure: failed program was" >&5
25955       cat conftest.s >&5
25956     fi
25957     rm -f conftest.o conftest.s
25958   fi
25959 fi
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25961 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25962 if test $gcc_cv_as_gnu_unique_object = yes; then
25963   # Also check for ld.so support, i.e. glibc 2.11 or higher.
25964    if test x$host = x$build -a x$host = x$target &&
25965        ldd --version 2>/dev/null &&
25966        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25967       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25968       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25969       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25970       if test "$glibcnum" -ge 2011 ; then
25971         enable_gnu_unique_object=yes
25972       fi
25973     fi
25974 fi
25975 fi
25976
25977 if test x$enable_gnu_unique_object = xyes; then
25978
25979 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25980
25981 fi
25982
25983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25984 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25985 if test "${gcc_cv_as_line_zero+set}" = set; then :
25986   $as_echo_n "(cached) " >&6
25987 else
25988   gcc_cv_as_line_zero=no
25989   if test $in_tree_gas = yes; then
25990     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25991   then gcc_cv_as_line_zero=yes
25992 fi
25993   elif test "x$gcc_cv_as" != x; then
25994     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25995     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25996   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25997   (eval $ac_try) 2>&5
25998   ac_status=$?
25999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26000   test $ac_status = 0; }; } &&
26001        test "x`cat conftest.out`" = x
26002     then
26003       gcc_cv_as_line_zero=yes
26004     else
26005       echo "configure: failed program was" >&5
26006       cat conftest.s >&5
26007       echo "configure: error output was" >&5
26008       cat conftest.out >&5
26009     fi
26010     rm -f conftest.o conftest.s conftest.out
26011   fi
26012 fi
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26014 $as_echo "$gcc_cv_as_line_zero" >&6; }
26015 if test "x$gcc_cv_as_line_zero" = xyes; then
26016
26017 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26018
26019 fi
26020
26021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26022 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26023 gcc_cv_ld_eh_frame_hdr=no
26024 if test $in_tree_ld = yes ; then
26025   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 \
26026      && test $in_tree_ld_is_elf = yes; then
26027     gcc_cv_ld_eh_frame_hdr=yes
26028   fi
26029 elif test x$gcc_cv_ld != x; then
26030   if echo "$ld_ver" | grep GNU > /dev/null; then
26031     # Check if linker supports --eh-frame-hdr option
26032     if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
26033       gcc_cv_ld_eh_frame_hdr=yes
26034     fi
26035   else
26036     case "$target" in
26037       *-*-solaris2*)
26038         # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26039         if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
26040           gcc_cv_ld_eh_frame_hdr=yes
26041         fi
26042         ;;
26043     esac
26044   fi
26045 fi
26046
26047 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
26048
26049 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26050
26051 fi
26052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26053 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26054
26055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26056 $as_echo_n "checking linker position independent executable support... " >&6; }
26057 gcc_cv_ld_pie=no
26058 if test $in_tree_ld = yes ; then
26059   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 \
26060      && test $in_tree_ld_is_elf = yes; then
26061     gcc_cv_ld_pie=yes
26062   fi
26063 elif test x$gcc_cv_ld != x; then
26064         # Check if linker supports -pie option
26065         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
26066                 gcc_cv_ld_pie=yes
26067         fi
26068 fi
26069 if test x"$gcc_cv_ld_pie" = xyes; then
26070
26071 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26072
26073 fi
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26075 $as_echo "$gcc_cv_ld_pie" >&6; }
26076
26077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26078 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26079 gcc_cv_ld_eh_gc_sections=no
26080 if test $in_tree_ld = yes ; then
26081   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 \
26082      && test $in_tree_ld_is_elf = yes; then
26083     gcc_cv_ld_eh_gc_sections=yes
26084   fi
26085 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
26086   cat > conftest.s <<EOF
26087         .section        .text
26088 .globl _start
26089         .type _start, @function
26090 _start:
26091         .long foo
26092         .size _start, .-_start
26093         .section        .text.foo,"ax",@progbits
26094         .type foo, @function
26095 foo:
26096         .long 0
26097         .size foo, .-foo
26098         .section        .gcc_except_table.foo,"a",@progbits
26099 .L0:
26100         .long 0
26101         .section        .eh_frame,"a",@progbits
26102         .long .L0
26103 EOF
26104   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26105     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26106          | grep "gc-sections option ignored" > /dev/null; then
26107       gcc_cv_ld_eh_gc_sections=no
26108     elif $gcc_cv_objdump -h conftest 2> /dev/null \
26109          | grep gcc_except_table > /dev/null; then
26110       gcc_cv_ld_eh_gc_sections=yes
26111       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26112       if test x$gcc_cv_as_comdat_group != xyes; then
26113         gcc_cv_ld_eh_gc_sections=no
26114         cat > conftest.s <<EOF
26115         .section        .text
26116 .globl _start
26117         .type _start, @function
26118 _start:
26119         .long foo
26120         .size _start, .-_start
26121         .section        .gnu.linkonce.t.foo,"ax",@progbits
26122         .type foo, @function
26123 foo:
26124         .long 0
26125         .size foo, .-foo
26126         .section        .gcc_except_table.foo,"a",@progbits
26127 .L0:
26128         .long 0
26129         .section        .eh_frame,"a",@progbits
26130         .long .L0
26131 EOF
26132         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26133           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26134                | grep "gc-sections option ignored" > /dev/null; then
26135             gcc_cv_ld_eh_gc_sections=no
26136           elif $gcc_cv_objdump -h conftest 2> /dev/null \
26137                | grep gcc_except_table > /dev/null; then
26138             gcc_cv_ld_eh_gc_sections=yes
26139           fi
26140         fi
26141       fi
26142     fi
26143   fi
26144   rm -f conftest.s conftest.o conftest
26145 fi
26146 case "$target" in
26147   hppa*-*-linux*)
26148     # ??? This apparently exposes a binutils bug with PC-relative relocations.
26149     gcc_cv_ld_eh_gc_sections=no
26150     ;;
26151 esac
26152 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
26153
26154 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26155
26156 fi
26157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26158 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26159
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26161 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26162 gcc_cv_ld_eh_gc_sections_bug=no
26163 if test $in_tree_ld = yes ; then
26164   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
26165      && test $in_tree_ld_is_elf = yes; then
26166     gcc_cv_ld_eh_gc_sections_bug=yes
26167   fi
26168 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x -a x$gcc_cv_as_comdat_group = xyes; then
26169   gcc_cv_ld_eh_gc_sections_bug=yes
26170   cat > conftest.s <<EOF
26171         .section        .text
26172 .globl _start
26173         .type _start, @function
26174 _start:
26175         .long foo
26176         .size _start, .-_start
26177         .section        .text.startup.foo,"ax",@progbits
26178         .type foo, @function
26179 foo:
26180         .long 0
26181         .size foo, .-foo
26182         .section        .gcc_except_table.foo,"a",@progbits
26183 .L0:
26184         .long 0
26185         .section        .eh_frame,"a",@progbits
26186         .long .L0
26187 EOF
26188   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
26189     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
26190          | grep "gc-sections option ignored" > /dev/null; then
26191       :
26192     elif $gcc_cv_objdump -h conftest 2> /dev/null \
26193          | grep gcc_except_table > /dev/null; then
26194       gcc_cv_ld_eh_gc_sections_bug=no
26195     fi
26196   fi
26197   rm -f conftest.s conftest.o conftest
26198 fi
26199 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
26200
26201 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
26202
26203 fi
26204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
26205 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
26206
26207 # --------
26208 # UNSORTED
26209 # --------
26210
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
26212 $as_echo_n "checking linker --as-needed support... " >&6; }
26213 if test "${gcc_cv_ld_as_needed+set}" = set; then :
26214   $as_echo_n "(cached) " >&6
26215 else
26216   gcc_cv_ld_as_needed=no
26217 if test $in_tree_ld = yes ; then
26218   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 \
26219      && test $in_tree_ld_is_elf = yes; then
26220     gcc_cv_ld_as_needed=yes
26221   fi
26222 elif test x$gcc_cv_ld != x; then
26223         # Check if linker supports --as-needed and --no-as-needed options
26224         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
26225                 gcc_cv_ld_as_needed=yes
26226         fi
26227 fi
26228
26229 fi
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
26231 $as_echo "$gcc_cv_ld_as_needed" >&6; }
26232 if test x"$gcc_cv_ld_as_needed" = xyes; then
26233
26234 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
26235
26236 fi
26237
26238 case "$target:$tm_file" in
26239   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
26240     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
26241 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
26242 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
26243   $as_echo_n "(cached) " >&6
26244 else
26245   gcc_cv_ld_no_dot_syms=no
26246     if test $in_tree_ld = yes ; then
26247       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
26248         gcc_cv_ld_no_dot_syms=yes
26249       fi
26250     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26251       cat > conftest1.s <<EOF
26252         .text
26253         bl .foo
26254 EOF
26255       cat > conftest2.s <<EOF
26256         .section ".opd","aw"
26257         .align 3
26258         .globl foo
26259         .type foo,@function
26260 foo:
26261         .quad .LEfoo,.TOC.@tocbase,0
26262         .text
26263 .LEfoo:
26264         blr
26265         .size foo,.-.LEfoo
26266 EOF
26267       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
26268          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
26269          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
26270         gcc_cv_ld_no_dot_syms=yes
26271       fi
26272       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
26273     fi
26274
26275 fi
26276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
26277 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
26278     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
26279
26280 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
26281
26282     fi
26283
26284     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
26285 $as_echo_n "checking linker large toc support... " >&6; }
26286 if test "${gcc_cv_ld_large_toc+set}" = set; then :
26287   $as_echo_n "(cached) " >&6
26288 else
26289   gcc_cv_ld_large_toc=no
26290     if test $in_tree_ld = yes ; then
26291       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
26292         gcc_cv_ld_large_toc=yes
26293       fi
26294     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
26295       cat > conftest.s <<EOF
26296         .section ".tbss","awT",@nobits
26297         .align 3
26298 ie0:    .space 8
26299         .global _start
26300         .text
26301 _start:
26302         addis 9,13,ie0@got@tprel@ha
26303         ld 9,ie0@got@tprel@l(9)
26304 EOF
26305       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
26306          && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
26307         gcc_cv_ld_large_toc=yes
26308       fi
26309       rm -f conftest conftest.o conftest.s
26310     fi
26311
26312 fi
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
26314 $as_echo "$gcc_cv_ld_large_toc" >&6; }
26315     if test x"$gcc_cv_ld_large_toc" = xyes; then
26316
26317 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
26318
26319     fi
26320     ;;
26321 esac
26322
26323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
26324 $as_echo_n "checking linker --build-id support... " >&6; }
26325 if test "${gcc_cv_ld_buildid+set}" = set; then :
26326   $as_echo_n "(cached) " >&6
26327 else
26328   gcc_cv_ld_buildid=no
26329   if test $in_tree_ld = yes ; then
26330     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26331        "$gcc_cv_gld_minor_version" -ge 18 -o \
26332        "$gcc_cv_gld_major_version" -gt 2 \
26333        && test $in_tree_ld_is_elf = yes; then
26334       gcc_cv_ld_buildid=yes
26335     fi
26336   elif test x$gcc_cv_ld != x; then
26337     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
26338       gcc_cv_ld_buildid=yes
26339     fi
26340   fi
26341 fi
26342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
26343 $as_echo "$gcc_cv_ld_buildid" >&6; }
26344 if test x"$gcc_cv_ld_buildid" = xyes; then
26345
26346 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
26347
26348 fi
26349
26350 # Check whether --enable-linker-build-id was given.
26351 if test "${enable_linker_build_id+set}" = set; then :
26352   enableval=$enable_linker_build_id;
26353 else
26354   enable_linker_build_id=no
26355 fi
26356
26357
26358 if test x"$enable_linker_build_id" = xyes; then
26359   if test x"$gcc_cv_ld_buildid" = xyes; then
26360
26361 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
26362
26363   else
26364     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
26365 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
26366   fi
26367 fi
26368
26369 # In binutils 2.21, GNU ld gained support for new emulations fully
26370 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
26371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
26372 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
26373 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
26374   $as_echo_n "(cached) " >&6
26375 else
26376   gcc_cv_ld_sol2_emulation=no
26377   if test $in_tree_ld = yes ; then
26378     if test "$gcc_cv_gld_major_version" -eq 2 -a \
26379        "$gcc_cv_gld_minor_version" -ge 21 -o \
26380        "$gcc_cv_gld_major_version" -gt 2 \
26381        && test $in_tree_ld_is_elf = yes; then
26382       gcc_cv_ld_sol2_emulation=yes
26383     fi
26384   elif test x$gcc_cv_ld != x; then
26385     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
26386        grep _sol2 > /dev/null; then
26387       gcc_cv_ld_sol2_emulation=yes
26388     fi
26389   fi
26390 fi
26391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
26392 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
26393 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
26394
26395 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
26396
26397 fi
26398
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
26400 $as_echo_n "checking linker --sysroot support... " >&6; }
26401 if test "${gcc_cv_ld_sysroot+set}" = set; then :
26402   $as_echo_n "(cached) " >&6
26403 else
26404   gcc_cv_ld_sysroot=no
26405   if test $in_tree_ld = yes ; then
26406       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
26407         gcc_cv_ld_sysroot=yes
26408       fi
26409   elif test x$gcc_cv_ld != x; then
26410     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26411       gcc_cv_ld_sysroot=yes
26412     fi
26413   fi
26414 fi
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26416 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26417 if test x"$gcc_cv_ld_sysroot" = xyes; then
26418
26419 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26420
26421 fi
26422
26423 if test x$with_sysroot = x && test x$host = x$target \
26424    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26425    && test "$prefix" != "NONE"; then
26426
26427 cat >>confdefs.h <<_ACEOF
26428 #define PREFIX_INCLUDE_DIR "$prefix/include"
26429 _ACEOF
26430
26431 fi
26432
26433 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26434   if test "x$with_headers" != x; then
26435     target_header_dir=$with_headers
26436   elif test "x$with_sysroot" = x; then
26437     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26438   elif test "x$with_build_sysroot" != "x"; then
26439     target_header_dir="${with_build_sysroot}${native_system_header_dir}"
26440   elif test "x$with_sysroot" = xyes; then
26441     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
26442   else
26443     target_header_dir="${with_sysroot}${native_system_header_dir}"
26444   fi
26445 else
26446   target_header_dir=${native_system_header_dir}
26447 fi
26448
26449 # Test for stack protector support in target C library.
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26451 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26452 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26453   $as_echo_n "(cached) " >&6
26454 else
26455   gcc_cv_libc_provides_ssp=no
26456     case "$target" in
26457        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26458       # glibc 2.4 and later provides __stack_chk_fail and
26459       # either __stack_chk_guard, or TLS access to stack guard canary.
26460       if test -f $target_header_dir/features.h \
26461          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
26462             $target_header_dir/features.h > /dev/null; then
26463         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
26464            $target_header_dir/features.h > /dev/null; then
26465           gcc_cv_libc_provides_ssp=yes
26466         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
26467              $target_header_dir/features.h > /dev/null \
26468              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
26469              $target_header_dir/features.h > /dev/null; then
26470           gcc_cv_libc_provides_ssp=yes
26471         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
26472              $target_header_dir/features.h > /dev/null && \
26473              test -f $target_header_dir/bits/uClibc_config.h && \
26474              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
26475              $target_header_dir/bits/uClibc_config.h > /dev/null; then
26476           gcc_cv_libc_provides_ssp=yes
26477         fi
26478       fi
26479         ;;
26480        *-*-gnu*)
26481          # Avoid complicated tests (see
26482          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26483          # simply assert that glibc does provide this, which is true for all
26484          # realistically usable GNU/Hurd configurations.
26485          gcc_cv_libc_provides_ssp=yes;;
26486        *-*-darwin* | *-*-freebsd*)
26487          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26488 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26489   gcc_cv_libc_provides_ssp=yes
26490 else
26491   echo "no __stack_chk_fail on this target"
26492 fi
26493
26494         ;;
26495   *) gcc_cv_libc_provides_ssp=no ;;
26496     esac
26497 fi
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26499 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26500
26501 if test x$gcc_cv_libc_provides_ssp = xyes; then
26502
26503 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26504
26505 fi
26506
26507 # Test for <sys/sdt.h> on the target.
26508
26509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26510 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26511 have_sys_sdt_h=no
26512 if test -f $target_header_dir/sys/sdt.h; then
26513   have_sys_sdt_h=yes
26514
26515 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26516
26517 fi
26518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26519 $as_echo "$have_sys_sdt_h" >&6; }
26520
26521 # Check if TFmode long double should be used by default or not.
26522 # Some glibc targets used DFmode long double, but with glibc 2.4
26523 # and later they can use TFmode.
26524 case "$target" in
26525   powerpc*-*-linux* | \
26526   sparc*-*-linux* | \
26527   s390*-*-linux* | \
26528   alpha*-*-linux*)
26529
26530 # Check whether --with-long-double-128 was given.
26531 if test "${with_long_double_128+set}" = set; then :
26532   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26533 else
26534   gcc_cv_target_ldbl128=no
26535       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26536         $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26537       && gcc_cv_target_ldbl128=yes
26538
26539 fi
26540
26541     ;;
26542 esac
26543 if test x$gcc_cv_target_ldbl128 = xyes; then
26544
26545 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26546
26547 fi
26548
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26550 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26551 gcc_cv_target_dl_iterate_phdr=unknown
26552 case "$target" in
26553   *-*-solaris2*)
26554     # <link.h> needs both a dl_iterate_phdr declaration and support for
26555     # compilation with largefile support.
26556     if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26557       && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26558       gcc_cv_target_dl_iterate_phdr=yes
26559     else
26560       gcc_cv_target_dl_iterate_phdr=no
26561     fi
26562     ;;
26563 esac
26564
26565 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26566
26567 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26568
26569 fi
26570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26571 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26572
26573 # Find out what GC implementation we want, or may, use.
26574
26575 # Check whether --with-gc was given.
26576 if test "${with_gc+set}" = set; then :
26577   withval=$with_gc; case "$withval" in
26578   page)
26579     GGC=ggc-$withval
26580     ;;
26581   zone)
26582     GGC=ggc-$withval
26583
26584 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26585
26586     ;;
26587   *)
26588     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26589     ;;
26590 esac
26591 else
26592   GGC=ggc-page
26593 fi
26594
26595
26596 echo "Using $GGC for garbage collection."
26597
26598 # Libraries to use on the host.  This will normally be set by the top
26599 # level Makefile.  Here we simply capture the value for our Makefile.
26600 if test -z "${HOST_LIBS+set}"; then
26601   HOST_LIBS=
26602 fi
26603
26604
26605 # Use the system's zlib library.
26606 zlibdir=-L../zlib
26607 zlibinc="-I\$(srcdir)/../zlib"
26608
26609 # Check whether --with-system-zlib was given.
26610 if test "${with_system_zlib+set}" = set; then :
26611   withval=$with_system_zlib; zlibdir=
26612 zlibinc=
26613
26614 fi
26615
26616
26617
26618
26619
26620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26621 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26622     # Check whether --enable-maintainer-mode was given.
26623 if test "${enable_maintainer_mode+set}" = set; then :
26624   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26625 else
26626   maintainer_mode=no
26627 fi
26628
26629
26630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26631 $as_echo "$maintainer_mode" >&6; }
26632
26633 if test "$maintainer_mode" = "yes"; then
26634   MAINT=''
26635 else
26636   MAINT='#'
26637 fi
26638
26639 # --------------
26640 # Language hooks
26641 # --------------
26642
26643 # Make empty files to contain the specs and options for each language.
26644 # Then add #include lines to for a compiler that has specs and/or options.
26645
26646 subdirs=
26647 lang_opt_files=
26648 lang_specs_files=
26649 lang_tree_files=
26650 # These (without "all_") are set in each config-lang.in.
26651 # `language' must be a single word so is spelled singularly.
26652 all_languages=
26653 all_compilers=
26654 all_outputs='Makefile'
26655 # List of language makefile fragments.
26656 all_lang_makefrags=
26657 # Additional files for gengtype
26658 all_gtfiles="$target_gtfiles"
26659
26660 # These are the languages that are set in --enable-languages,
26661 # and are available in the GCC tree.
26662 all_selected_languages=
26663
26664 # Add the language fragments.
26665 # Languages are added via two mechanisms.  Some information must be
26666 # recorded in makefile variables, these are defined in config-lang.in.
26667 # We accumulate them and plug them into the main Makefile.
26668 # The other mechanism is a set of hooks for each of the main targets
26669 # like `clean', `install', etc.
26670
26671 language_hooks="Make-hooks"
26672
26673 for lang in ${srcdir}/*/config-lang.in
26674 do
26675         test "$lang" = "${srcdir}/*/config-lang.in" && continue
26676
26677         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
26678         if test "x$lang_alias" = x
26679         then
26680               echo "$lang doesn't set \$language." 1>&2
26681               exit 1
26682         fi
26683         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26684         subdirs="$subdirs $subdir"
26685
26686         # $gcc_subdir is where the gcc integration files are to be found
26687         # for a language, both for internal compiler purposes (compiler
26688         # sources implementing front-end to GCC tree converters), and for
26689         # build infrastructure purposes (Make-lang.in, etc.)
26690         #
26691         # This will be <subdir> (relative to $srcdir) if a line like
26692         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26693         # is found in <langdir>/config-lang.in, and will remain <langdir>
26694         # otherwise.
26695         #
26696         # Except for the language alias (fetched above), the regular
26697         # "config-lang.in" contents are always retrieved from $gcc_subdir,
26698         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26699         # only this and the language alias.
26700
26701         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
26702         if [ "$gcc_subdir" = "" ]; then
26703            gcc_subdir="$subdir"
26704         fi
26705
26706         case ",$enable_languages," in
26707         *,$lang_alias,*)
26708             all_selected_languages="$all_selected_languages $lang_alias"
26709             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26710                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26711             fi
26712             ;;
26713         esac
26714
26715         language=
26716         boot_language=
26717         compilers=
26718         outputs=
26719         gtfiles=
26720         subdir_requires=
26721         . ${srcdir}/$gcc_subdir/config-lang.in
26722         if test "x$language" = x
26723         then
26724                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26725                 exit 1
26726         fi
26727
26728         ok=:
26729         case ",$enable_languages," in
26730                 *,$lang_alias,*) ;;
26731                 *)
26732                         for i in $subdir_requires; do
26733                                 test -f "${srcdir}/$i/config-lang.in" && continue
26734                                 ok=false
26735                                 break
26736                         done
26737                 ;;
26738         esac
26739         $ok || continue
26740
26741         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26742         if test -f $srcdir/$gcc_subdir/lang.opt; then
26743             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26744             all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26745         fi
26746         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26747             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26748         fi
26749         all_languages="$all_languages $language"
26750         all_compilers="$all_compilers $compilers"
26751         all_outputs="$all_outputs $outputs"
26752         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26753         case ",$enable_languages," in
26754                 *,lto,*)
26755
26756 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26757
26758                     enable_lto=yes
26759
26760                     ;;
26761                 *) ;;
26762         esac
26763 done
26764
26765 # Pick up gtfiles for c
26766 gtfiles=
26767 . ${srcdir}/c-config-lang.in
26768 all_gtfiles="$all_gtfiles [c] $gtfiles"
26769
26770 check_languages=
26771 for language in $all_selected_languages
26772 do
26773         check_languages="$check_languages check-$language"
26774 done
26775
26776 # We link each language in with a set of hooks, reached indirectly via
26777 # lang.${target}.  Only do so for selected languages.
26778
26779 rm -f Make-hooks
26780 touch Make-hooks
26781 target_list="all.cross start.encap rest.encap tags \
26782         install-common install-man install-info install-pdf install-html dvi \
26783         pdf html uninstall info man srcextra srcman srcinfo \
26784         mostlyclean clean distclean maintainer-clean install-plugin"
26785
26786 for t in $target_list
26787 do
26788         x=
26789         for lang in $all_selected_languages
26790         do
26791                 x="$x $lang.$t"
26792         done
26793         echo "lang.$t: $x" >> Make-hooks
26794 done
26795
26796 # --------
26797 # Option include files
26798 # --------
26799
26800 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26801 option_includes="option-includes.mk"
26802
26803
26804 # --------
26805 # UNSORTED
26806 # --------
26807
26808 # Create .gdbinit.
26809
26810 echo "dir ." > .gdbinit
26811 echo "dir ${srcdir}" >> .gdbinit
26812 if test x$gdb_needs_out_file_path = xyes
26813 then
26814         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26815 fi
26816 if test "x$subdirs" != x; then
26817         for s in $subdirs
26818         do
26819                 echo "dir ${srcdir}/$s" >> .gdbinit
26820         done
26821 fi
26822 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26823
26824 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26825
26826
26827
26828 # Find a directory in which to install a shared libgcc.
26829
26830 # Check whether --enable-version-specific-runtime-libs was given.
26831 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26832   enableval=$enable_version_specific_runtime_libs;
26833 fi
26834
26835
26836
26837 # Check whether --with-slibdir was given.
26838 if test "${with_slibdir+set}" = set; then :
26839   withval=$with_slibdir; slibdir="$with_slibdir"
26840 else
26841   if test "${enable_version_specific_runtime_libs+set}" = set; then
26842   slibdir='$(libsubdir)'
26843 elif test "$host" != "$target"; then
26844   slibdir='$(build_tooldir)/lib'
26845 else
26846   slibdir='$(libdir)'
26847 fi
26848 fi
26849
26850
26851
26852 # Substitute configuration variables
26853
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875
26876
26877
26878
26879
26880
26881
26882
26883
26884
26885
26886
26887
26888
26889
26890
26891
26892
26893
26894
26895
26896
26897
26898
26899
26900
26901
26902
26903
26904
26905
26906
26907
26908
26909
26910
26911
26912
26913
26914
26915
26916
26917
26918
26919 # Echo link setup.
26920 if test x${build} = x${host} ; then
26921   if test x${host} = x${target} ; then
26922     echo "Links are now set up to build a native compiler for ${target}." 1>&2
26923   else
26924     echo "Links are now set up to build a cross-compiler" 1>&2
26925     echo " from ${host} to ${target}." 1>&2
26926   fi
26927 else
26928   if test x${host} = x${target} ; then
26929     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26930     echo " for ${target}." 1>&2
26931   else
26932     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26933     echo " from ${host} to ${target}." 1>&2
26934   fi
26935 fi
26936
26937
26938
26939
26940
26941
26942
26943
26944
26945 if test "x${CLOOGLIBS}" != "x" ; then
26946
26947 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26948
26949 fi
26950
26951 # Check for plugin support
26952 # Check whether --enable-plugin was given.
26953 if test "${enable_plugin+set}" = set; then :
26954   enableval=$enable_plugin; enable_plugin=$enableval
26955 else
26956   enable_plugin=yes; default_plugin=yes
26957 fi
26958
26959
26960 pluginlibs=
26961
26962 case "${host}" in
26963   *-*-darwin*)
26964     if test x$build = x$host; then
26965       export_sym_check="nm${exeext} -g"
26966     elif test x$host = x$target; then
26967       export_sym_check="$gcc_cv_nm -g"
26968     else
26969       export_sym_check=
26970     fi
26971   ;;
26972   *)
26973     if test x$build = x$host; then
26974       export_sym_check="objdump${exeext} -T"
26975     elif test x$host = x$target; then
26976       export_sym_check="$gcc_cv_objdump -T"
26977     else
26978       export_sym_check=
26979     fi
26980   ;;
26981 esac
26982
26983 if test x"$enable_plugin" = x"yes"; then
26984
26985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26986 $as_echo_n "checking for exported symbols... " >&6; }
26987   if test "x$export_sym_check" != x; then
26988     echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26989     ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
26990     if $export_sym_check conftest | grep foobar > /dev/null; then
26991       : # No need to use a flag
26992       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26993 $as_echo "yes" >&6; }
26994     else
26995       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26996 $as_echo "yes" >&6; }
26997       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26998 $as_echo_n "checking for -rdynamic... " >&6; }
26999       ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
27000       if $export_sym_check conftest | grep foobar > /dev/null; then
27001         plugin_rdynamic=yes
27002         pluginlibs="-rdynamic"
27003       else
27004         plugin_rdynamic=no
27005         enable_plugin=no
27006       fi
27007       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27008 $as_echo "$plugin_rdynamic" >&6; }
27009     fi
27010   else
27011     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27012 $as_echo "unable to check" >&6; }
27013   fi
27014
27015   # Check -ldl
27016   saved_LIBS="$LIBS"
27017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
27018 $as_echo_n "checking for library containing dlopen... " >&6; }
27019 if test "${ac_cv_search_dlopen+set}" = set; then :
27020   $as_echo_n "(cached) " >&6
27021 else
27022   ac_func_search_save_LIBS=$LIBS
27023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27024 /* end confdefs.h.  */
27025
27026 /* Override any GCC internal prototype to avoid an error.
27027    Use char because int might match the return type of a GCC
27028    builtin and then its argument prototype would still apply.  */
27029 #ifdef __cplusplus
27030 extern "C"
27031 #endif
27032 char dlopen ();
27033 int
27034 main ()
27035 {
27036 return dlopen ();
27037   ;
27038   return 0;
27039 }
27040 _ACEOF
27041 for ac_lib in '' dl; do
27042   if test -z "$ac_lib"; then
27043     ac_res="none required"
27044   else
27045     ac_res=-l$ac_lib
27046     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27047   fi
27048   if ac_fn_c_try_link "$LINENO"; then :
27049   ac_cv_search_dlopen=$ac_res
27050 fi
27051 rm -f core conftest.err conftest.$ac_objext \
27052     conftest$ac_exeext
27053   if test "${ac_cv_search_dlopen+set}" = set; then :
27054   break
27055 fi
27056 done
27057 if test "${ac_cv_search_dlopen+set}" = set; then :
27058
27059 else
27060   ac_cv_search_dlopen=no
27061 fi
27062 rm conftest.$ac_ext
27063 LIBS=$ac_func_search_save_LIBS
27064 fi
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
27066 $as_echo "$ac_cv_search_dlopen" >&6; }
27067 ac_res=$ac_cv_search_dlopen
27068 if test "$ac_res" != no; then :
27069   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27070
27071 fi
27072
27073   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
27074     pluginlibs="$pluginlibs -ldl"
27075   fi
27076   LIBS="$saved_LIBS"
27077
27078   # Check that we can build shared objects with -fPIC -shared
27079   saved_LDFLAGS="$LDFLAGS"
27080   saved_CFLAGS="$CFLAGS"
27081   case "${host}" in
27082     *-*-darwin*)
27083       CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
27084       CFLAGS="$CFLAGS -fPIC"
27085       LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
27086     ;;
27087     *)
27088       CFLAGS="$CFLAGS -fPIC"
27089       LDFLAGS="$LDFLAGS -fPIC -shared"
27090     ;;
27091   esac
27092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
27093 $as_echo_n "checking for -fPIC -shared... " >&6; }
27094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27095 /* end confdefs.h.  */
27096 extern int X;
27097 int
27098 main ()
27099 {
27100 return X == 0;
27101   ;
27102   return 0;
27103 }
27104 _ACEOF
27105 if ac_fn_c_try_link "$LINENO"; then :
27106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27107 $as_echo "yes" >&6; }; have_pic_shared=yes
27108 else
27109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27110 $as_echo "no" >&6; }; have_pic_shared=no
27111 fi
27112 rm -f core conftest.err conftest.$ac_objext \
27113     conftest$ac_exeext conftest.$ac_ext
27114   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
27115     pluginlibs=
27116     enable_plugin=no
27117   fi
27118   LDFLAGS="$saved_LDFLAGS"
27119   CFLAGS="$saved_CFLAGS"
27120
27121   # If plugin support had been requested but not available, fail.
27122   if test x"$enable_plugin" = x"no" ; then
27123     if test x"$default_plugin" != x"yes"; then
27124       as_fn_error "
27125 Building GCC with plugin support requires a host that supports
27126 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
27127     fi
27128   fi
27129 fi
27130
27131
27132
27133 if test x"$enable_plugin" = x"yes"; then
27134
27135 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
27136
27137 fi
27138
27139
27140 # Check whether --enable-libquadmath-support was given.
27141 if test "${enable_libquadmath_support+set}" = set; then :
27142   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
27143 else
27144   ENABLE_LIBQUADMATH_SUPPORT=yes
27145 fi
27146
27147 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
27148
27149 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
27150
27151 fi
27152
27153
27154 # Specify what hash style to use by default.
27155
27156 # Check whether --with-linker-hash-style was given.
27157 if test "${with_linker_hash_style+set}" = set; then :
27158   withval=$with_linker_hash_style; case x"$withval" in
27159    xsysv)
27160      LINKER_HASH_STYLE=sysv
27161      ;;
27162    xgnu)
27163      LINKER_HASH_STYLE=gnu
27164      ;;
27165    xboth)
27166      LINKER_HASH_STYLE=both
27167      ;;
27168    *)
27169      as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
27170      ;;
27171  esac
27172 else
27173   LINKER_HASH_STYLE=''
27174 fi
27175
27176 if test x"${LINKER_HASH_STYLE}" != x; then
27177
27178 cat >>confdefs.h <<_ACEOF
27179 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
27180 _ACEOF
27181
27182 fi
27183
27184 # Configure the subdirectories
27185 # AC_CONFIG_SUBDIRS($subdirs)
27186
27187 # Create the Makefile
27188 # and configure language subdirectories
27189 ac_config_files="$ac_config_files $all_outputs"
27190
27191
27192 ac_config_commands="$ac_config_commands default"
27193
27194 cat >confcache <<\_ACEOF
27195 # This file is a shell script that caches the results of configure
27196 # tests run on this system so they can be shared between configure
27197 # scripts and configure runs, see configure's option --config-cache.
27198 # It is not useful on other systems.  If it contains results you don't
27199 # want to keep, you may remove or edit it.
27200 #
27201 # config.status only pays attention to the cache file if you give it
27202 # the --recheck option to rerun configure.
27203 #
27204 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27205 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27206 # following values.
27207
27208 _ACEOF
27209
27210 # The following way of writing the cache mishandles newlines in values,
27211 # but we know of no workaround that is simple, portable, and efficient.
27212 # So, we kill variables containing newlines.
27213 # Ultrix sh set writes to stderr and can't be redirected directly,
27214 # and sets the high bit in the cache file unless we assign to the vars.
27215 (
27216   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27217     eval ac_val=\$$ac_var
27218     case $ac_val in #(
27219     *${as_nl}*)
27220       case $ac_var in #(
27221       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
27222 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
27223       esac
27224       case $ac_var in #(
27225       _ | IFS | as_nl) ;; #(
27226       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
27227       *) { eval $ac_var=; unset $ac_var;} ;;
27228       esac ;;
27229     esac
27230   done
27231
27232   (set) 2>&1 |
27233     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27234     *${as_nl}ac_space=\ *)
27235       # `set' does not quote correctly, so add quotes: double-quote
27236       # substitution turns \\\\ into \\, and sed turns \\ into \.
27237       sed -n \
27238         "s/'/'\\\\''/g;
27239           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27240       ;; #(
27241     *)
27242       # `set' quotes correctly as required by POSIX, so do not add quotes.
27243       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27244       ;;
27245     esac |
27246     sort
27247 ) |
27248   sed '
27249      /^ac_cv_env_/b end
27250      t clear
27251      :clear
27252      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27253      t end
27254      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27255      :end' >>confcache
27256 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27257   if test -w "$cache_file"; then
27258     test "x$cache_file" != "x/dev/null" &&
27259       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
27260 $as_echo "$as_me: updating cache $cache_file" >&6;}
27261     cat confcache >$cache_file
27262   else
27263     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
27264 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27265   fi
27266 fi
27267 rm -f confcache
27268
27269 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27270 # Let make expand exec_prefix.
27271 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27272
27273 DEFS=-DHAVE_CONFIG_H
27274
27275 ac_libobjs=
27276 ac_ltlibobjs=
27277 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27278   # 1. Remove the extension, and $U if already installed.
27279   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27280   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
27281   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27282   #    will be set to the directory where LIBOBJS objects are built.
27283   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27284   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
27285 done
27286 LIBOBJS=$ac_libobjs
27287
27288 LTLIBOBJS=$ac_ltlibobjs
27289
27290
27291
27292
27293 : ${CONFIG_STATUS=./config.status}
27294 ac_write_fail=0
27295 ac_clean_files_save=$ac_clean_files
27296 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27297 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
27298 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27299 as_write_fail=0
27300 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
27301 #! $SHELL
27302 # Generated by $as_me.
27303 # Run this file to recreate the current configuration.
27304 # Compiler output produced by configure, useful for debugging
27305 # configure, is in config.log if it exists.
27306
27307 debug=false
27308 ac_cs_recheck=false
27309 ac_cs_silent=false
27310
27311 SHELL=\${CONFIG_SHELL-$SHELL}
27312 export SHELL
27313 _ASEOF
27314 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
27315 ## -------------------- ##
27316 ## M4sh Initialization. ##
27317 ## -------------------- ##
27318
27319 # Be more Bourne compatible
27320 DUALCASE=1; export DUALCASE # for MKS sh
27321 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27322   emulate sh
27323   NULLCMD=:
27324   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27325   # is contrary to our usage.  Disable this feature.
27326   alias -g '${1+"$@"}'='"$@"'
27327   setopt NO_GLOB_SUBST
27328 else
27329   case `(set -o) 2>/dev/null` in #(
27330   *posix*) :
27331     set -o posix ;; #(
27332   *) :
27333      ;;
27334 esac
27335 fi
27336
27337
27338 as_nl='
27339 '
27340 export as_nl
27341 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27342 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27343 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27344 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27345 # Prefer a ksh shell builtin over an external printf program on Solaris,
27346 # but without wasting forks for bash or zsh.
27347 if test -z "$BASH_VERSION$ZSH_VERSION" \
27348     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
27349   as_echo='print -r --'
27350   as_echo_n='print -rn --'
27351 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27352   as_echo='printf %s\n'
27353   as_echo_n='printf %s'
27354 else
27355   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27356     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27357     as_echo_n='/usr/ucb/echo -n'
27358   else
27359     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27360     as_echo_n_body='eval
27361       arg=$1;
27362       case $arg in #(
27363       *"$as_nl"*)
27364         expr "X$arg" : "X\\(.*\\)$as_nl";
27365         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27366       esac;
27367       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27368     '
27369     export as_echo_n_body
27370     as_echo_n='sh -c $as_echo_n_body as_echo'
27371   fi
27372   export as_echo_body
27373   as_echo='sh -c $as_echo_body as_echo'
27374 fi
27375
27376 # The user is always right.
27377 if test "${PATH_SEPARATOR+set}" != set; then
27378   PATH_SEPARATOR=:
27379   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27380     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27381       PATH_SEPARATOR=';'
27382   }
27383 fi
27384
27385
27386 # IFS
27387 # We need space, tab and new line, in precisely that order.  Quoting is
27388 # there to prevent editors from complaining about space-tab.
27389 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27390 # splitting by setting IFS to empty value.)
27391 IFS=" ""        $as_nl"
27392
27393 # Find who we are.  Look in the path if we contain no directory separator.
27394 case $0 in #((
27395   *[\\/]* ) as_myself=$0 ;;
27396   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27397 for as_dir in $PATH
27398 do
27399   IFS=$as_save_IFS
27400   test -z "$as_dir" && as_dir=.
27401     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27402   done
27403 IFS=$as_save_IFS
27404
27405      ;;
27406 esac
27407 # We did not find ourselves, most probably we were run as `sh COMMAND'
27408 # in which case we are not to be found in the path.
27409 if test "x$as_myself" = x; then
27410   as_myself=$0
27411 fi
27412 if test ! -f "$as_myself"; then
27413   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27414   exit 1
27415 fi
27416
27417 # Unset variables that we do not need and which cause bugs (e.g. in
27418 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
27419 # suppresses any "Segmentation fault" message there.  '((' could
27420 # trigger a bug in pdksh 5.2.14.
27421 for as_var in BASH_ENV ENV MAIL MAILPATH
27422 do eval test x\${$as_var+set} = xset \
27423   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27424 done
27425 PS1='$ '
27426 PS2='> '
27427 PS4='+ '
27428
27429 # NLS nuisances.
27430 LC_ALL=C
27431 export LC_ALL
27432 LANGUAGE=C
27433 export LANGUAGE
27434
27435 # CDPATH.
27436 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27437
27438
27439 # as_fn_error ERROR [LINENO LOG_FD]
27440 # ---------------------------------
27441 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27442 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27443 # script with status $?, using 1 if that was 0.
27444 as_fn_error ()
27445 {
27446   as_status=$?; test $as_status -eq 0 && as_status=1
27447   if test "$3"; then
27448     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27449     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27450   fi
27451   $as_echo "$as_me: error: $1" >&2
27452   as_fn_exit $as_status
27453 } # as_fn_error
27454
27455
27456 # as_fn_set_status STATUS
27457 # -----------------------
27458 # Set $? to STATUS, without forking.
27459 as_fn_set_status ()
27460 {
27461   return $1
27462 } # as_fn_set_status
27463
27464 # as_fn_exit STATUS
27465 # -----------------
27466 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27467 as_fn_exit ()
27468 {
27469   set +e
27470   as_fn_set_status $1
27471   exit $1
27472 } # as_fn_exit
27473
27474 # as_fn_unset VAR
27475 # ---------------
27476 # Portably unset VAR.
27477 as_fn_unset ()
27478 {
27479   { eval $1=; unset $1;}
27480 }
27481 as_unset=as_fn_unset
27482 # as_fn_append VAR VALUE
27483 # ----------------------
27484 # Append the text in VALUE to the end of the definition contained in VAR. Take
27485 # advantage of any shell optimizations that allow amortized linear growth over
27486 # repeated appends, instead of the typical quadratic growth present in naive
27487 # implementations.
27488 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27489   eval 'as_fn_append ()
27490   {
27491     eval $1+=\$2
27492   }'
27493 else
27494   as_fn_append ()
27495   {
27496     eval $1=\$$1\$2
27497   }
27498 fi # as_fn_append
27499
27500 # as_fn_arith ARG...
27501 # ------------------
27502 # Perform arithmetic evaluation on the ARGs, and store the result in the
27503 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27504 # must be portable across $(()) and expr.
27505 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27506   eval 'as_fn_arith ()
27507   {
27508     as_val=$(( $* ))
27509   }'
27510 else
27511   as_fn_arith ()
27512   {
27513     as_val=`expr "$@" || test $? -eq 1`
27514   }
27515 fi # as_fn_arith
27516
27517
27518 if expr a : '\(a\)' >/dev/null 2>&1 &&
27519    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27520   as_expr=expr
27521 else
27522   as_expr=false
27523 fi
27524
27525 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27526   as_basename=basename
27527 else
27528   as_basename=false
27529 fi
27530
27531 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27532   as_dirname=dirname
27533 else
27534   as_dirname=false
27535 fi
27536
27537 as_me=`$as_basename -- "$0" ||
27538 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27539          X"$0" : 'X\(//\)$' \| \
27540          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27541 $as_echo X/"$0" |
27542     sed '/^.*\/\([^/][^/]*\)\/*$/{
27543             s//\1/
27544             q
27545           }
27546           /^X\/\(\/\/\)$/{
27547             s//\1/
27548             q
27549           }
27550           /^X\/\(\/\).*/{
27551             s//\1/
27552             q
27553           }
27554           s/.*/./; q'`
27555
27556 # Avoid depending upon Character Ranges.
27557 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27558 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27559 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27560 as_cr_digits='0123456789'
27561 as_cr_alnum=$as_cr_Letters$as_cr_digits
27562
27563 ECHO_C= ECHO_N= ECHO_T=
27564 case `echo -n x` in #(((((
27565 -n*)
27566   case `echo 'xy\c'` in
27567   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27568   xy)  ECHO_C='\c';;
27569   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
27570        ECHO_T=' ';;
27571   esac;;
27572 *)
27573   ECHO_N='-n';;
27574 esac
27575
27576 rm -f conf$$ conf$$.exe conf$$.file
27577 if test -d conf$$.dir; then
27578   rm -f conf$$.dir/conf$$.file
27579 else
27580   rm -f conf$$.dir
27581   mkdir conf$$.dir 2>/dev/null
27582 fi
27583 if (echo >conf$$.file) 2>/dev/null; then
27584   if ln -s conf$$.file conf$$ 2>/dev/null; then
27585     as_ln_s='ln -s'
27586     # ... but there are two gotchas:
27587     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27588     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27589     # In both cases, we have to default to `cp -p'.
27590     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27591       as_ln_s='cp -p'
27592   elif ln conf$$.file conf$$ 2>/dev/null; then
27593     as_ln_s=ln
27594   else
27595     as_ln_s='cp -p'
27596   fi
27597 else
27598   as_ln_s='cp -p'
27599 fi
27600 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27601 rmdir conf$$.dir 2>/dev/null
27602
27603
27604 # as_fn_mkdir_p
27605 # -------------
27606 # Create "$as_dir" as a directory, including parents if necessary.
27607 as_fn_mkdir_p ()
27608 {
27609
27610   case $as_dir in #(
27611   -*) as_dir=./$as_dir;;
27612   esac
27613   test -d "$as_dir" || eval $as_mkdir_p || {
27614     as_dirs=
27615     while :; do
27616       case $as_dir in #(
27617       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27618       *) as_qdir=$as_dir;;
27619       esac
27620       as_dirs="'$as_qdir' $as_dirs"
27621       as_dir=`$as_dirname -- "$as_dir" ||
27622 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27623          X"$as_dir" : 'X\(//\)[^/]' \| \
27624          X"$as_dir" : 'X\(//\)$' \| \
27625          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27626 $as_echo X"$as_dir" |
27627     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27628             s//\1/
27629             q
27630           }
27631           /^X\(\/\/\)[^/].*/{
27632             s//\1/
27633             q
27634           }
27635           /^X\(\/\/\)$/{
27636             s//\1/
27637             q
27638           }
27639           /^X\(\/\).*/{
27640             s//\1/
27641             q
27642           }
27643           s/.*/./; q'`
27644       test -d "$as_dir" && break
27645     done
27646     test -z "$as_dirs" || eval "mkdir $as_dirs"
27647   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27648
27649
27650 } # as_fn_mkdir_p
27651 if mkdir -p . 2>/dev/null; then
27652   as_mkdir_p='mkdir -p "$as_dir"'
27653 else
27654   test -d ./-p && rmdir ./-p
27655   as_mkdir_p=false
27656 fi
27657
27658 if test -x / >/dev/null 2>&1; then
27659   as_test_x='test -x'
27660 else
27661   if ls -dL / >/dev/null 2>&1; then
27662     as_ls_L_option=L
27663   else
27664     as_ls_L_option=
27665   fi
27666   as_test_x='
27667     eval sh -c '\''
27668       if test -d "$1"; then
27669         test -d "$1/.";
27670       else
27671         case $1 in #(
27672         -*)set "./$1";;
27673         esac;
27674         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27675         ???[sx]*):;;*)false;;esac;fi
27676     '\'' sh
27677   '
27678 fi
27679 as_executable_p=$as_test_x
27680
27681 # Sed expression to map a string onto a valid CPP name.
27682 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27683
27684 # Sed expression to map a string onto a valid variable name.
27685 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27686
27687
27688 exec 6>&1
27689 ## ----------------------------------- ##
27690 ## Main body of $CONFIG_STATUS script. ##
27691 ## ----------------------------------- ##
27692 _ASEOF
27693 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27694
27695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27696 # Save the log message, to keep $0 and so on meaningful, and to
27697 # report actual input values of CONFIG_FILES etc. instead of their
27698 # values after options handling.
27699 ac_log="
27700 This file was extended by $as_me, which was
27701 generated by GNU Autoconf 2.64.  Invocation command line was
27702
27703   CONFIG_FILES    = $CONFIG_FILES
27704   CONFIG_HEADERS  = $CONFIG_HEADERS
27705   CONFIG_LINKS    = $CONFIG_LINKS
27706   CONFIG_COMMANDS = $CONFIG_COMMANDS
27707   $ $0 $@
27708
27709 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27710 "
27711
27712 _ACEOF
27713
27714 case $ac_config_files in *"
27715 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27716 esac
27717
27718 case $ac_config_headers in *"
27719 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27720 esac
27721
27722
27723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27724 # Files that config.status was made for.
27725 config_files="$ac_config_files"
27726 config_headers="$ac_config_headers"
27727 config_commands="$ac_config_commands"
27728
27729 _ACEOF
27730
27731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27732 ac_cs_usage="\
27733 \`$as_me' instantiates files and other configuration actions
27734 from templates according to the current configuration.  Unless the files
27735 and actions are specified as TAGs, all are instantiated by default.
27736
27737 Usage: $0 [OPTION]... [TAG]...
27738
27739   -h, --help       print this help, then exit
27740   -V, --version    print version number and configuration settings, then exit
27741   -q, --quiet, --silent
27742                    do not print progress messages
27743   -d, --debug      don't remove temporary files
27744       --recheck    update $as_me by reconfiguring in the same conditions
27745       --file=FILE[:TEMPLATE]
27746                    instantiate the configuration file FILE
27747       --header=FILE[:TEMPLATE]
27748                    instantiate the configuration header FILE
27749
27750 Configuration files:
27751 $config_files
27752
27753 Configuration headers:
27754 $config_headers
27755
27756 Configuration commands:
27757 $config_commands
27758
27759 Report bugs to the package provider."
27760
27761 _ACEOF
27762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27763 ac_cs_version="\\
27764 config.status
27765 configured by $0, generated by GNU Autoconf 2.64,
27766   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27767
27768 Copyright (C) 2009 Free Software Foundation, Inc.
27769 This config.status script is free software; the Free Software Foundation
27770 gives unlimited permission to copy, distribute and modify it."
27771
27772 ac_pwd='$ac_pwd'
27773 srcdir='$srcdir'
27774 AWK='$AWK'
27775 test -n "\$AWK" || AWK=awk
27776 _ACEOF
27777
27778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27779 # The default lists apply if the user does not specify any file.
27780 ac_need_defaults=:
27781 while test $# != 0
27782 do
27783   case $1 in
27784   --*=*)
27785     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27786     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27787     ac_shift=:
27788     ;;
27789   *)
27790     ac_option=$1
27791     ac_optarg=$2
27792     ac_shift=shift
27793     ;;
27794   esac
27795
27796   case $ac_option in
27797   # Handling of the options.
27798   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27799     ac_cs_recheck=: ;;
27800   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27801     $as_echo "$ac_cs_version"; exit ;;
27802   --debug | --debu | --deb | --de | --d | -d )
27803     debug=: ;;
27804   --file | --fil | --fi | --f )
27805     $ac_shift
27806     case $ac_optarg in
27807     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27808     esac
27809     as_fn_append CONFIG_FILES " '$ac_optarg'"
27810     ac_need_defaults=false;;
27811   --header | --heade | --head | --hea )
27812     $ac_shift
27813     case $ac_optarg in
27814     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27815     esac
27816     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27817     ac_need_defaults=false;;
27818   --he | --h)
27819     # Conflict between --help and --header
27820     as_fn_error "ambiguous option: \`$1'
27821 Try \`$0 --help' for more information.";;
27822   --help | --hel | -h )
27823     $as_echo "$ac_cs_usage"; exit ;;
27824   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27825   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27826     ac_cs_silent=: ;;
27827
27828   # This is an error.
27829   -*) as_fn_error "unrecognized option: \`$1'
27830 Try \`$0 --help' for more information." ;;
27831
27832   *) as_fn_append ac_config_targets " $1"
27833      ac_need_defaults=false ;;
27834
27835   esac
27836   shift
27837 done
27838
27839 ac_configure_extra_args=
27840
27841 if $ac_cs_silent; then
27842   exec 6>/dev/null
27843   ac_configure_extra_args="$ac_configure_extra_args --silent"
27844 fi
27845
27846 _ACEOF
27847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27848 if \$ac_cs_recheck; then
27849   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27850   shift
27851   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27852   CONFIG_SHELL='$SHELL'
27853   export CONFIG_SHELL
27854   exec "\$@"
27855 fi
27856
27857 _ACEOF
27858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27859 exec 5>>config.log
27860 {
27861   echo
27862   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27863 ## Running $as_me. ##
27864 _ASBOX
27865   $as_echo "$ac_log"
27866 } >&5
27867
27868 _ACEOF
27869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27870 #
27871 # INIT-COMMANDS
27872 #
27873 subdirs='$subdirs'
27874
27875 _ACEOF
27876
27877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27878
27879 # Handling of arguments.
27880 for ac_config_target in $ac_config_targets
27881 do
27882   case $ac_config_target in
27883     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27884     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27885     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27886     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27887     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27888     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27889
27890   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27891   esac
27892 done
27893
27894
27895 # If the user did not use the arguments to specify the items to instantiate,
27896 # then the envvar interface is used.  Set only those that are not.
27897 # We use the long form for the default assignment because of an extremely
27898 # bizarre bug on SunOS 4.1.3.
27899 if $ac_need_defaults; then
27900   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27901   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27902   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27903 fi
27904
27905 # Have a temporary directory for convenience.  Make it in the build tree
27906 # simply because there is no reason against having it here, and in addition,
27907 # creating and moving files from /tmp can sometimes cause problems.
27908 # Hook for its removal unless debugging.
27909 # Note that there is a small window in which the directory will not be cleaned:
27910 # after its creation but before its name has been assigned to `$tmp'.
27911 $debug ||
27912 {
27913   tmp=
27914   trap 'exit_status=$?
27915   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27916 ' 0
27917   trap 'as_fn_exit 1' 1 2 13 15
27918 }
27919 # Create a (secure) tmp directory for tmp files.
27920
27921 {
27922   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27923   test -n "$tmp" && test -d "$tmp"
27924 }  ||
27925 {
27926   tmp=./conf$$-$RANDOM
27927   (umask 077 && mkdir "$tmp")
27928 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27929
27930 # Set up the scripts for CONFIG_FILES section.
27931 # No need to generate them if there are no CONFIG_FILES.
27932 # This happens for instance with `./config.status config.h'.
27933 if test -n "$CONFIG_FILES"; then
27934
27935 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27936   ac_cs_awk_getline=:
27937   ac_cs_awk_pipe_init=
27938   ac_cs_awk_read_file='
27939       while ((getline aline < (F[key])) > 0)
27940         print(aline)
27941       close(F[key])'
27942   ac_cs_awk_pipe_fini=
27943 else
27944   ac_cs_awk_getline=false
27945   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27946   ac_cs_awk_read_file='
27947       print "|#_!!_#|"
27948       print "cat " F[key] " &&"
27949       '$ac_cs_awk_pipe_init
27950   # The final `:' finishes the AND list.
27951   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27952 fi
27953 ac_cr=`echo X | tr X '\015'`
27954 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27955 # But we know of no other shell where ac_cr would be empty at this
27956 # point, so we can use a bashism as a fallback.
27957 if test "x$ac_cr" = x; then
27958   eval ac_cr=\$\'\\r\'
27959 fi
27960 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27961 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27962   ac_cs_awk_cr='\r'
27963 else
27964   ac_cs_awk_cr=$ac_cr
27965 fi
27966
27967 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27968 _ACEOF
27969
27970 # Create commands to substitute file output variables.
27971 {
27972   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27973   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27974   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27975   echo "_ACAWK" &&
27976   echo "_ACEOF"
27977 } >conf$$files.sh &&
27978 . ./conf$$files.sh ||
27979   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27980 rm -f conf$$files.sh
27981
27982 {
27983   echo "cat >conf$$subs.awk <<_ACEOF" &&
27984   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27985   echo "_ACEOF"
27986 } >conf$$subs.sh ||
27987   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27988 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27989 ac_delim='%!_!# '
27990 for ac_last_try in false false false false false :; do
27991   . ./conf$$subs.sh ||
27992     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27993
27994   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27995   if test $ac_delim_n = $ac_delim_num; then
27996     break
27997   elif $ac_last_try; then
27998     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27999   else
28000     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28001   fi
28002 done
28003 rm -f conf$$subs.sh
28004
28005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28006 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
28007 _ACEOF
28008 sed -n '
28009 h
28010 s/^/S["/; s/!.*/"]=/
28011 p
28012 g
28013 s/^[^!]*!//
28014 :repl
28015 t repl
28016 s/'"$ac_delim"'$//
28017 t delim
28018 :nl
28019 h
28020 s/\(.\{148\}\).*/\1/
28021 t more1
28022 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
28023 p
28024 n
28025 b repl
28026 :more1
28027 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28028 p
28029 g
28030 s/.\{148\}//
28031 t nl
28032 :delim
28033 h
28034 s/\(.\{148\}\).*/\1/
28035 t more2
28036 s/["\\]/\\&/g; s/^/"/; s/$/"/
28037 p
28038 b
28039 :more2
28040 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
28041 p
28042 g
28043 s/.\{148\}//
28044 t delim
28045 ' <conf$$subs.awk | sed '
28046 /^[^""]/{
28047   N
28048   s/\n//
28049 }
28050 ' >>$CONFIG_STATUS || ac_write_fail=1
28051 rm -f conf$$subs.awk
28052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28053 _ACAWK
28054 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
28055   for (key in S) S_is_set[key] = 1
28056   FS = "\a"
28057   \$ac_cs_awk_pipe_init
28058 }
28059 {
28060   line = $ 0
28061   nfields = split(line, field, "@")
28062   substed = 0
28063   len = length(field[1])
28064   for (i = 2; i < nfields; i++) {
28065     key = field[i]
28066     keylen = length(key)
28067     if (S_is_set[key]) {
28068       value = S[key]
28069       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
28070       len += length(value) + length(field[++i])
28071       substed = 1
28072     } else
28073       len += 1 + keylen
28074   }
28075   if (nfields == 3 && !substed) {
28076     key = field[2]
28077     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
28078       \$ac_cs_awk_read_file
28079       next
28080     }
28081   }
28082   print line
28083 }
28084 \$ac_cs_awk_pipe_fini
28085 _ACAWK
28086 _ACEOF
28087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28088 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
28089   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
28090 else
28091   cat
28092 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
28093   || as_fn_error "could not setup config files machinery" "$LINENO" 5
28094 _ACEOF
28095
28096 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28097 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28098 # trailing colons and then remove the whole line if VPATH becomes empty
28099 # (actually we leave an empty line to preserve line numbers).
28100 if test "x$srcdir" = x.; then
28101   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28102 s/:*\$(srcdir):*/:/
28103 s/:*\${srcdir}:*/:/
28104 s/:*@srcdir@:*/:/
28105 s/^\([^=]*=[     ]*\):*/\1/
28106 s/:*$//
28107 s/^[^=]*=[       ]*$//
28108 }'
28109 fi
28110
28111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28112 fi # test -n "$CONFIG_FILES"
28113
28114 # Set up the scripts for CONFIG_HEADERS section.
28115 # No need to generate them if there are no CONFIG_HEADERS.
28116 # This happens for instance with `./config.status Makefile'.
28117 if test -n "$CONFIG_HEADERS"; then
28118 cat >"$tmp/defines.awk" <<\_ACAWK ||
28119 BEGIN {
28120 _ACEOF
28121
28122 # Transform confdefs.h into an awk script `defines.awk', embedded as
28123 # here-document in config.status, that substitutes the proper values into
28124 # config.h.in to produce config.h.
28125
28126 # Create a delimiter string that does not exist in confdefs.h, to ease
28127 # handling of long lines.
28128 ac_delim='%!_!# '
28129 for ac_last_try in false false :; do
28130   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28131   if test -z "$ac_t"; then
28132     break
28133   elif $ac_last_try; then
28134     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28135   else
28136     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28137   fi
28138 done
28139
28140 # For the awk script, D is an array of macro values keyed by name,
28141 # likewise P contains macro parameters if any.  Preserve backslash
28142 # newline sequences.
28143
28144 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28145 sed -n '
28146 s/.\{148\}/&'"$ac_delim"'/g
28147 t rset
28148 :rset
28149 s/^[     ]*#[    ]*define[       ][      ]*/ /
28150 t def
28151 d
28152 :def
28153 s/\\$//
28154 t bsnl
28155 s/["\\]/\\&/g
28156 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28157 D["\1"]=" \3"/p
28158 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
28159 d
28160 :bsnl
28161 s/["\\]/\\&/g
28162 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
28163 D["\1"]=" \3\\\\\\n"\\/p
28164 t cont
28165 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28166 t cont
28167 d
28168 :cont
28169 n
28170 s/.\{148\}/&'"$ac_delim"'/g
28171 t clear
28172 :clear
28173 s/\\$//
28174 t bsnlc
28175 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28176 d
28177 :bsnlc
28178 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28179 b cont
28180 ' <confdefs.h | sed '
28181 s/'"$ac_delim"'/"\\\
28182 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28183
28184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28185   for (key in D) D_is_set[key] = 1
28186   FS = "\a"
28187 }
28188 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28189   line = \$ 0
28190   split(line, arg, " ")
28191   if (arg[1] == "#") {
28192     defundef = arg[2]
28193     mac1 = arg[3]
28194   } else {
28195     defundef = substr(arg[1], 2)
28196     mac1 = arg[2]
28197   }
28198   split(mac1, mac2, "(") #)
28199   macro = mac2[1]
28200   prefix = substr(line, 1, index(line, defundef) - 1)
28201   if (D_is_set[macro]) {
28202     # Preserve the white space surrounding the "#".
28203     print prefix "define", macro P[macro] D[macro]
28204     next
28205   } else {
28206     # Replace #undef with comments.  This is necessary, for example,
28207     # in the case of _POSIX_SOURCE, which is predefined and required
28208     # on some systems where configure will not decide to define it.
28209     if (defundef == "undef") {
28210       print "/*", prefix defundef, macro, "*/"
28211       next
28212     }
28213   }
28214 }
28215 { print }
28216 _ACAWK
28217 _ACEOF
28218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28219   as_fn_error "could not setup config headers machinery" "$LINENO" 5
28220 fi # test -n "$CONFIG_HEADERS"
28221
28222
28223 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
28224 shift
28225 for ac_tag
28226 do
28227   case $ac_tag in
28228   :[FHLC]) ac_mode=$ac_tag; continue;;
28229   esac
28230   case $ac_mode$ac_tag in
28231   :[FHL]*:*);;
28232   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28233   :[FH]-) ac_tag=-:-;;
28234   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28235   esac
28236   ac_save_IFS=$IFS
28237   IFS=:
28238   set x $ac_tag
28239   IFS=$ac_save_IFS
28240   shift
28241   ac_file=$1
28242   shift
28243
28244   case $ac_mode in
28245   :L) ac_source=$1;;
28246   :[FH])
28247     ac_file_inputs=
28248     for ac_f
28249     do
28250       case $ac_f in
28251       -) ac_f="$tmp/stdin";;
28252       *) # Look for the file first in the build tree, then in the source tree
28253          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28254          # because $ac_f cannot contain `:'.
28255          test -f "$ac_f" ||
28256            case $ac_f in
28257            [\\/$]*) false;;
28258            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28259            esac ||
28260            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28261       esac
28262       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28263       as_fn_append ac_file_inputs " '$ac_f'"
28264     done
28265
28266     # Let's still pretend it is `configure' which instantiates (i.e., don't
28267     # use $as_me), people would be surprised to read:
28268     #    /* config.h.  Generated by config.status.  */
28269     configure_input='Generated from '`
28270           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28271         `' by configure.'
28272     if test x"$ac_file" != x-; then
28273       configure_input="$ac_file.  $configure_input"
28274       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28275 $as_echo "$as_me: creating $ac_file" >&6;}
28276     fi
28277     # Neutralize special characters interpreted by sed in replacement strings.
28278     case $configure_input in #(
28279     *\&* | *\|* | *\\* )
28280        ac_sed_conf_input=`$as_echo "$configure_input" |
28281        sed 's/[\\\\&|]/\\\\&/g'`;; #(
28282     *) ac_sed_conf_input=$configure_input;;
28283     esac
28284
28285     case $ac_tag in
28286     *:-:* | *:-) cat >"$tmp/stdin" \
28287       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28288     esac
28289     ;;
28290   esac
28291
28292   ac_dir=`$as_dirname -- "$ac_file" ||
28293 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28294          X"$ac_file" : 'X\(//\)[^/]' \| \
28295          X"$ac_file" : 'X\(//\)$' \| \
28296          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28297 $as_echo X"$ac_file" |
28298     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28299             s//\1/
28300             q
28301           }
28302           /^X\(\/\/\)[^/].*/{
28303             s//\1/
28304             q
28305           }
28306           /^X\(\/\/\)$/{
28307             s//\1/
28308             q
28309           }
28310           /^X\(\/\).*/{
28311             s//\1/
28312             q
28313           }
28314           s/.*/./; q'`
28315   as_dir="$ac_dir"; as_fn_mkdir_p
28316   ac_builddir=.
28317
28318 case "$ac_dir" in
28319 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28320 *)
28321   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28322   # A ".." for each directory in $ac_dir_suffix.
28323   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28324   case $ac_top_builddir_sub in
28325   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28326   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28327   esac ;;
28328 esac
28329 ac_abs_top_builddir=$ac_pwd
28330 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28331 # for backward compatibility:
28332 ac_top_builddir=$ac_top_build_prefix
28333
28334 case $srcdir in
28335   .)  # We are building in place.
28336     ac_srcdir=.
28337     ac_top_srcdir=$ac_top_builddir_sub
28338     ac_abs_top_srcdir=$ac_pwd ;;
28339   [\\/]* | ?:[\\/]* )  # Absolute name.
28340     ac_srcdir=$srcdir$ac_dir_suffix;
28341     ac_top_srcdir=$srcdir
28342     ac_abs_top_srcdir=$srcdir ;;
28343   *) # Relative name.
28344     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28345     ac_top_srcdir=$ac_top_build_prefix$srcdir
28346     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28347 esac
28348 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28349
28350
28351   case $ac_mode in
28352   :F)
28353   #
28354   # CONFIG_FILE
28355   #
28356
28357 _ACEOF
28358
28359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28360 # If the template does not know about datarootdir, expand it.
28361 # FIXME: This hack should be removed a few years after 2.60.
28362 ac_datarootdir_hack=; ac_datarootdir_seen=
28363 ac_sed_dataroot='
28364 /datarootdir/ {
28365   p
28366   q
28367 }
28368 /@datadir@/p
28369 /@docdir@/p
28370 /@infodir@/p
28371 /@localedir@/p
28372 /@mandir@/p'
28373 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28374 *datarootdir*) ac_datarootdir_seen=yes;;
28375 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28376   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28377 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28378 _ACEOF
28379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28380   ac_datarootdir_hack='
28381   s&@datadir@&$datadir&g
28382   s&@docdir@&$docdir&g
28383   s&@infodir@&$infodir&g
28384   s&@localedir@&$localedir&g
28385   s&@mandir@&$mandir&g
28386   s&\\\${datarootdir}&$datarootdir&g' ;;
28387 esac
28388 _ACEOF
28389
28390 # Neutralize VPATH when `$srcdir' = `.'.
28391 # Shell code in configure.ac might set extrasub.
28392 # FIXME: do we really want to maintain this feature?
28393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28394 ac_sed_extra="$ac_vpsub
28395 $extrasub
28396 _ACEOF
28397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28398 :t
28399 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28400 s|@configure_input@|$ac_sed_conf_input|;t t
28401 s&@top_builddir@&$ac_top_builddir_sub&;t t
28402 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28403 s&@srcdir@&$ac_srcdir&;t t
28404 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28405 s&@top_srcdir@&$ac_top_srcdir&;t t
28406 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28407 s&@builddir@&$ac_builddir&;t t
28408 s&@abs_builddir@&$ac_abs_builddir&;t t
28409 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28410 $ac_datarootdir_hack
28411 "
28412 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28413 if $ac_cs_awk_getline; then
28414   $AWK -f "$tmp/subs.awk"
28415 else
28416   $AWK -f "$tmp/subs.awk" | $SHELL
28417 fi >$tmp/out \
28418   || as_fn_error "could not create $ac_file" "$LINENO" 5
28419
28420 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28421   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28422   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28423   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28424 which seems to be undefined.  Please make sure it is defined." >&5
28425 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28426 which seems to be undefined.  Please make sure it is defined." >&2;}
28427
28428   rm -f "$tmp/stdin"
28429   case $ac_file in
28430   -) cat "$tmp/out" && rm -f "$tmp/out";;
28431   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28432   esac \
28433   || as_fn_error "could not create $ac_file" "$LINENO" 5
28434  ;;
28435   :H)
28436   #
28437   # CONFIG_HEADER
28438   #
28439   if test x"$ac_file" != x-; then
28440     {
28441       $as_echo "/* $configure_input  */" \
28442       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28443     } >"$tmp/config.h" \
28444       || as_fn_error "could not create $ac_file" "$LINENO" 5
28445     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28446       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28447 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28448     else
28449       rm -f "$ac_file"
28450       mv "$tmp/config.h" "$ac_file" \
28451         || as_fn_error "could not create $ac_file" "$LINENO" 5
28452     fi
28453   else
28454     $as_echo "/* $configure_input  */" \
28455       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28456       || as_fn_error "could not create -" "$LINENO" 5
28457   fi
28458  ;;
28459
28460   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28461 $as_echo "$as_me: executing $ac_file commands" >&6;}
28462  ;;
28463   esac
28464
28465
28466   case $ac_file$ac_mode in
28467     "as":F) chmod +x as ;;
28468     "collect-ld":F) chmod +x collect-ld ;;
28469     "nm":F) chmod +x nm ;;
28470     "default":C)
28471 case ${CONFIG_HEADERS} in
28472   *auto-host.h:config.in*)
28473   echo > cstamp-h ;;
28474 esac
28475 # Make sure all the subdirs exist.
28476 for d in $subdirs doc build common c-family
28477 do
28478     test -d $d || mkdir $d
28479 done
28480  ;;
28481
28482   esac
28483 done # for ac_tag
28484
28485
28486 as_fn_exit 0
28487 _ACEOF
28488 ac_clean_files=$ac_clean_files_save
28489
28490 test $ac_write_fail = 0 ||
28491   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28492
28493
28494 # configure is writing to config.log, and then calls config.status.
28495 # config.status does its own redirection, appending to config.log.
28496 # Unfortunately, on DOS this fails, as config.log is still kept open
28497 # by configure, so config.status won't be able to write to it; its
28498 # output is simply discarded.  So we exec the FD to /dev/null,
28499 # effectively closing config.log, so it can be properly (re)opened and
28500 # appended to by config.status.  When coming back to configure, we
28501 # need to make the FD available again.
28502 if test "$no_create" != yes; then
28503   ac_cs_success=:
28504   ac_config_status_args=
28505   test "$silent" = yes &&
28506     ac_config_status_args="$ac_config_status_args --quiet"
28507   exec 5>/dev/null
28508   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28509   exec 5>>config.log
28510   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28511   # would make configure fail if this is the last instruction.
28512   $ac_cs_success || as_fn_exit $?
28513 fi
28514 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28515   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28516 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28517 fi
28518
28519