OSDN Git Service

gcc:
[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 out_object_file
628 out_file
629 objc_boehm_gc
630 md_file
631 local_prefix
632 lang_tree_files
633 lang_specs_files
634 lang_opt_files
635 install
636 out_host_hook_obj
637 host_xm_defines
638 host_xm_include_list
639 host_xm_file_list
640 host_exeext
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_passes
646 extra_parts
647 extra_objs
648 extra_headers_list
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
651 extra_gcc_objs
652 TM_MULTILIB_EXCEPTIONS_CONFIG
653 TM_MULTILIB_CONFIG
654 TM_ENDIAN_CONFIG
655 tmake_file
656 xmake_file
657 cpp_install_dir
658 check_languages
659 build_file_translate
660 build_xm_defines
661 build_xm_include_list
662 build_xm_file_list
663 build_install_headers_dir
664 build_exeext
665 all_selected_languages
666 all_languages
667 all_lang_makefrags
668 all_gtfiles
669 all_compilers
670 srcdir
671 subdirs
672 slibdir
673 dollar
674 gcc_tooldir
675 enable_lto
676 MAINT
677 zlibinc
678 zlibdir
679 HOST_LIBS
680 GGC
681 libgcc_visibility
682 gcc_cv_readelf
683 gcc_cv_objdump
684 ORIGINAL_NM_FOR_TARGET
685 gcc_cv_nm
686 ORIGINAL_LD_FOR_TARGET
687 ORIGINAL_PLUGIN_LD_FOR_TARGET
688 gcc_cv_ld
689 ORIGINAL_AS_FOR_TARGET
690 gcc_cv_as
691 enable_fast_install
692 objdir
693 OTOOL64
694 OTOOL
695 LIPO
696 NMEDIT
697 DSYMUTIL
698 STRIP
699 OBJDUMP
700 ac_ct_DUMPBIN
701 DUMPBIN
702 LD
703 FGREP
704 SED
705 LIBTOOL
706 collect2
707 STMP_FIXINC
708 BUILD_LDFLAGS
709 BUILD_CFLAGS
710 CC_FOR_BUILD
711 inhibit_libc
712 SYSTEM_HEADER_DIR
713 ALL
714 CROSS
715 CATOBJEXT
716 GENCAT
717 INSTOBJEXT
718 DATADIRNAME
719 CATALOGS
720 POSUB
721 GMSGFMT
722 XGETTEXT
723 INCINTL
724 LIBINTL_DEP
725 LIBINTL
726 USE_NLS
727 extra_opt_files
728 extra_modes_file
729 gthread_flags
730 objext
731 manext
732 LIBICONV_DEP
733 LTLIBICONV
734 LIBICONV
735 LDEXP_LIB
736 GNAT_LIBEXC
737 COLLECT2_LIBS
738 CXXCPP
739 AR
740 NM
741 BISON
742 FLEX
743 GENERATED_MANPAGES
744 BUILD_INFO
745 MAKEINFO
746 have_mktemp_command
747 make_compare_target
748 INSTALL_DATA
749 INSTALL_PROGRAM
750 INSTALL
751 ranlib_flags
752 RANLIB
753 LN
754 LN_S
755 AWK
756 SET_MAKE
757 REPORT_BUGS_TEXI
758 REPORT_BUGS_TO
759 PKGVERSION
760 CONFIGURE_SPECS
761 CROSS_SYSTEM_HEADER_DIR
762 TARGET_SYSTEM_ROOT_DEFINE
763 TARGET_SYSTEM_ROOT
764 enable_shared
765 enable_fixed_point
766 enable_decimal_float
767 enable_multilib
768 ENABLE_BUILD_WITH_CXX
769 coverage_flags
770 valgrind_command
771 valgrind_path_defines
772 valgrind_path
773 TREEBROWSER
774 nocommon_flag
775 warn_cxxflags
776 warn_cflags
777 c_strict_warn
778 strict_warn
779 c_loose_warn
780 loose_warn
781 EGREP
782 GREP
783 CPP
784 OUTPUT_OPTION
785 NO_MINUS_C_MINUS_O
786 GNATMAKE
787 GNATBIND
788 ac_ct_CXX
789 CXXFLAGS
790 CXX
791 OBJEXT
792 EXEEXT
793 ac_ct_CC
794 CPPFLAGS
795 LDFLAGS
796 CFLAGS
797 CC
798 GENINSRC
799 target_subdir
800 host_subdir
801 build_subdir
802 build_libsubdir
803 target_noncanonical
804 target_os
805 target_vendor
806 target_cpu
807 target
808 host_os
809 host_vendor
810 host_cpu
811 host
812 build_os
813 build_vendor
814 build_cpu
815 build
816 target_alias
817 host_alias
818 build_alias
819 LIBS
820 ECHO_T
821 ECHO_N
822 ECHO_C
823 DEFS
824 mandir
825 localedir
826 libdir
827 psdir
828 pdfdir
829 dvidir
830 htmldir
831 infodir
832 docdir
833 oldincludedir
834 includedir
835 localstatedir
836 sharedstatedir
837 sysconfdir
838 datadir
839 datarootdir
840 libexecdir
841 sbindir
842 bindir
843 program_transform_name
844 prefix
845 exec_prefix
846 PACKAGE_URL
847 PACKAGE_BUGREPORT
848 PACKAGE_STRING
849 PACKAGE_VERSION
850 PACKAGE_TARNAME
851 PACKAGE_NAME
852 PATH_SEPARATOR
853 SHELL'
854 ac_subst_files='option_includes
855 language_hooks'
856 ac_user_opts='
857 enable_option_checking
858 with_build_libsubdir
859 with_local_prefix
860 with_gxx_include_dir
861 with_cpp_install_dir
862 enable_generated_files_in_srcdir
863 with_gnu_ld
864 with_ld
865 with_demangler_in_ld
866 with_gnu_as
867 with_as
868 enable_largefile
869 enable_werror_always
870 enable_checking
871 enable_coverage
872 enable_gather_detailed_mem_stats
873 enable_build_with_cxx
874 with_stabs
875 enable_multilib
876 enable___cxa_atexit
877 enable_decimal_float
878 enable_fixed_point
879 enable_threads
880 enable_tls
881 enable_objc_gc
882 with_dwarf2
883 enable_shared
884 with_build_sysroot
885 with_sysroot
886 with_specs
887 with_pkgversion
888 with_bugurl
889 enable_languages
890 with_multilib_list
891 enable_rpath
892 with_libiconv_prefix
893 enable_initfini_array
894 enable_sjlj_exceptions
895 with_system_libunwind
896 enable_secureplt
897 enable_leading_mingw64_underscores
898 enable_cld
899 enable_frame_pointer
900 enable_win32_registry
901 enable_static
902 with_pic
903 enable_fast_install
904 enable_libtool_lock
905 with_plugin_ld
906 enable_gnu_indirect_function
907 enable_comdat
908 enable_gnu_unique_object
909 enable_linker_build_id
910 with_long_double_128
911 with_gc
912 with_system_zlib
913 enable_maintainer_mode
914 enable_version_specific_runtime_libs
915 with_slibdir
916 enable_plugin
917 enable_libquadmath_support
918 '
919       ac_precious_vars='build_alias
920 host_alias
921 target_alias
922 CC
923 CFLAGS
924 LDFLAGS
925 LIBS
926 CPPFLAGS
927 CXX
928 CXXFLAGS
929 CCC
930 CPP
931 CXXCPP
932 GMPLIBS
933 GMPINC
934 PPLLIBS
935 PPLINC
936 CLOOGLIBS
937 CLOOGINC'
938
939
940 # Initialize some variables set by options.
941 ac_init_help=
942 ac_init_version=false
943 ac_unrecognized_opts=
944 ac_unrecognized_sep=
945 # The variables have the same names as the options, with
946 # dashes changed to underlines.
947 cache_file=/dev/null
948 exec_prefix=NONE
949 no_create=
950 no_recursion=
951 prefix=NONE
952 program_prefix=NONE
953 program_suffix=NONE
954 program_transform_name=s,x,x,
955 silent=
956 site=
957 srcdir=
958 verbose=
959 x_includes=NONE
960 x_libraries=NONE
961
962 # Installation directory options.
963 # These are left unexpanded so users can "make install exec_prefix=/foo"
964 # and all the variables that are supposed to be based on exec_prefix
965 # by default will actually change.
966 # Use braces instead of parens because sh, perl, etc. also accept them.
967 # (The list follows the same order as the GNU Coding Standards.)
968 bindir='${exec_prefix}/bin'
969 sbindir='${exec_prefix}/sbin'
970 libexecdir='${exec_prefix}/libexec'
971 datarootdir='${prefix}/share'
972 datadir='${datarootdir}'
973 sysconfdir='${prefix}/etc'
974 sharedstatedir='${prefix}/com'
975 localstatedir='${prefix}/var'
976 includedir='${prefix}/include'
977 oldincludedir='/usr/include'
978 docdir='${datarootdir}/doc/${PACKAGE}'
979 infodir='${datarootdir}/info'
980 htmldir='${docdir}'
981 dvidir='${docdir}'
982 pdfdir='${docdir}'
983 psdir='${docdir}'
984 libdir='${exec_prefix}/lib'
985 localedir='${datarootdir}/locale'
986 mandir='${datarootdir}/man'
987
988 ac_prev=
989 ac_dashdash=
990 for ac_option
991 do
992   # If the previous option needs an argument, assign it.
993   if test -n "$ac_prev"; then
994     eval $ac_prev=\$ac_option
995     ac_prev=
996     continue
997   fi
998
999   case $ac_option in
1000   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001   *)    ac_optarg=yes ;;
1002   esac
1003
1004   # Accept the important Cygnus configure options, so we can diagnose typos.
1005
1006   case $ac_dashdash$ac_option in
1007   --)
1008     ac_dashdash=yes ;;
1009
1010   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1011     ac_prev=bindir ;;
1012   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1013     bindir=$ac_optarg ;;
1014
1015   -build | --build | --buil | --bui | --bu)
1016     ac_prev=build_alias ;;
1017   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1018     build_alias=$ac_optarg ;;
1019
1020   -cache-file | --cache-file | --cache-fil | --cache-fi \
1021   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1022     ac_prev=cache_file ;;
1023   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1024   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1025     cache_file=$ac_optarg ;;
1026
1027   --config-cache | -C)
1028     cache_file=config.cache ;;
1029
1030   -datadir | --datadir | --datadi | --datad)
1031     ac_prev=datadir ;;
1032   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1033     datadir=$ac_optarg ;;
1034
1035   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1036   | --dataroo | --dataro | --datar)
1037     ac_prev=datarootdir ;;
1038   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1039   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1040     datarootdir=$ac_optarg ;;
1041
1042   -disable-* | --disable-*)
1043     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1044     # Reject names that are not valid shell variable names.
1045     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046       as_fn_error "invalid feature name: $ac_useropt"
1047     ac_useropt_orig=$ac_useropt
1048     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049     case $ac_user_opts in
1050       *"
1051 "enable_$ac_useropt"
1052 "*) ;;
1053       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1054          ac_unrecognized_sep=', ';;
1055     esac
1056     eval enable_$ac_useropt=no ;;
1057
1058   -docdir | --docdir | --docdi | --doc | --do)
1059     ac_prev=docdir ;;
1060   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1061     docdir=$ac_optarg ;;
1062
1063   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1064     ac_prev=dvidir ;;
1065   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1066     dvidir=$ac_optarg ;;
1067
1068   -enable-* | --enable-*)
1069     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1070     # Reject names that are not valid shell variable names.
1071     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072       as_fn_error "invalid feature name: $ac_useropt"
1073     ac_useropt_orig=$ac_useropt
1074     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075     case $ac_user_opts in
1076       *"
1077 "enable_$ac_useropt"
1078 "*) ;;
1079       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1080          ac_unrecognized_sep=', ';;
1081     esac
1082     eval enable_$ac_useropt=\$ac_optarg ;;
1083
1084   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086   | --exec | --exe | --ex)
1087     ac_prev=exec_prefix ;;
1088   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090   | --exec=* | --exe=* | --ex=*)
1091     exec_prefix=$ac_optarg ;;
1092
1093   -gas | --gas | --ga | --g)
1094     # Obsolete; use --with-gas.
1095     with_gas=yes ;;
1096
1097   -help | --help | --hel | --he | -h)
1098     ac_init_help=long ;;
1099   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100     ac_init_help=recursive ;;
1101   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102     ac_init_help=short ;;
1103
1104   -host | --host | --hos | --ho)
1105     ac_prev=host_alias ;;
1106   -host=* | --host=* | --hos=* | --ho=*)
1107     host_alias=$ac_optarg ;;
1108
1109   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110     ac_prev=htmldir ;;
1111   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112   | --ht=*)
1113     htmldir=$ac_optarg ;;
1114
1115   -includedir | --includedir | --includedi | --included | --include \
1116   | --includ | --inclu | --incl | --inc)
1117     ac_prev=includedir ;;
1118   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119   | --includ=* | --inclu=* | --incl=* | --inc=*)
1120     includedir=$ac_optarg ;;
1121
1122   -infodir | --infodir | --infodi | --infod | --info | --inf)
1123     ac_prev=infodir ;;
1124   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125     infodir=$ac_optarg ;;
1126
1127   -libdir | --libdir | --libdi | --libd)
1128     ac_prev=libdir ;;
1129   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130     libdir=$ac_optarg ;;
1131
1132   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133   | --libexe | --libex | --libe)
1134     ac_prev=libexecdir ;;
1135   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136   | --libexe=* | --libex=* | --libe=*)
1137     libexecdir=$ac_optarg ;;
1138
1139   -localedir | --localedir | --localedi | --localed | --locale)
1140     ac_prev=localedir ;;
1141   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142     localedir=$ac_optarg ;;
1143
1144   -localstatedir | --localstatedir | --localstatedi | --localstated \
1145   | --localstate | --localstat | --localsta | --localst | --locals)
1146     ac_prev=localstatedir ;;
1147   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1148   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1149     localstatedir=$ac_optarg ;;
1150
1151   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152     ac_prev=mandir ;;
1153   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154     mandir=$ac_optarg ;;
1155
1156   -nfp | --nfp | --nf)
1157     # Obsolete; use --without-fp.
1158     with_fp=no ;;
1159
1160   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161   | --no-cr | --no-c | -n)
1162     no_create=yes ;;
1163
1164   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1166     no_recursion=yes ;;
1167
1168   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170   | --oldin | --oldi | --old | --ol | --o)
1171     ac_prev=oldincludedir ;;
1172   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175     oldincludedir=$ac_optarg ;;
1176
1177   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178     ac_prev=prefix ;;
1179   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180     prefix=$ac_optarg ;;
1181
1182   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183   | --program-pre | --program-pr | --program-p)
1184     ac_prev=program_prefix ;;
1185   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187     program_prefix=$ac_optarg ;;
1188
1189   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190   | --program-suf | --program-su | --program-s)
1191     ac_prev=program_suffix ;;
1192   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194     program_suffix=$ac_optarg ;;
1195
1196   -program-transform-name | --program-transform-name \
1197   | --program-transform-nam | --program-transform-na \
1198   | --program-transform-n | --program-transform- \
1199   | --program-transform | --program-transfor \
1200   | --program-transfo | --program-transf \
1201   | --program-trans | --program-tran \
1202   | --progr-tra | --program-tr | --program-t)
1203     ac_prev=program_transform_name ;;
1204   -program-transform-name=* | --program-transform-name=* \
1205   | --program-transform-nam=* | --program-transform-na=* \
1206   | --program-transform-n=* | --program-transform-=* \
1207   | --program-transform=* | --program-transfor=* \
1208   | --program-transfo=* | --program-transf=* \
1209   | --program-trans=* | --program-tran=* \
1210   | --progr-tra=* | --program-tr=* | --program-t=*)
1211     program_transform_name=$ac_optarg ;;
1212
1213   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214     ac_prev=pdfdir ;;
1215   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216     pdfdir=$ac_optarg ;;
1217
1218   -psdir | --psdir | --psdi | --psd | --ps)
1219     ac_prev=psdir ;;
1220   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1221     psdir=$ac_optarg ;;
1222
1223   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224   | -silent | --silent | --silen | --sile | --sil)
1225     silent=yes ;;
1226
1227   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1228     ac_prev=sbindir ;;
1229   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1230   | --sbi=* | --sb=*)
1231     sbindir=$ac_optarg ;;
1232
1233   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235   | --sharedst | --shareds | --shared | --share | --shar \
1236   | --sha | --sh)
1237     ac_prev=sharedstatedir ;;
1238   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1241   | --sha=* | --sh=*)
1242     sharedstatedir=$ac_optarg ;;
1243
1244   -site | --site | --sit)
1245     ac_prev=site ;;
1246   -site=* | --site=* | --sit=*)
1247     site=$ac_optarg ;;
1248
1249   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1250     ac_prev=srcdir ;;
1251   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252     srcdir=$ac_optarg ;;
1253
1254   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255   | --syscon | --sysco | --sysc | --sys | --sy)
1256     ac_prev=sysconfdir ;;
1257   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259     sysconfdir=$ac_optarg ;;
1260
1261   -target | --target | --targe | --targ | --tar | --ta | --t)
1262     ac_prev=target_alias ;;
1263   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264     target_alias=$ac_optarg ;;
1265
1266   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1267     verbose=yes ;;
1268
1269   -version | --version | --versio | --versi | --vers | -V)
1270     ac_init_version=: ;;
1271
1272   -with-* | --with-*)
1273     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274     # Reject names that are not valid shell variable names.
1275     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276       as_fn_error "invalid package name: $ac_useropt"
1277     ac_useropt_orig=$ac_useropt
1278     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279     case $ac_user_opts in
1280       *"
1281 "with_$ac_useropt"
1282 "*) ;;
1283       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284          ac_unrecognized_sep=', ';;
1285     esac
1286     eval with_$ac_useropt=\$ac_optarg ;;
1287
1288   -without-* | --without-*)
1289     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290     # Reject names that are not valid shell variable names.
1291     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292       as_fn_error "invalid package name: $ac_useropt"
1293     ac_useropt_orig=$ac_useropt
1294     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295     case $ac_user_opts in
1296       *"
1297 "with_$ac_useropt"
1298 "*) ;;
1299       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300          ac_unrecognized_sep=', ';;
1301     esac
1302     eval with_$ac_useropt=no ;;
1303
1304   --x)
1305     # Obsolete; use --with-x.
1306     with_x=yes ;;
1307
1308   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1309   | --x-incl | --x-inc | --x-in | --x-i)
1310     ac_prev=x_includes ;;
1311   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1312   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1313     x_includes=$ac_optarg ;;
1314
1315   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1316   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1317     ac_prev=x_libraries ;;
1318   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1319   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1320     x_libraries=$ac_optarg ;;
1321
1322   -*) as_fn_error "unrecognized option: \`$ac_option'
1323 Try \`$0 --help' for more information."
1324     ;;
1325
1326   *=*)
1327     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1328     # Reject names that are not valid shell variable names.
1329     case $ac_envvar in #(
1330       '' | [0-9]* | *[!_$as_cr_alnum]* )
1331       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1332     esac
1333     eval $ac_envvar=\$ac_optarg
1334     export $ac_envvar ;;
1335
1336   *)
1337     # FIXME: should be removed in autoconf 3.0.
1338     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1339     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1340       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1341     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1342     ;;
1343
1344   esac
1345 done
1346
1347 if test -n "$ac_prev"; then
1348   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1349   as_fn_error "missing argument to $ac_option"
1350 fi
1351
1352 if test -n "$ac_unrecognized_opts"; then
1353   case $enable_option_checking in
1354     no) ;;
1355     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1356     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1357   esac
1358 fi
1359
1360 # Check all directory arguments for consistency.
1361 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362                 datadir sysconfdir sharedstatedir localstatedir includedir \
1363                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364                 libdir localedir mandir
1365 do
1366   eval ac_val=\$$ac_var
1367   # Remove trailing slashes.
1368   case $ac_val in
1369     */ )
1370       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1371       eval $ac_var=\$ac_val;;
1372   esac
1373   # Be sure to have absolute directory names.
1374   case $ac_val in
1375     [\\/$]* | ?:[\\/]* )  continue;;
1376     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1377   esac
1378   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1379 done
1380
1381 # There might be people who depend on the old broken behavior: `$host'
1382 # used to hold the argument of --host etc.
1383 # FIXME: To remove some day.
1384 build=$build_alias
1385 host=$host_alias
1386 target=$target_alias
1387
1388 # FIXME: To remove some day.
1389 if test "x$host_alias" != x; then
1390   if test "x$build_alias" = x; then
1391     cross_compiling=maybe
1392     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1393     If a cross compiler is detected then cross compile mode will be used." >&2
1394   elif test "x$build_alias" != "x$host_alias"; then
1395     cross_compiling=yes
1396   fi
1397 fi
1398
1399 ac_tool_prefix=
1400 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1401
1402 test "$silent" = yes && exec 6>/dev/null
1403
1404
1405 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1406 ac_ls_di=`ls -di .` &&
1407 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1408   as_fn_error "working directory cannot be determined"
1409 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410   as_fn_error "pwd does not report name of working directory"
1411
1412
1413 # Find the source files, if location was not specified.
1414 if test -z "$srcdir"; then
1415   ac_srcdir_defaulted=yes
1416   # Try the directory containing this script, then the parent directory.
1417   ac_confdir=`$as_dirname -- "$as_myself" ||
1418 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1419          X"$as_myself" : 'X\(//\)[^/]' \| \
1420          X"$as_myself" : 'X\(//\)$' \| \
1421          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1422 $as_echo X"$as_myself" |
1423     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1424             s//\1/
1425             q
1426           }
1427           /^X\(\/\/\)[^/].*/{
1428             s//\1/
1429             q
1430           }
1431           /^X\(\/\/\)$/{
1432             s//\1/
1433             q
1434           }
1435           /^X\(\/\).*/{
1436             s//\1/
1437             q
1438           }
1439           s/.*/./; q'`
1440   srcdir=$ac_confdir
1441   if test ! -r "$srcdir/$ac_unique_file"; then
1442     srcdir=..
1443   fi
1444 else
1445   ac_srcdir_defaulted=no
1446 fi
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1449   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1450 fi
1451 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1452 ac_abs_confdir=`(
1453         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1454         pwd)`
1455 # When building in place, set srcdir=.
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then
1457   srcdir=.
1458 fi
1459 # Remove unnecessary trailing slashes from srcdir.
1460 # Double slashes in file names in object file debugging info
1461 # mess up M-x gdb in Emacs.
1462 case $srcdir in
1463 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1464 esac
1465 for ac_var in $ac_precious_vars; do
1466   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467   eval ac_env_${ac_var}_value=\$${ac_var}
1468   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1470 done
1471
1472 #
1473 # Report the --help message.
1474 #
1475 if test "$ac_init_help" = "long"; then
1476   # Omit some internal or obsolete options to make the list less imposing.
1477   # This message is too long to be a string in the A/UX 3.1 sh.
1478   cat <<_ACEOF
1479 \`configure' configures this package to adapt to many kinds of systems.
1480
1481 Usage: $0 [OPTION]... [VAR=VALUE]...
1482
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484 VAR=VALUE.  See below for descriptions of some of the useful variables.
1485
1486 Defaults for the options are specified in brackets.
1487
1488 Configuration:
1489   -h, --help              display this help and exit
1490       --help=short        display options specific to this package
1491       --help=recursive    display the short help of all the included packages
1492   -V, --version           display version information and exit
1493   -q, --quiet, --silent   do not print \`checking...' messages
1494       --cache-file=FILE   cache test results in FILE [disabled]
1495   -C, --config-cache      alias for \`--cache-file=config.cache'
1496   -n, --no-create         do not create output files
1497       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1498
1499 Installation directories:
1500   --prefix=PREFIX         install architecture-independent files in PREFIX
1501                           [$ac_default_prefix]
1502   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1503                           [PREFIX]
1504
1505 By default, \`make install' will install all the files in
1506 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1507 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508 for instance \`--prefix=\$HOME'.
1509
1510 For better control, use the options below.
1511
1512 Fine tuning of the installation directories:
1513   --bindir=DIR            user executables [EPREFIX/bin]
1514   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1515   --libexecdir=DIR        program executables [EPREFIX/libexec]
1516   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1517   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1518   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1519   --libdir=DIR            object code libraries [EPREFIX/lib]
1520   --includedir=DIR        C header files [PREFIX/include]
1521   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1522   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1523   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1524   --infodir=DIR           info documentation [DATAROOTDIR/info]
1525   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1526   --mandir=DIR            man documentation [DATAROOTDIR/man]
1527   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1528   --htmldir=DIR           html documentation [DOCDIR]
1529   --dvidir=DIR            dvi documentation [DOCDIR]
1530   --pdfdir=DIR            pdf documentation [DOCDIR]
1531   --psdir=DIR             ps documentation [DOCDIR]
1532 _ACEOF
1533
1534   cat <<\_ACEOF
1535
1536 Program names:
1537   --program-prefix=PREFIX            prepend PREFIX to installed program names
1538   --program-suffix=SUFFIX            append SUFFIX to installed program names
1539   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1540
1541 System types:
1542   --build=BUILD     configure for building on BUILD [guessed]
1543   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1544   --target=TARGET   configure for building compilers for TARGET [HOST]
1545 _ACEOF
1546 fi
1547
1548 if test -n "$ac_init_help"; then
1549
1550   cat <<\_ACEOF
1551
1552 Optional Features:
1553   --disable-option-checking  ignore unrecognized --enable/--with options
1554   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1555   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1556   --enable-generated-files-in-srcdir
1557                           put copies of generated files in source dir
1558                           intended for creating source tarballs for users
1559                           without texinfo bison or flex.
1560   --disable-largefile     omit support for large files
1561   --enable-werror-always  enable -Werror despite compiler version
1562   --enable-checking=LIST
1563                           enable expensive run-time checks.  With LIST,
1564                           enable only specific categories of checks.
1565                           Categories are: yes,no,all,none,release.
1566                           Flags are: assert,df,fold,gc,gcac,gimple,misc,
1567                           rtlflag,rtl,runtime,tree,valgrind,types.
1568   --enable-coverage=LEVEL
1569                           enable compiler's code coverage collection.
1570                           Use to measure compiler performance and locate
1571                           unused parts of the compiler. With LEVEL, specify
1572                           optimization. Values are opt, noopt,
1573                           default is noopt
1574   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
1575   --enable-build-with-cxx build with C++ compiler instead of C compiler
1576   --enable-multilib       enable library support for multiple ABIs
1577   --enable-__cxa_atexit   enable __cxa_atexit for C++
1578   --enable-decimal-float={no,yes,bid,dpd}
1579                         enable decimal float extension to C.  Selecting 'bid'
1580                         or 'dpd' choses which decimal floating point format
1581                         to use
1582   --enable-fixed-point    enable fixed-point arithmetic extension to C
1583   --enable-threads        enable thread usage for target GCC
1584   --enable-threads=LIB    use LIB thread package for target GCC
1585   --enable-tls            enable or disable generation of tls code
1586                           overriding the assembler check for tls support
1587   --enable-objc-gc        enable the use of Boehm's garbage collector with
1588                           the GNU Objective-C runtime
1589   --disable-shared        don't provide a shared libgcc
1590   --enable-languages=LIST specify which front-ends to build
1591   --disable-rpath         do not hardcode runtime library paths
1592   --enable-initfini-array       use .init_array/.fini_array sections
1593   --enable-sjlj-exceptions
1594                           arrange to use setjmp/longjmp exception handling
1595   --enable-secureplt      enable -msecure-plt by default for PowerPC
1596   --enable-leading-mingw64-underscores
1597                           Enable leading underscores on 64 bit mingw targets
1598   --enable-cld            enable -mcld by default for 32bit x86
1599   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit x86
1600   --disable-win32-registry
1601                           disable lookup of installation paths in the
1602                           Registry on Windows hosts
1603   --enable-win32-registry enable registry lookup (default)
1604   --enable-win32-registry=KEY
1605                           use KEY instead of GCC version as the last portion
1606                           of the registry key
1607   --enable-shared[=PKGS]  build shared libraries [default=yes]
1608   --enable-static[=PKGS]  build static libraries [default=yes]
1609   --enable-fast-install[=PKGS]
1610                           optimize for fast installation [default=yes]
1611   --disable-libtool-lock  avoid locking (might break parallel builds)
1612   --enable-gnu-indirect-function
1613                           enable the use of the @gnu_indirect_function to
1614                           glibc systems
1615   --enable-comdat         enable COMDAT group support
1616   --enable-gnu-unique-object
1617                           enable the use of the @gnu_unique_object ELF
1618                           extension on glibc systems
1619   --enable-linker-build-id
1620                           compiler will always pass --build-id to linker
1621   --enable-maintainer-mode
1622                           enable make rules and dependencies not useful
1623                           (and sometimes confusing) to the casual installer
1624   --enable-version-specific-runtime-libs
1625                           specify that runtime libraries should be
1626                           installed in a compiler-specific directory
1627   --enable-plugin         enable plugin support
1628   --disable-libquadmath-support
1629                           disable libquadmath support for Fortran
1630
1631 Optional Packages:
1632   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1633   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1634   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1635   --with-local-prefix=DIR specifies directory to put local include
1636   --with-gxx-include-dir=DIR
1637                           specifies directory to put g++ header files
1638   --with-cpp-install-dir=DIR
1639                           install the user visible C preprocessor in DIR
1640                           (relative to PREFIX) as well as PREFIX/bin
1641   --with-gnu-ld           arrange to work with GNU ld.
1642   --with-ld               arrange to use the specified ld (full pathname)
1643   --with-demangler-in-ld  try to use demangler in GNU ld.
1644   --with-gnu-as           arrange to work with GNU as
1645   --with-as               arrange to use the specified as (full pathname)
1646   --with-stabs            arrange to use stabs instead of host debug format
1647   --with-dwarf2           force the default debug format to be DWARF 2
1648   --with-build-sysroot=sysroot
1649                           use sysroot as the system root during the build
1650   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1651   --with-specs=SPECS      add SPECS to driver command-line processing
1652   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1653   --with-bugurl=URL       Direct users to URL to report a bug
1654   --with-multilib-list    Select multilibs (SH only)
1655   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1656   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1657   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1658   --with-system-libunwind use installed libunwind
1659   --with-pic              try to use only PIC/non-PIC objects [default=use
1660                           both]
1661   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1662   --with-plugin-ld=[ARG]  specify the plugin linker
1663   --with-long-double-128  Use 128-bit long double by default.
1664   --with-gc={page,zone}   choose the garbage collection mechanism to use
1665                           with the compiler
1666   --with-system-zlib      use installed libz
1667   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1668
1669 Some influential environment variables:
1670   CC          C compiler command
1671   CFLAGS      C compiler flags
1672   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1673               nonstandard directory <lib dir>
1674   LIBS        libraries to pass to the linker, e.g. -l<library>
1675   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1676               you have headers in a nonstandard directory <include dir>
1677   CXX         C++ compiler command
1678   CXXFLAGS    C++ compiler flags
1679   CPP         C preprocessor
1680   CXXCPP      C++ preprocessor
1681   GMPLIBS     How to link GMP
1682   GMPINC      How to find GMP include files
1683   PPLLIBS     How to link PPL
1684   PPLINC      How to find PPL include files
1685   CLOOGLIBS   How to link CLOOG
1686   CLOOGINC    How to find CLOOG include files
1687
1688 Use these variables to override the choices made by `configure' or to help
1689 it to find libraries and programs with nonstandard names/locations.
1690
1691 Report bugs to the package provider.
1692 _ACEOF
1693 ac_status=$?
1694 fi
1695
1696 if test "$ac_init_help" = "recursive"; then
1697   # If there are subdirs, report their specific --help.
1698   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1699     test -d "$ac_dir" ||
1700       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1701       continue
1702     ac_builddir=.
1703
1704 case "$ac_dir" in
1705 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1706 *)
1707   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1708   # A ".." for each directory in $ac_dir_suffix.
1709   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1710   case $ac_top_builddir_sub in
1711   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1713   esac ;;
1714 esac
1715 ac_abs_top_builddir=$ac_pwd
1716 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1717 # for backward compatibility:
1718 ac_top_builddir=$ac_top_build_prefix
1719
1720 case $srcdir in
1721   .)  # We are building in place.
1722     ac_srcdir=.
1723     ac_top_srcdir=$ac_top_builddir_sub
1724     ac_abs_top_srcdir=$ac_pwd ;;
1725   [\\/]* | ?:[\\/]* )  # Absolute name.
1726     ac_srcdir=$srcdir$ac_dir_suffix;
1727     ac_top_srcdir=$srcdir
1728     ac_abs_top_srcdir=$srcdir ;;
1729   *) # Relative name.
1730     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1731     ac_top_srcdir=$ac_top_build_prefix$srcdir
1732     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1733 esac
1734 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1735
1736     cd "$ac_dir" || { ac_status=$?; continue; }
1737     # Check for guested configure.
1738     if test -f "$ac_srcdir/configure.gnu"; then
1739       echo &&
1740       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1741     elif test -f "$ac_srcdir/configure"; then
1742       echo &&
1743       $SHELL "$ac_srcdir/configure" --help=recursive
1744     else
1745       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1746     fi || ac_status=$?
1747     cd "$ac_pwd" || { ac_status=$?; break; }
1748   done
1749 fi
1750
1751 test -n "$ac_init_help" && exit $ac_status
1752 if $ac_init_version; then
1753   cat <<\_ACEOF
1754 configure
1755 generated by GNU Autoconf 2.64
1756
1757 Copyright (C) 2009 Free Software Foundation, Inc.
1758 This configure script is free software; the Free Software Foundation
1759 gives unlimited permission to copy, distribute and modify it.
1760 _ACEOF
1761   exit
1762 fi
1763
1764 ## ------------------------ ##
1765 ## Autoconf initialization. ##
1766 ## ------------------------ ##
1767
1768 # ac_fn_c_try_compile LINENO
1769 # --------------------------
1770 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_c_try_compile ()
1772 {
1773   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774   rm -f conftest.$ac_objext
1775   if { { ac_try="$ac_compile"
1776 case "(($ac_try" in
1777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778   *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782   (eval "$ac_compile") 2>conftest.err
1783   ac_status=$?
1784   if test -s conftest.err; then
1785     grep -v '^ *+' conftest.err >conftest.er1
1786     cat conftest.er1 >&5
1787     mv -f conftest.er1 conftest.err
1788   fi
1789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790   test $ac_status = 0; } && {
1791          test -z "$ac_c_werror_flag" ||
1792          test ! -s conftest.err
1793        } && test -s conftest.$ac_objext; then :
1794   ac_retval=0
1795 else
1796   $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1798
1799         ac_retval=1
1800 fi
1801   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1802   return $ac_retval
1803
1804 } # ac_fn_c_try_compile
1805
1806 # ac_fn_cxx_try_compile LINENO
1807 # ----------------------------
1808 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_cxx_try_compile ()
1810 {
1811   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812   rm -f conftest.$ac_objext
1813   if { { ac_try="$ac_compile"
1814 case "(($ac_try" in
1815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816   *) ac_try_echo=$ac_try;;
1817 esac
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820   (eval "$ac_compile") 2>conftest.err
1821   ac_status=$?
1822   if test -s conftest.err; then
1823     grep -v '^ *+' conftest.err >conftest.er1
1824     cat conftest.er1 >&5
1825     mv -f conftest.er1 conftest.err
1826   fi
1827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828   test $ac_status = 0; } && {
1829          test -z "$ac_cxx_werror_flag" ||
1830          test ! -s conftest.err
1831        } && test -s conftest.$ac_objext; then :
1832   ac_retval=0
1833 else
1834   $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1836
1837         ac_retval=1
1838 fi
1839   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840   return $ac_retval
1841
1842 } # ac_fn_cxx_try_compile
1843
1844 # ac_fn_c_try_cpp LINENO
1845 # ----------------------
1846 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1847 ac_fn_c_try_cpp ()
1848 {
1849   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850   if { { ac_try="$ac_cpp conftest.$ac_ext"
1851 case "(($ac_try" in
1852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853   *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1858   ac_status=$?
1859   if test -s conftest.err; then
1860     grep -v '^ *+' conftest.err >conftest.er1
1861     cat conftest.er1 >&5
1862     mv -f conftest.er1 conftest.err
1863   fi
1864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865   test $ac_status = 0; } >/dev/null && {
1866          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1867          test ! -s conftest.err
1868        }; then :
1869   ac_retval=0
1870 else
1871   $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1873
1874     ac_retval=1
1875 fi
1876   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877   return $ac_retval
1878
1879 } # ac_fn_c_try_cpp
1880
1881 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1882 # -------------------------------------------------------
1883 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1884 # the include files in INCLUDES and setting the cache variable VAR
1885 # accordingly.
1886 ac_fn_c_check_header_mongrel ()
1887 {
1888   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891 $as_echo_n "checking for $2... " >&6; }
1892 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1893   $as_echo_n "(cached) " >&6
1894 fi
1895 eval ac_res=\$$3
1896                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898 else
1899   # Is the header compilable?
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1901 $as_echo_n "checking $2 usability... " >&6; }
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h.  */
1904 $4
1905 #include <$2>
1906 _ACEOF
1907 if ac_fn_c_try_compile "$LINENO"; then :
1908   ac_header_compiler=yes
1909 else
1910   ac_header_compiler=no
1911 fi
1912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1914 $as_echo "$ac_header_compiler" >&6; }
1915
1916 # Is the header present?
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1918 $as_echo_n "checking $2 presence... " >&6; }
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h.  */
1921 #include <$2>
1922 _ACEOF
1923 if ac_fn_c_try_cpp "$LINENO"; then :
1924   ac_header_preproc=yes
1925 else
1926   ac_header_preproc=no
1927 fi
1928 rm -f conftest.err conftest.$ac_ext
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1930 $as_echo "$ac_header_preproc" >&6; }
1931
1932 # So?  What about this header?
1933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1934   yes:no: )
1935     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1936 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1937     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1938 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1939     ;;
1940   no:yes:* )
1941     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1942 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1943     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1944 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1945     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1946 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1947     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1948 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&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 esac
1953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1956   $as_echo_n "(cached) " >&6
1957 else
1958   eval "$3=\$ac_header_compiler"
1959 fi
1960 eval ac_res=\$$3
1961                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962 $as_echo "$ac_res" >&6; }
1963 fi
1964   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1965
1966 } # ac_fn_c_check_header_mongrel
1967
1968 # ac_fn_c_try_run LINENO
1969 # ----------------------
1970 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1971 # that executables *can* be run.
1972 ac_fn_c_try_run ()
1973 {
1974   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975   if { { ac_try="$ac_link"
1976 case "(($ac_try" in
1977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978   *) ac_try_echo=$ac_try;;
1979 esac
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982   (eval "$ac_link") 2>&5
1983   ac_status=$?
1984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1986   { { case "(($ac_try" in
1987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988   *) ac_try_echo=$ac_try;;
1989 esac
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992   (eval "$ac_try") 2>&5
1993   ac_status=$?
1994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995   test $ac_status = 0; }; }; then :
1996   ac_retval=0
1997 else
1998   $as_echo "$as_me: program exited with status $ac_status" >&5
1999        $as_echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2001
2002        ac_retval=$ac_status
2003 fi
2004   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2005   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2006   return $ac_retval
2007
2008 } # ac_fn_c_try_run
2009
2010 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2011 # -------------------------------------------------------
2012 # Tests whether HEADER exists and can be compiled using the include files in
2013 # INCLUDES, setting the cache variable VAR accordingly.
2014 ac_fn_c_check_header_compile ()
2015 {
2016   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018 $as_echo_n "checking for $2... " >&6; }
2019 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2020   $as_echo_n "(cached) " >&6
2021 else
2022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h.  */
2024 $4
2025 #include <$2>
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028   eval "$3=yes"
2029 else
2030   eval "$3=no"
2031 fi
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 fi
2034 eval ac_res=\$$3
2035                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2037   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2038
2039 } # ac_fn_c_check_header_compile
2040
2041 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2042 # --------------------------------------------
2043 # Tries to find the compile-time value of EXPR in a program that includes
2044 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2045 # computed
2046 ac_fn_c_compute_int ()
2047 {
2048   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049   if test "$cross_compiling" = yes; then
2050     # Depending upon the size, compute the lo and hi bounds.
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h.  */
2053 $4
2054 int
2055 main ()
2056 {
2057 static int test_array [1 - 2 * !(($2) >= 0)];
2058 test_array [0] = 0
2059
2060   ;
2061   return 0;
2062 }
2063 _ACEOF
2064 if ac_fn_c_try_compile "$LINENO"; then :
2065   ac_lo=0 ac_mid=0
2066   while :; do
2067     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h.  */
2069 $4
2070 int
2071 main ()
2072 {
2073 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2074 test_array [0] = 0
2075
2076   ;
2077   return 0;
2078 }
2079 _ACEOF
2080 if ac_fn_c_try_compile "$LINENO"; then :
2081   ac_hi=$ac_mid; break
2082 else
2083   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2084                         if test $ac_lo -le $ac_mid; then
2085                           ac_lo= ac_hi=
2086                           break
2087                         fi
2088                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2089 fi
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091   done
2092 else
2093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h.  */
2095 $4
2096 int
2097 main ()
2098 {
2099 static int test_array [1 - 2 * !(($2) < 0)];
2100 test_array [0] = 0
2101
2102   ;
2103   return 0;
2104 }
2105 _ACEOF
2106 if ac_fn_c_try_compile "$LINENO"; then :
2107   ac_hi=-1 ac_mid=-1
2108   while :; do
2109     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h.  */
2111 $4
2112 int
2113 main ()
2114 {
2115 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2116 test_array [0] = 0
2117
2118   ;
2119   return 0;
2120 }
2121 _ACEOF
2122 if ac_fn_c_try_compile "$LINENO"; then :
2123   ac_lo=$ac_mid; break
2124 else
2125   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2126                         if test $ac_mid -le $ac_hi; then
2127                           ac_lo= ac_hi=
2128                           break
2129                         fi
2130                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2131 fi
2132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133   done
2134 else
2135   ac_lo= ac_hi=
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 fi
2139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140 # Binary search between lo and hi bounds.
2141 while test "x$ac_lo" != "x$ac_hi"; do
2142   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h.  */
2145 $4
2146 int
2147 main ()
2148 {
2149 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2150 test_array [0] = 0
2151
2152   ;
2153   return 0;
2154 }
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157   ac_hi=$ac_mid
2158 else
2159   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2160 fi
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 done
2163 case $ac_lo in #((
2164 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2165 '') ac_retval=1 ;;
2166 esac
2167   else
2168     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h.  */
2170 $4
2171 static long int longval () { return $2; }
2172 static unsigned long int ulongval () { return $2; }
2173 #include <stdio.h>
2174 #include <stdlib.h>
2175 int
2176 main ()
2177 {
2178
2179   FILE *f = fopen ("conftest.val", "w");
2180   if (! f)
2181     return 1;
2182   if (($2) < 0)
2183     {
2184       long int i = longval ();
2185       if (i != ($2))
2186         return 1;
2187       fprintf (f, "%ld", i);
2188     }
2189   else
2190     {
2191       unsigned long int i = ulongval ();
2192       if (i != ($2))
2193         return 1;
2194       fprintf (f, "%lu", i);
2195     }
2196   /* Do not output a trailing newline, as this causes \r\n confusion
2197      on some platforms.  */
2198   return ferror (f) || fclose (f) != 0;
2199
2200   ;
2201   return 0;
2202 }
2203 _ACEOF
2204 if ac_fn_c_try_run "$LINENO"; then :
2205   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2206 else
2207   ac_retval=1
2208 fi
2209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2210   conftest.$ac_objext conftest.beam conftest.$ac_ext
2211 rm -f conftest.val
2212
2213   fi
2214   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2215   return $ac_retval
2216
2217 } # ac_fn_c_compute_int
2218
2219 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2220 # -------------------------------------------
2221 # Tests whether TYPE exists after having included INCLUDES, setting cache
2222 # variable VAR accordingly.
2223 ac_fn_c_check_type ()
2224 {
2225   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227 $as_echo_n "checking for $2... " >&6; }
2228 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2229   $as_echo_n "(cached) " >&6
2230 else
2231   eval "$3=no"
2232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h.  */
2234 $4
2235 int
2236 main ()
2237 {
2238 if (sizeof ($2))
2239          return 0;
2240   ;
2241   return 0;
2242 }
2243 _ACEOF
2244 if ac_fn_c_try_compile "$LINENO"; then :
2245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h.  */
2247 $4
2248 int
2249 main ()
2250 {
2251 if (sizeof (($2)))
2252             return 0;
2253   ;
2254   return 0;
2255 }
2256 _ACEOF
2257 if ac_fn_c_try_compile "$LINENO"; then :
2258
2259 else
2260   eval "$3=yes"
2261 fi
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 fi
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 fi
2266 eval ac_res=\$$3
2267                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268 $as_echo "$ac_res" >&6; }
2269   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2270
2271 } # ac_fn_c_check_type
2272
2273 # ac_fn_c_find_intX_t LINENO BITS VAR
2274 # -----------------------------------
2275 # Finds a signed integer type with width BITS, setting cache variable VAR
2276 # accordingly.
2277 ac_fn_c_find_intX_t ()
2278 {
2279   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2281 $as_echo_n "checking for int$2_t... " >&6; }
2282 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2283   $as_echo_n "(cached) " >&6
2284 else
2285   eval "$3=no"
2286      for ac_type in int$2_t 'int' 'long int' \
2287          'long long int' 'short int' 'signed char'; do
2288        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h.  */
2290 $ac_includes_default
2291 int
2292 main ()
2293 {
2294 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2295 test_array [0] = 0
2296
2297   ;
2298   return 0;
2299 }
2300 _ACEOF
2301 if ac_fn_c_try_compile "$LINENO"; then :
2302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h.  */
2304 $ac_includes_default
2305 int
2306 main ()
2307 {
2308 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2309                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2310 test_array [0] = 0
2311
2312   ;
2313   return 0;
2314 }
2315 _ACEOF
2316 if ac_fn_c_try_compile "$LINENO"; then :
2317
2318 else
2319   case $ac_type in #(
2320   int$2_t) :
2321     eval "$3=yes" ;; #(
2322   *) :
2323     eval "$3=\$ac_type" ;;
2324 esac
2325 fi
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327 fi
2328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2329        eval as_val=\$$3
2330    if test "x$as_val" = x""no; then :
2331
2332 else
2333   break
2334 fi
2335      done
2336 fi
2337 eval ac_res=\$$3
2338                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2339 $as_echo "$ac_res" >&6; }
2340   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2341
2342 } # ac_fn_c_find_intX_t
2343
2344 # ac_fn_c_try_link LINENO
2345 # -----------------------
2346 # Try to link conftest.$ac_ext, and return whether this succeeded.
2347 ac_fn_c_try_link ()
2348 {
2349   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2350   rm -f conftest.$ac_objext conftest$ac_exeext
2351   if { { ac_try="$ac_link"
2352 case "(($ac_try" in
2353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354   *) ac_try_echo=$ac_try;;
2355 esac
2356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2357 $as_echo "$ac_try_echo"; } >&5
2358   (eval "$ac_link") 2>conftest.err
2359   ac_status=$?
2360   if test -s conftest.err; then
2361     grep -v '^ *+' conftest.err >conftest.er1
2362     cat conftest.er1 >&5
2363     mv -f conftest.er1 conftest.err
2364   fi
2365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2366   test $ac_status = 0; } && {
2367          test -z "$ac_c_werror_flag" ||
2368          test ! -s conftest.err
2369        } && test -s conftest$ac_exeext && {
2370          test "$cross_compiling" = yes ||
2371          $as_test_x conftest$ac_exeext
2372        }; then :
2373   ac_retval=0
2374 else
2375   $as_echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2377
2378         ac_retval=1
2379 fi
2380   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2381   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2382   # interfere with the next link command; also delete a directory that is
2383   # left behind by Apple's compiler.  We do this before executing the actions.
2384   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2385   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2386   return $ac_retval
2387
2388 } # ac_fn_c_try_link
2389
2390 # ac_fn_c_find_uintX_t LINENO BITS VAR
2391 # ------------------------------------
2392 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2393 # accordingly.
2394 ac_fn_c_find_uintX_t ()
2395 {
2396   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2398 $as_echo_n "checking for uint$2_t... " >&6; }
2399 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2400   $as_echo_n "(cached) " >&6
2401 else
2402   eval "$3=no"
2403      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2404          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2405        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h.  */
2407 $ac_includes_default
2408 int
2409 main ()
2410 {
2411 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2412 test_array [0] = 0
2413
2414   ;
2415   return 0;
2416 }
2417 _ACEOF
2418 if ac_fn_c_try_compile "$LINENO"; then :
2419   case $ac_type in #(
2420   uint$2_t) :
2421     eval "$3=yes" ;; #(
2422   *) :
2423     eval "$3=\$ac_type" ;;
2424 esac
2425 fi
2426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2427        eval as_val=\$$3
2428    if test "x$as_val" = x""no; then :
2429
2430 else
2431   break
2432 fi
2433      done
2434 fi
2435 eval ac_res=\$$3
2436                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2437 $as_echo "$ac_res" >&6; }
2438   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2439
2440 } # ac_fn_c_find_uintX_t
2441
2442 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2443 # ----------------------------------------------
2444 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2445 ac_fn_c_check_header_preproc ()
2446 {
2447   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2449 $as_echo_n "checking for $2... " >&6; }
2450 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2451   $as_echo_n "(cached) " >&6
2452 else
2453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454 /* end confdefs.h.  */
2455 #include <$2>
2456 _ACEOF
2457 if ac_fn_c_try_cpp "$LINENO"; then :
2458   eval "$3=yes"
2459 else
2460   eval "$3=no"
2461 fi
2462 rm -f conftest.err conftest.$ac_ext
2463 fi
2464 eval ac_res=\$$3
2465                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2466 $as_echo "$ac_res" >&6; }
2467   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2468
2469 } # ac_fn_c_check_header_preproc
2470
2471 # ac_fn_cxx_try_cpp LINENO
2472 # ------------------------
2473 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2474 ac_fn_cxx_try_cpp ()
2475 {
2476   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2477   if { { ac_try="$ac_cpp conftest.$ac_ext"
2478 case "(($ac_try" in
2479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480   *) ac_try_echo=$ac_try;;
2481 esac
2482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2483 $as_echo "$ac_try_echo"; } >&5
2484   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2485   ac_status=$?
2486   if test -s conftest.err; then
2487     grep -v '^ *+' conftest.err >conftest.er1
2488     cat conftest.er1 >&5
2489     mv -f conftest.er1 conftest.err
2490   fi
2491   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2492   test $ac_status = 0; } >/dev/null && {
2493          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2494          test ! -s conftest.err
2495        }; then :
2496   ac_retval=0
2497 else
2498   $as_echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.$ac_ext >&5
2500
2501     ac_retval=1
2502 fi
2503   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2504   return $ac_retval
2505
2506 } # ac_fn_cxx_try_cpp
2507
2508 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2509 # ------------------------------------------------
2510 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2511 ac_fn_cxx_check_header_preproc ()
2512 {
2513   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2515 $as_echo_n "checking for $2... " >&6; }
2516 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2517   $as_echo_n "(cached) " >&6
2518 else
2519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520 /* end confdefs.h.  */
2521 #include <$2>
2522 _ACEOF
2523 if ac_fn_cxx_try_cpp "$LINENO"; then :
2524   eval "$3=yes"
2525 else
2526   eval "$3=no"
2527 fi
2528 rm -f conftest.err conftest.$ac_ext
2529 fi
2530 eval ac_res=\$$3
2531                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2532 $as_echo "$ac_res" >&6; }
2533   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2534
2535 } # ac_fn_cxx_check_header_preproc
2536
2537 # ac_fn_c_check_func LINENO FUNC VAR
2538 # ----------------------------------
2539 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2540 ac_fn_c_check_func ()
2541 {
2542   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2544 $as_echo_n "checking for $2... " >&6; }
2545 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2546   $as_echo_n "(cached) " >&6
2547 else
2548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2549 /* end confdefs.h.  */
2550 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2551    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2552 #define $2 innocuous_$2
2553
2554 /* System header to define __stub macros and hopefully few prototypes,
2555     which can conflict with char $2 (); below.
2556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2557     <limits.h> exists even on freestanding compilers.  */
2558
2559 #ifdef __STDC__
2560 # include <limits.h>
2561 #else
2562 # include <assert.h>
2563 #endif
2564
2565 #undef $2
2566
2567 /* Override any GCC internal prototype to avoid an error.
2568    Use char because int might match the return type of a GCC
2569    builtin and then its argument prototype would still apply.  */
2570 #ifdef __cplusplus
2571 extern "C"
2572 #endif
2573 char $2 ();
2574 /* The GNU C library defines this for functions which it implements
2575     to always fail with ENOSYS.  Some functions are actually named
2576     something starting with __ and the normal name is an alias.  */
2577 #if defined __stub_$2 || defined __stub___$2
2578 choke me
2579 #endif
2580
2581 int
2582 main ()
2583 {
2584 return $2 ();
2585   ;
2586   return 0;
2587 }
2588 _ACEOF
2589 if ac_fn_c_try_link "$LINENO"; then :
2590   eval "$3=yes"
2591 else
2592   eval "$3=no"
2593 fi
2594 rm -f core conftest.err conftest.$ac_objext \
2595     conftest$ac_exeext conftest.$ac_ext
2596 fi
2597 eval ac_res=\$$3
2598                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2599 $as_echo "$ac_res" >&6; }
2600   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2601
2602 } # ac_fn_c_check_func
2603
2604 # ac_fn_cxx_try_link LINENO
2605 # -------------------------
2606 # Try to link conftest.$ac_ext, and return whether this succeeded.
2607 ac_fn_cxx_try_link ()
2608 {
2609   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2610   rm -f conftest.$ac_objext conftest$ac_exeext
2611   if { { ac_try="$ac_link"
2612 case "(($ac_try" in
2613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614   *) ac_try_echo=$ac_try;;
2615 esac
2616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2617 $as_echo "$ac_try_echo"; } >&5
2618   (eval "$ac_link") 2>conftest.err
2619   ac_status=$?
2620   if test -s conftest.err; then
2621     grep -v '^ *+' conftest.err >conftest.er1
2622     cat conftest.er1 >&5
2623     mv -f conftest.er1 conftest.err
2624   fi
2625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2626   test $ac_status = 0; } && {
2627          test -z "$ac_cxx_werror_flag" ||
2628          test ! -s conftest.err
2629        } && test -s conftest$ac_exeext && {
2630          test "$cross_compiling" = yes ||
2631          $as_test_x conftest$ac_exeext
2632        }; then :
2633   ac_retval=0
2634 else
2635   $as_echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2637
2638         ac_retval=1
2639 fi
2640   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2641   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2642   # interfere with the next link command; also delete a directory that is
2643   # left behind by Apple's compiler.  We do this before executing the actions.
2644   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2645   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2646   return $ac_retval
2647
2648 } # ac_fn_cxx_try_link
2649 cat >config.log <<_ACEOF
2650 This file contains any messages produced by compilers while
2651 running configure, to aid debugging if configure makes a mistake.
2652
2653 It was created by $as_me, which was
2654 generated by GNU Autoconf 2.64.  Invocation command line was
2655
2656   $ $0 $@
2657
2658 _ACEOF
2659 exec 5>>config.log
2660 {
2661 cat <<_ASUNAME
2662 ## --------- ##
2663 ## Platform. ##
2664 ## --------- ##
2665
2666 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2667 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2668 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2669 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2670 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2671
2672 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2673 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2674
2675 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2676 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2677 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2678 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2679 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2680 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2681 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2682
2683 _ASUNAME
2684
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2687 do
2688   IFS=$as_save_IFS
2689   test -z "$as_dir" && as_dir=.
2690     $as_echo "PATH: $as_dir"
2691   done
2692 IFS=$as_save_IFS
2693
2694 } >&5
2695
2696 cat >&5 <<_ACEOF
2697
2698
2699 ## ----------- ##
2700 ## Core tests. ##
2701 ## ----------- ##
2702
2703 _ACEOF
2704
2705
2706 # Keep a trace of the command line.
2707 # Strip out --no-create and --no-recursion so they do not pile up.
2708 # Strip out --silent because we don't want to record it for future runs.
2709 # Also quote any args containing shell meta-characters.
2710 # Make two passes to allow for proper duplicate-argument suppression.
2711 ac_configure_args=
2712 ac_configure_args0=
2713 ac_configure_args1=
2714 ac_must_keep_next=false
2715 for ac_pass in 1 2
2716 do
2717   for ac_arg
2718   do
2719     case $ac_arg in
2720     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2721     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2722     | -silent | --silent | --silen | --sile | --sil)
2723       continue ;;
2724     *\'*)
2725       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2726     esac
2727     case $ac_pass in
2728     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2729     2)
2730       as_fn_append ac_configure_args1 " '$ac_arg'"
2731       if test $ac_must_keep_next = true; then
2732         ac_must_keep_next=false # Got value, back to normal.
2733       else
2734         case $ac_arg in
2735           *=* | --config-cache | -C | -disable-* | --disable-* \
2736           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2737           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2738           | -with-* | --with-* | -without-* | --without-* | --x)
2739             case "$ac_configure_args0 " in
2740               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2741             esac
2742             ;;
2743           -* ) ac_must_keep_next=true ;;
2744         esac
2745       fi
2746       as_fn_append ac_configure_args " '$ac_arg'"
2747       ;;
2748     esac
2749   done
2750 done
2751 { ac_configure_args0=; unset ac_configure_args0;}
2752 { ac_configure_args1=; unset ac_configure_args1;}
2753
2754 # When interrupted or exit'd, cleanup temporary files, and complete
2755 # config.log.  We remove comments because anyway the quotes in there
2756 # would cause problems or look ugly.
2757 # WARNING: Use '\'' to represent an apostrophe within the trap.
2758 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2759 trap 'exit_status=$?
2760   # Save into config.log some information that might help in debugging.
2761   {
2762     echo
2763
2764     cat <<\_ASBOX
2765 ## ---------------- ##
2766 ## Cache variables. ##
2767 ## ---------------- ##
2768 _ASBOX
2769     echo
2770     # The following way of writing the cache mishandles newlines in values,
2771 (
2772   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2773     eval ac_val=\$$ac_var
2774     case $ac_val in #(
2775     *${as_nl}*)
2776       case $ac_var in #(
2777       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2778 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2779       esac
2780       case $ac_var in #(
2781       _ | IFS | as_nl) ;; #(
2782       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2783       *) { eval $ac_var=; unset $ac_var;} ;;
2784       esac ;;
2785     esac
2786   done
2787   (set) 2>&1 |
2788     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2789     *${as_nl}ac_space=\ *)
2790       sed -n \
2791         "s/'\''/'\''\\\\'\'''\''/g;
2792           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2793       ;; #(
2794     *)
2795       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2796       ;;
2797     esac |
2798     sort
2799 )
2800     echo
2801
2802     cat <<\_ASBOX
2803 ## ----------------- ##
2804 ## Output variables. ##
2805 ## ----------------- ##
2806 _ASBOX
2807     echo
2808     for ac_var in $ac_subst_vars
2809     do
2810       eval ac_val=\$$ac_var
2811       case $ac_val in
2812       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2813       esac
2814       $as_echo "$ac_var='\''$ac_val'\''"
2815     done | sort
2816     echo
2817
2818     if test -n "$ac_subst_files"; then
2819       cat <<\_ASBOX
2820 ## ------------------- ##
2821 ## File substitutions. ##
2822 ## ------------------- ##
2823 _ASBOX
2824       echo
2825       for ac_var in $ac_subst_files
2826       do
2827         eval ac_val=\$$ac_var
2828         case $ac_val in
2829         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2830         esac
2831         $as_echo "$ac_var='\''$ac_val'\''"
2832       done | sort
2833       echo
2834     fi
2835
2836     if test -s confdefs.h; then
2837       cat <<\_ASBOX
2838 ## ----------- ##
2839 ## confdefs.h. ##
2840 ## ----------- ##
2841 _ASBOX
2842       echo
2843       cat confdefs.h
2844       echo
2845     fi
2846     test "$ac_signal" != 0 &&
2847       $as_echo "$as_me: caught signal $ac_signal"
2848     $as_echo "$as_me: exit $exit_status"
2849   } >&5
2850   rm -f core *.core core.conftest.* &&
2851     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2852     exit $exit_status
2853 ' 0
2854 for ac_signal in 1 2 13 15; do
2855   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2856 done
2857 ac_signal=0
2858
2859 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2860 rm -f -r conftest* confdefs.h
2861
2862 $as_echo "/* confdefs.h */" > confdefs.h
2863
2864 # Predefined preprocessor variables.
2865
2866 cat >>confdefs.h <<_ACEOF
2867 #define PACKAGE_NAME "$PACKAGE_NAME"
2868 _ACEOF
2869
2870 cat >>confdefs.h <<_ACEOF
2871 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2872 _ACEOF
2873
2874 cat >>confdefs.h <<_ACEOF
2875 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2876 _ACEOF
2877
2878 cat >>confdefs.h <<_ACEOF
2879 #define PACKAGE_STRING "$PACKAGE_STRING"
2880 _ACEOF
2881
2882 cat >>confdefs.h <<_ACEOF
2883 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2884 _ACEOF
2885
2886 cat >>confdefs.h <<_ACEOF
2887 #define PACKAGE_URL "$PACKAGE_URL"
2888 _ACEOF
2889
2890
2891 # Let the site file select an alternate cache file if it wants to.
2892 # Prefer an explicitly selected file to automatically selected ones.
2893 ac_site_file1=NONE
2894 ac_site_file2=NONE
2895 if test -n "$CONFIG_SITE"; then
2896   ac_site_file1=$CONFIG_SITE
2897 elif test "x$prefix" != xNONE; then
2898   ac_site_file1=$prefix/share/config.site
2899   ac_site_file2=$prefix/etc/config.site
2900 else
2901   ac_site_file1=$ac_default_prefix/share/config.site
2902   ac_site_file2=$ac_default_prefix/etc/config.site
2903 fi
2904 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2905 do
2906   test "x$ac_site_file" = xNONE && continue
2907   if test -r "$ac_site_file"; then
2908     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2909 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2910     sed 's/^/| /' "$ac_site_file" >&5
2911     . "$ac_site_file"
2912   fi
2913 done
2914
2915 if test -r "$cache_file"; then
2916   # Some versions of bash will fail to source /dev/null (special
2917   # files actually), so we avoid doing that.
2918   if test -f "$cache_file"; then
2919     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2920 $as_echo "$as_me: loading cache $cache_file" >&6;}
2921     case $cache_file in
2922       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2923       *)                      . "./$cache_file";;
2924     esac
2925   fi
2926 else
2927   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2928 $as_echo "$as_me: creating cache $cache_file" >&6;}
2929   >$cache_file
2930 fi
2931
2932 # Check that the precious variables saved in the cache have kept the same
2933 # value.
2934 ac_cache_corrupted=false
2935 for ac_var in $ac_precious_vars; do
2936   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2937   eval ac_new_set=\$ac_env_${ac_var}_set
2938   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2939   eval ac_new_val=\$ac_env_${ac_var}_value
2940   case $ac_old_set,$ac_new_set in
2941     set,)
2942       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2943 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2944       ac_cache_corrupted=: ;;
2945     ,set)
2946       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2947 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2948       ac_cache_corrupted=: ;;
2949     ,);;
2950     *)
2951       if test "x$ac_old_val" != "x$ac_new_val"; then
2952         # differences in whitespace do not lead to failure.
2953         ac_old_val_w=`echo x $ac_old_val`
2954         ac_new_val_w=`echo x $ac_new_val`
2955         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2956           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2957 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2958           ac_cache_corrupted=:
2959         else
2960           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2961 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2962           eval $ac_var=\$ac_old_val
2963         fi
2964         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2965 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2966         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2967 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2968       fi;;
2969   esac
2970   # Pass precious variables to config.status.
2971   if test "$ac_new_set" = set; then
2972     case $ac_new_val in
2973     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2974     *) ac_arg=$ac_var=$ac_new_val ;;
2975     esac
2976     case " $ac_configure_args " in
2977       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2978       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2979     esac
2980   fi
2981 done
2982 if $ac_cache_corrupted; then
2983   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2985   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2986 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2987   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2988 fi
2989 ## -------------------- ##
2990 ## Main body of script. ##
2991 ## -------------------- ##
2992
2993 ac_ext=c
2994 ac_cpp='$CPP $CPPFLAGS'
2995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2998
2999
3000
3001
3002
3003
3004 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3005
3006
3007 gcc_version=`cat $srcdir/BASE-VER`
3008
3009 # Determine the host, build, and target systems
3010 ac_aux_dir=
3011 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3012   for ac_t in install-sh install.sh shtool; do
3013     if test -f "$ac_dir/$ac_t"; then
3014       ac_aux_dir=$ac_dir
3015       ac_install_sh="$ac_aux_dir/$ac_t -c"
3016       break 2
3017     fi
3018   done
3019 done
3020 if test -z "$ac_aux_dir"; then
3021   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3022 fi
3023
3024 # These three variables are undocumented and unsupported,
3025 # and are intended to be withdrawn in a future Autoconf release.
3026 # They can cause serious problems if a builder's source tree is in a directory
3027 # whose full name contains unusual characters.
3028 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3029 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3030 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3031
3032
3033 # Make sure we can run config.sub.
3034 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3035   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3036
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3038 $as_echo_n "checking build system type... " >&6; }
3039 if test "${ac_cv_build+set}" = set; then :
3040   $as_echo_n "(cached) " >&6
3041 else
3042   ac_build_alias=$build_alias
3043 test "x$ac_build_alias" = x &&
3044   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3045 test "x$ac_build_alias" = x &&
3046   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3047 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3048   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3049
3050 fi
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3052 $as_echo "$ac_cv_build" >&6; }
3053 case $ac_cv_build in
3054 *-*-*) ;;
3055 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3056 esac
3057 build=$ac_cv_build
3058 ac_save_IFS=$IFS; IFS='-'
3059 set x $ac_cv_build
3060 shift
3061 build_cpu=$1
3062 build_vendor=$2
3063 shift; shift
3064 # Remember, the first character of IFS is used to create $*,
3065 # except with old shells:
3066 build_os=$*
3067 IFS=$ac_save_IFS
3068 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3069
3070
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3072 $as_echo_n "checking host system type... " >&6; }
3073 if test "${ac_cv_host+set}" = set; then :
3074   $as_echo_n "(cached) " >&6
3075 else
3076   if test "x$host_alias" = x; then
3077   ac_cv_host=$ac_cv_build
3078 else
3079   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3080     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3081 fi
3082
3083 fi
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3085 $as_echo "$ac_cv_host" >&6; }
3086 case $ac_cv_host in
3087 *-*-*) ;;
3088 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3089 esac
3090 host=$ac_cv_host
3091 ac_save_IFS=$IFS; IFS='-'
3092 set x $ac_cv_host
3093 shift
3094 host_cpu=$1
3095 host_vendor=$2
3096 shift; shift
3097 # Remember, the first character of IFS is used to create $*,
3098 # except with old shells:
3099 host_os=$*
3100 IFS=$ac_save_IFS
3101 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3102
3103
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3105 $as_echo_n "checking target system type... " >&6; }
3106 if test "${ac_cv_target+set}" = set; then :
3107   $as_echo_n "(cached) " >&6
3108 else
3109   if test "x$target_alias" = x; then
3110   ac_cv_target=$ac_cv_host
3111 else
3112   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3113     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3114 fi
3115
3116 fi
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3118 $as_echo "$ac_cv_target" >&6; }
3119 case $ac_cv_target in
3120 *-*-*) ;;
3121 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3122 esac
3123 target=$ac_cv_target
3124 ac_save_IFS=$IFS; IFS='-'
3125 set x $ac_cv_target
3126 shift
3127 target_cpu=$1
3128 target_vendor=$2
3129 shift; shift
3130 # Remember, the first character of IFS is used to create $*,
3131 # except with old shells:
3132 target_os=$*
3133 IFS=$ac_save_IFS
3134 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3135
3136
3137 # The aliases save the names the user supplied, while $host etc.
3138 # will get canonicalized.
3139 test -n "$target_alias" &&
3140   test "$program_prefix$program_suffix$program_transform_name" = \
3141     NONENONEs,x,x, &&
3142   program_prefix=${target_alias}-
3143
3144 # Determine the noncanonical target name, for directory use.
3145  case ${build_alias} in
3146   "") build_noncanonical=${build} ;;
3147   *) build_noncanonical=${build_alias} ;;
3148 esac
3149
3150  case ${host_alias} in
3151   "") host_noncanonical=${build_noncanonical} ;;
3152   *) host_noncanonical=${host_alias} ;;
3153 esac
3154
3155  case ${target_alias} in
3156   "") target_noncanonical=${host_noncanonical} ;;
3157   *) target_noncanonical=${target_alias} ;;
3158 esac
3159
3160
3161
3162
3163 # Determine the target- and build-specific subdirectories
3164
3165 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3166 # have matching libraries, they should use host libraries: Makefile.tpl
3167 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3168 # However, they still use the build modules, because the corresponding
3169 # host modules (e.g. bison) are only built for the host when bootstrap
3170 # finishes. So:
3171 # - build_subdir is where we find build modules, and never changes.
3172 # - build_libsubdir is where we find build libraries, and can be overridden.
3173
3174 # Prefix 'build-' so this never conflicts with target_subdir.
3175 build_subdir="build-${build_noncanonical}"
3176
3177 # Check whether --with-build-libsubdir was given.
3178 if test "${with_build_libsubdir+set}" = set; then :
3179   withval=$with_build_libsubdir; build_libsubdir="$withval"
3180 else
3181   build_libsubdir="$build_subdir"
3182 fi
3183
3184 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3185 if ( test $srcdir = . && test -d gcc ) \
3186    || test -d $srcdir/../host-${host_noncanonical}; then
3187   host_subdir="host-${host_noncanonical}"
3188 else
3189   host_subdir=.
3190 fi
3191 # No prefix.
3192 target_subdir=${target_noncanonical}
3193
3194
3195 # Set program_transform_name
3196 test "$program_prefix" != NONE &&
3197   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3198 # Use a double $ so make ignores it.
3199 test "$program_suffix" != NONE &&
3200   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3201 # Double any \ or $.
3202 # By default was `s,x,x', remove it if useless.
3203 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3204 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3205
3206
3207 # Check for bogus environment variables.
3208 # Test if LIBRARY_PATH contains the notation for the current directory
3209 # since this would lead to problems installing/building glibc.
3210 # LIBRARY_PATH contains the current directory if one of the following
3211 # is true:
3212 # - one of the terminals (":" and ";") is the first or last sign
3213 # - two terminals occur directly after each other
3214 # - the path contains an element with a dot in it
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3216 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3217 case ${LIBRARY_PATH} in
3218   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3219     library_path_setting="contains current directory"
3220     ;;
3221   *)
3222     library_path_setting="ok"
3223     ;;
3224 esac
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3226 $as_echo "$library_path_setting" >&6; }
3227 if test "$library_path_setting" != "ok"; then
3228 as_fn_error "
3229 *** LIBRARY_PATH shouldn't contain the current directory when
3230 *** building gcc. Please change the environment variable
3231 *** and run configure again." "$LINENO" 5
3232 fi
3233
3234 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3235 # since this would lead to problems installing/building glibc.
3236 # GCC_EXEC_PREFIX contains the current directory if one of the following
3237 # is true:
3238 # - one of the terminals (":" and ";") is the first or last sign
3239 # - two terminals occur directly after each other
3240 # - the path contains an element with a dot in it
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3242 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3243 case ${GCC_EXEC_PREFIX} in
3244   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3245     gcc_exec_prefix_setting="contains current directory"
3246     ;;
3247   *)
3248     gcc_exec_prefix_setting="ok"
3249     ;;
3250 esac
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3252 $as_echo "$gcc_exec_prefix_setting" >&6; }
3253 if test "$gcc_exec_prefix_setting" != "ok"; then
3254 as_fn_error "
3255 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3256 *** building gcc. Please change the environment variable
3257 *** and run configure again." "$LINENO" 5
3258 fi
3259
3260 # -----------
3261 # Directories
3262 # -----------
3263
3264 # Specify the local prefix
3265 local_prefix=
3266
3267 # Check whether --with-local-prefix was given.
3268 if test "${with_local_prefix+set}" = set; then :
3269   withval=$with_local_prefix; case "${withval}" in
3270 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3271 no)     ;;
3272 *)      local_prefix=$with_local_prefix ;;
3273 esac
3274 fi
3275
3276
3277 # Default local prefix if it is empty
3278 if test x$local_prefix = x; then
3279         local_prefix=/usr/local
3280 fi
3281
3282 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3283 # passed in by the toplevel make and thus we'd get different behavior
3284 # depending on where we built the sources.
3285 gcc_gxx_include_dir=
3286 # Specify the g++ header file directory
3287
3288 # Check whether --with-gxx-include-dir was given.
3289 if test "${with_gxx_include_dir+set}" = set; then :
3290   withval=$with_gxx_include_dir; case "${withval}" in
3291 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3292 no)     ;;
3293 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3294 esac
3295 fi
3296
3297
3298 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3299 if test x${gcc_gxx_include_dir} = x; then
3300   if test x${enable_version_specific_runtime_libs} = xyes; then
3301     gcc_gxx_include_dir='${libsubdir}/include/c++'
3302   else
3303     libstdcxx_incdir='include/c++/$(version)'
3304     if test x$host != x$target; then
3305        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3306     fi
3307     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3308   fi
3309 fi
3310
3311
3312 # Check whether --with-cpp_install_dir was given.
3313 if test "${with_cpp_install_dir+set}" = set; then :
3314   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3315   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3316 elif test x$withval != xno; then
3317   cpp_install_dir=$withval
3318 fi
3319 fi
3320
3321
3322 # We would like to our source tree to be readonly.  However when releases or
3323 # pre-releases are generated, the flex/bison generated files as well as the
3324 # various formats of manuals need to be included along with the rest of the
3325 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3326 # just that.
3327
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3329 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3330     # Check whether --enable-generated-files-in-srcdir was given.
3331 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3332   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3333 else
3334   generated_files_in_srcdir=no
3335 fi
3336
3337
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3339 $as_echo "$generated_files_in_srcdir" >&6; }
3340
3341 if test "$generated_files_in_srcdir" = "yes"; then
3342   GENINSRC=''
3343 else
3344   GENINSRC='#'
3345 fi
3346
3347
3348 # -------------------
3349 # Find default linker
3350 # -------------------
3351
3352 # With GNU ld
3353
3354 # Check whether --with-gnu-ld was given.
3355 if test "${with_gnu_ld+set}" = set; then :
3356   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3357 else
3358   gnu_ld_flag=no
3359 fi
3360
3361
3362 # With pre-defined ld
3363
3364 # Check whether --with-ld was given.
3365 if test "${with_ld+set}" = set; then :
3366   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3367 fi
3368
3369 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3370   if test ! -x "$DEFAULT_LINKER"; then
3371     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3372   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3373     gnu_ld_flag=yes
3374   fi
3375
3376 cat >>confdefs.h <<_ACEOF
3377 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3378 _ACEOF
3379
3380 fi
3381
3382 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3383
3384 cat >>confdefs.h <<_ACEOF
3385 #define HAVE_GNU_LD $gnu_ld
3386 _ACEOF
3387
3388
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3390 $as_echo_n "checking whether a default linker was specified... " >&6; }
3391 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3392   if test x"$gnu_ld_flag" = x"no"; then
3393     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3394 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3395   else
3396     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3397 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3398   fi
3399 else
3400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3402 fi
3403
3404 # With demangler in GNU ld
3405
3406 # Check whether --with-demangler-in-ld was given.
3407 if test "${with_demangler_in_ld+set}" = set; then :
3408   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3409 else
3410   demangler_in_ld=no
3411 fi
3412
3413
3414 # ----------------------
3415 # Find default assembler
3416 # ----------------------
3417
3418 # With GNU as
3419
3420 # Check whether --with-gnu-as was given.
3421 if test "${with_gnu_as+set}" = set; then :
3422   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3423 else
3424   gas_flag=no
3425 fi
3426
3427
3428
3429 # Check whether --with-as was given.
3430 if test "${with_as+set}" = set; then :
3431   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3432 fi
3433
3434 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3435   if test ! -x "$DEFAULT_ASSEMBLER"; then
3436     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3437   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3438     gas_flag=yes
3439   fi
3440
3441 cat >>confdefs.h <<_ACEOF
3442 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3443 _ACEOF
3444
3445 fi
3446
3447 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3448
3449 cat >>confdefs.h <<_ACEOF
3450 #define HAVE_GNU_AS $gnu_as
3451 _ACEOF
3452
3453
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3455 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3456 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3457   if test x"$gas_flag" = x"no"; then
3458     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3459 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3460   else
3461     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3462 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3463   fi
3464 else
3465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3467 fi
3468
3469 # ---------------
3470 # Find C compiler
3471 # ---------------
3472
3473 # If a non-executable a.out is present (e.g. created by GNU as above even if
3474 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3475 # file, even when creating an executable, so an execution test fails.
3476 # Remove possible default executable files to avoid this.
3477 #
3478 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3479 # Autoconf includes it.
3480 rm -f a.out a.exe b.out
3481
3482 # Find the native compiler
3483 ac_ext=c
3484 ac_cpp='$CPP $CPPFLAGS'
3485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488 if test -n "$ac_tool_prefix"; then
3489   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3490 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492 $as_echo_n "checking for $ac_word... " >&6; }
3493 if test "${ac_cv_prog_CC+set}" = set; then :
3494   $as_echo_n "(cached) " >&6
3495 else
3496   if test -n "$CC"; then
3497   ac_cv_prog_CC="$CC" # Let the user override the test.
3498 else
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 for as_dir in $PATH
3501 do
3502   IFS=$as_save_IFS
3503   test -z "$as_dir" && as_dir=.
3504     for ac_exec_ext in '' $ac_executable_extensions; do
3505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3506     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3508     break 2
3509   fi
3510 done
3511   done
3512 IFS=$as_save_IFS
3513
3514 fi
3515 fi
3516 CC=$ac_cv_prog_CC
3517 if test -n "$CC"; then
3518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3519 $as_echo "$CC" >&6; }
3520 else
3521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522 $as_echo "no" >&6; }
3523 fi
3524
3525
3526 fi
3527 if test -z "$ac_cv_prog_CC"; then
3528   ac_ct_CC=$CC
3529   # Extract the first word of "gcc", so it can be a program name with args.
3530 set dummy gcc; ac_word=$2
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3532 $as_echo_n "checking for $ac_word... " >&6; }
3533 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3534   $as_echo_n "(cached) " >&6
3535 else
3536   if test -n "$ac_ct_CC"; then
3537   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3538 else
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 for as_dir in $PATH
3541 do
3542   IFS=$as_save_IFS
3543   test -z "$as_dir" && as_dir=.
3544     for ac_exec_ext in '' $ac_executable_extensions; do
3545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3546     ac_cv_prog_ac_ct_CC="gcc"
3547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3548     break 2
3549   fi
3550 done
3551   done
3552 IFS=$as_save_IFS
3553
3554 fi
3555 fi
3556 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3557 if test -n "$ac_ct_CC"; then
3558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3559 $as_echo "$ac_ct_CC" >&6; }
3560 else
3561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3563 fi
3564
3565   if test "x$ac_ct_CC" = x; then
3566     CC=""
3567   else
3568     case $cross_compiling:$ac_tool_warned in
3569 yes:)
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3572 ac_tool_warned=yes ;;
3573 esac
3574     CC=$ac_ct_CC
3575   fi
3576 else
3577   CC="$ac_cv_prog_CC"
3578 fi
3579
3580 if test -z "$CC"; then
3581           if test -n "$ac_tool_prefix"; then
3582     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3583 set dummy ${ac_tool_prefix}cc; ac_word=$2
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 $as_echo_n "checking for $ac_word... " >&6; }
3586 if test "${ac_cv_prog_CC+set}" = set; then :
3587   $as_echo_n "(cached) " >&6
3588 else
3589   if test -n "$CC"; then
3590   ac_cv_prog_CC="$CC" # Let the user override the test.
3591 else
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 for as_dir in $PATH
3594 do
3595   IFS=$as_save_IFS
3596   test -z "$as_dir" && as_dir=.
3597     for ac_exec_ext in '' $ac_executable_extensions; do
3598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3599     ac_cv_prog_CC="${ac_tool_prefix}cc"
3600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3601     break 2
3602   fi
3603 done
3604   done
3605 IFS=$as_save_IFS
3606
3607 fi
3608 fi
3609 CC=$ac_cv_prog_CC
3610 if test -n "$CC"; then
3611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3612 $as_echo "$CC" >&6; }
3613 else
3614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 $as_echo "no" >&6; }
3616 fi
3617
3618
3619   fi
3620 fi
3621 if test -z "$CC"; then
3622   # Extract the first word of "cc", so it can be a program name with args.
3623 set dummy cc; ac_word=$2
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3625 $as_echo_n "checking for $ac_word... " >&6; }
3626 if test "${ac_cv_prog_CC+set}" = set; then :
3627   $as_echo_n "(cached) " >&6
3628 else
3629   if test -n "$CC"; then
3630   ac_cv_prog_CC="$CC" # Let the user override the test.
3631 else
3632   ac_prog_rejected=no
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH
3635 do
3636   IFS=$as_save_IFS
3637   test -z "$as_dir" && as_dir=.
3638     for ac_exec_ext in '' $ac_executable_extensions; do
3639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3641        ac_prog_rejected=yes
3642        continue
3643      fi
3644     ac_cv_prog_CC="cc"
3645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3646     break 2
3647   fi
3648 done
3649   done
3650 IFS=$as_save_IFS
3651
3652 if test $ac_prog_rejected = yes; then
3653   # We found a bogon in the path, so make sure we never use it.
3654   set dummy $ac_cv_prog_CC
3655   shift
3656   if test $# != 0; then
3657     # We chose a different compiler from the bogus one.
3658     # However, it has the same basename, so the bogon will be chosen
3659     # first if we set CC to just the basename; use the full file name.
3660     shift
3661     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3662   fi
3663 fi
3664 fi
3665 fi
3666 CC=$ac_cv_prog_CC
3667 if test -n "$CC"; then
3668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3669 $as_echo "$CC" >&6; }
3670 else
3671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672 $as_echo "no" >&6; }
3673 fi
3674
3675
3676 fi
3677 if test -z "$CC"; then
3678   if test -n "$ac_tool_prefix"; then
3679   for ac_prog in cl.exe
3680   do
3681     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3682 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3684 $as_echo_n "checking for $ac_word... " >&6; }
3685 if test "${ac_cv_prog_CC+set}" = set; then :
3686   $as_echo_n "(cached) " >&6
3687 else
3688   if test -n "$CC"; then
3689   ac_cv_prog_CC="$CC" # Let the user override the test.
3690 else
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 for as_dir in $PATH
3693 do
3694   IFS=$as_save_IFS
3695   test -z "$as_dir" && as_dir=.
3696     for ac_exec_ext in '' $ac_executable_extensions; do
3697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3698     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3700     break 2
3701   fi
3702 done
3703   done
3704 IFS=$as_save_IFS
3705
3706 fi
3707 fi
3708 CC=$ac_cv_prog_CC
3709 if test -n "$CC"; then
3710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3711 $as_echo "$CC" >&6; }
3712 else
3713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714 $as_echo "no" >&6; }
3715 fi
3716
3717
3718     test -n "$CC" && break
3719   done
3720 fi
3721 if test -z "$CC"; then
3722   ac_ct_CC=$CC
3723   for ac_prog in cl.exe
3724 do
3725   # Extract the first word of "$ac_prog", so it can be a program name with args.
3726 set dummy $ac_prog; ac_word=$2
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3728 $as_echo_n "checking for $ac_word... " >&6; }
3729 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3730   $as_echo_n "(cached) " >&6
3731 else
3732   if test -n "$ac_ct_CC"; then
3733   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3734 else
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH
3737 do
3738   IFS=$as_save_IFS
3739   test -z "$as_dir" && as_dir=.
3740     for ac_exec_ext in '' $ac_executable_extensions; do
3741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3742     ac_cv_prog_ac_ct_CC="$ac_prog"
3743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3744     break 2
3745   fi
3746 done
3747   done
3748 IFS=$as_save_IFS
3749
3750 fi
3751 fi
3752 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3753 if test -n "$ac_ct_CC"; then
3754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3755 $as_echo "$ac_ct_CC" >&6; }
3756 else
3757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758 $as_echo "no" >&6; }
3759 fi
3760
3761
3762   test -n "$ac_ct_CC" && break
3763 done
3764
3765   if test "x$ac_ct_CC" = x; then
3766     CC=""
3767   else
3768     case $cross_compiling:$ac_tool_warned in
3769 yes:)
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3772 ac_tool_warned=yes ;;
3773 esac
3774     CC=$ac_ct_CC
3775   fi
3776 fi
3777
3778 fi
3779
3780
3781 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3783 as_fn_error "no acceptable C compiler found in \$PATH
3784 See \`config.log' for more details." "$LINENO" 5; }
3785
3786 # Provide some information about the compiler.
3787 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3788 set X $ac_compile
3789 ac_compiler=$2
3790 for ac_option in --version -v -V -qversion; do
3791   { { ac_try="$ac_compiler $ac_option >&5"
3792 case "(($ac_try" in
3793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794   *) ac_try_echo=$ac_try;;
3795 esac
3796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797 $as_echo "$ac_try_echo"; } >&5
3798   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3799   ac_status=$?
3800   if test -s conftest.err; then
3801     sed '10a\
3802 ... rest of stderr output deleted ...
3803          10q' conftest.err >conftest.er1
3804     cat conftest.er1 >&5
3805     rm -f conftest.er1 conftest.err
3806   fi
3807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808   test $ac_status = 0; }
3809 done
3810
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h.  */
3813
3814 int
3815 main ()
3816 {
3817
3818   ;
3819   return 0;
3820 }
3821 _ACEOF
3822 ac_clean_files_save=$ac_clean_files
3823 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3824 # Try to create an executable without -o first, disregard a.out.
3825 # It will help us diagnose broken compilers, and finding out an intuition
3826 # of exeext.
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3828 $as_echo_n "checking for C compiler default output file name... " >&6; }
3829 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3830
3831 # The possible output files:
3832 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3833
3834 ac_rmfiles=
3835 for ac_file in $ac_files
3836 do
3837   case $ac_file in
3838     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3839     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3840   esac
3841 done
3842 rm -f $ac_rmfiles
3843
3844 if { { ac_try="$ac_link_default"
3845 case "(($ac_try" in
3846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847   *) ac_try_echo=$ac_try;;
3848 esac
3849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850 $as_echo "$ac_try_echo"; } >&5
3851   (eval "$ac_link_default") 2>&5
3852   ac_status=$?
3853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854   test $ac_status = 0; }; then :
3855   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3856 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3857 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3858 # so that the user can short-circuit this test for compilers unknown to
3859 # Autoconf.
3860 for ac_file in $ac_files ''
3861 do
3862   test -f "$ac_file" || continue
3863   case $ac_file in
3864     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3865         ;;
3866     [ab].out )
3867         # We found the default executable, but exeext='' is most
3868         # certainly right.
3869         break;;
3870     *.* )
3871         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3872         then :; else
3873            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3874         fi
3875         # We set ac_cv_exeext here because the later test for it is not
3876         # safe: cross compilers may not add the suffix if given an `-o'
3877         # argument, so we may need to know it at that point already.
3878         # Even if this section looks crufty: it has the advantage of
3879         # actually working.
3880         break;;
3881     * )
3882         break;;
3883   esac
3884 done
3885 test "$ac_cv_exeext" = no && ac_cv_exeext=
3886
3887 else
3888   ac_file=''
3889 fi
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3891 $as_echo "$ac_file" >&6; }
3892 if test -z "$ac_file"; then :
3893   $as_echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3895
3896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3898 { as_fn_set_status 77
3899 as_fn_error "C compiler cannot create executables
3900 See \`config.log' for more details." "$LINENO" 5; }; }
3901 fi
3902 ac_exeext=$ac_cv_exeext
3903
3904 # Check that the compiler produces executables we can run.  If not, either
3905 # the compiler is broken, or we cross compile.
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3907 $as_echo_n "checking whether the C compiler works... " >&6; }
3908 # If not cross compiling, check that we can run a simple program.
3909 if test "$cross_compiling" != yes; then
3910   if { ac_try='./$ac_file'
3911   { { case "(($ac_try" in
3912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913   *) ac_try_echo=$ac_try;;
3914 esac
3915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3916 $as_echo "$ac_try_echo"; } >&5
3917   (eval "$ac_try") 2>&5
3918   ac_status=$?
3919   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3920   test $ac_status = 0; }; }; then
3921     cross_compiling=no
3922   else
3923     if test "$cross_compiling" = maybe; then
3924         cross_compiling=yes
3925     else
3926         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3928 as_fn_error "cannot run C compiled programs.
3929 If you meant to cross compile, use \`--host'.
3930 See \`config.log' for more details." "$LINENO" 5; }
3931     fi
3932   fi
3933 fi
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3935 $as_echo "yes" >&6; }
3936
3937 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3938 ac_clean_files=$ac_clean_files_save
3939 # Check that the compiler produces executables we can run.  If not, either
3940 # the compiler is broken, or we cross compile.
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3942 $as_echo_n "checking whether we are cross compiling... " >&6; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3944 $as_echo "$cross_compiling" >&6; }
3945
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3947 $as_echo_n "checking for suffix of executables... " >&6; }
3948 if { { ac_try="$ac_link"
3949 case "(($ac_try" in
3950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951   *) ac_try_echo=$ac_try;;
3952 esac
3953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3954 $as_echo "$ac_try_echo"; } >&5
3955   (eval "$ac_link") 2>&5
3956   ac_status=$?
3957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3958   test $ac_status = 0; }; then :
3959   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3960 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3961 # work properly (i.e., refer to `conftest.exe'), while it won't with
3962 # `rm'.
3963 for ac_file in conftest.exe conftest conftest.*; do
3964   test -f "$ac_file" || continue
3965   case $ac_file in
3966     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3967     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3968           break;;
3969     * ) break;;
3970   esac
3971 done
3972 else
3973   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3975 as_fn_error "cannot compute suffix of executables: cannot compile and link
3976 See \`config.log' for more details." "$LINENO" 5; }
3977 fi
3978 rm -f conftest$ac_cv_exeext
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3980 $as_echo "$ac_cv_exeext" >&6; }
3981
3982 rm -f conftest.$ac_ext
3983 EXEEXT=$ac_cv_exeext
3984 ac_exeext=$EXEEXT
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3986 $as_echo_n "checking for suffix of object files... " >&6; }
3987 if test "${ac_cv_objext+set}" = set; then :
3988   $as_echo_n "(cached) " >&6
3989 else
3990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h.  */
3992
3993 int
3994 main ()
3995 {
3996
3997   ;
3998   return 0;
3999 }
4000 _ACEOF
4001 rm -f conftest.o conftest.obj
4002 if { { ac_try="$ac_compile"
4003 case "(($ac_try" in
4004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005   *) ac_try_echo=$ac_try;;
4006 esac
4007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4008 $as_echo "$ac_try_echo"; } >&5
4009   (eval "$ac_compile") 2>&5
4010   ac_status=$?
4011   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4012   test $ac_status = 0; }; then :
4013   for ac_file in conftest.o conftest.obj conftest.*; do
4014   test -f "$ac_file" || continue;
4015   case $ac_file in
4016     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4017     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4018        break;;
4019   esac
4020 done
4021 else
4022   $as_echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4024
4025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4027 as_fn_error "cannot compute suffix of object files: cannot compile
4028 See \`config.log' for more details." "$LINENO" 5; }
4029 fi
4030 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4031 fi
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4033 $as_echo "$ac_cv_objext" >&6; }
4034 OBJEXT=$ac_cv_objext
4035 ac_objext=$OBJEXT
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4037 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4038 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4039   $as_echo_n "(cached) " >&6
4040 else
4041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h.  */
4043
4044 int
4045 main ()
4046 {
4047 #ifndef __GNUC__
4048        choke me
4049 #endif
4050
4051   ;
4052   return 0;
4053 }
4054 _ACEOF
4055 if ac_fn_c_try_compile "$LINENO"; then :
4056   ac_compiler_gnu=yes
4057 else
4058   ac_compiler_gnu=no
4059 fi
4060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4062
4063 fi
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4065 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4066 if test $ac_compiler_gnu = yes; then
4067   GCC=yes
4068 else
4069   GCC=
4070 fi
4071 ac_test_CFLAGS=${CFLAGS+set}
4072 ac_save_CFLAGS=$CFLAGS
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4074 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4075 if test "${ac_cv_prog_cc_g+set}" = set; then :
4076   $as_echo_n "(cached) " >&6
4077 else
4078   ac_save_c_werror_flag=$ac_c_werror_flag
4079    ac_c_werror_flag=yes
4080    ac_cv_prog_cc_g=no
4081    CFLAGS="-g"
4082    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h.  */
4084
4085 int
4086 main ()
4087 {
4088
4089   ;
4090   return 0;
4091 }
4092 _ACEOF
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094   ac_cv_prog_cc_g=yes
4095 else
4096   CFLAGS=""
4097       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h.  */
4099
4100 int
4101 main ()
4102 {
4103
4104   ;
4105   return 0;
4106 }
4107 _ACEOF
4108 if ac_fn_c_try_compile "$LINENO"; then :
4109
4110 else
4111   ac_c_werror_flag=$ac_save_c_werror_flag
4112          CFLAGS="-g"
4113          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h.  */
4115
4116 int
4117 main ()
4118 {
4119
4120   ;
4121   return 0;
4122 }
4123 _ACEOF
4124 if ac_fn_c_try_compile "$LINENO"; then :
4125   ac_cv_prog_cc_g=yes
4126 fi
4127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128 fi
4129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4130 fi
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132    ac_c_werror_flag=$ac_save_c_werror_flag
4133 fi
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4135 $as_echo "$ac_cv_prog_cc_g" >&6; }
4136 if test "$ac_test_CFLAGS" = set; then
4137   CFLAGS=$ac_save_CFLAGS
4138 elif test $ac_cv_prog_cc_g = yes; then
4139   if test "$GCC" = yes; then
4140     CFLAGS="-g -O2"
4141   else
4142     CFLAGS="-g"
4143   fi
4144 else
4145   if test "$GCC" = yes; then
4146     CFLAGS="-O2"
4147   else
4148     CFLAGS=
4149   fi
4150 fi
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4152 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4153 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4154   $as_echo_n "(cached) " >&6
4155 else
4156   ac_cv_prog_cc_c89=no
4157 ac_save_CC=$CC
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h.  */
4160 #include <stdarg.h>
4161 #include <stdio.h>
4162 #include <sys/types.h>
4163 #include <sys/stat.h>
4164 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4165 struct buf { int x; };
4166 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4167 static char *e (p, i)
4168      char **p;
4169      int i;
4170 {
4171   return p[i];
4172 }
4173 static char *f (char * (*g) (char **, int), char **p, ...)
4174 {
4175   char *s;
4176   va_list v;
4177   va_start (v,p);
4178   s = g (p, va_arg (v,int));
4179   va_end (v);
4180   return s;
4181 }
4182
4183 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4184    function prototypes and stuff, but not '\xHH' hex character constants.
4185    These don't provoke an error unfortunately, instead are silently treated
4186    as 'x'.  The following induces an error, until -std is added to get
4187    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4188    array size at least.  It's necessary to write '\x00'==0 to get something
4189    that's true only with -std.  */
4190 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4191
4192 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4193    inside strings and character constants.  */
4194 #define FOO(x) 'x'
4195 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4196
4197 int test (int i, double x);
4198 struct s1 {int (*f) (int a);};
4199 struct s2 {int (*f) (double a);};
4200 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4201 int argc;
4202 char **argv;
4203 int
4204 main ()
4205 {
4206 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4207   ;
4208   return 0;
4209 }
4210 _ACEOF
4211 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4212         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4213 do
4214   CC="$ac_save_CC $ac_arg"
4215   if ac_fn_c_try_compile "$LINENO"; then :
4216   ac_cv_prog_cc_c89=$ac_arg
4217 fi
4218 rm -f core conftest.err conftest.$ac_objext
4219   test "x$ac_cv_prog_cc_c89" != "xno" && break
4220 done
4221 rm -f conftest.$ac_ext
4222 CC=$ac_save_CC
4223
4224 fi
4225 # AC_CACHE_VAL
4226 case "x$ac_cv_prog_cc_c89" in
4227   x)
4228     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4229 $as_echo "none needed" >&6; } ;;
4230   xno)
4231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4232 $as_echo "unsupported" >&6; } ;;
4233   *)
4234     CC="$CC $ac_cv_prog_cc_c89"
4235     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4236 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4237 esac
4238 if test "x$ac_cv_prog_cc_c89" != xno; then :
4239
4240 fi
4241
4242 ac_ext=c
4243 ac_cpp='$CPP $CPPFLAGS'
4244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247
4248 if test "x$CC" != xcc; then
4249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4250 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4251 else
4252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4253 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4254 fi
4255 set dummy $CC; ac_cc=`$as_echo "$2" |
4256                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4257 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4258   $as_echo_n "(cached) " >&6
4259 else
4260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h.  */
4262
4263 int
4264 main ()
4265 {
4266
4267   ;
4268   return 0;
4269 }
4270 _ACEOF
4271 # Make sure it works both with $CC and with simple cc.
4272 # We do the test twice because some compilers refuse to overwrite an
4273 # existing .o file with -o, though they will create one.
4274 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4275 rm -f conftest2.*
4276 if { { case "(($ac_try" in
4277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278   *) ac_try_echo=$ac_try;;
4279 esac
4280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4281 $as_echo "$ac_try_echo"; } >&5
4282   (eval "$ac_try") 2>&5
4283   ac_status=$?
4284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4285   test $ac_status = 0; } &&
4286    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288   *) ac_try_echo=$ac_try;;
4289 esac
4290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4291 $as_echo "$ac_try_echo"; } >&5
4292   (eval "$ac_try") 2>&5
4293   ac_status=$?
4294   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4295   test $ac_status = 0; };
4296 then
4297   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4298   if test "x$CC" != xcc; then
4299     # Test first that cc exists at all.
4300     if { ac_try='cc -c conftest.$ac_ext >&5'
4301   { { case "(($ac_try" in
4302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303   *) ac_try_echo=$ac_try;;
4304 esac
4305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306 $as_echo "$ac_try_echo"; } >&5
4307   (eval "$ac_try") 2>&5
4308   ac_status=$?
4309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310   test $ac_status = 0; }; }; then
4311       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4312       rm -f conftest2.*
4313       if { { 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; } &&
4323          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325   *) ac_try_echo=$ac_try;;
4326 esac
4327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4328 $as_echo "$ac_try_echo"; } >&5
4329   (eval "$ac_try") 2>&5
4330   ac_status=$?
4331   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4332   test $ac_status = 0; };
4333       then
4334         # cc works too.
4335         :
4336       else
4337         # cc exists but doesn't like -o.
4338         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4339       fi
4340     fi
4341   fi
4342 else
4343   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4344 fi
4345 rm -f core conftest*
4346
4347 fi
4348 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4350 $as_echo "yes" >&6; }
4351 else
4352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353 $as_echo "no" >&6; }
4354
4355 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4356
4357 fi
4358
4359 # expand $ac_aux_dir to an absolute path
4360 am_aux_dir=`cd $ac_aux_dir && pwd`
4361
4362 # FIXME: we rely on the cache variable name because
4363 # there is no other way.
4364 set dummy $CC
4365 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4366 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4367 if test "$am_t" != yes; then
4368    # Losing compiler, so override with the script.
4369    # FIXME: It is wrong to rewrite CC.
4370    # But if we don't then we get into trouble of one sort or another.
4371    # A longer-term fix would be to have automake use am__CC in this case,
4372    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4373    CC="$am_aux_dir/compile $CC"
4374 fi
4375
4376
4377 ac_ext=cpp
4378 ac_cpp='$CXXCPP $CPPFLAGS'
4379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4382 if test -z "$CXX"; then
4383   if test -n "$CCC"; then
4384     CXX=$CCC
4385   else
4386     if test -n "$ac_tool_prefix"; then
4387   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4388   do
4389     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4390 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4392 $as_echo_n "checking for $ac_word... " >&6; }
4393 if test "${ac_cv_prog_CXX+set}" = set; then :
4394   $as_echo_n "(cached) " >&6
4395 else
4396   if test -n "$CXX"; then
4397   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4398 else
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4401 do
4402   IFS=$as_save_IFS
4403   test -z "$as_dir" && as_dir=.
4404     for ac_exec_ext in '' $ac_executable_extensions; do
4405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4406     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4408     break 2
4409   fi
4410 done
4411   done
4412 IFS=$as_save_IFS
4413
4414 fi
4415 fi
4416 CXX=$ac_cv_prog_CXX
4417 if test -n "$CXX"; then
4418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4419 $as_echo "$CXX" >&6; }
4420 else
4421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422 $as_echo "no" >&6; }
4423 fi
4424
4425
4426     test -n "$CXX" && break
4427   done
4428 fi
4429 if test -z "$CXX"; then
4430   ac_ct_CXX=$CXX
4431   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4432 do
4433   # Extract the first word of "$ac_prog", so it can be a program name with args.
4434 set dummy $ac_prog; ac_word=$2
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436 $as_echo_n "checking for $ac_word... " >&6; }
4437 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4438   $as_echo_n "(cached) " >&6
4439 else
4440   if test -n "$ac_ct_CXX"; then
4441   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4442 else
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4445 do
4446   IFS=$as_save_IFS
4447   test -z "$as_dir" && as_dir=.
4448     for ac_exec_ext in '' $ac_executable_extensions; do
4449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4450     ac_cv_prog_ac_ct_CXX="$ac_prog"
4451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4452     break 2
4453   fi
4454 done
4455   done
4456 IFS=$as_save_IFS
4457
4458 fi
4459 fi
4460 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4461 if test -n "$ac_ct_CXX"; then
4462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4463 $as_echo "$ac_ct_CXX" >&6; }
4464 else
4465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4466 $as_echo "no" >&6; }
4467 fi
4468
4469
4470   test -n "$ac_ct_CXX" && break
4471 done
4472
4473   if test "x$ac_ct_CXX" = x; then
4474     CXX="g++"
4475   else
4476     case $cross_compiling:$ac_tool_warned in
4477 yes:)
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4480 ac_tool_warned=yes ;;
4481 esac
4482     CXX=$ac_ct_CXX
4483   fi
4484 fi
4485
4486   fi
4487 fi
4488 # Provide some information about the compiler.
4489 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4490 set X $ac_compile
4491 ac_compiler=$2
4492 for ac_option in --version -v -V -qversion; do
4493   { { ac_try="$ac_compiler $ac_option >&5"
4494 case "(($ac_try" in
4495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496   *) ac_try_echo=$ac_try;;
4497 esac
4498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4499 $as_echo "$ac_try_echo"; } >&5
4500   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4501   ac_status=$?
4502   if test -s conftest.err; then
4503     sed '10a\
4504 ... rest of stderr output deleted ...
4505          10q' conftest.err >conftest.er1
4506     cat conftest.er1 >&5
4507     rm -f conftest.er1 conftest.err
4508   fi
4509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4510   test $ac_status = 0; }
4511 done
4512
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4514 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4515 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4516   $as_echo_n "(cached) " >&6
4517 else
4518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h.  */
4520
4521 int
4522 main ()
4523 {
4524 #ifndef __GNUC__
4525        choke me
4526 #endif
4527
4528   ;
4529   return 0;
4530 }
4531 _ACEOF
4532 if ac_fn_cxx_try_compile "$LINENO"; then :
4533   ac_compiler_gnu=yes
4534 else
4535   ac_compiler_gnu=no
4536 fi
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4539
4540 fi
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4542 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4543 if test $ac_compiler_gnu = yes; then
4544   GXX=yes
4545 else
4546   GXX=
4547 fi
4548 ac_test_CXXFLAGS=${CXXFLAGS+set}
4549 ac_save_CXXFLAGS=$CXXFLAGS
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4551 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4552 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4553   $as_echo_n "(cached) " >&6
4554 else
4555   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4556    ac_cxx_werror_flag=yes
4557    ac_cv_prog_cxx_g=no
4558    CXXFLAGS="-g"
4559    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h.  */
4561
4562 int
4563 main ()
4564 {
4565
4566   ;
4567   return 0;
4568 }
4569 _ACEOF
4570 if ac_fn_cxx_try_compile "$LINENO"; then :
4571   ac_cv_prog_cxx_g=yes
4572 else
4573   CXXFLAGS=""
4574       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h.  */
4576
4577 int
4578 main ()
4579 {
4580
4581   ;
4582   return 0;
4583 }
4584 _ACEOF
4585 if ac_fn_cxx_try_compile "$LINENO"; then :
4586
4587 else
4588   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4589          CXXFLAGS="-g"
4590          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h.  */
4592
4593 int
4594 main ()
4595 {
4596
4597   ;
4598   return 0;
4599 }
4600 _ACEOF
4601 if ac_fn_cxx_try_compile "$LINENO"; then :
4602   ac_cv_prog_cxx_g=yes
4603 fi
4604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605 fi
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 fi
4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4609    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4610 fi
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4612 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4613 if test "$ac_test_CXXFLAGS" = set; then
4614   CXXFLAGS=$ac_save_CXXFLAGS
4615 elif test $ac_cv_prog_cxx_g = yes; then
4616   if test "$GXX" = yes; then
4617     CXXFLAGS="-g -O2"
4618   else
4619     CXXFLAGS="-g"
4620   fi
4621 else
4622   if test "$GXX" = yes; then
4623     CXXFLAGS="-O2"
4624   else
4625     CXXFLAGS=
4626   fi
4627 fi
4628 ac_ext=c
4629 ac_cpp='$CPP $CPPFLAGS'
4630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4633
4634
4635
4636
4637 if test -n "$ac_tool_prefix"; then
4638   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4639 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 $as_echo_n "checking for $ac_word... " >&6; }
4642 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4643   $as_echo_n "(cached) " >&6
4644 else
4645   if test -n "$GNATBIND"; then
4646   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4647 else
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH
4650 do
4651   IFS=$as_save_IFS
4652   test -z "$as_dir" && as_dir=.
4653     for ac_exec_ext in '' $ac_executable_extensions; do
4654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4655     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657     break 2
4658   fi
4659 done
4660   done
4661 IFS=$as_save_IFS
4662
4663 fi
4664 fi
4665 GNATBIND=$ac_cv_prog_GNATBIND
4666 if test -n "$GNATBIND"; then
4667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4668 $as_echo "$GNATBIND" >&6; }
4669 else
4670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671 $as_echo "no" >&6; }
4672 fi
4673
4674
4675 fi
4676 if test -z "$ac_cv_prog_GNATBIND"; then
4677   ac_ct_GNATBIND=$GNATBIND
4678   # Extract the first word of "gnatbind", so it can be a program name with args.
4679 set dummy gnatbind; ac_word=$2
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4681 $as_echo_n "checking for $ac_word... " >&6; }
4682 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4683   $as_echo_n "(cached) " >&6
4684 else
4685   if test -n "$ac_ct_GNATBIND"; then
4686   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4687 else
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH
4690 do
4691   IFS=$as_save_IFS
4692   test -z "$as_dir" && as_dir=.
4693     for ac_exec_ext in '' $ac_executable_extensions; do
4694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4695     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4697     break 2
4698   fi
4699 done
4700   done
4701 IFS=$as_save_IFS
4702
4703 fi
4704 fi
4705 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4706 if test -n "$ac_ct_GNATBIND"; then
4707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4708 $as_echo "$ac_ct_GNATBIND" >&6; }
4709 else
4710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 $as_echo "no" >&6; }
4712 fi
4713
4714   if test "x$ac_ct_GNATBIND" = x; then
4715     GNATBIND="no"
4716   else
4717     case $cross_compiling:$ac_tool_warned in
4718 yes:)
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4721 ac_tool_warned=yes ;;
4722 esac
4723     GNATBIND=$ac_ct_GNATBIND
4724   fi
4725 else
4726   GNATBIND="$ac_cv_prog_GNATBIND"
4727 fi
4728
4729 if test -n "$ac_tool_prefix"; then
4730   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4731 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4733 $as_echo_n "checking for $ac_word... " >&6; }
4734 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4735   $as_echo_n "(cached) " >&6
4736 else
4737   if test -n "$GNATMAKE"; then
4738   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4739 else
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 for as_dir in $PATH
4742 do
4743   IFS=$as_save_IFS
4744   test -z "$as_dir" && as_dir=.
4745     for ac_exec_ext in '' $ac_executable_extensions; do
4746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4747     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4749     break 2
4750   fi
4751 done
4752   done
4753 IFS=$as_save_IFS
4754
4755 fi
4756 fi
4757 GNATMAKE=$ac_cv_prog_GNATMAKE
4758 if test -n "$GNATMAKE"; then
4759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4760 $as_echo "$GNATMAKE" >&6; }
4761 else
4762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 $as_echo "no" >&6; }
4764 fi
4765
4766
4767 fi
4768 if test -z "$ac_cv_prog_GNATMAKE"; then
4769   ac_ct_GNATMAKE=$GNATMAKE
4770   # Extract the first word of "gnatmake", so it can be a program name with args.
4771 set dummy gnatmake; ac_word=$2
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4775   $as_echo_n "(cached) " >&6
4776 else
4777   if test -n "$ac_ct_GNATMAKE"; then
4778   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4779 else
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 for as_dir in $PATH
4782 do
4783   IFS=$as_save_IFS
4784   test -z "$as_dir" && as_dir=.
4785     for ac_exec_ext in '' $ac_executable_extensions; do
4786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789     break 2
4790   fi
4791 done
4792   done
4793 IFS=$as_save_IFS
4794
4795 fi
4796 fi
4797 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4798 if test -n "$ac_ct_GNATMAKE"; then
4799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4800 $as_echo "$ac_ct_GNATMAKE" >&6; }
4801 else
4802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4804 fi
4805
4806   if test "x$ac_ct_GNATMAKE" = x; then
4807     GNATMAKE="no"
4808   else
4809     case $cross_compiling:$ac_tool_warned in
4810 yes:)
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4813 ac_tool_warned=yes ;;
4814 esac
4815     GNATMAKE=$ac_ct_GNATMAKE
4816   fi
4817 else
4818   GNATMAKE="$ac_cv_prog_GNATMAKE"
4819 fi
4820
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4822 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4823 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4824   $as_echo_n "(cached) " >&6
4825 else
4826   cat >conftest.adb <<EOF
4827 procedure conftest is begin null; end conftest;
4828 EOF
4829 acx_cv_cc_gcc_supports_ada=no
4830 # There is a bug in old released versions of GCC which causes the
4831 # driver to exit successfully when the appropriate language module
4832 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4833 # Therefore we must check for the error message as well as an
4834 # unsuccessful exit.
4835 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4836 # given a .adb file, but produce no object file.  So we must check
4837 # if an object file was really produced to guard against this.
4838 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4839 if test x"$errors" = x && test -f conftest.$ac_objext; then
4840   acx_cv_cc_gcc_supports_ada=yes
4841 fi
4842 rm -f conftest.*
4843 fi
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4845 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4846
4847 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4848   have_gnat=yes
4849 else
4850   have_gnat=no
4851 fi
4852
4853
4854 # autoconf is lame and doesn't give us any substitution variable for this.
4855 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4856   NO_MINUS_C_MINUS_O=yes
4857 else
4858   OUTPUT_OPTION='-o $@'
4859 fi
4860
4861
4862
4863 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4864 # optimizations to be activated explicitly by the toplevel.
4865 case "$CC" in
4866   */prev-gcc/xgcc*) ;;
4867   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4868 esac
4869
4870
4871 # -------------------------
4872 # Check C compiler features
4873 # -------------------------
4874
4875
4876 ac_ext=c
4877 ac_cpp='$CPP $CPPFLAGS'
4878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4882 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4883 # On Suns, sometimes $CPP names a directory.
4884 if test -n "$CPP" && test -d "$CPP"; then
4885   CPP=
4886 fi
4887 if test -z "$CPP"; then
4888   if test "${ac_cv_prog_CPP+set}" = set; then :
4889   $as_echo_n "(cached) " >&6
4890 else
4891       # Double quotes because CPP needs to be expanded
4892     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4893     do
4894       ac_preproc_ok=false
4895 for ac_c_preproc_warn_flag in '' yes
4896 do
4897   # Use a header file that comes with gcc, so configuring glibc
4898   # with a fresh cross-compiler works.
4899   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4900   # <limits.h> exists even on freestanding compilers.
4901   # On the NeXT, cc -E runs the code through the compiler's parser,
4902   # not just through cpp. "Syntax error" is here to catch this case.
4903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h.  */
4905 #ifdef __STDC__
4906 # include <limits.h>
4907 #else
4908 # include <assert.h>
4909 #endif
4910                      Syntax error
4911 _ACEOF
4912 if ac_fn_c_try_cpp "$LINENO"; then :
4913
4914 else
4915   # Broken: fails on valid input.
4916 continue
4917 fi
4918 rm -f conftest.err conftest.$ac_ext
4919
4920   # OK, works on sane cases.  Now check whether nonexistent headers
4921   # can be detected and how.
4922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h.  */
4924 #include <ac_nonexistent.h>
4925 _ACEOF
4926 if ac_fn_c_try_cpp "$LINENO"; then :
4927   # Broken: success on invalid input.
4928 continue
4929 else
4930   # Passes both tests.
4931 ac_preproc_ok=:
4932 break
4933 fi
4934 rm -f conftest.err conftest.$ac_ext
4935
4936 done
4937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4938 rm -f conftest.err conftest.$ac_ext
4939 if $ac_preproc_ok; then :
4940   break
4941 fi
4942
4943     done
4944     ac_cv_prog_CPP=$CPP
4945
4946 fi
4947   CPP=$ac_cv_prog_CPP
4948 else
4949   ac_cv_prog_CPP=$CPP
4950 fi
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4952 $as_echo "$CPP" >&6; }
4953 ac_preproc_ok=false
4954 for ac_c_preproc_warn_flag in '' yes
4955 do
4956   # Use a header file that comes with gcc, so configuring glibc
4957   # with a fresh cross-compiler works.
4958   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4959   # <limits.h> exists even on freestanding compilers.
4960   # On the NeXT, cc -E runs the code through the compiler's parser,
4961   # not just through cpp. "Syntax error" is here to catch this case.
4962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h.  */
4964 #ifdef __STDC__
4965 # include <limits.h>
4966 #else
4967 # include <assert.h>
4968 #endif
4969                      Syntax error
4970 _ACEOF
4971 if ac_fn_c_try_cpp "$LINENO"; then :
4972
4973 else
4974   # Broken: fails on valid input.
4975 continue
4976 fi
4977 rm -f conftest.err conftest.$ac_ext
4978
4979   # OK, works on sane cases.  Now check whether nonexistent headers
4980   # can be detected and how.
4981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h.  */
4983 #include <ac_nonexistent.h>
4984 _ACEOF
4985 if ac_fn_c_try_cpp "$LINENO"; then :
4986   # Broken: success on invalid input.
4987 continue
4988 else
4989   # Passes both tests.
4990 ac_preproc_ok=:
4991 break
4992 fi
4993 rm -f conftest.err conftest.$ac_ext
4994
4995 done
4996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4997 rm -f conftest.err conftest.$ac_ext
4998 if $ac_preproc_ok; then :
4999
5000 else
5001   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5003 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5004 See \`config.log' for more details." "$LINENO" 5; }
5005 fi
5006
5007 ac_ext=c
5008 ac_cpp='$CPP $CPPFLAGS'
5009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5012
5013
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5015 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5016 if test "${ac_cv_path_GREP+set}" = set; then :
5017   $as_echo_n "(cached) " >&6
5018 else
5019   if test -z "$GREP"; then
5020   ac_path_GREP_found=false
5021   # Loop through the user's path and test for each of PROGNAME-LIST
5022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5024 do
5025   IFS=$as_save_IFS
5026   test -z "$as_dir" && as_dir=.
5027     for ac_prog in grep ggrep; do
5028     for ac_exec_ext in '' $ac_executable_extensions; do
5029       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5030       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5031 # Check for GNU ac_path_GREP and select it if it is found.
5032   # Check for GNU $ac_path_GREP
5033 case `"$ac_path_GREP" --version 2>&1` in
5034 *GNU*)
5035   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5036 *)
5037   ac_count=0
5038   $as_echo_n 0123456789 >"conftest.in"
5039   while :
5040   do
5041     cat "conftest.in" "conftest.in" >"conftest.tmp"
5042     mv "conftest.tmp" "conftest.in"
5043     cp "conftest.in" "conftest.nl"
5044     $as_echo 'GREP' >> "conftest.nl"
5045     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5046     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5047     as_fn_arith $ac_count + 1 && ac_count=$as_val
5048     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5049       # Best one so far, save it but keep looking for a better one
5050       ac_cv_path_GREP="$ac_path_GREP"
5051       ac_path_GREP_max=$ac_count
5052     fi
5053     # 10*(2^10) chars as input seems more than enough
5054     test $ac_count -gt 10 && break
5055   done
5056   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5057 esac
5058
5059       $ac_path_GREP_found && break 3
5060     done
5061   done
5062   done
5063 IFS=$as_save_IFS
5064   if test -z "$ac_cv_path_GREP"; then
5065     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5066   fi
5067 else
5068   ac_cv_path_GREP=$GREP
5069 fi
5070
5071 fi
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5073 $as_echo "$ac_cv_path_GREP" >&6; }
5074  GREP="$ac_cv_path_GREP"
5075
5076
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5078 $as_echo_n "checking for egrep... " >&6; }
5079 if test "${ac_cv_path_EGREP+set}" = set; then :
5080   $as_echo_n "(cached) " >&6
5081 else
5082   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5083    then ac_cv_path_EGREP="$GREP -E"
5084    else
5085      if test -z "$EGREP"; then
5086   ac_path_EGREP_found=false
5087   # Loop through the user's path and test for each of PROGNAME-LIST
5088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5090 do
5091   IFS=$as_save_IFS
5092   test -z "$as_dir" && as_dir=.
5093     for ac_prog in egrep; do
5094     for ac_exec_ext in '' $ac_executable_extensions; do
5095       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5096       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5097 # Check for GNU ac_path_EGREP and select it if it is found.
5098   # Check for GNU $ac_path_EGREP
5099 case `"$ac_path_EGREP" --version 2>&1` in
5100 *GNU*)
5101   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5102 *)
5103   ac_count=0
5104   $as_echo_n 0123456789 >"conftest.in"
5105   while :
5106   do
5107     cat "conftest.in" "conftest.in" >"conftest.tmp"
5108     mv "conftest.tmp" "conftest.in"
5109     cp "conftest.in" "conftest.nl"
5110     $as_echo 'EGREP' >> "conftest.nl"
5111     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5112     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5113     as_fn_arith $ac_count + 1 && ac_count=$as_val
5114     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5115       # Best one so far, save it but keep looking for a better one
5116       ac_cv_path_EGREP="$ac_path_EGREP"
5117       ac_path_EGREP_max=$ac_count
5118     fi
5119     # 10*(2^10) chars as input seems more than enough
5120     test $ac_count -gt 10 && break
5121   done
5122   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5123 esac
5124
5125       $ac_path_EGREP_found && break 3
5126     done
5127   done
5128   done
5129 IFS=$as_save_IFS
5130   if test -z "$ac_cv_path_EGREP"; then
5131     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5132   fi
5133 else
5134   ac_cv_path_EGREP=$EGREP
5135 fi
5136
5137    fi
5138 fi
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5140 $as_echo "$ac_cv_path_EGREP" >&6; }
5141  EGREP="$ac_cv_path_EGREP"
5142
5143
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5145 $as_echo_n "checking for ANSI C header files... " >&6; }
5146 if test "${ac_cv_header_stdc+set}" = set; then :
5147   $as_echo_n "(cached) " >&6
5148 else
5149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h.  */
5151 #include <stdlib.h>
5152 #include <stdarg.h>
5153 #include <string.h>
5154 #include <float.h>
5155
5156 int
5157 main ()
5158 {
5159
5160   ;
5161   return 0;
5162 }
5163 _ACEOF
5164 if ac_fn_c_try_compile "$LINENO"; then :
5165   ac_cv_header_stdc=yes
5166 else
5167   ac_cv_header_stdc=no
5168 fi
5169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170
5171 if test $ac_cv_header_stdc = yes; then
5172   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h.  */
5175 #include <string.h>
5176
5177 _ACEOF
5178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5179   $EGREP "memchr" >/dev/null 2>&1; then :
5180
5181 else
5182   ac_cv_header_stdc=no
5183 fi
5184 rm -f conftest*
5185
5186 fi
5187
5188 if test $ac_cv_header_stdc = yes; then
5189   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h.  */
5192 #include <stdlib.h>
5193
5194 _ACEOF
5195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5196   $EGREP "free" >/dev/null 2>&1; then :
5197
5198 else
5199   ac_cv_header_stdc=no
5200 fi
5201 rm -f conftest*
5202
5203 fi
5204
5205 if test $ac_cv_header_stdc = yes; then
5206   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5207   if test "$cross_compiling" = yes; then :
5208   :
5209 else
5210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h.  */
5212 #include <ctype.h>
5213 #include <stdlib.h>
5214 #if ((' ' & 0x0FF) == 0x020)
5215 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5216 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5217 #else
5218 # define ISLOWER(c) \
5219                    (('a' <= (c) && (c) <= 'i') \
5220                      || ('j' <= (c) && (c) <= 'r') \
5221                      || ('s' <= (c) && (c) <= 'z'))
5222 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5223 #endif
5224
5225 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5226 int
5227 main ()
5228 {
5229   int i;
5230   for (i = 0; i < 256; i++)
5231     if (XOR (islower (i), ISLOWER (i))
5232         || toupper (i) != TOUPPER (i))
5233       return 2;
5234   return 0;
5235 }
5236 _ACEOF
5237 if ac_fn_c_try_run "$LINENO"; then :
5238
5239 else
5240   ac_cv_header_stdc=no
5241 fi
5242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5243   conftest.$ac_objext conftest.beam conftest.$ac_ext
5244 fi
5245
5246 fi
5247 fi
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5249 $as_echo "$ac_cv_header_stdc" >&6; }
5250 if test $ac_cv_header_stdc = yes; then
5251
5252 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5253
5254 fi
5255
5256 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5257 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5258                   inttypes.h stdint.h unistd.h
5259 do :
5260   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5261 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5262 "
5263 eval as_val=\$$as_ac_Header
5264    if test "x$as_val" = x""yes; then :
5265   cat >>confdefs.h <<_ACEOF
5266 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5267 _ACEOF
5268
5269 fi
5270
5271 done
5272
5273
5274
5275   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5276 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5277   MINIX=yes
5278 else
5279   MINIX=
5280 fi
5281
5282
5283   if test "$MINIX" = yes; then
5284
5285 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5286
5287
5288 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5289
5290
5291 $as_echo "#define _MINIX 1" >>confdefs.h
5292
5293   fi
5294
5295
5296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5297 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5298 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5299   $as_echo_n "(cached) " >&6
5300 else
5301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h.  */
5303
5304 #         define __EXTENSIONS__ 1
5305           $ac_includes_default
5306 int
5307 main ()
5308 {
5309
5310   ;
5311   return 0;
5312 }
5313 _ACEOF
5314 if ac_fn_c_try_compile "$LINENO"; then :
5315   ac_cv_safe_to_define___extensions__=yes
5316 else
5317   ac_cv_safe_to_define___extensions__=no
5318 fi
5319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5320 fi
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5322 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5323   test $ac_cv_safe_to_define___extensions__ = yes &&
5324     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5325
5326   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5327
5328   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5329
5330   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5331
5332   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5333
5334
5335 ac_ext=c
5336 ac_cpp='$CPP $CPPFLAGS'
5337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5341 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5342 # On Suns, sometimes $CPP names a directory.
5343 if test -n "$CPP" && test -d "$CPP"; then
5344   CPP=
5345 fi
5346 if test -z "$CPP"; then
5347   if test "${ac_cv_prog_CPP+set}" = set; then :
5348   $as_echo_n "(cached) " >&6
5349 else
5350       # Double quotes because CPP needs to be expanded
5351     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5352     do
5353       ac_preproc_ok=false
5354 for ac_c_preproc_warn_flag in '' yes
5355 do
5356   # Use a header file that comes with gcc, so configuring glibc
5357   # with a fresh cross-compiler works.
5358   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5359   # <limits.h> exists even on freestanding compilers.
5360   # On the NeXT, cc -E runs the code through the compiler's parser,
5361   # not just through cpp. "Syntax error" is here to catch this case.
5362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h.  */
5364 #ifdef __STDC__
5365 # include <limits.h>
5366 #else
5367 # include <assert.h>
5368 #endif
5369                      Syntax error
5370 _ACEOF
5371 if ac_fn_c_try_cpp "$LINENO"; then :
5372
5373 else
5374   # Broken: fails on valid input.
5375 continue
5376 fi
5377 rm -f conftest.err conftest.$ac_ext
5378
5379   # OK, works on sane cases.  Now check whether nonexistent headers
5380   # can be detected and how.
5381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h.  */
5383 #include <ac_nonexistent.h>
5384 _ACEOF
5385 if ac_fn_c_try_cpp "$LINENO"; then :
5386   # Broken: success on invalid input.
5387 continue
5388 else
5389   # Passes both tests.
5390 ac_preproc_ok=:
5391 break
5392 fi
5393 rm -f conftest.err conftest.$ac_ext
5394
5395 done
5396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5397 rm -f conftest.err conftest.$ac_ext
5398 if $ac_preproc_ok; then :
5399   break
5400 fi
5401
5402     done
5403     ac_cv_prog_CPP=$CPP
5404
5405 fi
5406   CPP=$ac_cv_prog_CPP
5407 else
5408   ac_cv_prog_CPP=$CPP
5409 fi
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5411 $as_echo "$CPP" >&6; }
5412 ac_preproc_ok=false
5413 for ac_c_preproc_warn_flag in '' yes
5414 do
5415   # Use a header file that comes with gcc, so configuring glibc
5416   # with a fresh cross-compiler works.
5417   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5418   # <limits.h> exists even on freestanding compilers.
5419   # On the NeXT, cc -E runs the code through the compiler's parser,
5420   # not just through cpp. "Syntax error" is here to catch this case.
5421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h.  */
5423 #ifdef __STDC__
5424 # include <limits.h>
5425 #else
5426 # include <assert.h>
5427 #endif
5428                      Syntax error
5429 _ACEOF
5430 if ac_fn_c_try_cpp "$LINENO"; then :
5431
5432 else
5433   # Broken: fails on valid input.
5434 continue
5435 fi
5436 rm -f conftest.err conftest.$ac_ext
5437
5438   # OK, works on sane cases.  Now check whether nonexistent headers
5439   # can be detected and how.
5440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h.  */
5442 #include <ac_nonexistent.h>
5443 _ACEOF
5444 if ac_fn_c_try_cpp "$LINENO"; then :
5445   # Broken: success on invalid input.
5446 continue
5447 else
5448   # Passes both tests.
5449 ac_preproc_ok=:
5450 break
5451 fi
5452 rm -f conftest.err conftest.$ac_ext
5453
5454 done
5455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5456 rm -f conftest.err conftest.$ac_ext
5457 if $ac_preproc_ok; then :
5458
5459 else
5460   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5462 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5463 See \`config.log' for more details." "$LINENO" 5; }
5464 fi
5465
5466 ac_ext=c
5467 ac_cpp='$CPP $CPPFLAGS'
5468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5471
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5473 $as_echo_n "checking for inline... " >&6; }
5474 if test "${ac_cv_c_inline+set}" = set; then :
5475   $as_echo_n "(cached) " >&6
5476 else
5477   ac_cv_c_inline=no
5478 for ac_kw in inline __inline__ __inline; do
5479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h.  */
5481 #ifndef __cplusplus
5482 typedef int foo_t;
5483 static $ac_kw foo_t static_foo () {return 0; }
5484 $ac_kw foo_t foo () {return 0; }
5485 #endif
5486
5487 _ACEOF
5488 if ac_fn_c_try_compile "$LINENO"; then :
5489   ac_cv_c_inline=$ac_kw
5490 fi
5491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5492   test "$ac_cv_c_inline" != no && break
5493 done
5494
5495 fi
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5497 $as_echo "$ac_cv_c_inline" >&6; }
5498
5499 case $ac_cv_c_inline in
5500   inline | yes) ;;
5501   *)
5502     case $ac_cv_c_inline in
5503       no) ac_val=;;
5504       *) ac_val=$ac_cv_c_inline;;
5505     esac
5506     cat >>confdefs.h <<_ACEOF
5507 #ifndef __cplusplus
5508 #define inline $ac_val
5509 #endif
5510 _ACEOF
5511     ;;
5512 esac
5513
5514
5515 # Check whether --enable-largefile was given.
5516 if test "${enable_largefile+set}" = set; then :
5517   enableval=$enable_largefile;
5518 fi
5519
5520 if test "$enable_largefile" != no; then
5521
5522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5523 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5524 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5525   $as_echo_n "(cached) " >&6
5526 else
5527   ac_cv_sys_largefile_CC=no
5528      if test "$GCC" != yes; then
5529        ac_save_CC=$CC
5530        while :; do
5531          # IRIX 6.2 and later do not support large files by default,
5532          # so use the C compiler's -n32 option if that helps.
5533          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h.  */
5535 #include <sys/types.h>
5536  /* Check that off_t can represent 2**63 - 1 correctly.
5537     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5538     since some C++ compilers masquerading as C compilers
5539     incorrectly reject 9223372036854775807.  */
5540 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5541   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5542                        && LARGE_OFF_T % 2147483647 == 1)
5543                       ? 1 : -1];
5544 int
5545 main ()
5546 {
5547
5548   ;
5549   return 0;
5550 }
5551 _ACEOF
5552          if ac_fn_c_try_compile "$LINENO"; then :
5553   break
5554 fi
5555 rm -f core conftest.err conftest.$ac_objext
5556          CC="$CC -n32"
5557          if ac_fn_c_try_compile "$LINENO"; then :
5558   ac_cv_sys_largefile_CC=' -n32'; break
5559 fi
5560 rm -f core conftest.err conftest.$ac_objext
5561          break
5562        done
5563        CC=$ac_save_CC
5564        rm -f conftest.$ac_ext
5565     fi
5566 fi
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5568 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5569   if test "$ac_cv_sys_largefile_CC" != no; then
5570     CC=$CC$ac_cv_sys_largefile_CC
5571   fi
5572
5573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5574 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5575 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5576   $as_echo_n "(cached) " >&6
5577 else
5578   while :; do
5579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580 /* end confdefs.h.  */
5581 #include <sys/types.h>
5582  /* Check that off_t can represent 2**63 - 1 correctly.
5583     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5584     since some C++ compilers masquerading as C compilers
5585     incorrectly reject 9223372036854775807.  */
5586 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5587   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5588                        && LARGE_OFF_T % 2147483647 == 1)
5589                       ? 1 : -1];
5590 int
5591 main ()
5592 {
5593
5594   ;
5595   return 0;
5596 }
5597 _ACEOF
5598 if ac_fn_c_try_compile "$LINENO"; then :
5599   ac_cv_sys_file_offset_bits=no; break
5600 fi
5601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h.  */
5604 #define _FILE_OFFSET_BITS 64
5605 #include <sys/types.h>
5606  /* Check that off_t can represent 2**63 - 1 correctly.
5607     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5608     since some C++ compilers masquerading as C compilers
5609     incorrectly reject 9223372036854775807.  */
5610 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5611   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5612                        && LARGE_OFF_T % 2147483647 == 1)
5613                       ? 1 : -1];
5614 int
5615 main ()
5616 {
5617
5618   ;
5619   return 0;
5620 }
5621 _ACEOF
5622 if ac_fn_c_try_compile "$LINENO"; then :
5623   ac_cv_sys_file_offset_bits=64; break
5624 fi
5625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626   ac_cv_sys_file_offset_bits=unknown
5627   break
5628 done
5629 fi
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5631 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5632 case $ac_cv_sys_file_offset_bits in #(
5633   no | unknown) ;;
5634   *)
5635 cat >>confdefs.h <<_ACEOF
5636 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5637 _ACEOF
5638 ;;
5639 esac
5640 rm -rf conftest*
5641   if test $ac_cv_sys_file_offset_bits = unknown; then
5642     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5643 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5644 if test "${ac_cv_sys_large_files+set}" = set; then :
5645   $as_echo_n "(cached) " >&6
5646 else
5647   while :; do
5648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649 /* end confdefs.h.  */
5650 #include <sys/types.h>
5651  /* Check that off_t can represent 2**63 - 1 correctly.
5652     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5653     since some C++ compilers masquerading as C compilers
5654     incorrectly reject 9223372036854775807.  */
5655 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5656   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5657                        && LARGE_OFF_T % 2147483647 == 1)
5658                       ? 1 : -1];
5659 int
5660 main ()
5661 {
5662
5663   ;
5664   return 0;
5665 }
5666 _ACEOF
5667 if ac_fn_c_try_compile "$LINENO"; then :
5668   ac_cv_sys_large_files=no; break
5669 fi
5670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h.  */
5673 #define _LARGE_FILES 1
5674 #include <sys/types.h>
5675  /* Check that off_t can represent 2**63 - 1 correctly.
5676     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5677     since some C++ compilers masquerading as C compilers
5678     incorrectly reject 9223372036854775807.  */
5679 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5680   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5681                        && LARGE_OFF_T % 2147483647 == 1)
5682                       ? 1 : -1];
5683 int
5684 main ()
5685 {
5686
5687   ;
5688   return 0;
5689 }
5690 _ACEOF
5691 if ac_fn_c_try_compile "$LINENO"; then :
5692   ac_cv_sys_large_files=1; break
5693 fi
5694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695   ac_cv_sys_large_files=unknown
5696   break
5697 done
5698 fi
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5700 $as_echo "$ac_cv_sys_large_files" >&6; }
5701 case $ac_cv_sys_large_files in #(
5702   no | unknown) ;;
5703   *)
5704 cat >>confdefs.h <<_ACEOF
5705 #define _LARGE_FILES $ac_cv_sys_large_files
5706 _ACEOF
5707 ;;
5708 esac
5709 rm -rf conftest*
5710   fi
5711 fi
5712
5713
5714 # sizeof(char) is 1 by definition.
5715 # The cast to long int works around a bug in the HP C Compiler
5716 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5717 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5718 # This bug is HP SR number 8606223364.
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5720 $as_echo_n "checking size of void *... " >&6; }
5721 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5722   $as_echo_n "(cached) " >&6
5723 else
5724   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5725
5726 else
5727   if test "$ac_cv_type_void_p" = yes; then
5728      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5730 { as_fn_set_status 77
5731 as_fn_error "cannot compute sizeof (void *)
5732 See \`config.log' for more details." "$LINENO" 5; }; }
5733    else
5734      ac_cv_sizeof_void_p=0
5735    fi
5736 fi
5737
5738 fi
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5740 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5741
5742
5743
5744 cat >>confdefs.h <<_ACEOF
5745 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5746 _ACEOF
5747
5748
5749 # The cast to long int works around a bug in the HP C Compiler
5750 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5751 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5752 # This bug is HP SR number 8606223364.
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5754 $as_echo_n "checking size of short... " >&6; }
5755 if test "${ac_cv_sizeof_short+set}" = set; then :
5756   $as_echo_n "(cached) " >&6
5757 else
5758   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5759
5760 else
5761   if test "$ac_cv_type_short" = yes; then
5762      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5764 { as_fn_set_status 77
5765 as_fn_error "cannot compute sizeof (short)
5766 See \`config.log' for more details." "$LINENO" 5; }; }
5767    else
5768      ac_cv_sizeof_short=0
5769    fi
5770 fi
5771
5772 fi
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5774 $as_echo "$ac_cv_sizeof_short" >&6; }
5775
5776
5777
5778 cat >>confdefs.h <<_ACEOF
5779 #define SIZEOF_SHORT $ac_cv_sizeof_short
5780 _ACEOF
5781
5782
5783 # The cast to long int works around a bug in the HP C Compiler
5784 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5785 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5786 # This bug is HP SR number 8606223364.
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5788 $as_echo_n "checking size of int... " >&6; }
5789 if test "${ac_cv_sizeof_int+set}" = set; then :
5790   $as_echo_n "(cached) " >&6
5791 else
5792   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5793
5794 else
5795   if test "$ac_cv_type_int" = yes; then
5796      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5798 { as_fn_set_status 77
5799 as_fn_error "cannot compute sizeof (int)
5800 See \`config.log' for more details." "$LINENO" 5; }; }
5801    else
5802      ac_cv_sizeof_int=0
5803    fi
5804 fi
5805
5806 fi
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5808 $as_echo "$ac_cv_sizeof_int" >&6; }
5809
5810
5811
5812 cat >>confdefs.h <<_ACEOF
5813 #define SIZEOF_INT $ac_cv_sizeof_int
5814 _ACEOF
5815
5816
5817 # The cast to long int works around a bug in the HP C Compiler
5818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5820 # This bug is HP SR number 8606223364.
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5822 $as_echo_n "checking size of long... " >&6; }
5823 if test "${ac_cv_sizeof_long+set}" = set; then :
5824   $as_echo_n "(cached) " >&6
5825 else
5826   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5827
5828 else
5829   if test "$ac_cv_type_long" = yes; then
5830      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5832 { as_fn_set_status 77
5833 as_fn_error "cannot compute sizeof (long)
5834 See \`config.log' for more details." "$LINENO" 5; }; }
5835    else
5836      ac_cv_sizeof_long=0
5837    fi
5838 fi
5839
5840 fi
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5842 $as_echo "$ac_cv_sizeof_long" >&6; }
5843
5844
5845
5846 cat >>confdefs.h <<_ACEOF
5847 #define SIZEOF_LONG $ac_cv_sizeof_long
5848 _ACEOF
5849
5850
5851 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5852 if test "x$ac_cv_type_long_long" = x""yes; then :
5853
5854 cat >>confdefs.h <<_ACEOF
5855 #define HAVE_LONG_LONG 1
5856 _ACEOF
5857
5858 # The cast to long int works around a bug in the HP C Compiler
5859 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5860 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5861 # This bug is HP SR number 8606223364.
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5863 $as_echo_n "checking size of long long... " >&6; }
5864 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5865   $as_echo_n "(cached) " >&6
5866 else
5867   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5868
5869 else
5870   if test "$ac_cv_type_long_long" = yes; then
5871      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5873 { as_fn_set_status 77
5874 as_fn_error "cannot compute sizeof (long long)
5875 See \`config.log' for more details." "$LINENO" 5; }; }
5876    else
5877      ac_cv_sizeof_long_long=0
5878    fi
5879 fi
5880
5881 fi
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5883 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5884
5885
5886
5887 cat >>confdefs.h <<_ACEOF
5888 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5889 _ACEOF
5890
5891
5892 fi
5893
5894 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5895 if test "x$ac_cv_type___int64" = x""yes; then :
5896
5897 cat >>confdefs.h <<_ACEOF
5898 #define HAVE___INT64 1
5899 _ACEOF
5900
5901 # The cast to long int works around a bug in the HP C Compiler
5902 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5903 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5904 # This bug is HP SR number 8606223364.
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5906 $as_echo_n "checking size of __int64... " >&6; }
5907 if test "${ac_cv_sizeof___int64+set}" = set; then :
5908   $as_echo_n "(cached) " >&6
5909 else
5910   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5911
5912 else
5913   if test "$ac_cv_type___int64" = yes; then
5914      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5916 { as_fn_set_status 77
5917 as_fn_error "cannot compute sizeof (__int64)
5918 See \`config.log' for more details." "$LINENO" 5; }; }
5919    else
5920      ac_cv_sizeof___int64=0
5921    fi
5922 fi
5923
5924 fi
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5926 $as_echo "$ac_cv_sizeof___int64" >&6; }
5927
5928
5929
5930 cat >>confdefs.h <<_ACEOF
5931 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5932 _ACEOF
5933
5934
5935 fi
5936
5937 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5938 case $ac_cv_c_int8_t in #(
5939   no|yes) ;; #(
5940   *)
5941
5942 cat >>confdefs.h <<_ACEOF
5943 #define int8_t $ac_cv_c_int8_t
5944 _ACEOF
5945 ;;
5946 esac
5947
5948 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5949 case $ac_cv_c_int16_t in #(
5950   no|yes) ;; #(
5951   *)
5952
5953 cat >>confdefs.h <<_ACEOF
5954 #define int16_t $ac_cv_c_int16_t
5955 _ACEOF
5956 ;;
5957 esac
5958
5959 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5960 case $ac_cv_c_int32_t in #(
5961   no|yes) ;; #(
5962   *)
5963
5964 cat >>confdefs.h <<_ACEOF
5965 #define int32_t $ac_cv_c_int32_t
5966 _ACEOF
5967 ;;
5968 esac
5969
5970 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5971 case $ac_cv_c_int64_t in #(
5972   no|yes) ;; #(
5973   *)
5974
5975 cat >>confdefs.h <<_ACEOF
5976 #define int64_t $ac_cv_c_int64_t
5977 _ACEOF
5978 ;;
5979 esac
5980
5981
5982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5983 $as_echo_n "checking for long long int... " >&6; }
5984 if test "${ac_cv_type_long_long_int+set}" = set; then :
5985   $as_echo_n "(cached) " >&6
5986 else
5987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988 /* end confdefs.h.  */
5989
5990   /* For now, do not test the preprocessor; as of 2007 there are too many
5991          implementations with broken preprocessors.  Perhaps this can
5992          be revisited in 2012.  In the meantime, code should not expect
5993          #if to work with literals wider than 32 bits.  */
5994       /* Test literals.  */
5995       long long int ll = 9223372036854775807ll;
5996       long long int nll = -9223372036854775807LL;
5997       unsigned long long int ull = 18446744073709551615ULL;
5998       /* Test constant expressions.   */
5999       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6000                      ? 1 : -1)];
6001       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6002                      ? 1 : -1)];
6003       int i = 63;
6004 int
6005 main ()
6006 {
6007 /* Test availability of runtime routines for shift and division.  */
6008       long long int llmax = 9223372036854775807ll;
6009       unsigned long long int ullmax = 18446744073709551615ull;
6010       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6011               | (llmax / ll) | (llmax % ll)
6012               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6013               | (ullmax / ull) | (ullmax % ull));
6014   ;
6015   return 0;
6016 }
6017
6018 _ACEOF
6019 if ac_fn_c_try_link "$LINENO"; then :
6020                         if test "$cross_compiling" = yes; then :
6021   ac_cv_type_long_long_int=yes
6022 else
6023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h.  */
6025 #include <limits.h>
6026                #ifndef LLONG_MAX
6027                # define HALF \
6028                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6029                # define LLONG_MAX (HALF - 1 + HALF)
6030                #endif
6031 int
6032 main ()
6033 {
6034 long long int n = 1;
6035                int i;
6036                for (i = 0; ; i++)
6037                  {
6038                    long long int m = n << i;
6039                    if (m >> i != n)
6040                      return 1;
6041                    if (LLONG_MAX / 2 < m)
6042                      break;
6043                  }
6044                return 0;
6045   ;
6046   return 0;
6047 }
6048 _ACEOF
6049 if ac_fn_c_try_run "$LINENO"; then :
6050   ac_cv_type_long_long_int=yes
6051 else
6052   ac_cv_type_long_long_int=no
6053 fi
6054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6055   conftest.$ac_objext conftest.beam conftest.$ac_ext
6056 fi
6057
6058 else
6059   ac_cv_type_long_long_int=no
6060 fi
6061 rm -f core conftest.err conftest.$ac_objext \
6062     conftest$ac_exeext conftest.$ac_ext
6063 fi
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6065 $as_echo "$ac_cv_type_long_long_int" >&6; }
6066   if test $ac_cv_type_long_long_int = yes; then
6067
6068 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6069
6070   fi
6071
6072
6073
6074   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6075 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6076
6077 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6078
6079 else
6080   test $ac_cv_type_long_long_int = yes \
6081        && ac_type='long long int' \
6082        || ac_type='long int'
6083
6084 cat >>confdefs.h <<_ACEOF
6085 #define intmax_t $ac_type
6086 _ACEOF
6087
6088 fi
6089
6090
6091
6092   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6093 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6094
6095 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6096
6097 else
6098   for ac_type in 'int' 'long int' 'long long int'; do
6099        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6100 /* end confdefs.h.  */
6101 $ac_includes_default
6102 int
6103 main ()
6104 {
6105 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6106 test_array [0] = 0
6107
6108   ;
6109   return 0;
6110 }
6111 _ACEOF
6112 if ac_fn_c_try_compile "$LINENO"; then :
6113
6114 cat >>confdefs.h <<_ACEOF
6115 #define intptr_t $ac_type
6116 _ACEOF
6117
6118           ac_type=
6119 fi
6120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6121        test -z "$ac_type" && break
6122      done
6123 fi
6124
6125
6126 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6127 case $ac_cv_c_uint8_t in #(
6128   no|yes) ;; #(
6129   *)
6130
6131 $as_echo "#define _UINT8_T 1" >>confdefs.h
6132
6133
6134 cat >>confdefs.h <<_ACEOF
6135 #define uint8_t $ac_cv_c_uint8_t
6136 _ACEOF
6137 ;;
6138   esac
6139
6140 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6141 case $ac_cv_c_uint16_t in #(
6142   no|yes) ;; #(
6143   *)
6144
6145
6146 cat >>confdefs.h <<_ACEOF
6147 #define uint16_t $ac_cv_c_uint16_t
6148 _ACEOF
6149 ;;
6150   esac
6151
6152 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6153 case $ac_cv_c_uint32_t in #(
6154   no|yes) ;; #(
6155   *)
6156
6157 $as_echo "#define _UINT32_T 1" >>confdefs.h
6158
6159
6160 cat >>confdefs.h <<_ACEOF
6161 #define uint32_t $ac_cv_c_uint32_t
6162 _ACEOF
6163 ;;
6164   esac
6165
6166 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6167 case $ac_cv_c_uint64_t in #(
6168   no|yes) ;; #(
6169   *)
6170
6171 $as_echo "#define _UINT64_T 1" >>confdefs.h
6172
6173
6174 cat >>confdefs.h <<_ACEOF
6175 #define uint64_t $ac_cv_c_uint64_t
6176 _ACEOF
6177 ;;
6178   esac
6179
6180
6181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6182 $as_echo_n "checking for unsigned long long int... " >&6; }
6183 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6184   $as_echo_n "(cached) " >&6
6185 else
6186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h.  */
6188
6189   /* For now, do not test the preprocessor; as of 2007 there are too many
6190          implementations with broken preprocessors.  Perhaps this can
6191          be revisited in 2012.  In the meantime, code should not expect
6192          #if to work with literals wider than 32 bits.  */
6193       /* Test literals.  */
6194       long long int ll = 9223372036854775807ll;
6195       long long int nll = -9223372036854775807LL;
6196       unsigned long long int ull = 18446744073709551615ULL;
6197       /* Test constant expressions.   */
6198       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6199                      ? 1 : -1)];
6200       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6201                      ? 1 : -1)];
6202       int i = 63;
6203 int
6204 main ()
6205 {
6206 /* Test availability of runtime routines for shift and division.  */
6207       long long int llmax = 9223372036854775807ll;
6208       unsigned long long int ullmax = 18446744073709551615ull;
6209       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6210               | (llmax / ll) | (llmax % ll)
6211               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6212               | (ullmax / ull) | (ullmax % ull));
6213   ;
6214   return 0;
6215 }
6216
6217 _ACEOF
6218 if ac_fn_c_try_link "$LINENO"; then :
6219   ac_cv_type_unsigned_long_long_int=yes
6220 else
6221   ac_cv_type_unsigned_long_long_int=no
6222 fi
6223 rm -f core conftest.err conftest.$ac_objext \
6224     conftest$ac_exeext conftest.$ac_ext
6225 fi
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6227 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6228   if test $ac_cv_type_unsigned_long_long_int = yes; then
6229
6230 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6231
6232   fi
6233
6234
6235
6236   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6237 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6238
6239 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6240
6241 else
6242   test $ac_cv_type_unsigned_long_long_int = yes \
6243        && ac_type='unsigned long long int' \
6244        || ac_type='unsigned long int'
6245
6246 cat >>confdefs.h <<_ACEOF
6247 #define uintmax_t $ac_type
6248 _ACEOF
6249
6250 fi
6251
6252
6253
6254   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6255 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6256
6257 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6258
6259 else
6260   for ac_type in 'unsigned int' 'unsigned long int' \
6261         'unsigned long long int'; do
6262        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h.  */
6264 $ac_includes_default
6265 int
6266 main ()
6267 {
6268 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6269 test_array [0] = 0
6270
6271   ;
6272   return 0;
6273 }
6274 _ACEOF
6275 if ac_fn_c_try_compile "$LINENO"; then :
6276
6277 cat >>confdefs.h <<_ACEOF
6278 #define uintptr_t $ac_type
6279 _ACEOF
6280
6281           ac_type=
6282 fi
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284        test -z "$ac_type" && break
6285      done
6286 fi
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302 # ---------------------
6303 # Warnings and checking
6304 # ---------------------
6305
6306 # Check $CC warning features (if it's GCC).
6307 # We want to use -pedantic, but we don't want warnings about
6308 # * 'long long'
6309 # * variadic macros
6310 # * overlong strings
6311 # So, we only use -pedantic if we can disable those warnings.
6312
6313 loose_warn=
6314 save_CFLAGS="$CFLAGS"
6315 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6316   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6317
6318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6319 $as_echo_n "checking whether $CC supports $option... " >&6; }
6320 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6321   $as_echo_n "(cached) " >&6
6322 else
6323   CFLAGS="$option"
6324     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h.  */
6326
6327 int
6328 main ()
6329 {
6330
6331   ;
6332   return 0;
6333 }
6334 _ACEOF
6335 if ac_fn_c_try_compile "$LINENO"; then :
6336   eval "$as_acx_Woption=yes"
6337 else
6338   eval "$as_acx_Woption=no"
6339 fi
6340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6341
6342 fi
6343 eval ac_res=\$$as_acx_Woption
6344                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6345 $as_echo "$ac_res" >&6; }
6346   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6347   loose_warn="$loose_warn${loose_warn:+ }$option"
6348 fi
6349   done
6350 CFLAGS="$save_CFLAGS"
6351
6352 c_loose_warn=
6353 save_CFLAGS="$CFLAGS"
6354 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6355   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6356
6357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6358 $as_echo_n "checking whether $CC supports $option... " >&6; }
6359 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6360   $as_echo_n "(cached) " >&6
6361 else
6362   CFLAGS="$option"
6363     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h.  */
6365
6366 int
6367 main ()
6368 {
6369
6370   ;
6371   return 0;
6372 }
6373 _ACEOF
6374 if ac_fn_c_try_compile "$LINENO"; then :
6375   eval "$as_acx_Woption=yes"
6376 else
6377   eval "$as_acx_Woption=no"
6378 fi
6379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6380
6381 fi
6382 eval ac_res=\$$as_acx_Woption
6383                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6384 $as_echo "$ac_res" >&6; }
6385   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6386   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6387 fi
6388   done
6389 CFLAGS="$save_CFLAGS"
6390
6391 strict_warn=
6392 save_CFLAGS="$CFLAGS"
6393 for option in -Wmissing-format-attribute; do
6394   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6395
6396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6397 $as_echo_n "checking whether $CC supports $option... " >&6; }
6398 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6399   $as_echo_n "(cached) " >&6
6400 else
6401   CFLAGS="$option"
6402     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h.  */
6404
6405 int
6406 main ()
6407 {
6408
6409   ;
6410   return 0;
6411 }
6412 _ACEOF
6413 if ac_fn_c_try_compile "$LINENO"; then :
6414   eval "$as_acx_Woption=yes"
6415 else
6416   eval "$as_acx_Woption=no"
6417 fi
6418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6419
6420 fi
6421 eval ac_res=\$$as_acx_Woption
6422                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6423 $as_echo "$ac_res" >&6; }
6424   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6425   strict_warn="$strict_warn${strict_warn:+ }$option"
6426 fi
6427   done
6428 CFLAGS="$save_CFLAGS"
6429
6430 c_strict_warn=
6431 save_CFLAGS="$CFLAGS"
6432 for option in -Wold-style-definition -Wc++-compat; do
6433   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6434
6435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6436 $as_echo_n "checking whether $CC supports $option... " >&6; }
6437 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6438   $as_echo_n "(cached) " >&6
6439 else
6440   CFLAGS="$option"
6441     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h.  */
6443
6444 int
6445 main ()
6446 {
6447
6448   ;
6449   return 0;
6450 }
6451 _ACEOF
6452 if ac_fn_c_try_compile "$LINENO"; then :
6453   eval "$as_acx_Woption=yes"
6454 else
6455   eval "$as_acx_Woption=no"
6456 fi
6457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458
6459 fi
6460 eval ac_res=\$$as_acx_Woption
6461                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6462 $as_echo "$ac_res" >&6; }
6463   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6464   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6465 fi
6466   done
6467 CFLAGS="$save_CFLAGS"
6468
6469 if test "$GCC" = yes; then :
6470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6471 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6472 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6473   $as_echo_n "(cached) " >&6
6474 else
6475   save_CFLAGS="$CFLAGS"
6476 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h.  */
6479
6480 int
6481 main ()
6482 {
6483
6484   ;
6485   return 0;
6486 }
6487 _ACEOF
6488 if ac_fn_c_try_compile "$LINENO"; then :
6489   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6490 else
6491   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6492 fi
6493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6494 CFLAGS="$save_CFLAGS"
6495 fi
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6497 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6498 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6499   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6500 fi
6501
6502 fi
6503
6504 # Check whether --enable-werror-always was given.
6505 if test "${enable_werror_always+set}" = set; then :
6506   enableval=$enable_werror_always;
6507 else
6508   enable_werror_always=no
6509 fi
6510
6511 if test $enable_werror_always = yes; then :
6512   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6513 fi
6514
6515
6516
6517 # The above macros do nothing if the compiler is not GCC.  However, the
6518 # Makefile has more goo to add other flags, so these variables are used
6519 # to enable warnings only for GCC.
6520 warn_cflags=
6521 warn_cxxflags=
6522 if test "x$GCC" = "xyes"; then
6523   warn_cflags='$(GCC_WARN_CFLAGS)'
6524   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6525 fi
6526
6527
6528
6529 # Enable expensive internal checks
6530 is_release=
6531 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6532   is_release=yes
6533 fi
6534
6535 # Check whether --enable-checking was given.
6536 if test "${enable_checking+set}" = set; then :
6537   enableval=$enable_checking; ac_checking_flags="${enableval}"
6538 else
6539
6540 # Determine the default checks.
6541 if test x$is_release = x ; then
6542   ac_checking_flags=yes
6543 else
6544   ac_checking_flags=release
6545 fi
6546 fi
6547
6548 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6549 for check in release $ac_checking_flags
6550 do
6551         case $check in
6552         # these set all the flags to specific states
6553         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6554                         ac_fold_checking= ; ac_gc_checking=1 ;
6555                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6556                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6557                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6558                         ac_types_checking=1 ;;
6559         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6560                         ac_fold_checking= ; ac_gc_checking= ;
6561                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6562                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6563                         ac_tree_checking= ; ac_valgrind_checking= ;
6564                         ac_types_checking= ;;
6565         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6566                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6567                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6568                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6569                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6570                         ac_types_checking=1 ;;
6571         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6572                         ac_fold_checking= ; ac_gc_checking= ;
6573                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6574                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6575                         ac_tree_checking= ; ac_valgrind_checking= ;
6576                         ac_types_checking= ;;
6577         # these enable particular checks
6578         assert)         ac_assert_checking=1 ;;
6579         df)             ac_df_checking=1 ;;
6580         fold)           ac_fold_checking=1 ;;
6581         gc)             ac_gc_checking=1 ;;
6582         gcac)           ac_gc_always_collect=1 ;;
6583         gimple)         ac_gimple_checking=1 ;;
6584         misc)           ac_checking=1 ;;
6585         rtl)            ac_rtl_checking=1 ;;
6586         rtlflag)        ac_rtlflag_checking=1 ;;
6587         runtime)        ac_runtime_checking=1 ;;
6588         tree)           ac_tree_checking=1 ;;
6589         types)          ac_types_checking=1 ;;
6590         valgrind)       ac_valgrind_checking=1 ;;
6591         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6592         esac
6593 done
6594 IFS="$ac_save_IFS"
6595
6596 nocommon_flag=""
6597 if test x$ac_checking != x ; then
6598
6599 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6600
6601   nocommon_flag=-fno-common
6602 fi
6603
6604 if test x$ac_df_checking != x ; then
6605
6606 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6607
6608 fi
6609 if test x$ac_assert_checking != x ; then
6610
6611 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6612
6613 fi
6614 if test x$ac_gimple_checking != x ; then
6615
6616 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6617
6618 fi
6619
6620 if test x$ac_runtime_checking != x ; then
6621
6622 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6623
6624 fi
6625 if test x$ac_tree_checking != x ; then
6626
6627 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6628
6629   TREEBROWSER=tree-browser.o
6630 fi
6631 if test x$ac_types_checking != x ; then
6632
6633 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6634
6635 fi
6636
6637 if test x$ac_rtl_checking != x ; then
6638
6639 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6640
6641 fi
6642 if test x$ac_rtlflag_checking != x ; then
6643
6644 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6645
6646 fi
6647 if test x$ac_gc_checking != x ; then
6648
6649 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6650
6651 fi
6652 if test x$ac_gc_always_collect != x ; then
6653
6654 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6655
6656 fi
6657 if test x$ac_fold_checking != x ; then
6658
6659 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6660
6661 fi
6662 valgrind_path_defines=
6663 valgrind_command=
6664
6665 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6666 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6667   have_valgrind_h=yes
6668 else
6669   have_valgrind_h=no
6670 fi
6671
6672
6673
6674 if test x$ac_valgrind_checking != x ; then
6675   # It is certainly possible that there's valgrind but no valgrind.h.
6676   # GCC relies on making annotations so we must have both.
6677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6678 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680 /* end confdefs.h.  */
6681 #include <valgrind/memcheck.h>
6682 #ifndef VALGRIND_DISCARD
6683 #error VALGRIND_DISCARD not defined
6684 #endif
6685 _ACEOF
6686 if ac_fn_c_try_cpp "$LINENO"; then :
6687   gcc_cv_header_valgrind_memcheck_h=yes
6688 else
6689   gcc_cv_header_valgrind_memcheck_h=no
6690 fi
6691 rm -f conftest.err conftest.$ac_ext
6692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6693 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6695 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h.  */
6698 #include <memcheck.h>
6699 #ifndef VALGRIND_DISCARD
6700 #error VALGRIND_DISCARD not defined
6701 #endif
6702 _ACEOF
6703 if ac_fn_c_try_cpp "$LINENO"; then :
6704   gcc_cv_header_memcheck_h=yes
6705 else
6706   gcc_cv_header_memcheck_h=no
6707 fi
6708 rm -f conftest.err conftest.$ac_ext
6709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6710 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6711
6712 # Prepare PATH_SEPARATOR.
6713 # The user is always right.
6714 if test "${PATH_SEPARATOR+set}" != set; then
6715   echo "#! /bin/sh" >conf$$.sh
6716   echo  "exit 0"   >>conf$$.sh
6717   chmod +x conf$$.sh
6718   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6719     PATH_SEPARATOR=';'
6720   else
6721     PATH_SEPARATOR=:
6722   fi
6723   rm -f conf$$.sh
6724 fi
6725
6726 # Find out how to test for executable files. Don't use a zero-byte file,
6727 # as systems may use methods other than mode bits to determine executability.
6728 cat >conf$$.file <<_ASEOF
6729 #! /bin/sh
6730 exit 0
6731 _ASEOF
6732 chmod +x conf$$.file
6733 if test -x conf$$.file >/dev/null 2>&1; then
6734   ac_executable_p="test -x"
6735 else
6736   ac_executable_p="test -f"
6737 fi
6738 rm -f conf$$.file
6739
6740 # Extract the first word of "valgrind", so it can be a program name with args.
6741 set dummy valgrind; ac_word=$2
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6745   $as_echo_n "(cached) " >&6
6746 else
6747   case "$valgrind_path" in
6748   [\\/]* | ?:[\\/]*)
6749     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6750     ;;
6751   *)
6752     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6753     for ac_dir in $PATH; do
6754       IFS="$ac_save_IFS"
6755       test -z "$ac_dir" && ac_dir=.
6756       for ac_exec_ext in '' $ac_executable_extensions; do
6757         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6758           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6759             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6760             break 2
6761           fi
6762         fi
6763       done
6764     done
6765     IFS="$ac_save_IFS"
6766     ;;
6767 esac
6768 fi
6769 valgrind_path="$ac_cv_path_valgrind_path"
6770 if test -n "$valgrind_path"; then
6771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6772 $as_echo "$valgrind_path" >&6; }
6773 else
6774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6775 $as_echo "no" >&6; }
6776 fi
6777
6778   if test "x$valgrind_path" = "x" \
6779     || (test $have_valgrind_h = no \
6780         && test $gcc_cv_header_memcheck_h = no \
6781         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6782         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6783   fi
6784   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6785   valgrind_command="$valgrind_path -q"
6786
6787 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6788
6789   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6790
6791 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6792
6793   fi
6794   if test $gcc_cv_header_memcheck_h = yes; then
6795
6796 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6797
6798   fi
6799 fi
6800
6801
6802
6803 # Enable code coverage collection
6804 # Check whether --enable-coverage was given.
6805 if test "${enable_coverage+set}" = set; then :
6806   enableval=$enable_coverage; case "${enableval}" in
6807   yes|noopt)
6808     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6809     ;;
6810   opt)
6811     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6812     ;;
6813   no)
6814     # a.k.a. --disable-coverage
6815     coverage_flags=""
6816     ;;
6817   *)
6818     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6819     ;;
6820 esac
6821 else
6822   coverage_flags=""
6823 fi
6824
6825
6826
6827 # Check whether --enable-gather-detailed-mem-stats was given.
6828 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6829   enableval=$enable_gather_detailed_mem_stats;
6830 else
6831   enable_gather_detailed_mem_stats=no
6832 fi
6833
6834 if test x$enable_gather_detailed_mem_stats = xyes ; then
6835
6836 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6837
6838 fi
6839
6840 # -------------------------------
6841 # Miscenalleous configure options
6842 # -------------------------------
6843
6844 # See if we are building gcc with C++.
6845 # Check whether --enable-build-with-cxx was given.
6846 if test "${enable_build_with_cxx+set}" = set; then :
6847   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6848 else
6849   ENABLE_BUILD_WITH_CXX=no
6850 fi
6851
6852
6853 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6854
6855 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6856
6857 fi
6858
6859 # With stabs
6860
6861 # Check whether --with-stabs was given.
6862 if test "${with_stabs+set}" = set; then :
6863   withval=$with_stabs; stabs="$with_stabs"
6864 else
6865   stabs=no
6866 fi
6867
6868
6869 # Determine whether or not multilibs are enabled.
6870 # Check whether --enable-multilib was given.
6871 if test "${enable_multilib+set}" = set; then :
6872   enableval=$enable_multilib;
6873 else
6874   enable_multilib=yes
6875 fi
6876
6877
6878
6879 # Enable __cxa_atexit for C++.
6880 # Check whether --enable-__cxa_atexit was given.
6881 if test "${enable___cxa_atexit+set}" = set; then :
6882   enableval=$enable___cxa_atexit;
6883 fi
6884
6885
6886 # Enable C extension for decimal float if target supports it.
6887
6888 # Check whether --enable-decimal-float was given.
6889 if test "${enable_decimal_float+set}" = set; then :
6890   enableval=$enable_decimal_float;
6891   case $enable_decimal_float in
6892     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6893     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6894 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6895   esac
6896
6897 else
6898
6899   case $target in
6900     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6901     i?86*-*-mingw* | x86_64*-*-mingw* | \
6902     i?86*-*-cygwin*)
6903       enable_decimal_float=yes
6904       ;;
6905     *)
6906       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6907 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6908       enable_decimal_float=no
6909       ;;
6910   esac
6911
6912 fi
6913
6914
6915 # x86's use BID format instead of DPD
6916 case x$enable_decimal_float in
6917   xyes)
6918     case $target in
6919       i?86*-*-* | x86_64*-*-*)
6920         enable_decimal_float=bid
6921         ;;
6922       *)
6923         enable_decimal_float=dpd
6924         ;;
6925     esac
6926     default_decimal_float=$enable_decimal_float
6927     ;;
6928   xno)
6929     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6930     # dependency on libdecnumber.
6931     default_decimal_float=dpd
6932     ;;
6933 esac
6934
6935
6936
6937
6938 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6939
6940 cat >>confdefs.h <<_ACEOF
6941 #define ENABLE_DECIMAL_FLOAT $dfp
6942 _ACEOF
6943
6944
6945 # Use default_decimal_float for dependency.
6946 enable_decimal_float=$default_decimal_float
6947
6948 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6949
6950 cat >>confdefs.h <<_ACEOF
6951 #define ENABLE_DECIMAL_BID_FORMAT $bid
6952 _ACEOF
6953
6954
6955 # Enable C extension for fixed-point arithmetic.
6956 # Check whether --enable-fixed-point was given.
6957 if test "${enable_fixed_point+set}" = set; then :
6958   enableval=$enable_fixed_point;
6959
6960 else
6961
6962   case $target in
6963     mips*-*-*)
6964       case $host in
6965         mips*-sgi-irix*)
6966           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6967 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6968           enable_fixed_point=no
6969           ;;
6970         *)
6971           enable_fixed_point=yes
6972           ;;
6973       esac
6974       ;;
6975     *)
6976       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6977 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6978       enable_fixed_point=no
6979       ;;
6980   esac
6981
6982 fi
6983
6984
6985
6986 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6987
6988 cat >>confdefs.h <<_ACEOF
6989 #define ENABLE_FIXED_POINT $fixedpoint
6990 _ACEOF
6991
6992
6993 # Enable threads
6994 # Pass with no value to take the default
6995 # Pass with a value to specify a thread package
6996 # Check whether --enable-threads was given.
6997 if test "${enable_threads+set}" = set; then :
6998   enableval=$enable_threads;
6999 else
7000   enable_threads=''
7001 fi
7002
7003
7004 # Check whether --enable-tls was given.
7005 if test "${enable_tls+set}" = set; then :
7006   enableval=$enable_tls;
7007   case $enable_tls in
7008     yes | no) ;;
7009     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7010 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7011   esac
7012
7013 else
7014   enable_tls=''
7015 fi
7016
7017
7018 # Check whether --enable-objc-gc was given.
7019 if test "${enable_objc_gc+set}" = set; then :
7020   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7021         objc_boehm_gc=''
7022 else
7023         objc_boehm_gc=1
7024 fi
7025 else
7026   objc_boehm_gc=''
7027 fi
7028
7029
7030
7031 # Check whether --with-dwarf2 was given.
7032 if test "${with_dwarf2+set}" = set; then :
7033   withval=$with_dwarf2; dwarf2="$with_dwarf2"
7034 else
7035   dwarf2=no
7036 fi
7037
7038
7039 # Check whether --enable-shared was given.
7040 if test "${enable_shared+set}" = set; then :
7041   enableval=$enable_shared;
7042   case $enable_shared in
7043   yes | no) ;;
7044   *)
7045     enable_shared=no
7046     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7047     for pkg in $enableval; do
7048       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7049         enable_shared=yes
7050       fi
7051     done
7052     IFS="$ac_save_ifs"
7053     ;;
7054   esac
7055
7056 else
7057   enable_shared=yes
7058 fi
7059
7060
7061
7062
7063 # Check whether --with-build-sysroot was given.
7064 if test "${with_build_sysroot+set}" = set; then :
7065   withval=$with_build_sysroot;
7066 fi
7067
7068
7069
7070 # Check whether --with-sysroot was given.
7071 if test "${with_sysroot+set}" = set; then :
7072   withval=$with_sysroot;
7073  case ${with_sysroot} in
7074  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7075  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7076  esac
7077
7078  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7079  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7080
7081  if test "x$prefix" = xNONE; then
7082   test_prefix=/usr/local
7083  else
7084   test_prefix=$prefix
7085  fi
7086  if test "x$exec_prefix" = xNONE; then
7087   test_exec_prefix=$test_prefix
7088  else
7089   test_exec_prefix=$exec_prefix
7090  fi
7091  case ${TARGET_SYSTEM_ROOT} in
7092  "${test_prefix}"|"${test_prefix}/"*|\
7093  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7094  '${prefix}'|'${prefix}/'*|\
7095  '${exec_prefix}'|'${exec_prefix}/'*)
7096    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7097    TARGET_SYSTEM_ROOT_DEFINE="$t"
7098    ;;
7099  esac
7100
7101 else
7102
7103  TARGET_SYSTEM_ROOT=
7104  TARGET_SYSTEM_ROOT_DEFINE=
7105  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7106
7107 fi
7108
7109
7110
7111
7112
7113
7114 # Check whether --with-specs was given.
7115 if test "${with_specs+set}" = set; then :
7116   withval=$with_specs; CONFIGURE_SPECS=$withval
7117 else
7118   CONFIGURE_SPECS=
7119
7120 fi
7121
7122
7123
7124
7125
7126 # Check whether --with-pkgversion was given.
7127 if test "${with_pkgversion+set}" = set; then :
7128   withval=$with_pkgversion; case "$withval" in
7129       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7130       no)  PKGVERSION= ;;
7131       *)   PKGVERSION="($withval) " ;;
7132      esac
7133 else
7134   PKGVERSION="(GCC) "
7135
7136 fi
7137
7138
7139
7140
7141
7142 # Check whether --with-bugurl was given.
7143 if test "${with_bugurl+set}" = set; then :
7144   withval=$with_bugurl; case "$withval" in
7145       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7146       no)  BUGURL=
7147            ;;
7148       *)   BUGURL="$withval"
7149            ;;
7150      esac
7151 else
7152   BUGURL="http://gcc.gnu.org/bugs.html"
7153
7154 fi
7155
7156   case ${BUGURL} in
7157   "")
7158     REPORT_BUGS_TO=
7159     REPORT_BUGS_TEXI=
7160     ;;
7161   *)
7162     REPORT_BUGS_TO="<$BUGURL>"
7163     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7164     ;;
7165   esac;
7166
7167
7168
7169
7170 # Sanity check enable_languages in case someone does not run the toplevel
7171 # configure # script.
7172 # Check whether --enable-languages was given.
7173 if test "${enable_languages+set}" = set; then :
7174   enableval=$enable_languages; case ,${enable_languages}, in
7175        ,,|,yes,)
7176                 # go safe -- we cannot be much sure without the toplevel
7177                 # configure's
7178                 # analysis of which target libs are present and usable
7179                 enable_languages=c
7180                 ;;
7181          *,all,*)
7182                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7183                 ;;
7184         *,c,*)
7185                 ;;
7186         *)
7187                 enable_languages=c,${enable_languages}
7188                 ;;
7189 esac
7190 else
7191   enable_languages=c
7192 fi
7193
7194
7195
7196 # Check whether --with-multilib-list was given.
7197 if test "${with_multilib_list+set}" = set; then :
7198   withval=$with_multilib_list; :
7199 else
7200   with_multilib_list=default
7201 fi
7202
7203
7204 # -------------------------
7205 # Checks for other programs
7206 # -------------------------
7207
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7209 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7210 set x ${MAKE-make}
7211 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7212 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7213   $as_echo_n "(cached) " >&6
7214 else
7215   cat >conftest.make <<\_ACEOF
7216 SHELL = /bin/sh
7217 all:
7218         @echo '@@@%%%=$(MAKE)=@@@%%%'
7219 _ACEOF
7220 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7221 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7222   *@@@%%%=?*=@@@%%%*)
7223     eval ac_cv_prog_make_${ac_make}_set=yes;;
7224   *)
7225     eval ac_cv_prog_make_${ac_make}_set=no;;
7226 esac
7227 rm -f conftest.make
7228 fi
7229 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7231 $as_echo "yes" >&6; }
7232   SET_MAKE=
7233 else
7234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7236   SET_MAKE="MAKE=${MAKE-make}"
7237 fi
7238
7239
7240 # Find some useful tools
7241 for ac_prog in gawk mawk nawk awk
7242 do
7243   # Extract the first word of "$ac_prog", so it can be a program name with args.
7244 set dummy $ac_prog; ac_word=$2
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246 $as_echo_n "checking for $ac_word... " >&6; }
7247 if test "${ac_cv_prog_AWK+set}" = set; then :
7248   $as_echo_n "(cached) " >&6
7249 else
7250   if test -n "$AWK"; then
7251   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7252 else
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7255 do
7256   IFS=$as_save_IFS
7257   test -z "$as_dir" && as_dir=.
7258     for ac_exec_ext in '' $ac_executable_extensions; do
7259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260     ac_cv_prog_AWK="$ac_prog"
7261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7262     break 2
7263   fi
7264 done
7265   done
7266 IFS=$as_save_IFS
7267
7268 fi
7269 fi
7270 AWK=$ac_cv_prog_AWK
7271 if test -n "$AWK"; then
7272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7273 $as_echo "$AWK" >&6; }
7274 else
7275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276 $as_echo "no" >&6; }
7277 fi
7278
7279
7280   test -n "$AWK" && break
7281 done
7282
7283 # We need awk to create options.c and options.h.
7284 # Bail out if it's missing.
7285 case ${AWK} in
7286   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7287 esac
7288
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7290 $as_echo_n "checking whether ln -s works... " >&6; }
7291 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7292   $as_echo_n "(cached) " >&6
7293 else
7294   rm -f conftestdata_t
7295 echo >conftestdata_f
7296 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7297 then
7298   gcc_cv_prog_LN_S="ln -s"
7299 else
7300   if ln conftestdata_f conftestdata_t 2>/dev/null
7301   then
7302     gcc_cv_prog_LN_S=ln
7303   else
7304     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7305     then
7306       gcc_cv_prog_LN_S="cp -p"
7307     else
7308       gcc_cv_prog_LN_S=cp
7309     fi
7310   fi
7311 fi
7312 rm -f conftestdata_f conftestdata_t
7313
7314 fi
7315 LN_S="$gcc_cv_prog_LN_S"
7316 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7318 $as_echo "yes" >&6; }
7319 else
7320   if test "$gcc_cv_prog_LN_S" = "ln"; then
7321     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7322 $as_echo "no, using ln" >&6; }
7323   else
7324     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7325 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7326   fi
7327 fi
7328
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7330 $as_echo_n "checking whether ln works... " >&6; }
7331 if test "${acx_cv_prog_LN+set}" = set; then :
7332   $as_echo_n "(cached) " >&6
7333 else
7334   rm -f conftestdata_t
7335 echo >conftestdata_f
7336 if ln conftestdata_f conftestdata_t 2>/dev/null
7337 then
7338   acx_cv_prog_LN=ln
7339 else
7340   acx_cv_prog_LN=no
7341 fi
7342 rm -f conftestdata_f conftestdata_t
7343
7344 fi
7345 if test $acx_cv_prog_LN = no; then
7346   LN="$LN_S"
7347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7348 $as_echo "no, using $LN" >&6; }
7349 else
7350   LN="$acx_cv_prog_LN"
7351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7352 $as_echo "yes" >&6; }
7353 fi
7354
7355 if test -n "$ac_tool_prefix"; then
7356   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7357 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7359 $as_echo_n "checking for $ac_word... " >&6; }
7360 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7361   $as_echo_n "(cached) " >&6
7362 else
7363   if test -n "$RANLIB"; then
7364   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7365 else
7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 for as_dir in $PATH
7368 do
7369   IFS=$as_save_IFS
7370   test -z "$as_dir" && as_dir=.
7371     for ac_exec_ext in '' $ac_executable_extensions; do
7372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7373     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7375     break 2
7376   fi
7377 done
7378   done
7379 IFS=$as_save_IFS
7380
7381 fi
7382 fi
7383 RANLIB=$ac_cv_prog_RANLIB
7384 if test -n "$RANLIB"; then
7385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7386 $as_echo "$RANLIB" >&6; }
7387 else
7388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389 $as_echo "no" >&6; }
7390 fi
7391
7392
7393 fi
7394 if test -z "$ac_cv_prog_RANLIB"; then
7395   ac_ct_RANLIB=$RANLIB
7396   # Extract the first word of "ranlib", so it can be a program name with args.
7397 set dummy ranlib; ac_word=$2
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 $as_echo_n "checking for $ac_word... " >&6; }
7400 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7401   $as_echo_n "(cached) " >&6
7402 else
7403   if test -n "$ac_ct_RANLIB"; then
7404   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7405 else
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 for as_dir in $PATH
7408 do
7409   IFS=$as_save_IFS
7410   test -z "$as_dir" && as_dir=.
7411     for ac_exec_ext in '' $ac_executable_extensions; do
7412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7413     ac_cv_prog_ac_ct_RANLIB="ranlib"
7414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7415     break 2
7416   fi
7417 done
7418   done
7419 IFS=$as_save_IFS
7420
7421 fi
7422 fi
7423 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7424 if test -n "$ac_ct_RANLIB"; then
7425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7426 $as_echo "$ac_ct_RANLIB" >&6; }
7427 else
7428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7430 fi
7431
7432   if test "x$ac_ct_RANLIB" = x; then
7433     RANLIB=":"
7434   else
7435     case $cross_compiling:$ac_tool_warned in
7436 yes:)
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7439 ac_tool_warned=yes ;;
7440 esac
7441     RANLIB=$ac_ct_RANLIB
7442   fi
7443 else
7444   RANLIB="$ac_cv_prog_RANLIB"
7445 fi
7446
7447 case "${host}" in
7448 *-*-darwin*)
7449   # By default, the Darwin ranlib will not treat common symbols as
7450   # definitions when  building the archive table of contents.  Other
7451   # ranlibs do that; pass an option to the Darwin ranlib that makes
7452   # it behave similarly.
7453   ranlib_flags="-c"
7454   ;;
7455 *)
7456   ranlib_flags=""
7457 esac
7458
7459
7460 # Find a good install program.  We prefer a C program (faster),
7461 # so one script is as good as another.  But avoid the broken or
7462 # incompatible versions:
7463 # SysV /etc/install, /usr/sbin/install
7464 # SunOS /usr/etc/install
7465 # IRIX /sbin/install
7466 # AIX /bin/install
7467 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7468 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7469 # ./install, which can be erroneously created by make from ./install.sh.
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7471 $as_echo_n "checking for a BSD compatible install... " >&6; }
7472 if test -z "$INSTALL"; then
7473 if test "${ac_cv_path_install+set}" = set; then :
7474   $as_echo_n "(cached) " >&6
7475 else
7476     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7477   for ac_dir in $PATH; do
7478     # Account for people who put trailing slashes in PATH elements.
7479     case "$ac_dir/" in
7480     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7481     *)
7482       # OSF1 and SCO ODT 3.0 have their own names for install.
7483       for ac_prog in ginstall scoinst install; do
7484         if test -f $ac_dir/$ac_prog; then
7485           if test $ac_prog = install &&
7486             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7487             # AIX install.  It has an incompatible calling convention.
7488             # OSF/1 installbsd also uses dspmsg, but is usable.
7489             :
7490           else
7491             ac_cv_path_install="$ac_dir/$ac_prog -c"
7492             break 2
7493           fi
7494         fi
7495       done
7496       ;;
7497     esac
7498   done
7499   IFS="$ac_save_IFS"
7500
7501 fi
7502   if test "${ac_cv_path_install+set}" = set; then
7503     INSTALL="$ac_cv_path_install"
7504   else
7505     # As a last resort, use the slow shell script.  We don't cache a
7506     # path for INSTALL within a source directory, because that will
7507     # break other packages using the cache if that directory is
7508     # removed, or if the path is relative.
7509     INSTALL="$ac_install_sh"
7510   fi
7511 fi
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7513 $as_echo "$INSTALL" >&6; }
7514
7515 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7516 # It thinks the first close brace ends the variable substitution.
7517 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7518
7519 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7520
7521
7522 # See if cmp has --ignore-initial.
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7524 $as_echo_n "checking for cmp's capabilities... " >&6; }
7525 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7526   $as_echo_n "(cached) " >&6
7527 else
7528    echo abfoo >t1
7529   echo cdfoo >t2
7530   gcc_cv_prog_cmp_skip=slowcompare
7531   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7532     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7533       :
7534     else
7535       gcc_cv_prog_cmp_skip=gnucompare
7536     fi
7537   fi
7538   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7539     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7540       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7541         :
7542       else
7543         gcc_cv_prog_cmp_skip=fastcompare
7544       fi
7545     fi
7546   fi
7547   rm t1 t2
7548
7549 fi
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7551 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7552 make_compare_target=$gcc_cv_prog_cmp_skip
7553
7554
7555
7556 # See if we have the mktemp command.
7557 # Extract the first word of "mktemp", so it can be a program name with args.
7558 set dummy mktemp; ac_word=$2
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7560 $as_echo_n "checking for $ac_word... " >&6; }
7561 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7562   $as_echo_n "(cached) " >&6
7563 else
7564   if test -n "$have_mktemp_command"; then
7565   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7566 else
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 for as_dir in $PATH
7569 do
7570   IFS=$as_save_IFS
7571   test -z "$as_dir" && as_dir=.
7572     for ac_exec_ext in '' $ac_executable_extensions; do
7573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7574     ac_cv_prog_have_mktemp_command="yes"
7575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7576     break 2
7577   fi
7578 done
7579   done
7580 IFS=$as_save_IFS
7581
7582   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7583 fi
7584 fi
7585 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7586 if test -n "$have_mktemp_command"; then
7587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7588 $as_echo "$have_mktemp_command" >&6; }
7589 else
7590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7592 fi
7593
7594
7595
7596 # See if makeinfo has been installed and is modern enough
7597 # that we can use it.
7598
7599   # Extract the first word of "makeinfo", so it can be a program name with args.
7600 set dummy makeinfo; ac_word=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7604   $as_echo_n "(cached) " >&6
7605 else
7606   if test -n "$MAKEINFO"; then
7607   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7608 else
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $PATH
7611 do
7612   IFS=$as_save_IFS
7613   test -z "$as_dir" && as_dir=.
7614     for ac_exec_ext in '' $ac_executable_extensions; do
7615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7616     ac_cv_prog_MAKEINFO="makeinfo"
7617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7618     break 2
7619   fi
7620 done
7621   done
7622 IFS=$as_save_IFS
7623
7624 fi
7625 fi
7626 MAKEINFO=$ac_cv_prog_MAKEINFO
7627 if test -n "$MAKEINFO"; then
7628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7629 $as_echo "$MAKEINFO" >&6; }
7630 else
7631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632 $as_echo "no" >&6; }
7633 fi
7634
7635
7636   if test -n "$MAKEINFO"; then
7637     # Found it, now check the version.
7638     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7639 $as_echo_n "checking for modern makeinfo... " >&6; }
7640 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7641   $as_echo_n "(cached) " >&6
7642 else
7643   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7644                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7645
7646                     case $ac_prog_version in
7647                       '')  gcc_cv_prog_makeinfo_modern=no;;
7648                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7649                       *)   gcc_cv_prog_makeinfo_modern=no;;
7650                     esac
7651
7652 fi
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7654 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7655   else
7656     gcc_cv_prog_makeinfo_modern=no
7657   fi
7658   if test $gcc_cv_prog_makeinfo_modern = no; then
7659     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7660   fi
7661
7662 if test $gcc_cv_prog_makeinfo_modern = no; then
7663   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7664 *** Makeinfo is missing or too old.
7665 *** Info documentation will not be built." >&5
7666 $as_echo "$as_me: WARNING:
7667 *** Makeinfo is missing or too old.
7668 *** Info documentation will not be built." >&2;}
7669   BUILD_INFO=
7670 else
7671   BUILD_INFO=info
7672 fi
7673
7674
7675 # Is pod2man recent enough to regenerate manpages?
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7677 $as_echo_n "checking for recent Pod::Man... " >&6; }
7678 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7680 $as_echo "yes" >&6; }
7681   GENERATED_MANPAGES=generated-manpages
7682 else
7683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684 $as_echo "no" >&6; }
7685   GENERATED_MANPAGES=
7686 fi
7687
7688
7689 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7690
7691 # How about lex?
7692 for ac_prog in flex
7693 do
7694   # Extract the first word of "$ac_prog", so it can be a program name with args.
7695 set dummy $ac_prog; ac_word=$2
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697 $as_echo_n "checking for $ac_word... " >&6; }
7698 if test "${ac_cv_prog_FLEX+set}" = set; then :
7699   $as_echo_n "(cached) " >&6
7700 else
7701   if test -n "$FLEX"; then
7702   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7703 else
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705 for as_dir in $PATH
7706 do
7707   IFS=$as_save_IFS
7708   test -z "$as_dir" && as_dir=.
7709     for ac_exec_ext in '' $ac_executable_extensions; do
7710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7711     ac_cv_prog_FLEX="$ac_prog"
7712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7713     break 2
7714   fi
7715 done
7716   done
7717 IFS=$as_save_IFS
7718
7719 fi
7720 fi
7721 FLEX=$ac_cv_prog_FLEX
7722 if test -n "$FLEX"; then
7723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7724 $as_echo "$FLEX" >&6; }
7725 else
7726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727 $as_echo "no" >&6; }
7728 fi
7729
7730
7731   test -n "$FLEX" && break
7732 done
7733 test -n "$FLEX" || FLEX="$MISSING flex"
7734
7735
7736 # Bison?
7737 for ac_prog in bison
7738 do
7739   # Extract the first word of "$ac_prog", so it can be a program name with args.
7740 set dummy $ac_prog; ac_word=$2
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7742 $as_echo_n "checking for $ac_word... " >&6; }
7743 if test "${ac_cv_prog_BISON+set}" = set; then :
7744   $as_echo_n "(cached) " >&6
7745 else
7746   if test -n "$BISON"; then
7747   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7748 else
7749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750 for as_dir in $PATH
7751 do
7752   IFS=$as_save_IFS
7753   test -z "$as_dir" && as_dir=.
7754     for ac_exec_ext in '' $ac_executable_extensions; do
7755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7756     ac_cv_prog_BISON="$ac_prog"
7757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7758     break 2
7759   fi
7760 done
7761   done
7762 IFS=$as_save_IFS
7763
7764 fi
7765 fi
7766 BISON=$ac_cv_prog_BISON
7767 if test -n "$BISON"; then
7768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7769 $as_echo "$BISON" >&6; }
7770 else
7771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7772 $as_echo "no" >&6; }
7773 fi
7774
7775
7776   test -n "$BISON" && break
7777 done
7778 test -n "$BISON" || BISON="$MISSING bison"
7779
7780
7781 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7782 # check for build == host before using them.
7783
7784 # NM
7785 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7786   && test -d ../binutils ; then
7787   NM='${objdir}/../binutils/nm-new'
7788 else
7789   # Extract the first word of "nm", so it can be a program name with args.
7790 set dummy nm; ac_word=$2
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792 $as_echo_n "checking for $ac_word... " >&6; }
7793 if test "${ac_cv_prog_NM+set}" = set; then :
7794   $as_echo_n "(cached) " >&6
7795 else
7796   if test -n "$NM"; then
7797   ac_cv_prog_NM="$NM" # Let the user override the test.
7798 else
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800 for as_dir in $PATH
7801 do
7802   IFS=$as_save_IFS
7803   test -z "$as_dir" && as_dir=.
7804     for ac_exec_ext in '' $ac_executable_extensions; do
7805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7806     ac_cv_prog_NM="nm"
7807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808     break 2
7809   fi
7810 done
7811   done
7812 IFS=$as_save_IFS
7813
7814   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7815 fi
7816 fi
7817 NM=$ac_cv_prog_NM
7818 if test -n "$NM"; then
7819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7820 $as_echo "$NM" >&6; }
7821 else
7822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7824 fi
7825
7826
7827 fi
7828
7829 # AR
7830 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7831   && test -d ../binutils ; then
7832   AR='${objdir}/../binutils/ar'
7833 else
7834   # Extract the first word of "ar", so it can be a program name with args.
7835 set dummy ar; ac_word=$2
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7837 $as_echo_n "checking for $ac_word... " >&6; }
7838 if test "${ac_cv_prog_AR+set}" = set; then :
7839   $as_echo_n "(cached) " >&6
7840 else
7841   if test -n "$AR"; then
7842   ac_cv_prog_AR="$AR" # Let the user override the test.
7843 else
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 for as_dir in $PATH
7846 do
7847   IFS=$as_save_IFS
7848   test -z "$as_dir" && as_dir=.
7849     for ac_exec_ext in '' $ac_executable_extensions; do
7850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7851     ac_cv_prog_AR="ar"
7852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7853     break 2
7854   fi
7855 done
7856   done
7857 IFS=$as_save_IFS
7858
7859   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7860 fi
7861 fi
7862 AR=$ac_cv_prog_AR
7863 if test -n "$AR"; then
7864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7865 $as_echo "$AR" >&6; }
7866 else
7867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7869 fi
7870
7871
7872 fi
7873
7874
7875 # --------------------
7876 # Checks for C headers
7877 # --------------------
7878
7879 # Need to reject headers which give warnings, so that the -Werror bootstrap
7880 # works later. *sigh*  This needs to come before all header checks.
7881
7882 ac_c_preproc_warn_flag=yes
7883
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7885 $as_echo_n "checking for ANSI C header files... " >&6; }
7886 if test "${ac_cv_header_stdc+set}" = set; then :
7887   $as_echo_n "(cached) " >&6
7888 else
7889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h.  */
7891 #include <stdlib.h>
7892 #include <stdarg.h>
7893 #include <string.h>
7894 #include <float.h>
7895
7896 int
7897 main ()
7898 {
7899
7900   ;
7901   return 0;
7902 }
7903 _ACEOF
7904 if ac_fn_c_try_compile "$LINENO"; then :
7905   ac_cv_header_stdc=yes
7906 else
7907   ac_cv_header_stdc=no
7908 fi
7909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7910
7911 if test $ac_cv_header_stdc = yes; then
7912   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h.  */
7915 #include <string.h>
7916
7917 _ACEOF
7918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7919   $EGREP "memchr" >/dev/null 2>&1; then :
7920
7921 else
7922   ac_cv_header_stdc=no
7923 fi
7924 rm -f conftest*
7925
7926 fi
7927
7928 if test $ac_cv_header_stdc = yes; then
7929   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931 /* end confdefs.h.  */
7932 #include <stdlib.h>
7933
7934 _ACEOF
7935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7936   $EGREP "free" >/dev/null 2>&1; then :
7937
7938 else
7939   ac_cv_header_stdc=no
7940 fi
7941 rm -f conftest*
7942
7943 fi
7944
7945 if test $ac_cv_header_stdc = yes; then
7946   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7947   if test "$cross_compiling" = yes; then :
7948   :
7949 else
7950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951 /* end confdefs.h.  */
7952 #include <ctype.h>
7953 #include <stdlib.h>
7954 #if ((' ' & 0x0FF) == 0x020)
7955 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7956 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7957 #else
7958 # define ISLOWER(c) \
7959                    (('a' <= (c) && (c) <= 'i') \
7960                      || ('j' <= (c) && (c) <= 'r') \
7961                      || ('s' <= (c) && (c) <= 'z'))
7962 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7963 #endif
7964
7965 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7966 int
7967 main ()
7968 {
7969   int i;
7970   for (i = 0; i < 256; i++)
7971     if (XOR (islower (i), ISLOWER (i))
7972         || toupper (i) != TOUPPER (i))
7973       return 2;
7974   return 0;
7975 }
7976 _ACEOF
7977 if ac_fn_c_try_run "$LINENO"; then :
7978
7979 else
7980   ac_cv_header_stdc=no
7981 fi
7982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7983   conftest.$ac_objext conftest.beam conftest.$ac_ext
7984 fi
7985
7986 fi
7987 fi
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7989 $as_echo "$ac_cv_header_stdc" >&6; }
7990 if test $ac_cv_header_stdc = yes; then
7991
7992 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7993
7994 fi
7995
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7997 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7998 if test "${ac_cv_header_time+set}" = set; then :
7999   $as_echo_n "(cached) " >&6
8000 else
8001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8002 /* end confdefs.h.  */
8003 #include <sys/types.h>
8004 #include <sys/time.h>
8005 #include <time.h>
8006
8007 int
8008 main ()
8009 {
8010 if ((struct tm *) 0)
8011 return 0;
8012   ;
8013   return 0;
8014 }
8015 _ACEOF
8016 if ac_fn_c_try_compile "$LINENO"; then :
8017   ac_cv_header_time=yes
8018 else
8019   ac_cv_header_time=no
8020 fi
8021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022 fi
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8024 $as_echo "$ac_cv_header_time" >&6; }
8025 if test $ac_cv_header_time = yes; then
8026
8027 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8028
8029 fi
8030
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8032 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8033 if test "${gcc_cv_header_string+set}" = set; then :
8034   $as_echo_n "(cached) " >&6
8035 else
8036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8037 /* end confdefs.h.  */
8038 #include <string.h>
8039 #include <strings.h>
8040 int
8041 main ()
8042 {
8043
8044   ;
8045   return 0;
8046 }
8047 _ACEOF
8048 if ac_fn_c_try_compile "$LINENO"; then :
8049   gcc_cv_header_string=yes
8050 else
8051   gcc_cv_header_string=no
8052 fi
8053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054 fi
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8056 $as_echo "$gcc_cv_header_string" >&6; }
8057 if test $gcc_cv_header_string = yes; then
8058
8059 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8060
8061 fi
8062
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8064 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8065 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8066   $as_echo_n "(cached) " >&6
8067 else
8068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h.  */
8070 #include <sys/types.h>
8071 #include <sys/wait.h>
8072 #ifndef WEXITSTATUS
8073 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8074 #endif
8075 #ifndef WIFEXITED
8076 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8077 #endif
8078
8079 int
8080 main ()
8081 {
8082   int s;
8083   wait (&s);
8084   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8085   ;
8086   return 0;
8087 }
8088 _ACEOF
8089 if ac_fn_c_try_compile "$LINENO"; then :
8090   ac_cv_header_sys_wait_h=yes
8091 else
8092   ac_cv_header_sys_wait_h=no
8093 fi
8094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8095 fi
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8097 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8098 if test $ac_cv_header_sys_wait_h = yes; then
8099
8100 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8101
8102 fi
8103
8104 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8105                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8106                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8107                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8108 do :
8109   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8110 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8111 eval as_val=\$$as_ac_Header
8112    if test "x$as_val" = x""yes; then :
8113   cat >>confdefs.h <<_ACEOF
8114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8115 _ACEOF
8116
8117 fi
8118 done
8119
8120
8121 # Check for thread headers.
8122 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8123 if test "x$ac_cv_header_thread_h" = x""yes; then :
8124   have_thread_h=yes
8125 else
8126   have_thread_h=
8127 fi
8128
8129 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8130 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8131   have_pthread_h=yes
8132 else
8133   have_pthread_h=
8134 fi
8135
8136
8137 # These tests can't be done till we know if we have limits.h.
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8139 $as_echo_n "checking for CHAR_BIT... " >&6; }
8140 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8141   $as_echo_n "(cached) " >&6
8142 else
8143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h.  */
8145 #ifdef HAVE_LIMITS_H
8146 #include <limits.h>
8147 #endif
8148 #ifdef CHAR_BIT
8149 found
8150 #endif
8151 _ACEOF
8152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8153   $EGREP "found" >/dev/null 2>&1; then :
8154   gcc_cv_decl_char_bit=yes
8155 else
8156   gcc_cv_decl_char_bit=no
8157 fi
8158 rm -f conftest*
8159
8160
8161 fi
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8163 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8164 if test $gcc_cv_decl_char_bit = no; then
8165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8166 $as_echo_n "checking number of bits in a byte... " >&6; }
8167 if test "${gcc_cv_c_nbby+set}" = set; then :
8168   $as_echo_n "(cached) " >&6
8169 else
8170   i=8
8171  gcc_cv_c_nbby=
8172  while test $i -lt 65; do
8173    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h.  */
8175
8176 int
8177 main ()
8178 {
8179 switch(0) {
8180   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8181   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8182   ; }
8183   ;
8184   return 0;
8185 }
8186 _ACEOF
8187 if ac_fn_c_try_compile "$LINENO"; then :
8188   gcc_cv_c_nbby=$i; break
8189 fi
8190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8191    i=`expr $i + 1`
8192  done
8193  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8194
8195 fi
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8197 $as_echo "$gcc_cv_c_nbby" >&6; }
8198 if test $gcc_cv_c_nbby = failed; then
8199   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8200 else
8201
8202 cat >>confdefs.h <<_ACEOF
8203 #define CHAR_BIT $gcc_cv_c_nbby
8204 _ACEOF
8205
8206 fi
8207 fi
8208  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8209 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8210 if test "${ac_cv_c_bigendian+set}" = set; then :
8211   $as_echo_n "(cached) " >&6
8212 else
8213   ac_cv_c_bigendian=unknown
8214     # See if we're dealing with a universal compiler.
8215     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h.  */
8217 #ifndef __APPLE_CC__
8218                not a universal capable compiler
8219              #endif
8220              typedef int dummy;
8221
8222 _ACEOF
8223 if ac_fn_c_try_compile "$LINENO"; then :
8224
8225         # Check for potential -arch flags.  It is not universal unless
8226         # there are at least two -arch flags with different values.
8227         ac_arch=
8228         ac_prev=
8229         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8230          if test -n "$ac_prev"; then
8231            case $ac_word in
8232              i?86 | x86_64 | ppc | ppc64)
8233                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8234                  ac_arch=$ac_word
8235                else
8236                  ac_cv_c_bigendian=universal
8237                  break
8238                fi
8239                ;;
8240            esac
8241            ac_prev=
8242          elif test "x$ac_word" = "x-arch"; then
8243            ac_prev=arch
8244          fi
8245        done
8246 fi
8247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248     if test $ac_cv_c_bigendian = unknown; then
8249       # See if sys/param.h defines the BYTE_ORDER macro.
8250       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h.  */
8252 #include <sys/types.h>
8253              #include <sys/param.h>
8254
8255 int
8256 main ()
8257 {
8258 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8259                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8260                      && LITTLE_ENDIAN)
8261               bogus endian macros
8262              #endif
8263
8264   ;
8265   return 0;
8266 }
8267 _ACEOF
8268 if ac_fn_c_try_compile "$LINENO"; then :
8269   # It does; now see whether it defined to BIG_ENDIAN or not.
8270          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h.  */
8272 #include <sys/types.h>
8273                 #include <sys/param.h>
8274
8275 int
8276 main ()
8277 {
8278 #if BYTE_ORDER != BIG_ENDIAN
8279                  not big endian
8280                 #endif
8281
8282   ;
8283   return 0;
8284 }
8285 _ACEOF
8286 if ac_fn_c_try_compile "$LINENO"; then :
8287   ac_cv_c_bigendian=yes
8288 else
8289   ac_cv_c_bigendian=no
8290 fi
8291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8292 fi
8293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8294     fi
8295     if test $ac_cv_c_bigendian = unknown; then
8296       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8297       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298 /* end confdefs.h.  */
8299 #include <limits.h>
8300
8301 int
8302 main ()
8303 {
8304 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8305               bogus endian macros
8306              #endif
8307
8308   ;
8309   return 0;
8310 }
8311 _ACEOF
8312 if ac_fn_c_try_compile "$LINENO"; then :
8313   # It does; now see whether it defined to _BIG_ENDIAN or not.
8314          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8315 /* end confdefs.h.  */
8316 #include <limits.h>
8317
8318 int
8319 main ()
8320 {
8321 #ifndef _BIG_ENDIAN
8322                  not big endian
8323                 #endif
8324
8325   ;
8326   return 0;
8327 }
8328 _ACEOF
8329 if ac_fn_c_try_compile "$LINENO"; then :
8330   ac_cv_c_bigendian=yes
8331 else
8332   ac_cv_c_bigendian=no
8333 fi
8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335 fi
8336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8337     fi
8338     if test $ac_cv_c_bigendian = unknown; then
8339       # Compile a test program.
8340       if test "$cross_compiling" = yes; then :
8341   # Try to guess by grepping values from an object file.
8342          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8343 /* end confdefs.h.  */
8344 short int ascii_mm[] =
8345                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8346                 short int ascii_ii[] =
8347                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8348                 int use_ascii (int i) {
8349                   return ascii_mm[i] + ascii_ii[i];
8350                 }
8351                 short int ebcdic_ii[] =
8352                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8353                 short int ebcdic_mm[] =
8354                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8355                 int use_ebcdic (int i) {
8356                   return ebcdic_mm[i] + ebcdic_ii[i];
8357                 }
8358                 extern int foo;
8359
8360 int
8361 main ()
8362 {
8363 return use_ascii (foo) == use_ebcdic (foo);
8364   ;
8365   return 0;
8366 }
8367 _ACEOF
8368 if ac_fn_c_try_compile "$LINENO"; then :
8369   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8370               ac_cv_c_bigendian=yes
8371             fi
8372             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8373               if test "$ac_cv_c_bigendian" = unknown; then
8374                 ac_cv_c_bigendian=no
8375               else
8376                 # finding both strings is unlikely to happen, but who knows?
8377                 ac_cv_c_bigendian=unknown
8378               fi
8379             fi
8380 fi
8381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8382 else
8383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384 /* end confdefs.h.  */
8385 $ac_includes_default
8386 int
8387 main ()
8388 {
8389
8390              /* Are we little or big endian?  From Harbison&Steele.  */
8391              union
8392              {
8393                long int l;
8394                char c[sizeof (long int)];
8395              } u;
8396              u.l = 1;
8397              return u.c[sizeof (long int) - 1] == 1;
8398
8399   ;
8400   return 0;
8401 }
8402 _ACEOF
8403 if ac_fn_c_try_run "$LINENO"; then :
8404   ac_cv_c_bigendian=no
8405 else
8406   ac_cv_c_bigendian=yes
8407 fi
8408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8409   conftest.$ac_objext conftest.beam conftest.$ac_ext
8410 fi
8411
8412     fi
8413 fi
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8415 $as_echo "$ac_cv_c_bigendian" >&6; }
8416  case $ac_cv_c_bigendian in #(
8417    yes)
8418      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8419 ;; #(
8420    no)
8421       ;; #(
8422    universal)
8423
8424 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8425
8426      ;; #(
8427    *)
8428      as_fn_error "unknown endianness
8429  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8430  esac
8431
8432
8433 # ----------------------
8434 # Checks for C++ headers
8435 # ----------------------
8436
8437 ac_ext=cpp
8438 ac_cpp='$CXXCPP $CPPFLAGS'
8439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8443 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8444 if test -z "$CXXCPP"; then
8445   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8446   $as_echo_n "(cached) " >&6
8447 else
8448       # Double quotes because CXXCPP needs to be expanded
8449     for CXXCPP in "$CXX -E" "/lib/cpp"
8450     do
8451       ac_preproc_ok=false
8452 for ac_cxx_preproc_warn_flag in '' yes
8453 do
8454   # Use a header file that comes with gcc, so configuring glibc
8455   # with a fresh cross-compiler works.
8456   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8457   # <limits.h> exists even on freestanding compilers.
8458   # On the NeXT, cc -E runs the code through the compiler's parser,
8459   # not just through cpp. "Syntax error" is here to catch this case.
8460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h.  */
8462 #ifdef __STDC__
8463 # include <limits.h>
8464 #else
8465 # include <assert.h>
8466 #endif
8467                      Syntax error
8468 _ACEOF
8469 if ac_fn_cxx_try_cpp "$LINENO"; then :
8470
8471 else
8472   # Broken: fails on valid input.
8473 continue
8474 fi
8475 rm -f conftest.err conftest.$ac_ext
8476
8477   # OK, works on sane cases.  Now check whether nonexistent headers
8478   # can be detected and how.
8479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h.  */
8481 #include <ac_nonexistent.h>
8482 _ACEOF
8483 if ac_fn_cxx_try_cpp "$LINENO"; then :
8484   # Broken: success on invalid input.
8485 continue
8486 else
8487   # Passes both tests.
8488 ac_preproc_ok=:
8489 break
8490 fi
8491 rm -f conftest.err conftest.$ac_ext
8492
8493 done
8494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8495 rm -f conftest.err conftest.$ac_ext
8496 if $ac_preproc_ok; then :
8497   break
8498 fi
8499
8500     done
8501     ac_cv_prog_CXXCPP=$CXXCPP
8502
8503 fi
8504   CXXCPP=$ac_cv_prog_CXXCPP
8505 else
8506   ac_cv_prog_CXXCPP=$CXXCPP
8507 fi
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8509 $as_echo "$CXXCPP" >&6; }
8510 ac_preproc_ok=false
8511 for ac_cxx_preproc_warn_flag in '' yes
8512 do
8513   # Use a header file that comes with gcc, so configuring glibc
8514   # with a fresh cross-compiler works.
8515   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8516   # <limits.h> exists even on freestanding compilers.
8517   # On the NeXT, cc -E runs the code through the compiler's parser,
8518   # not just through cpp. "Syntax error" is here to catch this case.
8519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h.  */
8521 #ifdef __STDC__
8522 # include <limits.h>
8523 #else
8524 # include <assert.h>
8525 #endif
8526                      Syntax error
8527 _ACEOF
8528 if ac_fn_cxx_try_cpp "$LINENO"; then :
8529
8530 else
8531   # Broken: fails on valid input.
8532 continue
8533 fi
8534 rm -f conftest.err conftest.$ac_ext
8535
8536   # OK, works on sane cases.  Now check whether nonexistent headers
8537   # can be detected and how.
8538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h.  */
8540 #include <ac_nonexistent.h>
8541 _ACEOF
8542 if ac_fn_cxx_try_cpp "$LINENO"; then :
8543   # Broken: success on invalid input.
8544 continue
8545 else
8546   # Passes both tests.
8547 ac_preproc_ok=:
8548 break
8549 fi
8550 rm -f conftest.err conftest.$ac_ext
8551
8552 done
8553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8554 rm -f conftest.err conftest.$ac_ext
8555 if $ac_preproc_ok; then :
8556
8557 else
8558   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8561 See \`config.log' for more details." >&5
8562 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8563 See \`config.log' for more details." >&2;}; }
8564 fi
8565
8566 ac_ext=c
8567 ac_cpp='$CPP $CPPFLAGS'
8568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8571
8572
8573 ac_ext=cpp
8574 ac_cpp='$CXXCPP $CPPFLAGS'
8575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8578
8579
8580
8581
8582 for ac_header in unordered_map
8583 do :
8584   ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8585 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8586   cat >>confdefs.h <<_ACEOF
8587 #define HAVE_UNORDERED_MAP 1
8588 _ACEOF
8589
8590 fi
8591 done
8592
8593 for ac_header in tr1/unordered_map
8594 do :
8595   ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8596 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8597   cat >>confdefs.h <<_ACEOF
8598 #define HAVE_TR1_UNORDERED_MAP 1
8599 _ACEOF
8600
8601 fi
8602 done
8603
8604 for ac_header in ext/hash_map
8605 do :
8606   ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8607 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8608   cat >>confdefs.h <<_ACEOF
8609 #define HAVE_EXT_HASH_MAP 1
8610 _ACEOF
8611
8612 fi
8613 done
8614
8615
8616 ac_ext=c
8617 ac_cpp='$CPP $CPPFLAGS'
8618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8621
8622
8623 # --------
8624 # UNSORTED
8625 # --------
8626
8627
8628 # These libraries may be used by collect2.
8629 # We may need a special search path to get them linked.
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8631 $as_echo_n "checking for collect2 libraries... " >&6; }
8632 if test "${gcc_cv_collect2_libs+set}" = set; then :
8633   $as_echo_n "(cached) " >&6
8634 else
8635   save_LIBS="$LIBS"
8636 for libs in '' -lld -lmld \
8637                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8638                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8639 do
8640         LIBS="$libs"
8641         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h.  */
8643
8644 /* Override any GCC internal prototype to avoid an error.
8645    Use char because int might match the return type of a GCC
8646    builtin and then its argument prototype would still apply.  */
8647 #ifdef __cplusplus
8648 extern "C"
8649 #endif
8650 char ldopen ();
8651 int
8652 main ()
8653 {
8654 return ldopen ();
8655   ;
8656   return 0;
8657 }
8658 _ACEOF
8659 if ac_fn_c_try_link "$LINENO"; then :
8660   gcc_cv_collect2_libs="$libs"; break
8661 fi
8662 rm -f core conftest.err conftest.$ac_objext \
8663     conftest$ac_exeext conftest.$ac_ext
8664 done
8665 LIBS="$save_LIBS"
8666 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8667 fi
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8669 $as_echo "$gcc_cv_collect2_libs" >&6; }
8670 case $gcc_cv_collect2_libs in
8671         "none required")        ;;
8672         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8673 esac
8674
8675
8676 # When building Ada code on Alpha, we need exc_resume which is usually in
8677 # -lexc.  So test for it.
8678 save_LIBS="$LIBS"
8679 LIBS=
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8681 $as_echo_n "checking for library containing exc_resume... " >&6; }
8682 if test "${ac_cv_search_exc_resume+set}" = set; then :
8683   $as_echo_n "(cached) " >&6
8684 else
8685   ac_func_search_save_LIBS=$LIBS
8686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h.  */
8688
8689 /* Override any GCC internal prototype to avoid an error.
8690    Use char because int might match the return type of a GCC
8691    builtin and then its argument prototype would still apply.  */
8692 #ifdef __cplusplus
8693 extern "C"
8694 #endif
8695 char exc_resume ();
8696 int
8697 main ()
8698 {
8699 return exc_resume ();
8700   ;
8701   return 0;
8702 }
8703 _ACEOF
8704 for ac_lib in '' exc; do
8705   if test -z "$ac_lib"; then
8706     ac_res="none required"
8707   else
8708     ac_res=-l$ac_lib
8709     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8710   fi
8711   if ac_fn_c_try_link "$LINENO"; then :
8712   ac_cv_search_exc_resume=$ac_res
8713 fi
8714 rm -f core conftest.err conftest.$ac_objext \
8715     conftest$ac_exeext
8716   if test "${ac_cv_search_exc_resume+set}" = set; then :
8717   break
8718 fi
8719 done
8720 if test "${ac_cv_search_exc_resume+set}" = set; then :
8721
8722 else
8723   ac_cv_search_exc_resume=no
8724 fi
8725 rm conftest.$ac_ext
8726 LIBS=$ac_func_search_save_LIBS
8727 fi
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8729 $as_echo "$ac_cv_search_exc_resume" >&6; }
8730 ac_res=$ac_cv_search_exc_resume
8731 if test "$ac_res" != no; then :
8732   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8733
8734 fi
8735
8736 GNAT_LIBEXC="$LIBS"
8737 LIBS="$save_LIBS"
8738
8739
8740 # Some systems put ldexp and frexp in libm instead of libc; assume
8741 # they're both in the same place.  jcf-dump needs them.
8742 save_LIBS="$LIBS"
8743 LIBS=
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8745 $as_echo_n "checking for library containing ldexp... " >&6; }
8746 if test "${ac_cv_search_ldexp+set}" = set; then :
8747   $as_echo_n "(cached) " >&6
8748 else
8749   ac_func_search_save_LIBS=$LIBS
8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h.  */
8752
8753 /* Override any GCC internal prototype to avoid an error.
8754    Use char because int might match the return type of a GCC
8755    builtin and then its argument prototype would still apply.  */
8756 #ifdef __cplusplus
8757 extern "C"
8758 #endif
8759 char ldexp ();
8760 int
8761 main ()
8762 {
8763 return ldexp ();
8764   ;
8765   return 0;
8766 }
8767 _ACEOF
8768 for ac_lib in '' m; do
8769   if test -z "$ac_lib"; then
8770     ac_res="none required"
8771   else
8772     ac_res=-l$ac_lib
8773     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8774   fi
8775   if ac_fn_c_try_link "$LINENO"; then :
8776   ac_cv_search_ldexp=$ac_res
8777 fi
8778 rm -f core conftest.err conftest.$ac_objext \
8779     conftest$ac_exeext
8780   if test "${ac_cv_search_ldexp+set}" = set; then :
8781   break
8782 fi
8783 done
8784 if test "${ac_cv_search_ldexp+set}" = set; then :
8785
8786 else
8787   ac_cv_search_ldexp=no
8788 fi
8789 rm conftest.$ac_ext
8790 LIBS=$ac_func_search_save_LIBS
8791 fi
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8793 $as_echo "$ac_cv_search_ldexp" >&6; }
8794 ac_res=$ac_cv_search_ldexp
8795 if test "$ac_res" != no; then :
8796   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8797
8798 fi
8799
8800 LDEXP_LIB="$LIBS"
8801 LIBS="$save_LIBS"
8802
8803
8804 # Use <inttypes.h> only if it exists,
8805 # doesn't clash with <sys/types.h>, and declares intmax_t.
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8807 $as_echo_n "checking for inttypes.h... " >&6; }
8808 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8809   $as_echo_n "(cached) " >&6
8810 else
8811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h.  */
8813 #include <sys/types.h>
8814 #include <inttypes.h>
8815 int
8816 main ()
8817 {
8818 intmax_t i = -1;
8819   ;
8820   return 0;
8821 }
8822 _ACEOF
8823 if ac_fn_c_try_compile "$LINENO"; then :
8824   gcc_cv_header_inttypes_h=yes
8825 else
8826   gcc_cv_header_inttypes_h=no
8827 fi
8828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8829 fi
8830
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8832 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8833 if test $gcc_cv_header_inttypes_h = yes; then
8834
8835 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8836
8837 fi
8838
8839
8840
8841 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8842         sysconf strsignal getrusage nl_langinfo \
8843         gettimeofday mbstowcs wcswidth mmap setlocale \
8844         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
8845 do :
8846   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8847 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8848 eval as_val=\$$as_ac_var
8849    if test "x$as_val" = x""yes; then :
8850   cat >>confdefs.h <<_ACEOF
8851 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8852 _ACEOF
8853
8854 fi
8855 done
8856
8857
8858 if test x$ac_cv_func_mbstowcs = xyes; then
8859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8860 $as_echo_n "checking whether mbstowcs works... " >&6; }
8861 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8862   $as_echo_n "(cached) " >&6
8863 else
8864       if test "$cross_compiling" = yes; then :
8865   gcc_cv_func_mbstowcs_works=yes
8866 else
8867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h.  */
8869 #include <stdlib.h>
8870 int main()
8871 {
8872   mbstowcs(0, "", 0);
8873   return 0;
8874 }
8875 _ACEOF
8876 if ac_fn_c_try_run "$LINENO"; then :
8877   gcc_cv_func_mbstowcs_works=yes
8878 else
8879   gcc_cv_func_mbstowcs_works=no
8880 fi
8881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8882   conftest.$ac_objext conftest.beam conftest.$ac_ext
8883 fi
8884
8885 fi
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8887 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8888   if test x$gcc_cv_func_mbstowcs_works = xyes; then
8889
8890 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8891
8892   fi
8893 fi
8894
8895 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8896 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8897
8898 else
8899
8900 cat >>confdefs.h <<_ACEOF
8901 #define ssize_t int
8902 _ACEOF
8903
8904 fi
8905
8906 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8907 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8908
8909 else
8910
8911 cat >>confdefs.h <<_ACEOF
8912 #define caddr_t char *
8913 _ACEOF
8914
8915 fi
8916
8917
8918
8919 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8920 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8921   gcc_header_sys_mman_h=yes
8922 else
8923   gcc_header_sys_mman_h=no
8924 fi
8925
8926 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8927 if test "x$ac_cv_func_mmap" = x""yes; then :
8928   gcc_func_mmap=yes
8929 else
8930   gcc_func_mmap=no
8931 fi
8932
8933 if test "$gcc_header_sys_mman_h" != yes \
8934  || test "$gcc_func_mmap" != yes; then
8935    gcc_cv_func_mmap_file=no
8936    gcc_cv_func_mmap_dev_zero=no
8937    gcc_cv_func_mmap_anon=no
8938 else
8939    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8940 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8941 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8942   $as_echo_n "(cached) " >&6
8943 else
8944   # Add a system to this blacklist if
8945    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8946    # memory area containing the same data that you'd get if you applied
8947    # read() to the same fd.  The only system known to have a problem here
8948    # is VMS, where text files have record structure.
8949    case "$host_os" in
8950      vms* | ultrix*)
8951         gcc_cv_func_mmap_file=no ;;
8952      *)
8953         gcc_cv_func_mmap_file=yes;;
8954    esac
8955 fi
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8957 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8958    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8959 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8960 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8961   $as_echo_n "(cached) " >&6
8962 else
8963   # Add a system to this blacklist if it has mmap() but /dev/zero
8964    # does not exist, or if mmapping /dev/zero does not give anonymous
8965    # zeroed pages with both the following properties:
8966    # 1. If you map N consecutive pages in with one call, and then
8967    #    unmap any subset of those pages, the pages that were not
8968    #    explicitly unmapped remain accessible.
8969    # 2. If you map two adjacent blocks of memory and then unmap them
8970    #    both at once, they must both go away.
8971    # Systems known to be in this category are Windows (all variants),
8972    # VMS, and Darwin.
8973    case "$host_os" in
8974      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8975         gcc_cv_func_mmap_dev_zero=no ;;
8976      *)
8977         gcc_cv_func_mmap_dev_zero=yes;;
8978    esac
8979 fi
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8981 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8982
8983    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8984    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8985 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8986 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8987   $as_echo_n "(cached) " >&6
8988 else
8989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8990 /* end confdefs.h.  */
8991 #include <sys/types.h>
8992 #include <sys/mman.h>
8993 #include <unistd.h>
8994
8995 #ifndef MAP_ANONYMOUS
8996 #define MAP_ANONYMOUS MAP_ANON
8997 #endif
8998
8999 int
9000 main ()
9001 {
9002 int n = MAP_ANONYMOUS;
9003   ;
9004   return 0;
9005 }
9006 _ACEOF
9007 if ac_fn_c_try_compile "$LINENO"; then :
9008   gcc_cv_decl_map_anon=yes
9009 else
9010   gcc_cv_decl_map_anon=no
9011 fi
9012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9013 fi
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9015 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9016
9017    if test $gcc_cv_decl_map_anon = no; then
9018      gcc_cv_func_mmap_anon=no
9019    else
9020      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9021 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9022 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9023   $as_echo_n "(cached) " >&6
9024 else
9025   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9026    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9027    # doesn't give anonymous zeroed pages with the same properties listed
9028    # above for use of /dev/zero.
9029    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9030    case "$host_os" in
9031      vms* | cygwin* | pe | mingw* | sco* | udk* )
9032         gcc_cv_func_mmap_anon=no ;;
9033      *)
9034         gcc_cv_func_mmap_anon=yes;;
9035    esac
9036 fi
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9038 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9039    fi
9040 fi
9041
9042 if test $gcc_cv_func_mmap_file = yes; then
9043
9044 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9045
9046 fi
9047 if test $gcc_cv_func_mmap_dev_zero = yes; then
9048
9049 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9050
9051 fi
9052 if test $gcc_cv_func_mmap_anon = yes; then
9053
9054 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9055
9056 fi
9057
9058
9059 case "${host}" in
9060 *-*-*vms*)
9061   # Under VMS, vfork works very differently than on Unix. The standard test
9062   # won't work, and it isn't easily adaptable. It makes more sense to
9063   # just force it.
9064   ac_cv_func_vfork_works=yes
9065   ;;
9066 esac
9067 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9068 if test "x$ac_cv_type_pid_t" = x""yes; then :
9069
9070 else
9071
9072 cat >>confdefs.h <<_ACEOF
9073 #define pid_t int
9074 _ACEOF
9075
9076 fi
9077
9078 for ac_header in vfork.h
9079 do :
9080   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9081 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9082   cat >>confdefs.h <<_ACEOF
9083 #define HAVE_VFORK_H 1
9084 _ACEOF
9085
9086 fi
9087 done
9088
9089 for ac_func in fork vfork
9090 do :
9091   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9092 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9093 eval as_val=\$$as_ac_var
9094    if test "x$as_val" = x""yes; then :
9095   cat >>confdefs.h <<_ACEOF
9096 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9097 _ACEOF
9098
9099 fi
9100 done
9101
9102 if test "x$ac_cv_func_fork" = xyes; then
9103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9104 $as_echo_n "checking for working fork... " >&6; }
9105 if test "${ac_cv_func_fork_works+set}" = set; then :
9106   $as_echo_n "(cached) " >&6
9107 else
9108   if test "$cross_compiling" = yes; then :
9109   ac_cv_func_fork_works=cross
9110 else
9111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9112 /* end confdefs.h.  */
9113 $ac_includes_default
9114 int
9115 main ()
9116 {
9117
9118           /* By Ruediger Kuhlmann. */
9119           return fork () < 0;
9120
9121   ;
9122   return 0;
9123 }
9124 _ACEOF
9125 if ac_fn_c_try_run "$LINENO"; then :
9126   ac_cv_func_fork_works=yes
9127 else
9128   ac_cv_func_fork_works=no
9129 fi
9130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9131   conftest.$ac_objext conftest.beam conftest.$ac_ext
9132 fi
9133
9134 fi
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9136 $as_echo "$ac_cv_func_fork_works" >&6; }
9137
9138 else
9139   ac_cv_func_fork_works=$ac_cv_func_fork
9140 fi
9141 if test "x$ac_cv_func_fork_works" = xcross; then
9142   case $host in
9143     *-*-amigaos* | *-*-msdosdjgpp*)
9144       # Override, as these systems have only a dummy fork() stub
9145       ac_cv_func_fork_works=no
9146       ;;
9147     *)
9148       ac_cv_func_fork_works=yes
9149       ;;
9150   esac
9151   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9152 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9153 fi
9154 ac_cv_func_vfork_works=$ac_cv_func_vfork
9155 if test "x$ac_cv_func_vfork" = xyes; then
9156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9157 $as_echo_n "checking for working vfork... " >&6; }
9158 if test "${ac_cv_func_vfork_works+set}" = set; then :
9159   $as_echo_n "(cached) " >&6
9160 else
9161   if test "$cross_compiling" = yes; then :
9162   ac_cv_func_vfork_works=cross
9163 else
9164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h.  */
9166 /* Thanks to Paul Eggert for this test.  */
9167 $ac_includes_default
9168 #include <sys/wait.h>
9169 #ifdef HAVE_VFORK_H
9170 # include <vfork.h>
9171 #endif
9172 /* On some sparc systems, changes by the child to local and incoming
9173    argument registers are propagated back to the parent.  The compiler
9174    is told about this with #include <vfork.h>, but some compilers
9175    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9176    static variable whose address is put into a register that is
9177    clobbered by the vfork.  */
9178 static void
9179 #ifdef __cplusplus
9180 sparc_address_test (int arg)
9181 # else
9182 sparc_address_test (arg) int arg;
9183 #endif
9184 {
9185   static pid_t child;
9186   if (!child) {
9187     child = vfork ();
9188     if (child < 0) {
9189       perror ("vfork");
9190       _exit(2);
9191     }
9192     if (!child) {
9193       arg = getpid();
9194       write(-1, "", 0);
9195       _exit (arg);
9196     }
9197   }
9198 }
9199
9200 int
9201 main ()
9202 {
9203   pid_t parent = getpid ();
9204   pid_t child;
9205
9206   sparc_address_test (0);
9207
9208   child = vfork ();
9209
9210   if (child == 0) {
9211     /* Here is another test for sparc vfork register problems.  This
9212        test uses lots of local variables, at least as many local
9213        variables as main has allocated so far including compiler
9214        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9215        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9216        reuse the register of parent for one of the local variables,
9217        since it will think that parent can't possibly be used any more
9218        in this routine.  Assigning to the local variable will thus
9219        munge parent in the parent process.  */
9220     pid_t
9221       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9222       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9223     /* Convince the compiler that p..p7 are live; otherwise, it might
9224        use the same hardware register for all 8 local variables.  */
9225     if (p != p1 || p != p2 || p != p3 || p != p4
9226         || p != p5 || p != p6 || p != p7)
9227       _exit(1);
9228
9229     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9230        from child file descriptors.  If the child closes a descriptor
9231        before it execs or exits, this munges the parent's descriptor
9232        as well.  Test for this by closing stdout in the child.  */
9233     _exit(close(fileno(stdout)) != 0);
9234   } else {
9235     int status;
9236     struct stat st;
9237
9238     while (wait(&status) != child)
9239       ;
9240     return (
9241          /* Was there some problem with vforking?  */
9242          child < 0
9243
9244          /* Did the child fail?  (This shouldn't happen.)  */
9245          || status
9246
9247          /* Did the vfork/compiler bug occur?  */
9248          || parent != getpid()
9249
9250          /* Did the file descriptor bug occur?  */
9251          || fstat(fileno(stdout), &st) != 0
9252          );
9253   }
9254 }
9255 _ACEOF
9256 if ac_fn_c_try_run "$LINENO"; then :
9257   ac_cv_func_vfork_works=yes
9258 else
9259   ac_cv_func_vfork_works=no
9260 fi
9261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9262   conftest.$ac_objext conftest.beam conftest.$ac_ext
9263 fi
9264
9265 fi
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9267 $as_echo "$ac_cv_func_vfork_works" >&6; }
9268
9269 fi;
9270 if test "x$ac_cv_func_fork_works" = xcross; then
9271   ac_cv_func_vfork_works=$ac_cv_func_vfork
9272   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9273 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9274 fi
9275
9276 if test "x$ac_cv_func_vfork_works" = xyes; then
9277
9278 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9279
9280 else
9281
9282 $as_echo "#define vfork fork" >>confdefs.h
9283
9284 fi
9285 if test "x$ac_cv_func_fork_works" = xyes; then
9286
9287 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9288
9289 fi
9290
9291
9292
9293       if test "X$prefix" = "XNONE"; then
9294     acl_final_prefix="$ac_default_prefix"
9295   else
9296     acl_final_prefix="$prefix"
9297   fi
9298   if test "X$exec_prefix" = "XNONE"; then
9299     acl_final_exec_prefix='${prefix}'
9300   else
9301     acl_final_exec_prefix="$exec_prefix"
9302   fi
9303   acl_save_prefix="$prefix"
9304   prefix="$acl_final_prefix"
9305   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9306   prefix="$acl_save_prefix"
9307
9308
9309 # Check whether --with-gnu-ld was given.
9310 if test "${with_gnu_ld+set}" = set; then :
9311   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9312 else
9313   with_gnu_ld=no
9314 fi
9315
9316 # Prepare PATH_SEPARATOR.
9317 # The user is always right.
9318 if test "${PATH_SEPARATOR+set}" != set; then
9319   echo "#! /bin/sh" >conf$$.sh
9320   echo  "exit 0"   >>conf$$.sh
9321   chmod +x conf$$.sh
9322   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9323     PATH_SEPARATOR=';'
9324   else
9325     PATH_SEPARATOR=:
9326   fi
9327   rm -f conf$$.sh
9328 fi
9329 ac_prog=ld
9330 if test "$GCC" = yes; then
9331   # Check if gcc -print-prog-name=ld gives a path.
9332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9333 $as_echo_n "checking for ld used by GCC... " >&6; }
9334   case $host in
9335   *-*-mingw*)
9336     # gcc leaves a trailing carriage return which upsets mingw
9337     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9338   *)
9339     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9340   esac
9341   case $ac_prog in
9342     # Accept absolute paths.
9343     [\\/]* | [A-Za-z]:[\\/]*)
9344       re_direlt='/[^/][^/]*/\.\./'
9345       # Canonicalize the path of ld
9346       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9347       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9348         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9349       done
9350       test -z "$LD" && LD="$ac_prog"
9351       ;;
9352   "")
9353     # If it fails, then pretend we aren't using GCC.
9354     ac_prog=ld
9355     ;;
9356   *)
9357     # If it is relative, then search for the first ld in PATH.
9358     with_gnu_ld=unknown
9359     ;;
9360   esac
9361 elif test "$with_gnu_ld" = yes; then
9362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9363 $as_echo_n "checking for GNU ld... " >&6; }
9364 else
9365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9366 $as_echo_n "checking for non-GNU ld... " >&6; }
9367 fi
9368 if test "${acl_cv_path_LD+set}" = set; then :
9369   $as_echo_n "(cached) " >&6
9370 else
9371   if test -z "$LD"; then
9372   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9373   for ac_dir in $PATH; do
9374     test -z "$ac_dir" && ac_dir=.
9375     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9376       acl_cv_path_LD="$ac_dir/$ac_prog"
9377       # Check to see if the program is GNU ld.  I'd rather use --version,
9378       # but apparently some GNU ld's only accept -v.
9379       # Break only if it was the GNU/non-GNU ld that we prefer.
9380       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9381         test "$with_gnu_ld" != no && break
9382       else
9383         test "$with_gnu_ld" != yes && break
9384       fi
9385     fi
9386   done
9387   IFS="$ac_save_ifs"
9388 else
9389   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9390 fi
9391 fi
9392
9393 LD="$acl_cv_path_LD"
9394 if test -n "$LD"; then
9395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9396 $as_echo "$LD" >&6; }
9397 else
9398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9399 $as_echo "no" >&6; }
9400 fi
9401 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9403 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9404 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9405   $as_echo_n "(cached) " >&6
9406 else
9407   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9408 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9409   acl_cv_prog_gnu_ld=yes
9410 else
9411   acl_cv_prog_gnu_ld=no
9412 fi
9413 fi
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9415 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9416 with_gnu_ld=$acl_cv_prog_gnu_ld
9417
9418
9419
9420                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9421 $as_echo_n "checking for shared library run path origin... " >&6; }
9422 if test "${acl_cv_rpath+set}" = set; then :
9423   $as_echo_n "(cached) " >&6
9424 else
9425
9426     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9427     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9428     . ./conftest.sh
9429     rm -f ./conftest.sh
9430     acl_cv_rpath=done
9431
9432 fi
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9434 $as_echo "$acl_cv_rpath" >&6; }
9435   wl="$acl_cv_wl"
9436   libext="$acl_cv_libext"
9437   shlibext="$acl_cv_shlibext"
9438   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9439   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9440   hardcode_direct="$acl_cv_hardcode_direct"
9441   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9442     # Check whether --enable-rpath was given.
9443 if test "${enable_rpath+set}" = set; then :
9444   enableval=$enable_rpath; :
9445 else
9446   enable_rpath=yes
9447 fi
9448
9449
9450
9451
9452
9453
9454
9455
9456     use_additional=yes
9457
9458   acl_save_prefix="$prefix"
9459   prefix="$acl_final_prefix"
9460   acl_save_exec_prefix="$exec_prefix"
9461   exec_prefix="$acl_final_exec_prefix"
9462
9463     eval additional_includedir=\"$includedir\"
9464     eval additional_libdir=\"$libdir\"
9465
9466   exec_prefix="$acl_save_exec_prefix"
9467   prefix="$acl_save_prefix"
9468
9469
9470 # Check whether --with-libiconv-prefix was given.
9471 if test "${with_libiconv_prefix+set}" = set; then :
9472   withval=$with_libiconv_prefix;
9473     if test "X$withval" = "Xno"; then
9474       use_additional=no
9475     else
9476       if test "X$withval" = "X"; then
9477
9478   acl_save_prefix="$prefix"
9479   prefix="$acl_final_prefix"
9480   acl_save_exec_prefix="$exec_prefix"
9481   exec_prefix="$acl_final_exec_prefix"
9482
9483           eval additional_includedir=\"$includedir\"
9484           eval additional_libdir=\"$libdir\"
9485
9486   exec_prefix="$acl_save_exec_prefix"
9487   prefix="$acl_save_prefix"
9488
9489       else
9490         additional_includedir="$withval/include"
9491         additional_libdir="$withval/lib"
9492       fi
9493     fi
9494
9495 fi
9496
9497       LIBICONV=
9498   LTLIBICONV=
9499   INCICONV=
9500   rpathdirs=
9501   ltrpathdirs=
9502   names_already_handled=
9503   names_next_round='iconv '
9504   while test -n "$names_next_round"; do
9505     names_this_round="$names_next_round"
9506     names_next_round=
9507     for name in $names_this_round; do
9508       already_handled=
9509       for n in $names_already_handled; do
9510         if test "$n" = "$name"; then
9511           already_handled=yes
9512           break
9513         fi
9514       done
9515       if test -z "$already_handled"; then
9516         names_already_handled="$names_already_handled $name"
9517                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9518         eval value=\"\$HAVE_LIB$uppername\"
9519         if test -n "$value"; then
9520           if test "$value" = yes; then
9521             eval value=\"\$LIB$uppername\"
9522             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9523             eval value=\"\$LTLIB$uppername\"
9524             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9525           else
9526                                     :
9527           fi
9528         else
9529                               found_dir=
9530           found_la=
9531           found_so=
9532           found_a=
9533           if test $use_additional = yes; then
9534             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9535               found_dir="$additional_libdir"
9536               found_so="$additional_libdir/lib$name.$shlibext"
9537               if test -f "$additional_libdir/lib$name.la"; then
9538                 found_la="$additional_libdir/lib$name.la"
9539               fi
9540             else
9541               if test -f "$additional_libdir/lib$name.$libext"; then
9542                 found_dir="$additional_libdir"
9543                 found_a="$additional_libdir/lib$name.$libext"
9544                 if test -f "$additional_libdir/lib$name.la"; then
9545                   found_la="$additional_libdir/lib$name.la"
9546                 fi
9547               fi
9548             fi
9549           fi
9550           if test "X$found_dir" = "X"; then
9551             for x in $LDFLAGS $LTLIBICONV; do
9552
9553   acl_save_prefix="$prefix"
9554   prefix="$acl_final_prefix"
9555   acl_save_exec_prefix="$exec_prefix"
9556   exec_prefix="$acl_final_exec_prefix"
9557   eval x=\"$x\"
9558   exec_prefix="$acl_save_exec_prefix"
9559   prefix="$acl_save_prefix"
9560
9561               case "$x" in
9562                 -L*)
9563                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9564                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9565                     found_dir="$dir"
9566                     found_so="$dir/lib$name.$shlibext"
9567                     if test -f "$dir/lib$name.la"; then
9568                       found_la="$dir/lib$name.la"
9569                     fi
9570                   else
9571                     if test -f "$dir/lib$name.$libext"; then
9572                       found_dir="$dir"
9573                       found_a="$dir/lib$name.$libext"
9574                       if test -f "$dir/lib$name.la"; then
9575                         found_la="$dir/lib$name.la"
9576                       fi
9577                     fi
9578                   fi
9579                   ;;
9580               esac
9581               if test "X$found_dir" != "X"; then
9582                 break
9583               fi
9584             done
9585           fi
9586           if test "X$found_dir" != "X"; then
9587                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9588             if test "X$found_so" != "X"; then
9589                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9590                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9591               else
9592                                                                                 haveit=
9593                 for x in $ltrpathdirs; do
9594                   if test "X$x" = "X$found_dir"; then
9595                     haveit=yes
9596                     break
9597                   fi
9598                 done
9599                 if test -z "$haveit"; then
9600                   ltrpathdirs="$ltrpathdirs $found_dir"
9601                 fi
9602                                 if test "$hardcode_direct" = yes; then
9603                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9604                 else
9605                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9606                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9607                                                             haveit=
9608                     for x in $rpathdirs; do
9609                       if test "X$x" = "X$found_dir"; then
9610                         haveit=yes
9611                         break
9612                       fi
9613                     done
9614                     if test -z "$haveit"; then
9615                       rpathdirs="$rpathdirs $found_dir"
9616                     fi
9617                   else
9618                                                                                 haveit=
9619                     for x in $LDFLAGS $LIBICONV; do
9620
9621   acl_save_prefix="$prefix"
9622   prefix="$acl_final_prefix"
9623   acl_save_exec_prefix="$exec_prefix"
9624   exec_prefix="$acl_final_exec_prefix"
9625   eval x=\"$x\"
9626   exec_prefix="$acl_save_exec_prefix"
9627   prefix="$acl_save_prefix"
9628
9629                       if test "X$x" = "X-L$found_dir"; then
9630                         haveit=yes
9631                         break
9632                       fi
9633                     done
9634                     if test -z "$haveit"; then
9635                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9636                     fi
9637                     if test "$hardcode_minus_L" != no; then
9638                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9639                     else
9640                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9641                     fi
9642                   fi
9643                 fi
9644               fi
9645             else
9646               if test "X$found_a" != "X"; then
9647                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9648               else
9649                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9650               fi
9651             fi
9652                         additional_includedir=
9653             case "$found_dir" in
9654               */lib | */lib/)
9655                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9656                 additional_includedir="$basedir/include"
9657                 ;;
9658             esac
9659             if test "X$additional_includedir" != "X"; then
9660                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9661                 haveit=
9662                 if test "X$additional_includedir" = "X/usr/local/include"; then
9663                   if test -n "$GCC"; then
9664                     case $host_os in
9665                       linux*) haveit=yes;;
9666                     esac
9667                   fi
9668                 fi
9669                 if test -z "$haveit"; then
9670                   for x in $CPPFLAGS $INCICONV; do
9671
9672   acl_save_prefix="$prefix"
9673   prefix="$acl_final_prefix"
9674   acl_save_exec_prefix="$exec_prefix"
9675   exec_prefix="$acl_final_exec_prefix"
9676   eval x=\"$x\"
9677   exec_prefix="$acl_save_exec_prefix"
9678   prefix="$acl_save_prefix"
9679
9680                     if test "X$x" = "X-I$additional_includedir"; then
9681                       haveit=yes
9682                       break
9683                     fi
9684                   done
9685                   if test -z "$haveit"; then
9686                     if test -d "$additional_includedir"; then
9687                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9688                     fi
9689                   fi
9690                 fi
9691               fi
9692             fi
9693                         if test -n "$found_la"; then
9694                                                         save_libdir="$libdir"
9695               case "$found_la" in
9696                 */* | *\\*) . "$found_la" ;;
9697                 *) . "./$found_la" ;;
9698               esac
9699               libdir="$save_libdir"
9700                             for dep in $dependency_libs; do
9701                 case "$dep" in
9702                   -L*)
9703                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9704                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9705                       haveit=
9706                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9707                         if test -n "$GCC"; then
9708                           case $host_os in
9709                             linux*) haveit=yes;;
9710                           esac
9711                         fi
9712                       fi
9713                       if test -z "$haveit"; then
9714                         haveit=
9715                         for x in $LDFLAGS $LIBICONV; do
9716
9717   acl_save_prefix="$prefix"
9718   prefix="$acl_final_prefix"
9719   acl_save_exec_prefix="$exec_prefix"
9720   exec_prefix="$acl_final_exec_prefix"
9721   eval x=\"$x\"
9722   exec_prefix="$acl_save_exec_prefix"
9723   prefix="$acl_save_prefix"
9724
9725                           if test "X$x" = "X-L$additional_libdir"; then
9726                             haveit=yes
9727                             break
9728                           fi
9729                         done
9730                         if test -z "$haveit"; then
9731                           if test -d "$additional_libdir"; then
9732                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9733                           fi
9734                         fi
9735                         haveit=
9736                         for x in $LDFLAGS $LTLIBICONV; do
9737
9738   acl_save_prefix="$prefix"
9739   prefix="$acl_final_prefix"
9740   acl_save_exec_prefix="$exec_prefix"
9741   exec_prefix="$acl_final_exec_prefix"
9742   eval x=\"$x\"
9743   exec_prefix="$acl_save_exec_prefix"
9744   prefix="$acl_save_prefix"
9745
9746                           if test "X$x" = "X-L$additional_libdir"; then
9747                             haveit=yes
9748                             break
9749                           fi
9750                         done
9751                         if test -z "$haveit"; then
9752                           if test -d "$additional_libdir"; then
9753                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9754                           fi
9755                         fi
9756                       fi
9757                     fi
9758                     ;;
9759                   -R*)
9760                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9761                     if test "$enable_rpath" != no; then
9762                                                                   haveit=
9763                       for x in $rpathdirs; do
9764                         if test "X$x" = "X$dir"; then
9765                           haveit=yes
9766                           break
9767                         fi
9768                       done
9769                       if test -z "$haveit"; then
9770                         rpathdirs="$rpathdirs $dir"
9771                       fi
9772                                                                   haveit=
9773                       for x in $ltrpathdirs; do
9774                         if test "X$x" = "X$dir"; then
9775                           haveit=yes
9776                           break
9777                         fi
9778                       done
9779                       if test -z "$haveit"; then
9780                         ltrpathdirs="$ltrpathdirs $dir"
9781                       fi
9782                     fi
9783                     ;;
9784                   -l*)
9785                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9786                     ;;
9787                   *.la)
9788                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9789                     ;;
9790                   *)
9791                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9792                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9793                     ;;
9794                 esac
9795               done
9796             fi
9797           else
9798                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9799             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9800           fi
9801         fi
9802       fi
9803     done
9804   done
9805   if test "X$rpathdirs" != "X"; then
9806     if test -n "$hardcode_libdir_separator"; then
9807                         alldirs=
9808       for found_dir in $rpathdirs; do
9809         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9810       done
9811             acl_save_libdir="$libdir"
9812       libdir="$alldirs"
9813       eval flag=\"$hardcode_libdir_flag_spec\"
9814       libdir="$acl_save_libdir"
9815       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9816     else
9817             for found_dir in $rpathdirs; do
9818         acl_save_libdir="$libdir"
9819         libdir="$found_dir"
9820         eval flag=\"$hardcode_libdir_flag_spec\"
9821         libdir="$acl_save_libdir"
9822         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9823       done
9824     fi
9825   fi
9826   if test "X$ltrpathdirs" != "X"; then
9827             for found_dir in $ltrpathdirs; do
9828       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9829     done
9830   fi
9831
9832
9833
9834
9835
9836
9837
9838           am_save_CPPFLAGS="$CPPFLAGS"
9839
9840   for element in $INCICONV; do
9841     haveit=
9842     for x in $CPPFLAGS; do
9843
9844   acl_save_prefix="$prefix"
9845   prefix="$acl_final_prefix"
9846   acl_save_exec_prefix="$exec_prefix"
9847   exec_prefix="$acl_final_exec_prefix"
9848   eval x=\"$x\"
9849   exec_prefix="$acl_save_exec_prefix"
9850   prefix="$acl_save_prefix"
9851
9852       if test "X$x" = "X$element"; then
9853         haveit=yes
9854         break
9855       fi
9856     done
9857     if test -z "$haveit"; then
9858       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9859     fi
9860   done
9861
9862
9863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9864 $as_echo_n "checking for iconv... " >&6; }
9865 if test "${am_cv_func_iconv+set}" = set; then :
9866   $as_echo_n "(cached) " >&6
9867 else
9868
9869     am_cv_func_iconv="no, consider installing GNU libiconv"
9870     am_cv_lib_iconv=no
9871     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9872 /* end confdefs.h.  */
9873 #include <stdlib.h>
9874 #include <iconv.h>
9875 int
9876 main ()
9877 {
9878 iconv_t cd = iconv_open("","");
9879        iconv(cd,NULL,NULL,NULL,NULL);
9880        iconv_close(cd);
9881   ;
9882   return 0;
9883 }
9884 _ACEOF
9885 if ac_fn_c_try_link "$LINENO"; then :
9886   am_cv_func_iconv=yes
9887 fi
9888 rm -f core conftest.err conftest.$ac_objext \
9889     conftest$ac_exeext conftest.$ac_ext
9890     if test "$am_cv_func_iconv" != yes; then
9891       am_save_LIBS="$LIBS"
9892       LIBS="$LIBS $LIBICONV"
9893       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h.  */
9895 #include <stdlib.h>
9896 #include <iconv.h>
9897 int
9898 main ()
9899 {
9900 iconv_t cd = iconv_open("","");
9901          iconv(cd,NULL,NULL,NULL,NULL);
9902          iconv_close(cd);
9903   ;
9904   return 0;
9905 }
9906 _ACEOF
9907 if ac_fn_c_try_link "$LINENO"; then :
9908   am_cv_lib_iconv=yes
9909         am_cv_func_iconv=yes
9910 fi
9911 rm -f core conftest.err conftest.$ac_objext \
9912     conftest$ac_exeext conftest.$ac_ext
9913       LIBS="$am_save_LIBS"
9914     fi
9915
9916 fi
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9918 $as_echo "$am_cv_func_iconv" >&6; }
9919   if test "$am_cv_func_iconv" = yes; then
9920
9921 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9922
9923   fi
9924   if test "$am_cv_lib_iconv" = yes; then
9925     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9926 $as_echo_n "checking how to link with libiconv... " >&6; }
9927     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9928 $as_echo "$LIBICONV" >&6; }
9929   else
9930             CPPFLAGS="$am_save_CPPFLAGS"
9931     LIBICONV=
9932     LTLIBICONV=
9933   fi
9934
9935
9936
9937   if test "$am_cv_func_iconv" = yes; then
9938     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9939 $as_echo_n "checking for iconv declaration... " >&6; }
9940     if test "${am_cv_proto_iconv+set}" = set; then :
9941   $as_echo_n "(cached) " >&6
9942 else
9943
9944       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945 /* end confdefs.h.  */
9946
9947 #include <stdlib.h>
9948 #include <iconv.h>
9949 extern
9950 #ifdef __cplusplus
9951 "C"
9952 #endif
9953 #if defined(__STDC__) || defined(__cplusplus)
9954 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9955 #else
9956 size_t iconv();
9957 #endif
9958
9959 int
9960 main ()
9961 {
9962
9963   ;
9964   return 0;
9965 }
9966 _ACEOF
9967 if ac_fn_c_try_compile "$LINENO"; then :
9968   am_cv_proto_iconv_arg1=""
9969 else
9970   am_cv_proto_iconv_arg1="const"
9971 fi
9972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9973       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);"
9974 fi
9975
9976     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9978          }$am_cv_proto_iconv" >&5
9979 $as_echo "${ac_t:-
9980          }$am_cv_proto_iconv" >&6; }
9981
9982 cat >>confdefs.h <<_ACEOF
9983 #define ICONV_CONST $am_cv_proto_iconv_arg1
9984 _ACEOF
9985
9986   fi
9987
9988 # Until we have in-tree GNU iconv:
9989 LIBICONV_DEP=
9990
9991
9992
9993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9994 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9995 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9996   $as_echo_n "(cached) " >&6
9997 else
9998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9999 /* end confdefs.h.  */
10000 #include <locale.h>
10001 int
10002 main ()
10003 {
10004 return LC_MESSAGES
10005   ;
10006   return 0;
10007 }
10008 _ACEOF
10009 if ac_fn_c_try_link "$LINENO"; then :
10010   am_cv_val_LC_MESSAGES=yes
10011 else
10012   am_cv_val_LC_MESSAGES=no
10013 fi
10014 rm -f core conftest.err conftest.$ac_objext \
10015     conftest$ac_exeext conftest.$ac_ext
10016 fi
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10018 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10019   if test $am_cv_val_LC_MESSAGES = yes; then
10020
10021 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10022
10023   fi
10024
10025
10026
10027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10028 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10029 if test "${am_cv_langinfo_codeset+set}" = set; then :
10030   $as_echo_n "(cached) " >&6
10031 else
10032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10033 /* end confdefs.h.  */
10034 #include <langinfo.h>
10035 int
10036 main ()
10037 {
10038 char* cs = nl_langinfo(CODESET);
10039   ;
10040   return 0;
10041 }
10042 _ACEOF
10043 if ac_fn_c_try_link "$LINENO"; then :
10044   am_cv_langinfo_codeset=yes
10045 else
10046   am_cv_langinfo_codeset=no
10047 fi
10048 rm -f core conftest.err conftest.$ac_objext \
10049     conftest$ac_exeext conftest.$ac_ext
10050
10051 fi
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10053 $as_echo "$am_cv_langinfo_codeset" >&6; }
10054   if test $am_cv_langinfo_codeset = yes; then
10055
10056 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10057
10058   fi
10059
10060
10061 # We will need to find libiberty.h and ansidecl.h
10062 saved_CFLAGS="$CFLAGS"
10063 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10064 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10065         strsignal strstr strverscmp \
10066         errno snprintf vsnprintf vasprintf malloc realloc calloc \
10067         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
10068 do
10069   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10071 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10072 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10073   $as_echo_n "(cached) " >&6
10074 else
10075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h.  */
10077 #undef $ac_tr_decl
10078 #define $ac_tr_decl 1
10079
10080 #include "ansidecl.h"
10081 #include "system.h"
10082
10083 int
10084 main ()
10085 {
10086 #ifndef $ac_func
10087 char *(*pfn) = (char *(*)) $ac_func ;
10088 #endif
10089   ;
10090   return 0;
10091 }
10092 _ACEOF
10093 if ac_fn_c_try_compile "$LINENO"; then :
10094   eval "gcc_cv_have_decl_$ac_func=yes"
10095 else
10096   eval "gcc_cv_have_decl_$ac_func=no"
10097 fi
10098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10099 fi
10100
10101 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10103 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10104 #define $ac_tr_decl 1
10105 _ACEOF
10106
10107 else
10108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10109 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10110 #define $ac_tr_decl 0
10111 _ACEOF
10112
10113 fi
10114
10115 done
10116
10117
10118 for ac_func in getrlimit setrlimit getrusage
10119 do
10120   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10122 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10123 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10124   $as_echo_n "(cached) " >&6
10125 else
10126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h.  */
10128 #undef $ac_tr_decl
10129 #define $ac_tr_decl 1
10130
10131 #include "ansidecl.h"
10132 #include "system.h"
10133 #ifdef HAVE_SYS_RESOURCE_H
10134 #include <sys/resource.h>
10135 #endif
10136
10137
10138 int
10139 main ()
10140 {
10141 #ifndef $ac_func
10142 char *(*pfn) = (char *(*)) $ac_func ;
10143 #endif
10144   ;
10145   return 0;
10146 }
10147 _ACEOF
10148 if ac_fn_c_try_compile "$LINENO"; then :
10149   eval "gcc_cv_have_decl_$ac_func=yes"
10150 else
10151   eval "gcc_cv_have_decl_$ac_func=no"
10152 fi
10153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10154 fi
10155
10156 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10158 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10159 #define $ac_tr_decl 1
10160 _ACEOF
10161
10162 else
10163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10165 #define $ac_tr_decl 0
10166 _ACEOF
10167
10168 fi
10169
10170 done
10171
10172
10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h.  */
10175
10176 #include "ansidecl.h"
10177 #include "system.h"
10178 #ifdef HAVE_SYS_RESOURCE_H
10179 #include <sys/resource.h>
10180 #endif
10181
10182 int
10183 main ()
10184 {
10185 rlim_t l = 0;
10186   ;
10187   return 0;
10188 }
10189 _ACEOF
10190 if ac_fn_c_try_compile "$LINENO"; then :
10191
10192 else
10193
10194 $as_echo "#define rlim_t long" >>confdefs.h
10195
10196 fi
10197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10198
10199 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10200 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
10201 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10202 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10203 for ac_func in ldgetname
10204 do
10205   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10207 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10208 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10209   $as_echo_n "(cached) " >&6
10210 else
10211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10212 /* end confdefs.h.  */
10213 #undef $ac_tr_decl
10214 #define $ac_tr_decl 1
10215
10216 #include "ansidecl.h"
10217 #include "system.h"
10218 #ifdef HAVE_LDFCN_H
10219 #undef FREAD
10220 #undef FWRITE
10221 #include <ldfcn.h>
10222 #endif
10223
10224
10225 int
10226 main ()
10227 {
10228 #ifndef $ac_func
10229 char *(*pfn) = (char *(*)) $ac_func ;
10230 #endif
10231   ;
10232   return 0;
10233 }
10234 _ACEOF
10235 if ac_fn_c_try_compile "$LINENO"; then :
10236   eval "gcc_cv_have_decl_$ac_func=yes"
10237 else
10238   eval "gcc_cv_have_decl_$ac_func=no"
10239 fi
10240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10241 fi
10242
10243 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10245 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10246 #define $ac_tr_decl 1
10247 _ACEOF
10248
10249 else
10250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10251 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10252 #define $ac_tr_decl 0
10253 _ACEOF
10254
10255 fi
10256
10257 done
10258
10259
10260 for ac_func in times
10261 do
10262   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10264 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10265 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10266   $as_echo_n "(cached) " >&6
10267 else
10268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10269 /* end confdefs.h.  */
10270 #undef $ac_tr_decl
10271 #define $ac_tr_decl 1
10272
10273 #include "ansidecl.h"
10274 #include "system.h"
10275 #ifdef HAVE_SYS_TIMES_H
10276 #include <sys/times.h>
10277 #endif
10278
10279
10280 int
10281 main ()
10282 {
10283 #ifndef $ac_func
10284 char *(*pfn) = (char *(*)) $ac_func ;
10285 #endif
10286   ;
10287   return 0;
10288 }
10289 _ACEOF
10290 if ac_fn_c_try_compile "$LINENO"; then :
10291   eval "gcc_cv_have_decl_$ac_func=yes"
10292 else
10293   eval "gcc_cv_have_decl_$ac_func=no"
10294 fi
10295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10296 fi
10297
10298 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10300 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10301 #define $ac_tr_decl 1
10302 _ACEOF
10303
10304 else
10305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10306 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10307 #define $ac_tr_decl 0
10308 _ACEOF
10309
10310 fi
10311
10312 done
10313
10314
10315 for ac_func in sigaltstack
10316 do
10317   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10319 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10320 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10321   $as_echo_n "(cached) " >&6
10322 else
10323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324 /* end confdefs.h.  */
10325 #undef $ac_tr_decl
10326 #define $ac_tr_decl 1
10327
10328 #include "ansidecl.h"
10329 #include "system.h"
10330 #include <signal.h>
10331
10332
10333 int
10334 main ()
10335 {
10336 #ifndef $ac_func
10337 char *(*pfn) = (char *(*)) $ac_func ;
10338 #endif
10339   ;
10340   return 0;
10341 }
10342 _ACEOF
10343 if ac_fn_c_try_compile "$LINENO"; then :
10344   eval "gcc_cv_have_decl_$ac_func=yes"
10345 else
10346   eval "gcc_cv_have_decl_$ac_func=no"
10347 fi
10348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10349 fi
10350
10351 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10353 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10354 #define $ac_tr_decl 1
10355 _ACEOF
10356
10357 else
10358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10359 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10360 #define $ac_tr_decl 0
10361 _ACEOF
10362
10363 fi
10364
10365 done
10366
10367
10368 # More time-related stuff.
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10370 $as_echo_n "checking for struct tms... " >&6; }
10371 if test "${ac_cv_struct_tms+set}" = set; then :
10372   $as_echo_n "(cached) " >&6
10373 else
10374
10375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10376 /* end confdefs.h.  */
10377
10378 #include "ansidecl.h"
10379 #include "system.h"
10380 #ifdef HAVE_SYS_TIMES_H
10381 #include <sys/times.h>
10382 #endif
10383
10384 int
10385 main ()
10386 {
10387 struct tms tms;
10388   ;
10389   return 0;
10390 }
10391 _ACEOF
10392 if ac_fn_c_try_compile "$LINENO"; then :
10393   ac_cv_struct_tms=yes
10394 else
10395   ac_cv_struct_tms=no
10396 fi
10397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10398 fi
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10400 $as_echo "$ac_cv_struct_tms" >&6; }
10401 if test $ac_cv_struct_tms = yes; then
10402
10403 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10404
10405 fi
10406
10407 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10408 # revisit after autoconf 2.50.
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10410 $as_echo_n "checking for clock_t... " >&6; }
10411 if test "${gcc_cv_type_clock_t+set}" = set; then :
10412   $as_echo_n "(cached) " >&6
10413 else
10414
10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416 /* end confdefs.h.  */
10417
10418 #include "ansidecl.h"
10419 #include "system.h"
10420
10421 int
10422 main ()
10423 {
10424 clock_t x;
10425   ;
10426   return 0;
10427 }
10428 _ACEOF
10429 if ac_fn_c_try_compile "$LINENO"; then :
10430   gcc_cv_type_clock_t=yes
10431 else
10432   gcc_cv_type_clock_t=no
10433 fi
10434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10435 fi
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10437 $as_echo "$gcc_cv_type_clock_t" >&6; }
10438 if test $gcc_cv_type_clock_t = yes; then
10439
10440 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10441
10442 fi
10443
10444 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10445 CFLAGS="$saved_CFLAGS"
10446
10447 # Check whether --enable-initfini-array was given.
10448 if test "${enable_initfini_array+set}" = set; then :
10449   enableval=$enable_initfini_array;
10450 else
10451
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10453 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10454 if test "${gcc_cv_initfini_array+set}" = set; then :
10455   $as_echo_n "(cached) " >&6
10456 else
10457     if test "$cross_compiling" = yes; then :
10458   gcc_cv_initfini_array=no
10459 else
10460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461 /* end confdefs.h.  */
10462
10463 static int x = -1;
10464 int main (void) { return x; }
10465 int foo (void) { x = 0; }
10466 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10467 _ACEOF
10468 if ac_fn_c_try_run "$LINENO"; then :
10469   gcc_cv_initfini_array=yes
10470 else
10471   gcc_cv_initfini_array=no
10472 fi
10473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10474   conftest.$ac_objext conftest.beam conftest.$ac_ext
10475 fi
10476
10477 fi
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10479 $as_echo "$gcc_cv_initfini_array" >&6; }
10480   enable_initfini_array=$gcc_cv_initfini_array
10481
10482 fi
10483
10484 if test $enable_initfini_array = yes; then
10485
10486 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10487
10488 fi
10489
10490 # mkdir takes a single argument on some systems.
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10492 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10493 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10494   $as_echo_n "(cached) " >&6
10495 else
10496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10497 /* end confdefs.h.  */
10498
10499 #include <sys/types.h>
10500 #ifdef HAVE_SYS_STAT_H
10501 # include <sys/stat.h>
10502 #endif
10503 #ifdef HAVE_UNISTD_H
10504 # include <unistd.h>
10505 #endif
10506 #ifdef HAVE_DIRECT_H
10507 # include <direct.h>
10508 #endif
10509 int
10510 main ()
10511 {
10512 mkdir ("foo", 0);
10513   ;
10514   return 0;
10515 }
10516 _ACEOF
10517 if ac_fn_c_try_compile "$LINENO"; then :
10518   gcc_cv_mkdir_takes_one_arg=no
10519 else
10520   gcc_cv_mkdir_takes_one_arg=yes
10521 fi
10522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10523 fi
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10525 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10526 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10527
10528 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10529
10530 fi
10531
10532
10533 # File extensions
10534 manext='.1'
10535 objext='.o'
10536
10537
10538
10539 # With Setjmp/Longjmp based exception handling.
10540 # Check whether --enable-sjlj-exceptions was given.
10541 if test "${enable_sjlj_exceptions+set}" = set; then :
10542   enableval=$enable_sjlj_exceptions; case $target in
10543   *-*-hpux10*)
10544     if test $enableval != yes; then
10545       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10546 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10547       enableval=yes
10548     fi
10549     ;;
10550 esac
10551 force_sjlj_exceptions=yes
10552 else
10553   case $target in
10554   *-*-hpux10*)
10555     force_sjlj_exceptions=yes
10556     enableval=yes
10557     ;;
10558   *)
10559     force_sjlj_exceptions=no
10560     ;;
10561 esac
10562 fi
10563
10564 if test $force_sjlj_exceptions = yes; then
10565   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10566
10567 cat >>confdefs.h <<_ACEOF
10568 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10569 _ACEOF
10570
10571 fi
10572
10573 # For platforms with the unwind ABI which includes an unwind library,
10574 # libunwind, we can choose to use the system libunwind.
10575 # config.gcc also contains tests of with_system_libunwind.
10576
10577
10578 # Check whether --with-system-libunwind was given.
10579 if test "${with_system_libunwind+set}" = set; then :
10580   withval=$with_system_libunwind;
10581 fi
10582
10583   # If system-libunwind was not specifically set, pick a default setting.
10584   if test x$with_system_libunwind = x; then
10585     case ${target} in
10586       ia64-*-hpux*) with_system_libunwind=yes ;;
10587       *) with_system_libunwind=no ;;
10588     esac
10589   fi
10590   # Based on system-libunwind and target, do we have ipinfo?
10591   if  test x$with_system_libunwind = xyes; then
10592     case ${target} in
10593       ia64-*-*) have_unwind_getipinfo=no ;;
10594       *) have_unwind_getipinfo=yes ;;
10595     esac
10596   else
10597     # Darwin before version 9 does not have _Unwind_GetIPInfo.
10598
10599     case ${target} in
10600       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10601       *) have_unwind_getipinfo=yes ;;
10602     esac
10603
10604   fi
10605
10606   if test x$have_unwind_getipinfo = xyes; then
10607
10608 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10609
10610   fi
10611
10612
10613 # --------------------------------------------------------
10614 # Build, host, and target specific configuration fragments
10615 # --------------------------------------------------------
10616
10617 # Collect build-machine-specific information.
10618 . ${srcdir}/config.build
10619
10620 # Collect host-machine-specific information.
10621 . ${srcdir}/config.host
10622
10623 target_gtfiles=
10624
10625 # Collect target-machine-specific information.
10626 . ${srcdir}/config.gcc
10627
10628 extra_objs="${host_extra_objs} ${extra_objs}"
10629 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10630
10631 # Default the target-machine variables that were not explicitly set.
10632 if test x"$tm_file" = x
10633 then tm_file=$cpu_type/$cpu_type.h; fi
10634
10635 if test x"$extra_headers" = x
10636 then extra_headers=; fi
10637
10638 if test x$md_file = x
10639 then md_file=$cpu_type/$cpu_type.md; fi
10640
10641 if test x$out_file = x
10642 then out_file=$cpu_type/$cpu_type.c; fi
10643
10644 if test x"$tmake_file" = x
10645 then tmake_file=$cpu_type/t-$cpu_type
10646 fi
10647
10648 if test x"$dwarf2" = xyes
10649 then tm_file="$tm_file tm-dwarf2.h"
10650 fi
10651
10652 # Say what files are being used for the output code and MD file.
10653 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10654 echo "Using \`$srcdir/config/$md_file' as machine description file."
10655
10656 # If any of the xm_file variables contain nonexistent files, warn
10657 # about them and drop them.
10658
10659 bx=
10660 for x in $build_xm_file; do
10661   if    test -f $srcdir/config/$x
10662   then      bx="$bx $x"
10663   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10664 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10665   fi
10666 done
10667 build_xm_file="$bx"
10668
10669 hx=
10670 for x in $host_xm_file; do
10671   if    test -f $srcdir/config/$x
10672   then      hx="$hx $x"
10673   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10674 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10675   fi
10676 done
10677 host_xm_file="$hx"
10678
10679 tx=
10680 for x in $xm_file; do
10681   if    test -f $srcdir/config/$x
10682   then      tx="$tx $x"
10683   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10684 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10685   fi
10686 done
10687 xm_file="$tx"
10688
10689 count=a
10690 for f in $tm_file; do
10691         count=${count}x
10692 done
10693 if test $count = ax; then
10694         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10695 else
10696         echo "Using the following target machine macro files:"
10697         for f in $tm_file; do
10698                 echo "  $srcdir/config/$f"
10699         done
10700 fi
10701
10702 if test x$need_64bit_hwint = xyes; then
10703
10704 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10705
10706 fi
10707
10708 if test x$use_long_long_for_widest_fast_int = xyes; then
10709
10710 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10711
10712 fi
10713
10714 count=a
10715 for f in $host_xm_file; do
10716         count=${count}x
10717 done
10718 if test $count = a; then
10719         :
10720 elif test $count = ax; then
10721         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10722 else
10723         echo "Using the following host machine macro files:"
10724         for f in $host_xm_file; do
10725                 echo "  $srcdir/config/$f"
10726         done
10727 fi
10728 echo "Using ${out_host_hook_obj} for host machine hooks."
10729
10730 if test "$host_xm_file" != "$build_xm_file"; then
10731         count=a
10732         for f in $build_xm_file; do
10733                 count=${count}x
10734         done
10735         if test $count = a; then
10736                 :
10737         elif test $count = ax; then
10738                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10739         else
10740                 echo "Using the following build machine macro files:"
10741                 for f in $build_xm_file; do
10742                         echo "  $srcdir/config/$f"
10743                 done
10744         fi
10745 fi
10746
10747 case ${host} in
10748   powerpc*-*-darwin*)
10749     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10750 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10751 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10752   $as_echo_n "(cached) " >&6
10753 else
10754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h.  */
10756
10757 #include <sys/cdefs.h>
10758 #include <sys/signal.h>
10759 #include <ucontext.h>
10760 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10761
10762 _ACEOF
10763 if ac_fn_c_try_compile "$LINENO"; then :
10764   gcc_cv_mcontext_underscores=no
10765 else
10766   gcc_cv_mcontext_underscores=yes
10767 fi
10768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10769 fi
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10771 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10772       if test $gcc_cv_mcontext_underscores = yes; then
10773
10774 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10775
10776       fi
10777     ;;
10778 esac
10779
10780 # ---------
10781 # Threading
10782 # ---------
10783
10784 # Check if a valid thread package
10785 case ${enable_threads} in
10786   "" | no)
10787     # No threads
10788     target_thread_file='single'
10789     ;;
10790   yes)
10791     # default
10792     target_thread_file='single'
10793     ;;
10794   aix | dce | gnat | irix | posix | posix95 | rtems | \
10795   single | vxworks | win32 | mipssde)
10796     target_thread_file=${enable_threads}
10797     ;;
10798   *)
10799     echo "${enable_threads} is an unknown thread package" 1>&2
10800     exit 1
10801     ;;
10802 esac
10803
10804 if test x${thread_file} = x; then
10805   # No thread file set by target-specific clauses in config.gcc,
10806   # so use file chosen by default logic above
10807   thread_file=${target_thread_file}
10808 fi
10809
10810 # Make gthr-default.h if we have a thread file.
10811 gthread_flags=
10812 if test $thread_file != single; then
10813   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10814   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10815     rm -f gthr-default.h-t
10816   else
10817     mv -f gthr-default.h-t gthr-default.h
10818   fi
10819   gthread_flags=-DHAVE_GTHR_DEFAULT
10820 fi
10821
10822
10823 # --------
10824 # UNSORTED
10825 # --------
10826
10827 use_cxa_atexit=no
10828 if test x$enable___cxa_atexit = xyes || \
10829    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10830   if test x$host = x$target; then
10831     case $host in
10832       # mingw32 doesn't have __cxa_atexit but uses atexit registration
10833       # keyed to flag_use_cxa_atexit
10834       *-*-mingw32*)
10835         use_cxa_atexit=yes
10836         ;;
10837       *)
10838         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10839 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10840   use_cxa_atexit=yes
10841 else
10842   echo "__cxa_atexit can't be enabled on this target"
10843 fi
10844
10845         ;;
10846     esac
10847   else
10848     # We can't check for __cxa_atexit when building a cross, so assume
10849     # it is available
10850     use_cxa_atexit=yes
10851   fi
10852   if test x$use_cxa_atexit = xyes; then
10853
10854 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10855
10856   fi
10857 fi
10858
10859 # Look for a file containing extra machine modes.
10860 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10861   extra_modes_file='$(srcdir)'/config/${extra_modes}
10862
10863
10864 cat >>confdefs.h <<_ACEOF
10865 #define EXTRA_MODES_FILE "config/$extra_modes"
10866 _ACEOF
10867
10868 fi
10869
10870 # Convert extra_options into a form suitable for Makefile use.
10871 extra_opt_files=
10872 all_opt_files=
10873 for f in $extra_options; do
10874   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10875   all_opt_files="$all_opt_files $srcdir/config/$f"
10876 done
10877
10878
10879 # auto-host.h is the file containing items generated by autoconf and is
10880 # the first file included by config.h.
10881 # If host=build, it is correct to have bconfig include auto-host.h
10882 # as well.  If host!=build, we are in error and need to do more
10883 # work to find out the build config parameters.
10884 if test x$host = x$build
10885 then
10886         build_auto=auto-host.h
10887 else
10888         # We create a subdir, then run autoconf in the subdir.
10889         # To prevent recursion we set host and build for the new
10890         # invocation of configure to the build for this invocation
10891         # of configure.
10892         tempdir=build.$$
10893         rm -rf $tempdir
10894         mkdir $tempdir
10895         cd $tempdir
10896         case ${srcdir} in
10897         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10898         *) realsrcdir=../${srcdir};;
10899         esac
10900         saved_CFLAGS="${CFLAGS}"
10901         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10902         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10903         ${realsrcdir}/configure \
10904                 --enable-languages=${enable_languages-all} \
10905                 --target=$target_alias --host=$build_alias --build=$build_alias
10906         CFLAGS="${saved_CFLAGS}"
10907
10908         # We just finished tests for the build machine, so rename
10909         # the file auto-build.h in the gcc directory.
10910         mv auto-host.h ../auto-build.h
10911         cd ..
10912         rm -rf $tempdir
10913         build_auto=auto-build.h
10914 fi
10915
10916
10917 tm_file="${tm_file} defaults.h"
10918 tm_p_file="${tm_p_file} tm-preds.h"
10919 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10920 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10921 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10922 # put this back in temporarily.
10923 xm_file="auto-host.h ansidecl.h ${xm_file}"
10924
10925 # --------
10926 # UNSORTED
10927 # --------
10928
10929 # Compile in configure arguments.
10930 if test -f configargs.h ; then
10931         # Being re-configured.
10932         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10933         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10934 else
10935         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10936 fi
10937
10938 # Double all backslashes and backslash all quotes to turn
10939 # gcc_config_arguments into a C string.
10940 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10941 $gcc_config_arguments
10942 EOF
10943 gcc_config_arguments_str=`cat conftest.out`
10944 rm -f conftest.out
10945
10946 cat > configargs.h <<EOF
10947 /* Generated automatically. */
10948 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10949 static const char thread_model[] = "$thread_file";
10950
10951 static const struct {
10952   const char *name, *value;
10953 } configure_default_options[] = $configure_default_options;
10954 EOF
10955
10956 gcc_BASEVER=`cat $srcdir/BASE-VER`
10957 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10958 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10959 if test -f $srcdir/REVISION ; then
10960         gcc_REVISION=`cat $srcdir/REVISION`
10961 else
10962         gcc_REVISION=""
10963 fi
10964 cat > plugin-version.h <<EOF
10965 #include "configargs.h"
10966
10967 static char basever[] = "$gcc_BASEVER";
10968 static char datestamp[] = "$gcc_DATESTAMP";
10969 static char devphase[] = "$gcc_DEVPHASE";
10970 static char revision[] = "$gcc_REVISION";
10971
10972 /* FIXME plugins: We should make the version information more precise.
10973    One way to do is to add a checksum. */
10974
10975 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10976                                                 devphase, revision,
10977                                                 configuration_arguments};
10978 EOF
10979
10980 # Internationalization
10981 # If we haven't got the data from the intl directory,
10982 # assume NLS is disabled.
10983 USE_NLS=no
10984 LIBINTL=
10985 LIBINTL_DEP=
10986 INCINTL=
10987 XGETTEXT=
10988 GMSGFMT=
10989 POSUB=
10990
10991 if test -f  ../intl/config.intl; then
10992   .  ../intl/config.intl
10993 fi
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10995 $as_echo_n "checking whether NLS is requested... " >&6; }
10996 if test x"$USE_NLS" != xyes; then
10997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10998 $as_echo "no" >&6; }
10999 else
11000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11001 $as_echo "yes" >&6; }
11002
11003 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11004
11005
11006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11007 $as_echo_n "checking for catalogs to be installed... " >&6; }
11008   # Look for .po and .gmo files in the source directory.
11009   CATALOGS=
11010   XLINGUAS=
11011   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11012     # If there aren't any .gmo files the shell will give us the
11013     # literal string "../path/to/srcdir/po/*.gmo" which has to be
11014     # weeded out.
11015     case "$cat" in *\**)
11016       continue;;
11017     esac
11018     # The quadruple backslash is collapsed to a double backslash
11019     # by the backticks, then collapsed again by the double quotes,
11020     # leaving us with one backslash in the sed expression (right
11021     # before the dot that mustn't act as a wildcard).
11022     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11023     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11024     # The user is allowed to set LINGUAS to a list of languages to
11025     # install catalogs for.  If it's empty that means "all of them."
11026     if test "x$LINGUAS" = x; then
11027       CATALOGS="$CATALOGS $cat"
11028       XLINGUAS="$XLINGUAS $lang"
11029     else
11030       case "$LINGUAS" in *$lang*)
11031         CATALOGS="$CATALOGS $cat"
11032         XLINGUAS="$XLINGUAS $lang"
11033         ;;
11034       esac
11035     fi
11036   done
11037   LINGUAS="$XLINGUAS"
11038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11039 $as_echo "$LINGUAS" >&6; }
11040
11041
11042     DATADIRNAME=share
11043
11044   INSTOBJEXT=.mo
11045
11046   GENCAT=gencat
11047
11048   CATOBJEXT=.gmo
11049
11050 fi
11051
11052 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11053 # -liconv on the link line twice.
11054 case "$LIBINTL" in *$LIBICONV*)
11055         LIBICONV= ;;
11056 esac
11057
11058 # Check whether --enable-secureplt was given.
11059 if test "${enable_secureplt+set}" = set; then :
11060   enableval=$enable_secureplt;
11061 fi
11062
11063
11064 # Check whether --enable-leading-mingw64-underscores was given.
11065 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11066   enableval=$enable_leading_mingw64_underscores;
11067 fi
11068
11069 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
11070
11071 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11072
11073 fi
11074
11075 # Check whether --enable-cld was given.
11076 if test "${enable_cld+set}" = set; then :
11077   enableval=$enable_cld;
11078 else
11079   enable_cld=no
11080 fi
11081
11082
11083 # Check whether --enable-frame-pointer was given.
11084 if test "${enable_frame_pointer+set}" = set; then :
11085   enableval=$enable_frame_pointer;
11086 else
11087
11088 case $target_os in
11089 linux* | darwin[8912]*)
11090   # Enable -fomit-frame-pointer by default for Linux and Darwin with
11091   # DWARF2.
11092   enable_frame_pointer=no
11093   ;;
11094 *)
11095   enable_frame_pointer=yes
11096   ;;
11097 esac
11098
11099 fi
11100
11101
11102 # Windows32 Registry support for specifying GCC installation paths.
11103 # Check whether --enable-win32-registry was given.
11104 if test "${enable_win32_registry+set}" = set; then :
11105   enableval=$enable_win32_registry;
11106 fi
11107
11108
11109 case $host_os in
11110   win32 | pe | cygwin* | mingw32* | uwin*)
11111     if test "x$enable_win32_registry" != xno; then
11112       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11113 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11114 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11115   $as_echo_n "(cached) " >&6
11116 else
11117   ac_func_search_save_LIBS=$LIBS
11118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11119 /* end confdefs.h.  */
11120
11121 /* Override any GCC internal prototype to avoid an error.
11122    Use char because int might match the return type of a GCC
11123    builtin and then its argument prototype would still apply.  */
11124 #ifdef __cplusplus
11125 extern "C"
11126 #endif
11127 char RegOpenKeyExA ();
11128 int
11129 main ()
11130 {
11131 return RegOpenKeyExA ();
11132   ;
11133   return 0;
11134 }
11135 _ACEOF
11136 for ac_lib in '' advapi32; do
11137   if test -z "$ac_lib"; then
11138     ac_res="none required"
11139   else
11140     ac_res=-l$ac_lib
11141     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11142   fi
11143   if ac_fn_c_try_link "$LINENO"; then :
11144   ac_cv_search_RegOpenKeyExA=$ac_res
11145 fi
11146 rm -f core conftest.err conftest.$ac_objext \
11147     conftest$ac_exeext
11148   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11149   break
11150 fi
11151 done
11152 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11153
11154 else
11155   ac_cv_search_RegOpenKeyExA=no
11156 fi
11157 rm conftest.$ac_ext
11158 LIBS=$ac_func_search_save_LIBS
11159 fi
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11161 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11162 ac_res=$ac_cv_search_RegOpenKeyExA
11163 if test "$ac_res" != no; then :
11164   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11165
11166 else
11167   enable_win32_registry=no
11168 fi
11169
11170     fi
11171
11172     if test "x$enable_win32_registry" != xno; then
11173
11174 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11175
11176
11177       if test "x$enable_win32_registry" != xyes \
11178          && test "x$enable_win32_registry" != x; then
11179
11180 cat >>confdefs.h <<_ACEOF
11181 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11182 _ACEOF
11183
11184       fi
11185     fi
11186   ;;
11187 esac
11188
11189 # Get an absolute path to the GCC top-level source directory
11190 holddir=`${PWDCMD-pwd}`
11191 cd $srcdir
11192 topdir=`${PWDCMD-pwd}`
11193 cd $holddir
11194
11195 # Conditionalize the makefile for this host machine.
11196 xmake_file=
11197 for f in ${host_xmake_file}
11198 do
11199         if test -f ${srcdir}/config/$f
11200         then
11201                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11202         fi
11203 done
11204
11205 # Conditionalize the makefile for this target machine.
11206 tmake_file_=
11207 for f in ${tmake_file}
11208 do
11209         if test -f ${srcdir}/config/$f
11210         then
11211                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11212         fi
11213 done
11214 tmake_file="${tmake_file_}"
11215
11216 out_object_file=`basename $out_file .c`.o
11217
11218 tm_file_list="options.h"
11219 tm_include_list="options.h insn-constants.h"
11220 for f in $tm_file; do
11221   case $f in
11222     ./* )
11223        f=`echo $f | sed 's/^..//'`
11224        tm_file_list="${tm_file_list} $f"
11225        tm_include_list="${tm_include_list} $f"
11226        ;;
11227     defaults.h )
11228        tm_file_list="${tm_file_list} \$(srcdir)/$f"
11229        tm_include_list="${tm_include_list} $f"
11230        ;;
11231     * )
11232        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11233        tm_include_list="${tm_include_list} config/$f"
11234        ;;
11235   esac
11236 done
11237
11238 libgcc_tm_file_list=
11239 libgcc_tm_include_list=
11240 for f in $libgcc_tm_file; do
11241   libgcc_tm_file_list="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11242   libgcc_tm_include_list="${libgcc_tm_include_list} ../libgcc/config/$f"
11243 done
11244
11245 tm_p_file_list=
11246 tm_p_include_list=
11247 for f in $tm_p_file; do
11248   case $f in
11249     tm-preds.h )
11250        tm_p_file_list="${tm_p_file_list} $f"
11251        tm_p_include_list="${tm_p_include_list} $f"
11252        ;;
11253     * )
11254        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11255        tm_p_include_list="${tm_p_include_list} config/$f"
11256   esac
11257 done
11258
11259 xm_file_list=
11260 xm_include_list=
11261 for f in $xm_file; do
11262   case $f in
11263     ansidecl.h )
11264        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11265        xm_include_list="${xm_include_list} $f"
11266        ;;
11267     auto-host.h )
11268        xm_file_list="${xm_file_list} $f"
11269        xm_include_list="${xm_include_list} $f"
11270        ;;
11271     * )
11272        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11273        xm_include_list="${xm_include_list} config/$f"
11274        ;;
11275   esac
11276 done
11277
11278 host_xm_file_list=
11279 host_xm_include_list=
11280 for f in $host_xm_file; do
11281   case $f in
11282     ansidecl.h )
11283        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11284        host_xm_include_list="${host_xm_include_list} $f"
11285        ;;
11286     auto-host.h )
11287        host_xm_file_list="${host_xm_file_list} $f"
11288        host_xm_include_list="${host_xm_include_list} $f"
11289        ;;
11290     * )
11291        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11292        host_xm_include_list="${host_xm_include_list} config/$f"
11293        ;;
11294   esac
11295 done
11296
11297 build_xm_file_list=
11298 for f in $build_xm_file; do
11299   case $f in
11300     ansidecl.h )
11301        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11302        build_xm_include_list="${build_xm_include_list} $f"
11303        ;;
11304     auto-build.h | auto-host.h )
11305        build_xm_file_list="${build_xm_file_list} $f"
11306        build_xm_include_list="${build_xm_include_list} $f"
11307        ;;
11308     * )
11309        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11310        build_xm_include_list="${build_xm_include_list} config/$f"
11311        ;;
11312   esac
11313 done
11314
11315 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11316 # cross-compiler which does not use the native headers and libraries.
11317 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11318 CROSS=
11319 ALL=all.internal
11320 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11321
11322 if test "x$with_build_sysroot" != x; then
11323   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11324 else
11325   # This value is used, even on a native system, because
11326   # CROSS_SYSTEM_HEADER_DIR is just
11327   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11328   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11329 fi
11330
11331 if test x$host != x$target
11332 then
11333         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11334         ALL=all.cross
11335         SYSTEM_HEADER_DIR=$build_system_header_dir
11336         case "$host","$target" in
11337         # Darwin crosses can use the host system's libraries and headers,
11338         # because of the fat library support.  Of course, it must be the
11339         # same version of Darwin on both sides.  Allow the user to
11340         # just say --target=foo-darwin without a version number to mean
11341         # "the version on this system".
11342             *-*-darwin*,*-*-darwin*)
11343                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11344                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11345                 if test $hostos = $targetos -o $targetos = darwin ; then
11346                     CROSS=
11347                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11348                     with_headers=yes
11349                 fi
11350                 ;;
11351
11352             i?86-*-*,x86_64-*-* \
11353             | powerpc*-*-*,powerpc64*-*-*)
11354                 CROSS="$CROSS -DNATIVE_CROSS" ;;
11355         esac
11356
11357         case $target in
11358                 *-*-mingw*)
11359                         if test "x$with_headers" = x; then
11360                                 with_headers=yes
11361                         fi
11362                         ;;
11363                 *)
11364                         ;;
11365         esac
11366 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11367         SYSTEM_HEADER_DIR=$build_system_header_dir
11368 fi
11369
11370 # If this is a cross-compiler that does not
11371 # have its own set of headers then define
11372 # inhibit_libc
11373
11374 # If this is using newlib, without having the headers available now,
11375 # then define inhibit_libc in LIBGCC2_CFLAGS.
11376 # This prevents libgcc2 from containing any code which requires libc
11377 # support.
11378 : ${inhibit_libc=false}
11379 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11380        test x$with_newlib = xyes ; } &&
11381      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11382        inhibit_libc=true
11383 fi
11384
11385
11386 # When building gcc with a cross-compiler, we need to adjust things so
11387 # that the generator programs are still built with the native compiler.
11388 # Also, we cannot run fixincludes.
11389
11390 # These are the normal (build=host) settings:
11391 CC_FOR_BUILD='$(CC)'
11392 BUILD_CFLAGS='$(ALL_CFLAGS)'
11393 BUILD_LDFLAGS='$(LDFLAGS)'
11394 STMP_FIXINC=stmp-fixinc
11395
11396 # And these apply if build != host, or we are generating coverage data
11397 if test x$build != x$host || test "x$coverage_flags" != x
11398 then
11399     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11400     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11401 fi
11402
11403 # Expand extra_headers to include complete path.
11404 # This substitutes for lots of t-* files.
11405 extra_headers_list=
11406 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11407 for file in ${extra_headers} ; do
11408   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11409 done
11410
11411 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11412 if test x"$use_gcc_tgmath" = xyes
11413 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11414 fi
11415
11416 # Define collect2 in Makefile.
11417 case $host_can_use_collect2 in
11418   no) collect2= ;;
11419   *) collect2='collect2$(exeext)' ;;
11420 esac
11421
11422
11423 # Add a definition of USE_COLLECT2 if system wants one.
11424 case $use_collect2 in
11425   no) use_collect2= ;;
11426   "") ;;
11427   *)
11428     host_xm_defines="${host_xm_defines} USE_COLLECT2"
11429     xm_defines="${xm_defines} USE_COLLECT2"
11430     case $host_can_use_collect2 in
11431       no)
11432         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11433         ;;
11434     esac
11435     ;;
11436 esac
11437
11438
11439 cat >>confdefs.h <<_ACEOF
11440 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11441 _ACEOF
11442
11443
11444 # ---------------------------
11445 # Assembler & linker features
11446 # ---------------------------
11447
11448 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11449 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11450 # However when ld-new is first executed from the build tree, libtool will
11451 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11452 # to the build tree.  While doing this we need to use the previous-stage
11453 # linker, or we have an infinite loop.  The presence of a shell script as
11454 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11455 # the gcc/collect-ld script.  So we need to know how libtool works, or
11456 # exec-tool will fail.
11457
11458
11459 case `pwd` in
11460   *\ * | *\     *)
11461     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11462 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11463 esac
11464
11465
11466
11467 macro_version='2.2.7a'
11468 macro_revision='1.3134'
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482 ltmain="$ac_aux_dir/ltmain.sh"
11483
11484 # Backslashify metacharacters that are still active within
11485 # double-quoted strings.
11486 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11487
11488 # Same as above, but do not quote variable references.
11489 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11490
11491 # Sed substitution to delay expansion of an escaped shell variable in a
11492 # double_quote_subst'ed string.
11493 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11494
11495 # Sed substitution to delay expansion of an escaped single quote.
11496 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11497
11498 # Sed substitution to avoid accidental globbing in evaled expressions
11499 no_glob_subst='s/\*/\\\*/g'
11500
11501 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11502 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11503 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11504
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11506 $as_echo_n "checking how to print strings... " >&6; }
11507 # Test print first, because it will be a builtin if present.
11508 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11509    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11510   ECHO='print -r --'
11511 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11512   ECHO='printf %s\n'
11513 else
11514   # Use this function as a fallback that always works.
11515   func_fallback_echo ()
11516   {
11517     eval 'cat <<_LTECHO_EOF
11518 $1
11519 _LTECHO_EOF'
11520   }
11521   ECHO='func_fallback_echo'
11522 fi
11523
11524 # func_echo_all arg...
11525 # Invoke $ECHO with all args, space-separated.
11526 func_echo_all ()
11527 {
11528     $ECHO ""
11529 }
11530
11531 case "$ECHO" in
11532   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11533 $as_echo "printf" >&6; } ;;
11534   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11535 $as_echo "print -r" >&6; } ;;
11536   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11537 $as_echo "cat" >&6; } ;;
11538 esac
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11554 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11555 if test "${ac_cv_path_SED+set}" = set; then :
11556   $as_echo_n "(cached) " >&6
11557 else
11558             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11559      for ac_i in 1 2 3 4 5 6 7; do
11560        ac_script="$ac_script$as_nl$ac_script"
11561      done
11562      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11563      { ac_script=; unset ac_script;}
11564      if test -z "$SED"; then
11565   ac_path_SED_found=false
11566   # Loop through the user's path and test for each of PROGNAME-LIST
11567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11568 for as_dir in $PATH
11569 do
11570   IFS=$as_save_IFS
11571   test -z "$as_dir" && as_dir=.
11572     for ac_prog in sed gsed; do
11573     for ac_exec_ext in '' $ac_executable_extensions; do
11574       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11575       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11576 # Check for GNU ac_path_SED and select it if it is found.
11577   # Check for GNU $ac_path_SED
11578 case `"$ac_path_SED" --version 2>&1` in
11579 *GNU*)
11580   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11581 *)
11582   ac_count=0
11583   $as_echo_n 0123456789 >"conftest.in"
11584   while :
11585   do
11586     cat "conftest.in" "conftest.in" >"conftest.tmp"
11587     mv "conftest.tmp" "conftest.in"
11588     cp "conftest.in" "conftest.nl"
11589     $as_echo '' >> "conftest.nl"
11590     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11591     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11592     as_fn_arith $ac_count + 1 && ac_count=$as_val
11593     if test $ac_count -gt ${ac_path_SED_max-0}; then
11594       # Best one so far, save it but keep looking for a better one
11595       ac_cv_path_SED="$ac_path_SED"
11596       ac_path_SED_max=$ac_count
11597     fi
11598     # 10*(2^10) chars as input seems more than enough
11599     test $ac_count -gt 10 && break
11600   done
11601   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11602 esac
11603
11604       $ac_path_SED_found && break 3
11605     done
11606   done
11607   done
11608 IFS=$as_save_IFS
11609   if test -z "$ac_cv_path_SED"; then
11610     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11611   fi
11612 else
11613   ac_cv_path_SED=$SED
11614 fi
11615
11616 fi
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11618 $as_echo "$ac_cv_path_SED" >&6; }
11619  SED="$ac_cv_path_SED"
11620   rm -f conftest.sed
11621
11622 test -z "$SED" && SED=sed
11623 Xsed="$SED -e 1s/^X//"
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11636 $as_echo_n "checking for fgrep... " >&6; }
11637 if test "${ac_cv_path_FGREP+set}" = set; then :
11638   $as_echo_n "(cached) " >&6
11639 else
11640   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11641    then ac_cv_path_FGREP="$GREP -F"
11642    else
11643      if test -z "$FGREP"; then
11644   ac_path_FGREP_found=false
11645   # Loop through the user's path and test for each of PROGNAME-LIST
11646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11647 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11648 do
11649   IFS=$as_save_IFS
11650   test -z "$as_dir" && as_dir=.
11651     for ac_prog in fgrep; do
11652     for ac_exec_ext in '' $ac_executable_extensions; do
11653       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11654       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11655 # Check for GNU ac_path_FGREP and select it if it is found.
11656   # Check for GNU $ac_path_FGREP
11657 case `"$ac_path_FGREP" --version 2>&1` in
11658 *GNU*)
11659   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11660 *)
11661   ac_count=0
11662   $as_echo_n 0123456789 >"conftest.in"
11663   while :
11664   do
11665     cat "conftest.in" "conftest.in" >"conftest.tmp"
11666     mv "conftest.tmp" "conftest.in"
11667     cp "conftest.in" "conftest.nl"
11668     $as_echo 'FGREP' >> "conftest.nl"
11669     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11670     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11671     as_fn_arith $ac_count + 1 && ac_count=$as_val
11672     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11673       # Best one so far, save it but keep looking for a better one
11674       ac_cv_path_FGREP="$ac_path_FGREP"
11675       ac_path_FGREP_max=$ac_count
11676     fi
11677     # 10*(2^10) chars as input seems more than enough
11678     test $ac_count -gt 10 && break
11679   done
11680   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11681 esac
11682
11683       $ac_path_FGREP_found && break 3
11684     done
11685   done
11686   done
11687 IFS=$as_save_IFS
11688   if test -z "$ac_cv_path_FGREP"; then
11689     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11690   fi
11691 else
11692   ac_cv_path_FGREP=$FGREP
11693 fi
11694
11695    fi
11696 fi
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11698 $as_echo "$ac_cv_path_FGREP" >&6; }
11699  FGREP="$ac_cv_path_FGREP"
11700
11701
11702 test -z "$GREP" && GREP=grep
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722 # Check whether --with-gnu-ld was given.
11723 if test "${with_gnu_ld+set}" = set; then :
11724   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11725 else
11726   with_gnu_ld=no
11727 fi
11728
11729 ac_prog=ld
11730 if test "$GCC" = yes; then
11731   # Check if gcc -print-prog-name=ld gives a path.
11732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11733 $as_echo_n "checking for ld used by $CC... " >&6; }
11734   case $host in
11735   *-*-mingw*)
11736     # gcc leaves a trailing carriage return which upsets mingw
11737     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11738   *)
11739     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11740   esac
11741   case $ac_prog in
11742     # Accept absolute paths.
11743     [\\/]* | ?:[\\/]*)
11744       re_direlt='/[^/][^/]*/\.\./'
11745       # Canonicalize the pathname of ld
11746       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11747       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11748         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11749       done
11750       test -z "$LD" && LD="$ac_prog"
11751       ;;
11752   "")
11753     # If it fails, then pretend we aren't using GCC.
11754     ac_prog=ld
11755     ;;
11756   *)
11757     # If it is relative, then search for the first ld in PATH.
11758     with_gnu_ld=unknown
11759     ;;
11760   esac
11761 elif test "$with_gnu_ld" = yes; then
11762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11763 $as_echo_n "checking for GNU ld... " >&6; }
11764 else
11765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11766 $as_echo_n "checking for non-GNU ld... " >&6; }
11767 fi
11768 if test "${lt_cv_path_LD+set}" = set; then :
11769   $as_echo_n "(cached) " >&6
11770 else
11771   if test -z "$LD"; then
11772   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11773   for ac_dir in $PATH; do
11774     IFS="$lt_save_ifs"
11775     test -z "$ac_dir" && ac_dir=.
11776     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11777       lt_cv_path_LD="$ac_dir/$ac_prog"
11778       # Check to see if the program is GNU ld.  I'd rather use --version,
11779       # but apparently some variants of GNU ld only accept -v.
11780       # Break only if it was the GNU/non-GNU ld that we prefer.
11781       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11782       *GNU* | *'with BFD'*)
11783         test "$with_gnu_ld" != no && break
11784         ;;
11785       *)
11786         test "$with_gnu_ld" != yes && break
11787         ;;
11788       esac
11789     fi
11790   done
11791   IFS="$lt_save_ifs"
11792 else
11793   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11794 fi
11795 fi
11796
11797 LD="$lt_cv_path_LD"
11798 if test -n "$LD"; then
11799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11800 $as_echo "$LD" >&6; }
11801 else
11802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11803 $as_echo "no" >&6; }
11804 fi
11805 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11807 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11808 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11809   $as_echo_n "(cached) " >&6
11810 else
11811   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11812 case `$LD -v 2>&1 </dev/null` in
11813 *GNU* | *'with BFD'*)
11814   lt_cv_prog_gnu_ld=yes
11815   ;;
11816 *)
11817   lt_cv_prog_gnu_ld=no
11818   ;;
11819 esac
11820 fi
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11822 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11823 with_gnu_ld=$lt_cv_prog_gnu_ld
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11834 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11835 if test "${lt_cv_path_NM+set}" = set; then :
11836   $as_echo_n "(cached) " >&6
11837 else
11838   if test -n "$NM"; then
11839   # Let the user override the test.
11840   lt_cv_path_NM="$NM"
11841 else
11842   lt_nm_to_check="${ac_tool_prefix}nm"
11843   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11844     lt_nm_to_check="$lt_nm_to_check nm"
11845   fi
11846   for lt_tmp_nm in $lt_nm_to_check; do
11847     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11848     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11849       IFS="$lt_save_ifs"
11850       test -z "$ac_dir" && ac_dir=.
11851       tmp_nm="$ac_dir/$lt_tmp_nm"
11852       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11853         # Check to see if the nm accepts a BSD-compat flag.
11854         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11855         #   nm: unknown option "B" ignored
11856         # Tru64's nm complains that /dev/null is an invalid object file
11857         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11858         */dev/null* | *'Invalid file or object type'*)
11859           lt_cv_path_NM="$tmp_nm -B"
11860           break
11861           ;;
11862         *)
11863           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11864           */dev/null*)
11865             lt_cv_path_NM="$tmp_nm -p"
11866             break
11867             ;;
11868           *)
11869             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11870             continue # so that we can try to find one that supports BSD flags
11871             ;;
11872           esac
11873           ;;
11874         esac
11875       fi
11876     done
11877     IFS="$lt_save_ifs"
11878   done
11879   : ${lt_cv_path_NM=no}
11880 fi
11881 fi
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11883 $as_echo "$lt_cv_path_NM" >&6; }
11884 if test "$lt_cv_path_NM" != "no"; then
11885   NM="$lt_cv_path_NM"
11886 else
11887   # Didn't find any BSD compatible name lister, look for dumpbin.
11888   if test -n "$DUMPBIN"; then :
11889     # Let the user override the test.
11890   else
11891     if test -n "$ac_tool_prefix"; then
11892   for ac_prog in dumpbin "link -dump"
11893   do
11894     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11897 $as_echo_n "checking for $ac_word... " >&6; }
11898 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11899   $as_echo_n "(cached) " >&6
11900 else
11901   if test -n "$DUMPBIN"; then
11902   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11903 else
11904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11905 for as_dir in $PATH
11906 do
11907   IFS=$as_save_IFS
11908   test -z "$as_dir" && as_dir=.
11909     for ac_exec_ext in '' $ac_executable_extensions; do
11910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11911     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11912     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11913     break 2
11914   fi
11915 done
11916   done
11917 IFS=$as_save_IFS
11918
11919 fi
11920 fi
11921 DUMPBIN=$ac_cv_prog_DUMPBIN
11922 if test -n "$DUMPBIN"; then
11923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11924 $as_echo "$DUMPBIN" >&6; }
11925 else
11926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927 $as_echo "no" >&6; }
11928 fi
11929
11930
11931     test -n "$DUMPBIN" && break
11932   done
11933 fi
11934 if test -z "$DUMPBIN"; then
11935   ac_ct_DUMPBIN=$DUMPBIN
11936   for ac_prog in dumpbin "link -dump"
11937 do
11938   # Extract the first word of "$ac_prog", so it can be a program name with args.
11939 set dummy $ac_prog; ac_word=$2
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11941 $as_echo_n "checking for $ac_word... " >&6; }
11942 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11943   $as_echo_n "(cached) " >&6
11944 else
11945   if test -n "$ac_ct_DUMPBIN"; then
11946   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11947 else
11948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11949 for as_dir in $PATH
11950 do
11951   IFS=$as_save_IFS
11952   test -z "$as_dir" && as_dir=.
11953     for ac_exec_ext in '' $ac_executable_extensions; do
11954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11955     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11957     break 2
11958   fi
11959 done
11960   done
11961 IFS=$as_save_IFS
11962
11963 fi
11964 fi
11965 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11966 if test -n "$ac_ct_DUMPBIN"; then
11967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11968 $as_echo "$ac_ct_DUMPBIN" >&6; }
11969 else
11970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971 $as_echo "no" >&6; }
11972 fi
11973
11974
11975   test -n "$ac_ct_DUMPBIN" && break
11976 done
11977
11978   if test "x$ac_ct_DUMPBIN" = x; then
11979     DUMPBIN=":"
11980   else
11981     case $cross_compiling:$ac_tool_warned in
11982 yes:)
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11985 ac_tool_warned=yes ;;
11986 esac
11987     DUMPBIN=$ac_ct_DUMPBIN
11988   fi
11989 fi
11990
11991     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11992     *COFF*)
11993       DUMPBIN="$DUMPBIN -symbols"
11994       ;;
11995     *)
11996       DUMPBIN=:
11997       ;;
11998     esac
11999   fi
12000
12001   if test "$DUMPBIN" != ":"; then
12002     NM="$DUMPBIN"
12003   fi
12004 fi
12005 test -z "$NM" && NM=nm
12006
12007
12008
12009
12010
12011
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12013 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12014 if test "${lt_cv_nm_interface+set}" = set; then :
12015   $as_echo_n "(cached) " >&6
12016 else
12017   lt_cv_nm_interface="BSD nm"
12018   echo "int some_variable = 0;" > conftest.$ac_ext
12019   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12020   (eval "$ac_compile" 2>conftest.err)
12021   cat conftest.err >&5
12022   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12023   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12024   cat conftest.err >&5
12025   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12026   cat conftest.out >&5
12027   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12028     lt_cv_nm_interface="MS dumpbin"
12029   fi
12030   rm -f conftest*
12031 fi
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12033 $as_echo "$lt_cv_nm_interface" >&6; }
12034
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12036 $as_echo_n "checking whether ln -s works... " >&6; }
12037 LN_S=$as_ln_s
12038 if test "$LN_S" = "ln -s"; then
12039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12040 $as_echo "yes" >&6; }
12041 else
12042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12043 $as_echo "no, using $LN_S" >&6; }
12044 fi
12045
12046 # find the maximum length of command line arguments
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12048 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12049 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12050   $as_echo_n "(cached) " >&6
12051 else
12052     i=0
12053   teststring="ABCD"
12054
12055   case $build_os in
12056   msdosdjgpp*)
12057     # On DJGPP, this test can blow up pretty badly due to problems in libc
12058     # (any single argument exceeding 2000 bytes causes a buffer overrun
12059     # during glob expansion).  Even if it were fixed, the result of this
12060     # check would be larger than it should be.
12061     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12062     ;;
12063
12064   gnu*)
12065     # Under GNU Hurd, this test is not required because there is
12066     # no limit to the length of command line arguments.
12067     # Libtool will interpret -1 as no limit whatsoever
12068     lt_cv_sys_max_cmd_len=-1;
12069     ;;
12070
12071   cygwin* | mingw* | cegcc*)
12072     # On Win9x/ME, this test blows up -- it succeeds, but takes
12073     # about 5 minutes as the teststring grows exponentially.
12074     # Worse, since 9x/ME are not pre-emptively multitasking,
12075     # you end up with a "frozen" computer, even though with patience
12076     # the test eventually succeeds (with a max line length of 256k).
12077     # Instead, let's just punt: use the minimum linelength reported by
12078     # all of the supported platforms: 8192 (on NT/2K/XP).
12079     lt_cv_sys_max_cmd_len=8192;
12080     ;;
12081
12082   mint*)
12083     # On MiNT this can take a long time and run out of memory.
12084     lt_cv_sys_max_cmd_len=8192;
12085     ;;
12086
12087   amigaos*)
12088     # On AmigaOS with pdksh, this test takes hours, literally.
12089     # So we just punt and use a minimum line length of 8192.
12090     lt_cv_sys_max_cmd_len=8192;
12091     ;;
12092
12093   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12094     # This has been around since 386BSD, at least.  Likely further.
12095     if test -x /sbin/sysctl; then
12096       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12097     elif test -x /usr/sbin/sysctl; then
12098       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12099     else
12100       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12101     fi
12102     # And add a safety zone
12103     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12104     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12105     ;;
12106
12107   interix*)
12108     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12109     lt_cv_sys_max_cmd_len=196608
12110     ;;
12111
12112   osf*)
12113     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12114     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12115     # nice to cause kernel panics so lets avoid the loop below.
12116     # First set a reasonable default.
12117     lt_cv_sys_max_cmd_len=16384
12118     #
12119     if test -x /sbin/sysconfig; then
12120       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12121         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12122       esac
12123     fi
12124     ;;
12125   sco3.2v5*)
12126     lt_cv_sys_max_cmd_len=102400
12127     ;;
12128   sysv5* | sco5v6* | sysv4.2uw2*)
12129     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12130     if test -n "$kargmax"; then
12131       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
12132     else
12133       lt_cv_sys_max_cmd_len=32768
12134     fi
12135     ;;
12136   *)
12137     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12138     if test -n "$lt_cv_sys_max_cmd_len"; then
12139       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12140       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12141     else
12142       # Make teststring a little bigger before we do anything with it.
12143       # a 1K string should be a reasonable start.
12144       for i in 1 2 3 4 5 6 7 8 ; do
12145         teststring=$teststring$teststring
12146       done
12147       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12148       # If test is not a shell built-in, we'll probably end up computing a
12149       # maximum length that is only half of the actual maximum length, but
12150       # we can't tell.
12151       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12152                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12153               test $i != 17 # 1/2 MB should be enough
12154       do
12155         i=`expr $i + 1`
12156         teststring=$teststring$teststring
12157       done
12158       # Only check the string length outside the loop.
12159       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12160       teststring=
12161       # Add a significant safety factor because C++ compilers can tack on
12162       # massive amounts of additional arguments before passing them to the
12163       # linker.  It appears as though 1/2 is a usable value.
12164       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12165     fi
12166     ;;
12167   esac
12168
12169 fi
12170
12171 if test -n $lt_cv_sys_max_cmd_len ; then
12172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12173 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12174 else
12175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12176 $as_echo "none" >&6; }
12177 fi
12178 max_cmd_len=$lt_cv_sys_max_cmd_len
12179
12180
12181
12182
12183
12184
12185 : ${CP="cp -f"}
12186 : ${MV="mv -f"}
12187 : ${RM="rm -f"}
12188
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12190 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12191 # Try some XSI features
12192 xsi_shell=no
12193 ( _lt_dummy="a/b/c"
12194   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12195       = c,a/b,, \
12196     && eval 'test $(( 1 + 1 )) -eq 2 \
12197     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12198   && xsi_shell=yes
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12200 $as_echo "$xsi_shell" >&6; }
12201
12202
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12204 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12205 lt_shell_append=no
12206 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12207     >/dev/null 2>&1 \
12208   && lt_shell_append=yes
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12210 $as_echo "$lt_shell_append" >&6; }
12211
12212
12213 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12214   lt_unset=unset
12215 else
12216   lt_unset=false
12217 fi
12218
12219
12220
12221
12222
12223 # test EBCDIC or ASCII
12224 case `echo X|tr X '\101'` in
12225  A) # ASCII based system
12226     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12227   lt_SP2NL='tr \040 \012'
12228   lt_NL2SP='tr \015\012 \040\040'
12229   ;;
12230  *) # EBCDIC based system
12231   lt_SP2NL='tr \100 \n'
12232   lt_NL2SP='tr \r\n \100\100'
12233   ;;
12234 esac
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12245 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12246 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12247   $as_echo_n "(cached) " >&6
12248 else
12249   lt_cv_ld_reload_flag='-r'
12250 fi
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12252 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12253 reload_flag=$lt_cv_ld_reload_flag
12254 case $reload_flag in
12255 "" | " "*) ;;
12256 *) reload_flag=" $reload_flag" ;;
12257 esac
12258 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12259 case $host_os in
12260   darwin*)
12261     if test "$GCC" = yes; then
12262       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12263     else
12264       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12265     fi
12266     ;;
12267 esac
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277 if test -n "$ac_tool_prefix"; then
12278   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12279 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12281 $as_echo_n "checking for $ac_word... " >&6; }
12282 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12283   $as_echo_n "(cached) " >&6
12284 else
12285   if test -n "$OBJDUMP"; then
12286   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12287 else
12288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12289 for as_dir in $PATH
12290 do
12291   IFS=$as_save_IFS
12292   test -z "$as_dir" && as_dir=.
12293     for ac_exec_ext in '' $ac_executable_extensions; do
12294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12295     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12297     break 2
12298   fi
12299 done
12300   done
12301 IFS=$as_save_IFS
12302
12303 fi
12304 fi
12305 OBJDUMP=$ac_cv_prog_OBJDUMP
12306 if test -n "$OBJDUMP"; then
12307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12308 $as_echo "$OBJDUMP" >&6; }
12309 else
12310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311 $as_echo "no" >&6; }
12312 fi
12313
12314
12315 fi
12316 if test -z "$ac_cv_prog_OBJDUMP"; then
12317   ac_ct_OBJDUMP=$OBJDUMP
12318   # Extract the first word of "objdump", so it can be a program name with args.
12319 set dummy objdump; ac_word=$2
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321 $as_echo_n "checking for $ac_word... " >&6; }
12322 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12323   $as_echo_n "(cached) " >&6
12324 else
12325   if test -n "$ac_ct_OBJDUMP"; then
12326   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12327 else
12328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329 for as_dir in $PATH
12330 do
12331   IFS=$as_save_IFS
12332   test -z "$as_dir" && as_dir=.
12333     for ac_exec_ext in '' $ac_executable_extensions; do
12334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12335     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12337     break 2
12338   fi
12339 done
12340   done
12341 IFS=$as_save_IFS
12342
12343 fi
12344 fi
12345 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12346 if test -n "$ac_ct_OBJDUMP"; then
12347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12348 $as_echo "$ac_ct_OBJDUMP" >&6; }
12349 else
12350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351 $as_echo "no" >&6; }
12352 fi
12353
12354   if test "x$ac_ct_OBJDUMP" = x; then
12355     OBJDUMP="false"
12356   else
12357     case $cross_compiling:$ac_tool_warned in
12358 yes:)
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12361 ac_tool_warned=yes ;;
12362 esac
12363     OBJDUMP=$ac_ct_OBJDUMP
12364   fi
12365 else
12366   OBJDUMP="$ac_cv_prog_OBJDUMP"
12367 fi
12368
12369 test -z "$OBJDUMP" && OBJDUMP=objdump
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12380 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12381 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12382   $as_echo_n "(cached) " >&6
12383 else
12384   lt_cv_file_magic_cmd='$MAGIC_CMD'
12385 lt_cv_file_magic_test_file=
12386 lt_cv_deplibs_check_method='unknown'
12387 # Need to set the preceding variable on all platforms that support
12388 # interlibrary dependencies.
12389 # 'none' -- dependencies not supported.
12390 # `unknown' -- same as none, but documents that we really don't know.
12391 # 'pass_all' -- all dependencies passed with no checks.
12392 # 'test_compile' -- check by making test program.
12393 # 'file_magic [[regex]]' -- check by looking for files in library path
12394 # which responds to the $file_magic_cmd with a given extended regex.
12395 # If you have `file' or equivalent on your system and you're not sure
12396 # whether `pass_all' will *always* work, you probably want this one.
12397
12398 case $host_os in
12399 aix[4-9]*)
12400   lt_cv_deplibs_check_method=pass_all
12401   ;;
12402
12403 beos*)
12404   lt_cv_deplibs_check_method=pass_all
12405   ;;
12406
12407 bsdi[45]*)
12408   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12409   lt_cv_file_magic_cmd='/usr/bin/file -L'
12410   lt_cv_file_magic_test_file=/shlib/libc.so
12411   ;;
12412
12413 cygwin*)
12414   # func_win32_libid is a shell function defined in ltmain.sh
12415   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12416   lt_cv_file_magic_cmd='func_win32_libid'
12417   ;;
12418
12419 mingw* | pw32*)
12420   # Base MSYS/MinGW do not provide the 'file' command needed by
12421   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12422   # unless we find 'file', for example because we are cross-compiling.
12423   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12424   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12425     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12426     lt_cv_file_magic_cmd='func_win32_libid'
12427   else
12428     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12429     lt_cv_file_magic_cmd='$OBJDUMP -f'
12430   fi
12431   ;;
12432
12433 cegcc*)
12434   # use the weaker test based on 'objdump'. See mingw*.
12435   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12436   lt_cv_file_magic_cmd='$OBJDUMP -f'
12437   ;;
12438
12439 darwin* | rhapsody*)
12440   lt_cv_deplibs_check_method=pass_all
12441   ;;
12442
12443 freebsd* | dragonfly*)
12444   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12445     case $host_cpu in
12446     i*86 )
12447       # Not sure whether the presence of OpenBSD here was a mistake.
12448       # Let's accept both of them until this is cleared up.
12449       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12450       lt_cv_file_magic_cmd=/usr/bin/file
12451       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12452       ;;
12453     esac
12454   else
12455     lt_cv_deplibs_check_method=pass_all
12456   fi
12457   ;;
12458
12459 gnu*)
12460   lt_cv_deplibs_check_method=pass_all
12461   ;;
12462
12463 haiku*)
12464   lt_cv_deplibs_check_method=pass_all
12465   ;;
12466
12467 hpux10.20* | hpux11*)
12468   lt_cv_file_magic_cmd=/usr/bin/file
12469   case $host_cpu in
12470   ia64*)
12471     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12472     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12473     ;;
12474   hppa*64*)
12475     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]'
12476     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12477     ;;
12478   *)
12479     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12480     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12481     ;;
12482   esac
12483   ;;
12484
12485 interix[3-9]*)
12486   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12487   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12488   ;;
12489
12490 irix5* | irix6* | nonstopux*)
12491   case $LD in
12492   *-32|*"-32 ") libmagic=32-bit;;
12493   *-n32|*"-n32 ") libmagic=N32;;
12494   *-64|*"-64 ") libmagic=64-bit;;
12495   *) libmagic=never-match;;
12496   esac
12497   lt_cv_deplibs_check_method=pass_all
12498   ;;
12499
12500 # This must be Linux ELF.
12501 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12502   lt_cv_deplibs_check_method=pass_all
12503   ;;
12504
12505 netbsd*)
12506   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12507     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12508   else
12509     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12510   fi
12511   ;;
12512
12513 newos6*)
12514   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12515   lt_cv_file_magic_cmd=/usr/bin/file
12516   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12517   ;;
12518
12519 *nto* | *qnx*)
12520   lt_cv_deplibs_check_method=pass_all
12521   ;;
12522
12523 openbsd*)
12524   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12525     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12526   else
12527     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12528   fi
12529   ;;
12530
12531 osf3* | osf4* | osf5*)
12532   lt_cv_deplibs_check_method=pass_all
12533   ;;
12534
12535 rdos*)
12536   lt_cv_deplibs_check_method=pass_all
12537   ;;
12538
12539 solaris*)
12540   lt_cv_deplibs_check_method=pass_all
12541   ;;
12542
12543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12544   lt_cv_deplibs_check_method=pass_all
12545   ;;
12546
12547 sysv4 | sysv4.3*)
12548   case $host_vendor in
12549   motorola)
12550     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]'
12551     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12552     ;;
12553   ncr)
12554     lt_cv_deplibs_check_method=pass_all
12555     ;;
12556   sequent)
12557     lt_cv_file_magic_cmd='/bin/file'
12558     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12559     ;;
12560   sni)
12561     lt_cv_file_magic_cmd='/bin/file'
12562     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12563     lt_cv_file_magic_test_file=/lib/libc.so
12564     ;;
12565   siemens)
12566     lt_cv_deplibs_check_method=pass_all
12567     ;;
12568   pc)
12569     lt_cv_deplibs_check_method=pass_all
12570     ;;
12571   esac
12572   ;;
12573
12574 tpf*)
12575   lt_cv_deplibs_check_method=pass_all
12576   ;;
12577 esac
12578
12579 fi
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12581 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12582 file_magic_cmd=$lt_cv_file_magic_cmd
12583 deplibs_check_method=$lt_cv_deplibs_check_method
12584 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597 if test -n "$ac_tool_prefix"; then
12598   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12599 set dummy ${ac_tool_prefix}ar; ac_word=$2
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12601 $as_echo_n "checking for $ac_word... " >&6; }
12602 if test "${ac_cv_prog_AR+set}" = set; then :
12603   $as_echo_n "(cached) " >&6
12604 else
12605   if test -n "$AR"; then
12606   ac_cv_prog_AR="$AR" # Let the user override the test.
12607 else
12608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12609 for as_dir in $PATH
12610 do
12611   IFS=$as_save_IFS
12612   test -z "$as_dir" && as_dir=.
12613     for ac_exec_ext in '' $ac_executable_extensions; do
12614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12615     ac_cv_prog_AR="${ac_tool_prefix}ar"
12616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12617     break 2
12618   fi
12619 done
12620   done
12621 IFS=$as_save_IFS
12622
12623 fi
12624 fi
12625 AR=$ac_cv_prog_AR
12626 if test -n "$AR"; then
12627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12628 $as_echo "$AR" >&6; }
12629 else
12630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12631 $as_echo "no" >&6; }
12632 fi
12633
12634
12635 fi
12636 if test -z "$ac_cv_prog_AR"; then
12637   ac_ct_AR=$AR
12638   # Extract the first word of "ar", so it can be a program name with args.
12639 set dummy ar; ac_word=$2
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12641 $as_echo_n "checking for $ac_word... " >&6; }
12642 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12643   $as_echo_n "(cached) " >&6
12644 else
12645   if test -n "$ac_ct_AR"; then
12646   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12647 else
12648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12649 for as_dir in $PATH
12650 do
12651   IFS=$as_save_IFS
12652   test -z "$as_dir" && as_dir=.
12653     for ac_exec_ext in '' $ac_executable_extensions; do
12654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12655     ac_cv_prog_ac_ct_AR="ar"
12656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12657     break 2
12658   fi
12659 done
12660   done
12661 IFS=$as_save_IFS
12662
12663 fi
12664 fi
12665 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12666 if test -n "$ac_ct_AR"; then
12667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12668 $as_echo "$ac_ct_AR" >&6; }
12669 else
12670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12671 $as_echo "no" >&6; }
12672 fi
12673
12674   if test "x$ac_ct_AR" = x; then
12675     AR="false"
12676   else
12677     case $cross_compiling:$ac_tool_warned in
12678 yes:)
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12681 ac_tool_warned=yes ;;
12682 esac
12683     AR=$ac_ct_AR
12684   fi
12685 else
12686   AR="$ac_cv_prog_AR"
12687 fi
12688
12689 test -z "$AR" && AR=ar
12690 test -z "$AR_FLAGS" && AR_FLAGS=cru
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702 if test -n "$ac_tool_prefix"; then
12703   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12704 set dummy ${ac_tool_prefix}strip; ac_word=$2
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12706 $as_echo_n "checking for $ac_word... " >&6; }
12707 if test "${ac_cv_prog_STRIP+set}" = set; then :
12708   $as_echo_n "(cached) " >&6
12709 else
12710   if test -n "$STRIP"; then
12711   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12712 else
12713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12714 for as_dir in $PATH
12715 do
12716   IFS=$as_save_IFS
12717   test -z "$as_dir" && as_dir=.
12718     for ac_exec_ext in '' $ac_executable_extensions; do
12719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12720     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12722     break 2
12723   fi
12724 done
12725   done
12726 IFS=$as_save_IFS
12727
12728 fi
12729 fi
12730 STRIP=$ac_cv_prog_STRIP
12731 if test -n "$STRIP"; then
12732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12733 $as_echo "$STRIP" >&6; }
12734 else
12735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12736 $as_echo "no" >&6; }
12737 fi
12738
12739
12740 fi
12741 if test -z "$ac_cv_prog_STRIP"; then
12742   ac_ct_STRIP=$STRIP
12743   # Extract the first word of "strip", so it can be a program name with args.
12744 set dummy strip; ac_word=$2
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12746 $as_echo_n "checking for $ac_word... " >&6; }
12747 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12748   $as_echo_n "(cached) " >&6
12749 else
12750   if test -n "$ac_ct_STRIP"; then
12751   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12752 else
12753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12754 for as_dir in $PATH
12755 do
12756   IFS=$as_save_IFS
12757   test -z "$as_dir" && as_dir=.
12758     for ac_exec_ext in '' $ac_executable_extensions; do
12759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12760     ac_cv_prog_ac_ct_STRIP="strip"
12761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12762     break 2
12763   fi
12764 done
12765   done
12766 IFS=$as_save_IFS
12767
12768 fi
12769 fi
12770 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12771 if test -n "$ac_ct_STRIP"; then
12772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12773 $as_echo "$ac_ct_STRIP" >&6; }
12774 else
12775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12776 $as_echo "no" >&6; }
12777 fi
12778
12779   if test "x$ac_ct_STRIP" = x; then
12780     STRIP=":"
12781   else
12782     case $cross_compiling:$ac_tool_warned in
12783 yes:)
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12786 ac_tool_warned=yes ;;
12787 esac
12788     STRIP=$ac_ct_STRIP
12789   fi
12790 else
12791   STRIP="$ac_cv_prog_STRIP"
12792 fi
12793
12794 test -z "$STRIP" && STRIP=:
12795
12796
12797
12798
12799
12800
12801 if test -n "$ac_tool_prefix"; then
12802   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12803 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12805 $as_echo_n "checking for $ac_word... " >&6; }
12806 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12807   $as_echo_n "(cached) " >&6
12808 else
12809   if test -n "$RANLIB"; then
12810   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12811 else
12812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12813 for as_dir in $PATH
12814 do
12815   IFS=$as_save_IFS
12816   test -z "$as_dir" && as_dir=.
12817     for ac_exec_ext in '' $ac_executable_extensions; do
12818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12819     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12821     break 2
12822   fi
12823 done
12824   done
12825 IFS=$as_save_IFS
12826
12827 fi
12828 fi
12829 RANLIB=$ac_cv_prog_RANLIB
12830 if test -n "$RANLIB"; then
12831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12832 $as_echo "$RANLIB" >&6; }
12833 else
12834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12835 $as_echo "no" >&6; }
12836 fi
12837
12838
12839 fi
12840 if test -z "$ac_cv_prog_RANLIB"; then
12841   ac_ct_RANLIB=$RANLIB
12842   # Extract the first word of "ranlib", so it can be a program name with args.
12843 set dummy ranlib; ac_word=$2
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12845 $as_echo_n "checking for $ac_word... " >&6; }
12846 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12847   $as_echo_n "(cached) " >&6
12848 else
12849   if test -n "$ac_ct_RANLIB"; then
12850   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12851 else
12852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12853 for as_dir in $PATH
12854 do
12855   IFS=$as_save_IFS
12856   test -z "$as_dir" && as_dir=.
12857     for ac_exec_ext in '' $ac_executable_extensions; do
12858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12859     ac_cv_prog_ac_ct_RANLIB="ranlib"
12860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12861     break 2
12862   fi
12863 done
12864   done
12865 IFS=$as_save_IFS
12866
12867 fi
12868 fi
12869 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12870 if test -n "$ac_ct_RANLIB"; then
12871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12872 $as_echo "$ac_ct_RANLIB" >&6; }
12873 else
12874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12875 $as_echo "no" >&6; }
12876 fi
12877
12878   if test "x$ac_ct_RANLIB" = x; then
12879     RANLIB=":"
12880   else
12881     case $cross_compiling:$ac_tool_warned in
12882 yes:)
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12885 ac_tool_warned=yes ;;
12886 esac
12887     RANLIB=$ac_ct_RANLIB
12888   fi
12889 else
12890   RANLIB="$ac_cv_prog_RANLIB"
12891 fi
12892
12893 test -z "$RANLIB" && RANLIB=:
12894
12895
12896
12897
12898
12899
12900 # Determine commands to create old-style static archives.
12901 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12902 old_postinstall_cmds='chmod 644 $oldlib'
12903 old_postuninstall_cmds=
12904
12905 if test -n "$RANLIB"; then
12906   case $host_os in
12907   openbsd*)
12908     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12909     ;;
12910   *)
12911     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12912     ;;
12913   esac
12914   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12915 fi
12916
12917 case $host_os in
12918   darwin*)
12919     lock_old_archive_extraction=yes ;;
12920   *)
12921     lock_old_archive_extraction=no ;;
12922 esac
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962 # If no C compiler was specified, use CC.
12963 LTCC=${LTCC-"$CC"}
12964
12965 # If no C compiler flags were specified, use CFLAGS.
12966 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12967
12968 # Allow CC to be a program name with arguments.
12969 compiler=$CC
12970
12971
12972 # Check for command to grab the raw symbol name followed by C symbol from nm.
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12974 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12975 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12976   $as_echo_n "(cached) " >&6
12977 else
12978
12979 # These are sane defaults that work on at least a few old systems.
12980 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12981
12982 # Character class describing NM global symbol codes.
12983 symcode='[BCDEGRST]'
12984
12985 # Regexp to match symbols that can be accessed directly from C.
12986 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12987
12988 # Define system-specific variables.
12989 case $host_os in
12990 aix*)
12991   symcode='[BCDT]'
12992   ;;
12993 cygwin* | mingw* | pw32* | cegcc*)
12994   symcode='[ABCDGISTW]'
12995   ;;
12996 hpux*)
12997   if test "$host_cpu" = ia64; then
12998     symcode='[ABCDEGRST]'
12999   fi
13000   ;;
13001 irix* | nonstopux*)
13002   symcode='[BCDEGRST]'
13003   ;;
13004 osf*)
13005   symcode='[BCDEGQRST]'
13006   ;;
13007 solaris*)
13008   symcode='[BDRT]'
13009   ;;
13010 sco3.2v5*)
13011   symcode='[DT]'
13012   ;;
13013 sysv4.2uw2*)
13014   symcode='[DT]'
13015   ;;
13016 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13017   symcode='[ABDT]'
13018   ;;
13019 sysv4)
13020   symcode='[DFNSTU]'
13021   ;;
13022 esac
13023
13024 # If we're using GNU nm, then use its standard symbol codes.
13025 case `$NM -V 2>&1` in
13026 *GNU* | *'with BFD'*)
13027   symcode='[ABCDGIRSTW]' ;;
13028 esac
13029
13030 # Transform an extracted symbol line into a proper C declaration.
13031 # Some systems (esp. on ia64) link data and code symbols differently,
13032 # so use this general approach.
13033 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13034
13035 # Transform an extracted symbol line into symbol name and symbol address
13036 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13037 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'"
13038
13039 # Handle CRLF in mingw tool chain
13040 opt_cr=
13041 case $build_os in
13042 mingw*)
13043   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13044   ;;
13045 esac
13046
13047 # Try without a prefix underscore, then with it.
13048 for ac_symprfx in "" "_"; do
13049
13050   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13051   symxfrm="\\1 $ac_symprfx\\2 \\2"
13052
13053   # Write the raw and C identifiers.
13054   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13055     # Fake it for dumpbin and say T for any non-static function
13056     # and D for any global variable.
13057     # Also find C++ and __fastcall symbols from MSVC++,
13058     # which start with @ or ?.
13059     lt_cv_sys_global_symbol_pipe="$AWK '"\
13060 "     {last_section=section; section=\$ 3};"\
13061 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13062 "     \$ 0!~/External *\|/{next};"\
13063 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13064 "     {if(hide[section]) next};"\
13065 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13066 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13067 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13068 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13069 "     ' prfx=^$ac_symprfx"
13070   else
13071     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13072   fi
13073
13074   # Check to see that the pipe works correctly.
13075   pipe_works=no
13076
13077   rm -f conftest*
13078   cat > conftest.$ac_ext <<_LT_EOF
13079 #ifdef __cplusplus
13080 extern "C" {
13081 #endif
13082 char nm_test_var;
13083 void nm_test_func(void);
13084 void nm_test_func(void){}
13085 #ifdef __cplusplus
13086 }
13087 #endif
13088 int main(){nm_test_var='a';nm_test_func();return(0);}
13089 _LT_EOF
13090
13091   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13092   (eval $ac_compile) 2>&5
13093   ac_status=$?
13094   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13095   test $ac_status = 0; }; then
13096     # Now try to grab the symbols.
13097     nlist=conftest.nm
13098     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13099   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13100   ac_status=$?
13101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13102   test $ac_status = 0; } && test -s "$nlist"; then
13103       # Try sorting and uniquifying the output.
13104       if sort "$nlist" | uniq > "$nlist"T; then
13105         mv -f "$nlist"T "$nlist"
13106       else
13107         rm -f "$nlist"T
13108       fi
13109
13110       # Make sure that we snagged all the symbols we need.
13111       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13112         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13113           cat <<_LT_EOF > conftest.$ac_ext
13114 #ifdef __cplusplus
13115 extern "C" {
13116 #endif
13117
13118 _LT_EOF
13119           # Now generate the symbol file.
13120           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13121
13122           cat <<_LT_EOF >> conftest.$ac_ext
13123
13124 /* The mapping between symbol names and symbols.  */
13125 const struct {
13126   const char *name;
13127   void       *address;
13128 }
13129 lt__PROGRAM__LTX_preloaded_symbols[] =
13130 {
13131   { "@PROGRAM@", (void *) 0 },
13132 _LT_EOF
13133           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13134           cat <<\_LT_EOF >> conftest.$ac_ext
13135   {0, (void *) 0}
13136 };
13137
13138 /* This works around a problem in FreeBSD linker */
13139 #ifdef FREEBSD_WORKAROUND
13140 static const void *lt_preloaded_setup() {
13141   return lt__PROGRAM__LTX_preloaded_symbols;
13142 }
13143 #endif
13144
13145 #ifdef __cplusplus
13146 }
13147 #endif
13148 _LT_EOF
13149           # Now try linking the two files.
13150           mv conftest.$ac_objext conftstm.$ac_objext
13151           lt_save_LIBS="$LIBS"
13152           lt_save_CFLAGS="$CFLAGS"
13153           LIBS="conftstm.$ac_objext"
13154           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13155           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13156   (eval $ac_link) 2>&5
13157   ac_status=$?
13158   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13159   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13160             pipe_works=yes
13161           fi
13162           LIBS="$lt_save_LIBS"
13163           CFLAGS="$lt_save_CFLAGS"
13164         else
13165           echo "cannot find nm_test_func in $nlist" >&5
13166         fi
13167       else
13168         echo "cannot find nm_test_var in $nlist" >&5
13169       fi
13170     else
13171       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13172     fi
13173   else
13174     echo "$progname: failed program was:" >&5
13175     cat conftest.$ac_ext >&5
13176   fi
13177   rm -rf conftest* conftst*
13178
13179   # Do not use the global_symbol_pipe unless it works.
13180   if test "$pipe_works" = yes; then
13181     break
13182   else
13183     lt_cv_sys_global_symbol_pipe=
13184   fi
13185 done
13186
13187 fi
13188
13189 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13190   lt_cv_sys_global_symbol_to_cdecl=
13191 fi
13192 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13194 $as_echo "failed" >&6; }
13195 else
13196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13197 $as_echo "ok" >&6; }
13198 fi
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221 # Check whether --enable-libtool-lock was given.
13222 if test "${enable_libtool_lock+set}" = set; then :
13223   enableval=$enable_libtool_lock;
13224 fi
13225
13226 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13227
13228 # Some flags need to be propagated to the compiler or linker for good
13229 # libtool support.
13230 case $host in
13231 ia64-*-hpux*)
13232   # Find out which ABI we are using.
13233   echo 'int i;' > conftest.$ac_ext
13234   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13235   (eval $ac_compile) 2>&5
13236   ac_status=$?
13237   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13238   test $ac_status = 0; }; then
13239     case `/usr/bin/file conftest.$ac_objext` in
13240       *ELF-32*)
13241         HPUX_IA64_MODE="32"
13242         ;;
13243       *ELF-64*)
13244         HPUX_IA64_MODE="64"
13245         ;;
13246     esac
13247   fi
13248   rm -rf conftest*
13249   ;;
13250 *-*-irix6*)
13251   # Find out which ABI we are using.
13252   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13253   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13254   (eval $ac_compile) 2>&5
13255   ac_status=$?
13256   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13257   test $ac_status = 0; }; then
13258     if test "$lt_cv_prog_gnu_ld" = yes; then
13259       case `/usr/bin/file conftest.$ac_objext` in
13260         *32-bit*)
13261           LD="${LD-ld} -melf32bsmip"
13262           ;;
13263         *N32*)
13264           LD="${LD-ld} -melf32bmipn32"
13265           ;;
13266         *64-bit*)
13267           LD="${LD-ld} -melf64bmip"
13268         ;;
13269       esac
13270     else
13271       case `/usr/bin/file conftest.$ac_objext` in
13272         *32-bit*)
13273           LD="${LD-ld} -32"
13274           ;;
13275         *N32*)
13276           LD="${LD-ld} -n32"
13277           ;;
13278         *64-bit*)
13279           LD="${LD-ld} -64"
13280           ;;
13281       esac
13282     fi
13283   fi
13284   rm -rf conftest*
13285   ;;
13286
13287 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13288 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13289   # Find out which ABI we are using.
13290   echo 'int i;' > conftest.$ac_ext
13291   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13292   (eval $ac_compile) 2>&5
13293   ac_status=$?
13294   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13295   test $ac_status = 0; }; then
13296     case `/usr/bin/file conftest.o` in
13297       *32-bit*)
13298         case $host in
13299           x86_64-*kfreebsd*-gnu)
13300             LD="${LD-ld} -m elf_i386_fbsd"
13301             ;;
13302           x86_64-*linux*)
13303             LD="${LD-ld} -m elf_i386"
13304             ;;
13305           ppc64-*linux*|powerpc64-*linux*)
13306             LD="${LD-ld} -m elf32ppclinux"
13307             ;;
13308           s390x-*linux*)
13309             LD="${LD-ld} -m elf_s390"
13310             ;;
13311           sparc64-*linux*)
13312             LD="${LD-ld} -m elf32_sparc"
13313             ;;
13314         esac
13315         ;;
13316       *64-bit*)
13317         case $host in
13318           x86_64-*kfreebsd*-gnu)
13319             LD="${LD-ld} -m elf_x86_64_fbsd"
13320             ;;
13321           x86_64-*linux*)
13322             LD="${LD-ld} -m elf_x86_64"
13323             ;;
13324           ppc*-*linux*|powerpc*-*linux*)
13325             LD="${LD-ld} -m elf64ppc"
13326             ;;
13327           s390*-*linux*|s390*-*tpf*)
13328             LD="${LD-ld} -m elf64_s390"
13329             ;;
13330           sparc*-*linux*)
13331             LD="${LD-ld} -m elf64_sparc"
13332             ;;
13333         esac
13334         ;;
13335     esac
13336   fi
13337   rm -rf conftest*
13338   ;;
13339
13340 *-*-sco3.2v5*)
13341   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13342   SAVE_CFLAGS="$CFLAGS"
13343   CFLAGS="$CFLAGS -belf"
13344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13345 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13346 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13347   $as_echo_n "(cached) " >&6
13348 else
13349   ac_ext=c
13350 ac_cpp='$CPP $CPPFLAGS'
13351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13354
13355      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356 /* end confdefs.h.  */
13357
13358 int
13359 main ()
13360 {
13361
13362   ;
13363   return 0;
13364 }
13365 _ACEOF
13366 if ac_fn_c_try_link "$LINENO"; then :
13367   lt_cv_cc_needs_belf=yes
13368 else
13369   lt_cv_cc_needs_belf=no
13370 fi
13371 rm -f core conftest.err conftest.$ac_objext \
13372     conftest$ac_exeext conftest.$ac_ext
13373      ac_ext=c
13374 ac_cpp='$CPP $CPPFLAGS'
13375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13378
13379 fi
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13381 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13382   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13383     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13384     CFLAGS="$SAVE_CFLAGS"
13385   fi
13386   ;;
13387 sparc*-*solaris*)
13388   # Find out which ABI we are using.
13389   echo 'int i;' > conftest.$ac_ext
13390   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13391   (eval $ac_compile) 2>&5
13392   ac_status=$?
13393   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13394   test $ac_status = 0; }; then
13395     case `/usr/bin/file conftest.o` in
13396     *64-bit*)
13397       case $lt_cv_prog_gnu_ld in
13398       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13399       *)
13400         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13401           LD="${LD-ld} -64"
13402         fi
13403         ;;
13404       esac
13405       ;;
13406     esac
13407   fi
13408   rm -rf conftest*
13409   ;;
13410 esac
13411
13412 need_locks="$enable_libtool_lock"
13413
13414
13415   case $host_os in
13416     rhapsody* | darwin*)
13417     if test -n "$ac_tool_prefix"; then
13418   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13419 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13421 $as_echo_n "checking for $ac_word... " >&6; }
13422 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13423   $as_echo_n "(cached) " >&6
13424 else
13425   if test -n "$DSYMUTIL"; then
13426   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13427 else
13428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13429 for as_dir in $PATH
13430 do
13431   IFS=$as_save_IFS
13432   test -z "$as_dir" && as_dir=.
13433     for ac_exec_ext in '' $ac_executable_extensions; do
13434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13435     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13437     break 2
13438   fi
13439 done
13440   done
13441 IFS=$as_save_IFS
13442
13443 fi
13444 fi
13445 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13446 if test -n "$DSYMUTIL"; then
13447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13448 $as_echo "$DSYMUTIL" >&6; }
13449 else
13450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13451 $as_echo "no" >&6; }
13452 fi
13453
13454
13455 fi
13456 if test -z "$ac_cv_prog_DSYMUTIL"; then
13457   ac_ct_DSYMUTIL=$DSYMUTIL
13458   # Extract the first word of "dsymutil", so it can be a program name with args.
13459 set dummy dsymutil; ac_word=$2
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13461 $as_echo_n "checking for $ac_word... " >&6; }
13462 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13463   $as_echo_n "(cached) " >&6
13464 else
13465   if test -n "$ac_ct_DSYMUTIL"; then
13466   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13467 else
13468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13469 for as_dir in $PATH
13470 do
13471   IFS=$as_save_IFS
13472   test -z "$as_dir" && as_dir=.
13473     for ac_exec_ext in '' $ac_executable_extensions; do
13474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13475     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13477     break 2
13478   fi
13479 done
13480   done
13481 IFS=$as_save_IFS
13482
13483 fi
13484 fi
13485 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13486 if test -n "$ac_ct_DSYMUTIL"; then
13487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13488 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13489 else
13490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13491 $as_echo "no" >&6; }
13492 fi
13493
13494   if test "x$ac_ct_DSYMUTIL" = x; then
13495     DSYMUTIL=":"
13496   else
13497     case $cross_compiling:$ac_tool_warned in
13498 yes:)
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13501 ac_tool_warned=yes ;;
13502 esac
13503     DSYMUTIL=$ac_ct_DSYMUTIL
13504   fi
13505 else
13506   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13507 fi
13508
13509     if test -n "$ac_tool_prefix"; then
13510   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13511 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13513 $as_echo_n "checking for $ac_word... " >&6; }
13514 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13515   $as_echo_n "(cached) " >&6
13516 else
13517   if test -n "$NMEDIT"; then
13518   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13519 else
13520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13521 for as_dir in $PATH
13522 do
13523   IFS=$as_save_IFS
13524   test -z "$as_dir" && as_dir=.
13525     for ac_exec_ext in '' $ac_executable_extensions; do
13526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13527     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13529     break 2
13530   fi
13531 done
13532   done
13533 IFS=$as_save_IFS
13534
13535 fi
13536 fi
13537 NMEDIT=$ac_cv_prog_NMEDIT
13538 if test -n "$NMEDIT"; then
13539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13540 $as_echo "$NMEDIT" >&6; }
13541 else
13542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13543 $as_echo "no" >&6; }
13544 fi
13545
13546
13547 fi
13548 if test -z "$ac_cv_prog_NMEDIT"; then
13549   ac_ct_NMEDIT=$NMEDIT
13550   # Extract the first word of "nmedit", so it can be a program name with args.
13551 set dummy nmedit; ac_word=$2
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13553 $as_echo_n "checking for $ac_word... " >&6; }
13554 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13555   $as_echo_n "(cached) " >&6
13556 else
13557   if test -n "$ac_ct_NMEDIT"; then
13558   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13559 else
13560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13561 for as_dir in $PATH
13562 do
13563   IFS=$as_save_IFS
13564   test -z "$as_dir" && as_dir=.
13565     for ac_exec_ext in '' $ac_executable_extensions; do
13566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13567     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13569     break 2
13570   fi
13571 done
13572   done
13573 IFS=$as_save_IFS
13574
13575 fi
13576 fi
13577 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13578 if test -n "$ac_ct_NMEDIT"; then
13579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13580 $as_echo "$ac_ct_NMEDIT" >&6; }
13581 else
13582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13583 $as_echo "no" >&6; }
13584 fi
13585
13586   if test "x$ac_ct_NMEDIT" = x; then
13587     NMEDIT=":"
13588   else
13589     case $cross_compiling:$ac_tool_warned in
13590 yes:)
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13593 ac_tool_warned=yes ;;
13594 esac
13595     NMEDIT=$ac_ct_NMEDIT
13596   fi
13597 else
13598   NMEDIT="$ac_cv_prog_NMEDIT"
13599 fi
13600
13601     if test -n "$ac_tool_prefix"; then
13602   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13603 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13605 $as_echo_n "checking for $ac_word... " >&6; }
13606 if test "${ac_cv_prog_LIPO+set}" = set; then :
13607   $as_echo_n "(cached) " >&6
13608 else
13609   if test -n "$LIPO"; then
13610   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13611 else
13612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13613 for as_dir in $PATH
13614 do
13615   IFS=$as_save_IFS
13616   test -z "$as_dir" && as_dir=.
13617     for ac_exec_ext in '' $ac_executable_extensions; do
13618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13619     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13621     break 2
13622   fi
13623 done
13624   done
13625 IFS=$as_save_IFS
13626
13627 fi
13628 fi
13629 LIPO=$ac_cv_prog_LIPO
13630 if test -n "$LIPO"; then
13631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13632 $as_echo "$LIPO" >&6; }
13633 else
13634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13635 $as_echo "no" >&6; }
13636 fi
13637
13638
13639 fi
13640 if test -z "$ac_cv_prog_LIPO"; then
13641   ac_ct_LIPO=$LIPO
13642   # Extract the first word of "lipo", so it can be a program name with args.
13643 set dummy lipo; ac_word=$2
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13645 $as_echo_n "checking for $ac_word... " >&6; }
13646 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13647   $as_echo_n "(cached) " >&6
13648 else
13649   if test -n "$ac_ct_LIPO"; then
13650   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13651 else
13652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13653 for as_dir in $PATH
13654 do
13655   IFS=$as_save_IFS
13656   test -z "$as_dir" && as_dir=.
13657     for ac_exec_ext in '' $ac_executable_extensions; do
13658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13659     ac_cv_prog_ac_ct_LIPO="lipo"
13660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13661     break 2
13662   fi
13663 done
13664   done
13665 IFS=$as_save_IFS
13666
13667 fi
13668 fi
13669 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13670 if test -n "$ac_ct_LIPO"; then
13671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13672 $as_echo "$ac_ct_LIPO" >&6; }
13673 else
13674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13675 $as_echo "no" >&6; }
13676 fi
13677
13678   if test "x$ac_ct_LIPO" = x; then
13679     LIPO=":"
13680   else
13681     case $cross_compiling:$ac_tool_warned in
13682 yes:)
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13685 ac_tool_warned=yes ;;
13686 esac
13687     LIPO=$ac_ct_LIPO
13688   fi
13689 else
13690   LIPO="$ac_cv_prog_LIPO"
13691 fi
13692
13693     if test -n "$ac_tool_prefix"; then
13694   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13695 set dummy ${ac_tool_prefix}otool; ac_word=$2
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13697 $as_echo_n "checking for $ac_word... " >&6; }
13698 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13699   $as_echo_n "(cached) " >&6
13700 else
13701   if test -n "$OTOOL"; then
13702   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13703 else
13704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13705 for as_dir in $PATH
13706 do
13707   IFS=$as_save_IFS
13708   test -z "$as_dir" && as_dir=.
13709     for ac_exec_ext in '' $ac_executable_extensions; do
13710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13711     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13713     break 2
13714   fi
13715 done
13716   done
13717 IFS=$as_save_IFS
13718
13719 fi
13720 fi
13721 OTOOL=$ac_cv_prog_OTOOL
13722 if test -n "$OTOOL"; then
13723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13724 $as_echo "$OTOOL" >&6; }
13725 else
13726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13727 $as_echo "no" >&6; }
13728 fi
13729
13730
13731 fi
13732 if test -z "$ac_cv_prog_OTOOL"; then
13733   ac_ct_OTOOL=$OTOOL
13734   # Extract the first word of "otool", so it can be a program name with args.
13735 set dummy otool; ac_word=$2
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13737 $as_echo_n "checking for $ac_word... " >&6; }
13738 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13739   $as_echo_n "(cached) " >&6
13740 else
13741   if test -n "$ac_ct_OTOOL"; then
13742   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13743 else
13744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13745 for as_dir in $PATH
13746 do
13747   IFS=$as_save_IFS
13748   test -z "$as_dir" && as_dir=.
13749     for ac_exec_ext in '' $ac_executable_extensions; do
13750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13751     ac_cv_prog_ac_ct_OTOOL="otool"
13752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13753     break 2
13754   fi
13755 done
13756   done
13757 IFS=$as_save_IFS
13758
13759 fi
13760 fi
13761 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13762 if test -n "$ac_ct_OTOOL"; then
13763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13764 $as_echo "$ac_ct_OTOOL" >&6; }
13765 else
13766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13767 $as_echo "no" >&6; }
13768 fi
13769
13770   if test "x$ac_ct_OTOOL" = x; then
13771     OTOOL=":"
13772   else
13773     case $cross_compiling:$ac_tool_warned in
13774 yes:)
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13777 ac_tool_warned=yes ;;
13778 esac
13779     OTOOL=$ac_ct_OTOOL
13780   fi
13781 else
13782   OTOOL="$ac_cv_prog_OTOOL"
13783 fi
13784
13785     if test -n "$ac_tool_prefix"; then
13786   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13787 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13789 $as_echo_n "checking for $ac_word... " >&6; }
13790 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13791   $as_echo_n "(cached) " >&6
13792 else
13793   if test -n "$OTOOL64"; then
13794   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13795 else
13796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13797 for as_dir in $PATH
13798 do
13799   IFS=$as_save_IFS
13800   test -z "$as_dir" && as_dir=.
13801     for ac_exec_ext in '' $ac_executable_extensions; do
13802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13803     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13805     break 2
13806   fi
13807 done
13808   done
13809 IFS=$as_save_IFS
13810
13811 fi
13812 fi
13813 OTOOL64=$ac_cv_prog_OTOOL64
13814 if test -n "$OTOOL64"; then
13815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13816 $as_echo "$OTOOL64" >&6; }
13817 else
13818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13819 $as_echo "no" >&6; }
13820 fi
13821
13822
13823 fi
13824 if test -z "$ac_cv_prog_OTOOL64"; then
13825   ac_ct_OTOOL64=$OTOOL64
13826   # Extract the first word of "otool64", so it can be a program name with args.
13827 set dummy otool64; ac_word=$2
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13829 $as_echo_n "checking for $ac_word... " >&6; }
13830 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13831   $as_echo_n "(cached) " >&6
13832 else
13833   if test -n "$ac_ct_OTOOL64"; then
13834   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13835 else
13836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13837 for as_dir in $PATH
13838 do
13839   IFS=$as_save_IFS
13840   test -z "$as_dir" && as_dir=.
13841     for ac_exec_ext in '' $ac_executable_extensions; do
13842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13843     ac_cv_prog_ac_ct_OTOOL64="otool64"
13844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13845     break 2
13846   fi
13847 done
13848   done
13849 IFS=$as_save_IFS
13850
13851 fi
13852 fi
13853 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13854 if test -n "$ac_ct_OTOOL64"; then
13855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13856 $as_echo "$ac_ct_OTOOL64" >&6; }
13857 else
13858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13859 $as_echo "no" >&6; }
13860 fi
13861
13862   if test "x$ac_ct_OTOOL64" = x; then
13863     OTOOL64=":"
13864   else
13865     case $cross_compiling:$ac_tool_warned in
13866 yes:)
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13869 ac_tool_warned=yes ;;
13870 esac
13871     OTOOL64=$ac_ct_OTOOL64
13872   fi
13873 else
13874   OTOOL64="$ac_cv_prog_OTOOL64"
13875 fi
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13904 $as_echo_n "checking for -single_module linker flag... " >&6; }
13905 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13906   $as_echo_n "(cached) " >&6
13907 else
13908   lt_cv_apple_cc_single_mod=no
13909       if test -z "${LT_MULTI_MODULE}"; then
13910         # By default we will add the -single_module flag. You can override
13911         # by either setting the environment variable LT_MULTI_MODULE
13912         # non-empty at configure time, or by adding -multi_module to the
13913         # link flags.
13914         rm -rf libconftest.dylib*
13915         echo "int foo(void){return 1;}" > conftest.c
13916         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13917 -dynamiclib -Wl,-single_module conftest.c" >&5
13918         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13919           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13920         _lt_result=$?
13921         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13922           lt_cv_apple_cc_single_mod=yes
13923         else
13924           cat conftest.err >&5
13925         fi
13926         rm -rf libconftest.dylib*
13927         rm -f conftest.*
13928       fi
13929 fi
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13931 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13932     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13933 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13934 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13935   $as_echo_n "(cached) " >&6
13936 else
13937   lt_cv_ld_exported_symbols_list=no
13938       save_LDFLAGS=$LDFLAGS
13939       echo "_main" > conftest.sym
13940       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13941       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h.  */
13943
13944 int
13945 main ()
13946 {
13947
13948   ;
13949   return 0;
13950 }
13951 _ACEOF
13952 if ac_fn_c_try_link "$LINENO"; then :
13953   lt_cv_ld_exported_symbols_list=yes
13954 else
13955   lt_cv_ld_exported_symbols_list=no
13956 fi
13957 rm -f core conftest.err conftest.$ac_objext \
13958     conftest$ac_exeext conftest.$ac_ext
13959         LDFLAGS="$save_LDFLAGS"
13960
13961 fi
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13963 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13964     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13965 $as_echo_n "checking for -force_load linker flag... " >&6; }
13966 if test "${lt_cv_ld_force_load+set}" = set; then :
13967   $as_echo_n "(cached) " >&6
13968 else
13969   lt_cv_ld_force_load=no
13970       cat > conftest.c << _LT_EOF
13971 int forced_loaded() { return 2;}
13972 _LT_EOF
13973       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13974       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13975       echo "$AR cru libconftest.a conftest.o" >&5
13976       $AR cru libconftest.a conftest.o 2>&5
13977       cat > conftest.c << _LT_EOF
13978 int main() { return 0;}
13979 _LT_EOF
13980       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13981       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13982       _lt_result=$?
13983       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13984         lt_cv_ld_force_load=yes
13985       else
13986         cat conftest.err >&5
13987       fi
13988         rm -f conftest.err libconftest.a conftest conftest.c
13989         rm -rf conftest.dSYM
13990
13991 fi
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13993 $as_echo "$lt_cv_ld_force_load" >&6; }
13994     case $host_os in
13995     rhapsody* | darwin1.[012])
13996       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13997     darwin1.*)
13998       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13999     darwin*) # darwin 5.x on
14000       # if running on 10.5 or later, the deployment target defaults
14001       # to the OS version, if on x86, and 10.4, the deployment
14002       # target defaults to 10.4. Don't you love it?
14003       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14004         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14005           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14006         10.[012]*)
14007           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14008         10.*)
14009           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14010       esac
14011     ;;
14012   esac
14013     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14014       _lt_dar_single_mod='$single_module'
14015     fi
14016     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14017       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14018     else
14019       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14020     fi
14021     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14022       _lt_dsymutil='~$DSYMUTIL $lib || :'
14023     else
14024       _lt_dsymutil=
14025     fi
14026     ;;
14027   esac
14028
14029 for ac_header in dlfcn.h
14030 do :
14031   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14032 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14033   cat >>confdefs.h <<_ACEOF
14034 #define HAVE_DLFCN_H 1
14035 _ACEOF
14036
14037 fi
14038 done
14039
14040
14041
14042
14043
14044 # Set options
14045
14046
14047
14048         enable_dlopen=no
14049
14050
14051   enable_win32_dll=no
14052
14053
14054             # Check whether --enable-shared was given.
14055 if test "${enable_shared+set}" = set; then :
14056   enableval=$enable_shared; p=${PACKAGE-default}
14057     case $enableval in
14058     yes) enable_shared=yes ;;
14059     no) enable_shared=no ;;
14060     *)
14061       enable_shared=no
14062       # Look at the argument we got.  We use all the common list separators.
14063       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14064       for pkg in $enableval; do
14065         IFS="$lt_save_ifs"
14066         if test "X$pkg" = "X$p"; then
14067           enable_shared=yes
14068         fi
14069       done
14070       IFS="$lt_save_ifs"
14071       ;;
14072     esac
14073 else
14074   enable_shared=yes
14075 fi
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085   # Check whether --enable-static was given.
14086 if test "${enable_static+set}" = set; then :
14087   enableval=$enable_static; p=${PACKAGE-default}
14088     case $enableval in
14089     yes) enable_static=yes ;;
14090     no) enable_static=no ;;
14091     *)
14092      enable_static=no
14093       # Look at the argument we got.  We use all the common list separators.
14094       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14095       for pkg in $enableval; do
14096         IFS="$lt_save_ifs"
14097         if test "X$pkg" = "X$p"; then
14098           enable_static=yes
14099         fi
14100       done
14101       IFS="$lt_save_ifs"
14102       ;;
14103     esac
14104 else
14105   enable_static=yes
14106 fi
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117 # Check whether --with-pic was given.
14118 if test "${with_pic+set}" = set; then :
14119   withval=$with_pic; pic_mode="$withval"
14120 else
14121   pic_mode=default
14122 fi
14123
14124
14125 test -z "$pic_mode" && pic_mode=default
14126
14127
14128
14129
14130
14131
14132
14133   # Check whether --enable-fast-install was given.
14134 if test "${enable_fast_install+set}" = set; then :
14135   enableval=$enable_fast_install; p=${PACKAGE-default}
14136     case $enableval in
14137     yes) enable_fast_install=yes ;;
14138     no) enable_fast_install=no ;;
14139     *)
14140       enable_fast_install=no
14141       # Look at the argument we got.  We use all the common list separators.
14142       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14143       for pkg in $enableval; do
14144         IFS="$lt_save_ifs"
14145         if test "X$pkg" = "X$p"; then
14146           enable_fast_install=yes
14147         fi
14148       done
14149       IFS="$lt_save_ifs"
14150       ;;
14151     esac
14152 else
14153   enable_fast_install=yes
14154 fi
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166 # This can be used to rebuild libtool when needed
14167 LIBTOOL_DEPS="$ltmain"
14168
14169 # Always use our own libtool.
14170 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197 test -z "$LN_S" && LN_S="ln -s"
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212 if test -n "${ZSH_VERSION+set}" ; then
14213    setopt NO_GLOB_SUBST
14214 fi
14215
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14217 $as_echo_n "checking for objdir... " >&6; }
14218 if test "${lt_cv_objdir+set}" = set; then :
14219   $as_echo_n "(cached) " >&6
14220 else
14221   rm -f .libs 2>/dev/null
14222 mkdir .libs 2>/dev/null
14223 if test -d .libs; then
14224   lt_cv_objdir=.libs
14225 else
14226   # MS-DOS does not allow filenames that begin with a dot.
14227   lt_cv_objdir=_libs
14228 fi
14229 rmdir .libs 2>/dev/null
14230 fi
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14232 $as_echo "$lt_cv_objdir" >&6; }
14233 objdir=$lt_cv_objdir
14234
14235
14236
14237
14238
14239 cat >>confdefs.h <<_ACEOF
14240 #define LT_OBJDIR "$lt_cv_objdir/"
14241 _ACEOF
14242
14243
14244
14245
14246 case $host_os in
14247 aix3*)
14248   # AIX sometimes has problems with the GCC collect2 program.  For some
14249   # reason, if we set the COLLECT_NAMES environment variable, the problems
14250   # vanish in a puff of smoke.
14251   if test "X${COLLECT_NAMES+set}" != Xset; then
14252     COLLECT_NAMES=
14253     export COLLECT_NAMES
14254   fi
14255   ;;
14256 esac
14257
14258 # Global variables:
14259 ofile=libtool
14260 can_build_shared=yes
14261
14262 # All known linkers require a `.a' archive for static linking (except MSVC,
14263 # which needs '.lib').
14264 libext=a
14265
14266 with_gnu_ld="$lt_cv_prog_gnu_ld"
14267
14268 old_CC="$CC"
14269 old_CFLAGS="$CFLAGS"
14270
14271 # Set sane defaults for various variables
14272 test -z "$CC" && CC=cc
14273 test -z "$LTCC" && LTCC=$CC
14274 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14275 test -z "$LD" && LD=ld
14276 test -z "$ac_objext" && ac_objext=o
14277
14278 for cc_temp in $compiler""; do
14279   case $cc_temp in
14280     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14281     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14282     \-*) ;;
14283     *) break;;
14284   esac
14285 done
14286 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14287
14288
14289 # Only perform the check for file, if the check method requires it
14290 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14291 case $deplibs_check_method in
14292 file_magic*)
14293   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14294     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14295 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14296 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14297   $as_echo_n "(cached) " >&6
14298 else
14299   case $MAGIC_CMD in
14300 [\\/*] |  ?:[\\/]*)
14301   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14302   ;;
14303 *)
14304   lt_save_MAGIC_CMD="$MAGIC_CMD"
14305   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14306   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14307   for ac_dir in $ac_dummy; do
14308     IFS="$lt_save_ifs"
14309     test -z "$ac_dir" && ac_dir=.
14310     if test -f $ac_dir/${ac_tool_prefix}file; then
14311       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14312       if test -n "$file_magic_test_file"; then
14313         case $deplibs_check_method in
14314         "file_magic "*)
14315           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14316           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14317           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14318             $EGREP "$file_magic_regex" > /dev/null; then
14319             :
14320           else
14321             cat <<_LT_EOF 1>&2
14322
14323 *** Warning: the command libtool uses to detect shared libraries,
14324 *** $file_magic_cmd, produces output that libtool cannot recognize.
14325 *** The result is that libtool may fail to recognize shared libraries
14326 *** as such.  This will affect the creation of libtool libraries that
14327 *** depend on shared libraries, but programs linked with such libtool
14328 *** libraries will work regardless of this problem.  Nevertheless, you
14329 *** may want to report the problem to your system manager and/or to
14330 *** bug-libtool@gnu.org
14331
14332 _LT_EOF
14333           fi ;;
14334         esac
14335       fi
14336       break
14337     fi
14338   done
14339   IFS="$lt_save_ifs"
14340   MAGIC_CMD="$lt_save_MAGIC_CMD"
14341   ;;
14342 esac
14343 fi
14344
14345 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14346 if test -n "$MAGIC_CMD"; then
14347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14348 $as_echo "$MAGIC_CMD" >&6; }
14349 else
14350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351 $as_echo "no" >&6; }
14352 fi
14353
14354
14355
14356
14357
14358 if test -z "$lt_cv_path_MAGIC_CMD"; then
14359   if test -n "$ac_tool_prefix"; then
14360     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14361 $as_echo_n "checking for file... " >&6; }
14362 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14363   $as_echo_n "(cached) " >&6
14364 else
14365   case $MAGIC_CMD in
14366 [\\/*] |  ?:[\\/]*)
14367   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14368   ;;
14369 *)
14370   lt_save_MAGIC_CMD="$MAGIC_CMD"
14371   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14372   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14373   for ac_dir in $ac_dummy; do
14374     IFS="$lt_save_ifs"
14375     test -z "$ac_dir" && ac_dir=.
14376     if test -f $ac_dir/file; then
14377       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14378       if test -n "$file_magic_test_file"; then
14379         case $deplibs_check_method in
14380         "file_magic "*)
14381           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14382           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14383           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14384             $EGREP "$file_magic_regex" > /dev/null; then
14385             :
14386           else
14387             cat <<_LT_EOF 1>&2
14388
14389 *** Warning: the command libtool uses to detect shared libraries,
14390 *** $file_magic_cmd, produces output that libtool cannot recognize.
14391 *** The result is that libtool may fail to recognize shared libraries
14392 *** as such.  This will affect the creation of libtool libraries that
14393 *** depend on shared libraries, but programs linked with such libtool
14394 *** libraries will work regardless of this problem.  Nevertheless, you
14395 *** may want to report the problem to your system manager and/or to
14396 *** bug-libtool@gnu.org
14397
14398 _LT_EOF
14399           fi ;;
14400         esac
14401       fi
14402       break
14403     fi
14404   done
14405   IFS="$lt_save_ifs"
14406   MAGIC_CMD="$lt_save_MAGIC_CMD"
14407   ;;
14408 esac
14409 fi
14410
14411 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14412 if test -n "$MAGIC_CMD"; then
14413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14414 $as_echo "$MAGIC_CMD" >&6; }
14415 else
14416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14417 $as_echo "no" >&6; }
14418 fi
14419
14420
14421   else
14422     MAGIC_CMD=:
14423   fi
14424 fi
14425
14426   fi
14427   ;;
14428 esac
14429
14430 # Use C for the default configuration in the libtool script
14431
14432 lt_save_CC="$CC"
14433 ac_ext=c
14434 ac_cpp='$CPP $CPPFLAGS'
14435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14438
14439
14440 # Source file extension for C test sources.
14441 ac_ext=c
14442
14443 # Object file extension for compiled C test sources.
14444 objext=o
14445 objext=$objext
14446
14447 # Code to be used in simple compile tests
14448 lt_simple_compile_test_code="int some_variable = 0;"
14449
14450 # Code to be used in simple link tests
14451 lt_simple_link_test_code='int main(){return(0);}'
14452
14453
14454
14455
14456
14457
14458
14459 # If no C compiler was specified, use CC.
14460 LTCC=${LTCC-"$CC"}
14461
14462 # If no C compiler flags were specified, use CFLAGS.
14463 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14464
14465 # Allow CC to be a program name with arguments.
14466 compiler=$CC
14467
14468 # Save the default compiler, since it gets overwritten when the other
14469 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14470 compiler_DEFAULT=$CC
14471
14472 # save warnings/boilerplate of simple test code
14473 ac_outfile=conftest.$ac_objext
14474 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14475 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14476 _lt_compiler_boilerplate=`cat conftest.err`
14477 $RM conftest*
14478
14479 ac_outfile=conftest.$ac_objext
14480 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14481 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14482 _lt_linker_boilerplate=`cat conftest.err`
14483 $RM -r conftest*
14484
14485
14486 ## CAVEAT EMPTOR:
14487 ## There is no encapsulation within the following macros, do not change
14488 ## the running order or otherwise move them around unless you know exactly
14489 ## what you are doing...
14490 if test -n "$compiler"; then
14491
14492 lt_prog_compiler_no_builtin_flag=
14493
14494 if test "$GCC" = yes; then
14495   case $cc_basename in
14496   nvcc*)
14497     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14498   *)
14499     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14500   esac
14501
14502   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14503 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14504 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14505   $as_echo_n "(cached) " >&6
14506 else
14507   lt_cv_prog_compiler_rtti_exceptions=no
14508    ac_outfile=conftest.$ac_objext
14509    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14510    lt_compiler_flag="-fno-rtti -fno-exceptions"
14511    # Insert the option either (1) after the last *FLAGS variable, or
14512    # (2) before a word containing "conftest.", or (3) at the end.
14513    # Note that $ac_compile itself does not contain backslashes and begins
14514    # with a dollar sign (not a hyphen), so the echo should work correctly.
14515    # The option is referenced via a variable to avoid confusing sed.
14516    lt_compile=`echo "$ac_compile" | $SED \
14517    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14518    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14519    -e 's:$: $lt_compiler_flag:'`
14520    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14521    (eval "$lt_compile" 2>conftest.err)
14522    ac_status=$?
14523    cat conftest.err >&5
14524    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525    if (exit $ac_status) && test -s "$ac_outfile"; then
14526      # The compiler can only warn and ignore the option if not recognized
14527      # So say no if there are warnings other than the usual output.
14528      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14529      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14530      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14531        lt_cv_prog_compiler_rtti_exceptions=yes
14532      fi
14533    fi
14534    $RM conftest*
14535
14536 fi
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14538 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14539
14540 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14541     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14542 else
14543     :
14544 fi
14545
14546 fi
14547
14548
14549
14550
14551
14552
14553   lt_prog_compiler_wl=
14554 lt_prog_compiler_pic=
14555 lt_prog_compiler_static=
14556
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14558 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14559
14560   if test "$GCC" = yes; then
14561     lt_prog_compiler_wl='-Wl,'
14562     lt_prog_compiler_static='-static'
14563
14564     case $host_os in
14565       aix*)
14566       # All AIX code is PIC.
14567       if test "$host_cpu" = ia64; then
14568         # AIX 5 now supports IA64 processor
14569         lt_prog_compiler_static='-Bstatic'
14570       fi
14571       ;;
14572
14573     amigaos*)
14574       case $host_cpu in
14575       powerpc)
14576             # see comment about AmigaOS4 .so support
14577             lt_prog_compiler_pic='-fPIC'
14578         ;;
14579       m68k)
14580             # FIXME: we need at least 68020 code to build shared libraries, but
14581             # adding the `-m68020' flag to GCC prevents building anything better,
14582             # like `-m68040'.
14583             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14584         ;;
14585       esac
14586       ;;
14587
14588     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14589       # PIC is the default for these OSes.
14590       ;;
14591
14592     mingw* | cygwin* | pw32* | os2* | cegcc*)
14593       # This hack is so that the source file can tell whether it is being
14594       # built for inclusion in a dll (and should export symbols for example).
14595       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14596       # (--disable-auto-import) libraries
14597       lt_prog_compiler_pic='-DDLL_EXPORT'
14598       ;;
14599
14600     darwin* | rhapsody*)
14601       # PIC is the default on this platform
14602       # Common symbols not allowed in MH_DYLIB files
14603       lt_prog_compiler_pic='-fno-common'
14604       ;;
14605
14606     haiku*)
14607       # PIC is the default for Haiku.
14608       # The "-static" flag exists, but is broken.
14609       lt_prog_compiler_static=
14610       ;;
14611
14612     hpux*)
14613       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14614       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14615       # sets the default TLS model and affects inlining.
14616       case $host_cpu in
14617       hppa*64*)
14618         # +Z the default
14619         ;;
14620       *)
14621         lt_prog_compiler_pic='-fPIC'
14622         ;;
14623       esac
14624       ;;
14625
14626     interix[3-9]*)
14627       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14628       # Instead, we relocate shared libraries at runtime.
14629       ;;
14630
14631     msdosdjgpp*)
14632       # Just because we use GCC doesn't mean we suddenly get shared libraries
14633       # on systems that don't support them.
14634       lt_prog_compiler_can_build_shared=no
14635       enable_shared=no
14636       ;;
14637
14638     *nto* | *qnx*)
14639       # QNX uses GNU C++, but need to define -shared option too, otherwise
14640       # it will coredump.
14641       lt_prog_compiler_pic='-fPIC -shared'
14642       ;;
14643
14644     sysv4*MP*)
14645       if test -d /usr/nec; then
14646         lt_prog_compiler_pic=-Kconform_pic
14647       fi
14648       ;;
14649
14650     *)
14651       lt_prog_compiler_pic='-fPIC'
14652       ;;
14653     esac
14654
14655     case $cc_basename in
14656     nvcc*) # Cuda Compiler Driver 2.2
14657       lt_prog_compiler_wl='-Xlinker '
14658       lt_prog_compiler_pic='-Xcompiler -fPIC'
14659       ;;
14660     esac
14661   else
14662     # PORTME Check for flag to pass linker flags through the system compiler.
14663     case $host_os in
14664     aix*)
14665       lt_prog_compiler_wl='-Wl,'
14666       if test "$host_cpu" = ia64; then
14667         # AIX 5 now supports IA64 processor
14668         lt_prog_compiler_static='-Bstatic'
14669       else
14670         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14671       fi
14672       ;;
14673
14674     mingw* | cygwin* | pw32* | os2* | cegcc*)
14675       # This hack is so that the source file can tell whether it is being
14676       # built for inclusion in a dll (and should export symbols for example).
14677       lt_prog_compiler_pic='-DDLL_EXPORT'
14678       ;;
14679
14680     hpux9* | hpux10* | hpux11*)
14681       lt_prog_compiler_wl='-Wl,'
14682       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14683       # not for PA HP-UX.
14684       case $host_cpu in
14685       hppa*64*|ia64*)
14686         # +Z the default
14687         ;;
14688       *)
14689         lt_prog_compiler_pic='+Z'
14690         ;;
14691       esac
14692       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14693       lt_prog_compiler_static='${wl}-a ${wl}archive'
14694       ;;
14695
14696     irix5* | irix6* | nonstopux*)
14697       lt_prog_compiler_wl='-Wl,'
14698       # PIC (with -KPIC) is the default.
14699       lt_prog_compiler_static='-non_shared'
14700       ;;
14701
14702     linux* | k*bsd*-gnu | kopensolaris*-gnu)
14703       case $cc_basename in
14704       # old Intel for x86_64 which still supported -KPIC.
14705       ecc*)
14706         lt_prog_compiler_wl='-Wl,'
14707         lt_prog_compiler_pic='-KPIC'
14708         lt_prog_compiler_static='-static'
14709         ;;
14710       # icc used to be incompatible with GCC.
14711       # ICC 10 doesn't accept -KPIC any more.
14712       icc* | ifort*)
14713         lt_prog_compiler_wl='-Wl,'
14714         lt_prog_compiler_pic='-fPIC'
14715         lt_prog_compiler_static='-static'
14716         ;;
14717       # Lahey Fortran 8.1.
14718       lf95*)
14719         lt_prog_compiler_wl='-Wl,'
14720         lt_prog_compiler_pic='--shared'
14721         lt_prog_compiler_static='--static'
14722         ;;
14723       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14724         # Portland Group compilers (*not* the Pentium gcc compiler,
14725         # which looks to be a dead project)
14726         lt_prog_compiler_wl='-Wl,'
14727         lt_prog_compiler_pic='-fpic'
14728         lt_prog_compiler_static='-Bstatic'
14729         ;;
14730       ccc*)
14731         lt_prog_compiler_wl='-Wl,'
14732         # All Alpha code is PIC.
14733         lt_prog_compiler_static='-non_shared'
14734         ;;
14735       xl* | bgxl* | bgf* | mpixl*)
14736         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14737         lt_prog_compiler_wl='-Wl,'
14738         lt_prog_compiler_pic='-qpic'
14739         lt_prog_compiler_static='-qstaticlink'
14740         ;;
14741       *)
14742         case `$CC -V 2>&1 | sed 5q` in
14743         *Sun\ F* | *Sun*Fortran*)
14744           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14745           lt_prog_compiler_pic='-KPIC'
14746           lt_prog_compiler_static='-Bstatic'
14747           lt_prog_compiler_wl=''
14748           ;;
14749         *Sun\ C*)
14750           # Sun C 5.9
14751           lt_prog_compiler_pic='-KPIC'
14752           lt_prog_compiler_static='-Bstatic'
14753           lt_prog_compiler_wl='-Wl,'
14754           ;;
14755         esac
14756         ;;
14757       esac
14758       ;;
14759
14760     newsos6)
14761       lt_prog_compiler_pic='-KPIC'
14762       lt_prog_compiler_static='-Bstatic'
14763       ;;
14764
14765     *nto* | *qnx*)
14766       # QNX uses GNU C++, but need to define -shared option too, otherwise
14767       # it will coredump.
14768       lt_prog_compiler_pic='-fPIC -shared'
14769       ;;
14770
14771     osf3* | osf4* | osf5*)
14772       lt_prog_compiler_wl='-Wl,'
14773       # All OSF/1 code is PIC.
14774       lt_prog_compiler_static='-non_shared'
14775       ;;
14776
14777     rdos*)
14778       lt_prog_compiler_static='-non_shared'
14779       ;;
14780
14781     solaris*)
14782       lt_prog_compiler_pic='-KPIC'
14783       lt_prog_compiler_static='-Bstatic'
14784       case $cc_basename in
14785       f77* | f90* | f95*)
14786         lt_prog_compiler_wl='-Qoption ld ';;
14787       *)
14788         lt_prog_compiler_wl='-Wl,';;
14789       esac
14790       ;;
14791
14792     sunos4*)
14793       lt_prog_compiler_wl='-Qoption ld '
14794       lt_prog_compiler_pic='-PIC'
14795       lt_prog_compiler_static='-Bstatic'
14796       ;;
14797
14798     sysv4 | sysv4.2uw2* | sysv4.3*)
14799       lt_prog_compiler_wl='-Wl,'
14800       lt_prog_compiler_pic='-KPIC'
14801       lt_prog_compiler_static='-Bstatic'
14802       ;;
14803
14804     sysv4*MP*)
14805       if test -d /usr/nec ;then
14806         lt_prog_compiler_pic='-Kconform_pic'
14807         lt_prog_compiler_static='-Bstatic'
14808       fi
14809       ;;
14810
14811     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14812       lt_prog_compiler_wl='-Wl,'
14813       lt_prog_compiler_pic='-KPIC'
14814       lt_prog_compiler_static='-Bstatic'
14815       ;;
14816
14817     unicos*)
14818       lt_prog_compiler_wl='-Wl,'
14819       lt_prog_compiler_can_build_shared=no
14820       ;;
14821
14822     uts4*)
14823       lt_prog_compiler_pic='-pic'
14824       lt_prog_compiler_static='-Bstatic'
14825       ;;
14826
14827     *)
14828       lt_prog_compiler_can_build_shared=no
14829       ;;
14830     esac
14831   fi
14832
14833 case $host_os in
14834   # For platforms which do not support PIC, -DPIC is meaningless:
14835   *djgpp*)
14836     lt_prog_compiler_pic=
14837     ;;
14838   *)
14839     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14840     ;;
14841 esac
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14843 $as_echo "$lt_prog_compiler_pic" >&6; }
14844
14845
14846
14847
14848
14849
14850 #
14851 # Check to make sure the PIC flag actually works.
14852 #
14853 if test -n "$lt_prog_compiler_pic"; then
14854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14855 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14856 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14857   $as_echo_n "(cached) " >&6
14858 else
14859   lt_cv_prog_compiler_pic_works=no
14860    ac_outfile=conftest.$ac_objext
14861    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14862    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14863    # Insert the option either (1) after the last *FLAGS variable, or
14864    # (2) before a word containing "conftest.", or (3) at the end.
14865    # Note that $ac_compile itself does not contain backslashes and begins
14866    # with a dollar sign (not a hyphen), so the echo should work correctly.
14867    # The option is referenced via a variable to avoid confusing sed.
14868    lt_compile=`echo "$ac_compile" | $SED \
14869    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14870    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14871    -e 's:$: $lt_compiler_flag:'`
14872    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14873    (eval "$lt_compile" 2>conftest.err)
14874    ac_status=$?
14875    cat conftest.err >&5
14876    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877    if (exit $ac_status) && test -s "$ac_outfile"; then
14878      # The compiler can only warn and ignore the option if not recognized
14879      # So say no if there are warnings other than the usual output.
14880      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14881      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14882      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14883        lt_cv_prog_compiler_pic_works=yes
14884      fi
14885    fi
14886    $RM conftest*
14887
14888 fi
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14890 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14891
14892 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14893     case $lt_prog_compiler_pic in
14894      "" | " "*) ;;
14895      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14896      esac
14897 else
14898     lt_prog_compiler_pic=
14899      lt_prog_compiler_can_build_shared=no
14900 fi
14901
14902 fi
14903
14904
14905
14906
14907
14908
14909 #
14910 # Check to make sure the static flag actually works.
14911 #
14912 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14914 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14915 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14916   $as_echo_n "(cached) " >&6
14917 else
14918   lt_cv_prog_compiler_static_works=no
14919    save_LDFLAGS="$LDFLAGS"
14920    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14921    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14922    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14923      # The linker can only warn and ignore the option if not recognized
14924      # So say no if there are warnings
14925      if test -s conftest.err; then
14926        # Append any errors to the config.log.
14927        cat conftest.err 1>&5
14928        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14929        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14930        if diff conftest.exp conftest.er2 >/dev/null; then
14931          lt_cv_prog_compiler_static_works=yes
14932        fi
14933      else
14934        lt_cv_prog_compiler_static_works=yes
14935      fi
14936    fi
14937    $RM -r conftest*
14938    LDFLAGS="$save_LDFLAGS"
14939
14940 fi
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14942 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14943
14944 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14945     :
14946 else
14947     lt_prog_compiler_static=
14948 fi
14949
14950
14951
14952
14953
14954
14955
14956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14957 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14958 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14959   $as_echo_n "(cached) " >&6
14960 else
14961   lt_cv_prog_compiler_c_o=no
14962    $RM -r conftest 2>/dev/null
14963    mkdir conftest
14964    cd conftest
14965    mkdir out
14966    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14967
14968    lt_compiler_flag="-o out/conftest2.$ac_objext"
14969    # Insert the option either (1) after the last *FLAGS variable, or
14970    # (2) before a word containing "conftest.", or (3) at the end.
14971    # Note that $ac_compile itself does not contain backslashes and begins
14972    # with a dollar sign (not a hyphen), so the echo should work correctly.
14973    lt_compile=`echo "$ac_compile" | $SED \
14974    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14975    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14976    -e 's:$: $lt_compiler_flag:'`
14977    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14978    (eval "$lt_compile" 2>out/conftest.err)
14979    ac_status=$?
14980    cat out/conftest.err >&5
14981    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14983    then
14984      # The compiler can only warn and ignore the option if not recognized
14985      # So say no if there are warnings
14986      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14987      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14988      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14989        lt_cv_prog_compiler_c_o=yes
14990      fi
14991    fi
14992    chmod u+w . 2>&5
14993    $RM conftest*
14994    # SGI C++ compiler will create directory out/ii_files/ for
14995    # template instantiation
14996    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14997    $RM out/* && rmdir out
14998    cd ..
14999    $RM -r conftest
15000    $RM conftest*
15001
15002 fi
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15004 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15005
15006
15007
15008
15009
15010
15011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15012 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15013 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15014   $as_echo_n "(cached) " >&6
15015 else
15016   lt_cv_prog_compiler_c_o=no
15017    $RM -r conftest 2>/dev/null
15018    mkdir conftest
15019    cd conftest
15020    mkdir out
15021    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15022
15023    lt_compiler_flag="-o out/conftest2.$ac_objext"
15024    # Insert the option either (1) after the last *FLAGS variable, or
15025    # (2) before a word containing "conftest.", or (3) at the end.
15026    # Note that $ac_compile itself does not contain backslashes and begins
15027    # with a dollar sign (not a hyphen), so the echo should work correctly.
15028    lt_compile=`echo "$ac_compile" | $SED \
15029    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15030    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15031    -e 's:$: $lt_compiler_flag:'`
15032    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15033    (eval "$lt_compile" 2>out/conftest.err)
15034    ac_status=$?
15035    cat out/conftest.err >&5
15036    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15038    then
15039      # The compiler can only warn and ignore the option if not recognized
15040      # So say no if there are warnings
15041      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15042      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15043      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15044        lt_cv_prog_compiler_c_o=yes
15045      fi
15046    fi
15047    chmod u+w . 2>&5
15048    $RM conftest*
15049    # SGI C++ compiler will create directory out/ii_files/ for
15050    # template instantiation
15051    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15052    $RM out/* && rmdir out
15053    cd ..
15054    $RM -r conftest
15055    $RM conftest*
15056
15057 fi
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15059 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15060
15061
15062
15063
15064 hard_links="nottested"
15065 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15066   # do not overwrite the value of need_locks provided by the user
15067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15068 $as_echo_n "checking if we can lock with hard links... " >&6; }
15069   hard_links=yes
15070   $RM conftest*
15071   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15072   touch conftest.a
15073   ln conftest.a conftest.b 2>&5 || hard_links=no
15074   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15076 $as_echo "$hard_links" >&6; }
15077   if test "$hard_links" = no; then
15078     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15079 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15080     need_locks=warn
15081   fi
15082 else
15083   need_locks=no
15084 fi
15085
15086
15087
15088
15089
15090
15091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15092 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15093
15094   runpath_var=
15095   allow_undefined_flag=
15096   always_export_symbols=no
15097   archive_cmds=
15098   archive_expsym_cmds=
15099   compiler_needs_object=no
15100   enable_shared_with_static_runtimes=no
15101   export_dynamic_flag_spec=
15102   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15103   hardcode_automatic=no
15104   hardcode_direct=no
15105   hardcode_direct_absolute=no
15106   hardcode_libdir_flag_spec=
15107   hardcode_libdir_flag_spec_ld=
15108   hardcode_libdir_separator=
15109   hardcode_minus_L=no
15110   hardcode_shlibpath_var=unsupported
15111   inherit_rpath=no
15112   link_all_deplibs=unknown
15113   module_cmds=
15114   module_expsym_cmds=
15115   old_archive_from_new_cmds=
15116   old_archive_from_expsyms_cmds=
15117   thread_safe_flag_spec=
15118   whole_archive_flag_spec=
15119   # include_expsyms should be a list of space-separated symbols to be *always*
15120   # included in the symbol list
15121   include_expsyms=
15122   # exclude_expsyms can be an extended regexp of symbols to exclude
15123   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15124   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15125   # as well as any symbol that contains `d'.
15126   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15127   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15128   # platforms (ab)use it in PIC code, but their linkers get confused if
15129   # the symbol is explicitly referenced.  Since portable code cannot
15130   # rely on this symbol name, it's probably fine to never include it in
15131   # preloaded symbol tables.
15132   # Exclude shared library initialization/finalization symbols.
15133   extract_expsyms_cmds=
15134
15135   case $host_os in
15136   cygwin* | mingw* | pw32* | cegcc*)
15137     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15138     # When not using gcc, we currently assume that we are using
15139     # Microsoft Visual C++.
15140     if test "$GCC" != yes; then
15141       with_gnu_ld=no
15142     fi
15143     ;;
15144   interix*)
15145     # we just hope/assume this is gcc and not c89 (= MSVC++)
15146     with_gnu_ld=yes
15147     ;;
15148   openbsd*)
15149     with_gnu_ld=no
15150     ;;
15151   esac
15152
15153   ld_shlibs=yes
15154
15155   # On some targets, GNU ld is compatible enough with the native linker
15156   # that we're better off using the native interface for both.
15157   lt_use_gnu_ld_interface=no
15158   if test "$with_gnu_ld" = yes; then
15159     case $host_os in
15160       aix*)
15161         # The AIX port of GNU ld has always aspired to compatibility
15162         # with the native linker.  However, as the warning in the GNU ld
15163         # block says, versions before 2.19.5* couldn't really create working
15164         # shared libraries, regardless of the interface used.
15165         case `$LD -v 2>&1` in
15166           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15167           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15168           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15169           *)
15170             lt_use_gnu_ld_interface=yes
15171             ;;
15172         esac
15173         ;;
15174       *)
15175         lt_use_gnu_ld_interface=yes
15176         ;;
15177     esac
15178   fi
15179
15180   if test "$lt_use_gnu_ld_interface" = yes; then
15181     # If archive_cmds runs LD, not CC, wlarc should be empty
15182     wlarc='${wl}'
15183
15184     # Set some defaults for GNU ld with shared library support. These
15185     # are reset later if shared libraries are not supported. Putting them
15186     # here allows them to be overridden if necessary.
15187     runpath_var=LD_RUN_PATH
15188     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15189     export_dynamic_flag_spec='${wl}--export-dynamic'
15190     # ancient GNU ld didn't support --whole-archive et. al.
15191     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15192       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15193     else
15194       whole_archive_flag_spec=
15195     fi
15196     supports_anon_versioning=no
15197     case `$LD -v 2>&1` in
15198       *GNU\ gold*) supports_anon_versioning=yes ;;
15199       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15200       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15201       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15202       *\ 2.11.*) ;; # other 2.11 versions
15203       *) supports_anon_versioning=yes ;;
15204     esac
15205
15206     # See if GNU ld supports shared libraries.
15207     case $host_os in
15208     aix[3-9]*)
15209       # On AIX/PPC, the GNU linker is very broken
15210       if test "$host_cpu" != ia64; then
15211         ld_shlibs=no
15212         cat <<_LT_EOF 1>&2
15213
15214 *** Warning: the GNU linker, at least up to release 2.19, is reported
15215 *** to be unable to reliably create shared libraries on AIX.
15216 *** Therefore, libtool is disabling shared libraries support.  If you
15217 *** really care for shared libraries, you may want to install binutils
15218 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15219 *** You will then need to restart the configuration process.
15220
15221 _LT_EOF
15222       fi
15223       ;;
15224
15225     amigaos*)
15226       case $host_cpu in
15227       powerpc)
15228             # see comment about AmigaOS4 .so support
15229             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15230             archive_expsym_cmds=''
15231         ;;
15232       m68k)
15233             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)'
15234             hardcode_libdir_flag_spec='-L$libdir'
15235             hardcode_minus_L=yes
15236         ;;
15237       esac
15238       ;;
15239
15240     beos*)
15241       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15242         allow_undefined_flag=unsupported
15243         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15244         # support --undefined.  This deserves some investigation.  FIXME
15245         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15246       else
15247         ld_shlibs=no
15248       fi
15249       ;;
15250
15251     cygwin* | mingw* | pw32* | cegcc*)
15252       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15253       # as there is no search path for DLLs.
15254       hardcode_libdir_flag_spec='-L$libdir'
15255       export_dynamic_flag_spec='${wl}--export-all-symbols'
15256       allow_undefined_flag=unsupported
15257       always_export_symbols=no
15258       enable_shared_with_static_runtimes=yes
15259       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15260
15261       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15262         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15263         # If the export-symbols file already is a .def file (1st line
15264         # is EXPORTS), use it as is; otherwise, prepend...
15265         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15266           cp $export_symbols $output_objdir/$soname.def;
15267         else
15268           echo EXPORTS > $output_objdir/$soname.def;
15269           cat $export_symbols >> $output_objdir/$soname.def;
15270         fi~
15271         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15272       else
15273         ld_shlibs=no
15274       fi
15275       ;;
15276
15277     haiku*)
15278       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15279       link_all_deplibs=yes
15280       ;;
15281
15282     interix[3-9]*)
15283       hardcode_direct=no
15284       hardcode_shlibpath_var=no
15285       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15286       export_dynamic_flag_spec='${wl}-E'
15287       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15288       # Instead, shared libraries are loaded at an image base (0x10000000 by
15289       # default) and relocated if they conflict, which is a slow very memory
15290       # consuming and fragmenting process.  To avoid this, we pick a random,
15291       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15292       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15293       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15294       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'
15295       ;;
15296
15297     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15298       tmp_diet=no
15299       if test "$host_os" = linux-dietlibc; then
15300         case $cc_basename in
15301           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15302         esac
15303       fi
15304       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15305          && test "$tmp_diet" = no
15306       then
15307         tmp_addflag=
15308         tmp_sharedflag='-shared'
15309         case $cc_basename,$host_cpu in
15310         pgcc*)                          # Portland Group C compiler
15311           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'
15312           tmp_addflag=' $pic_flag'
15313           ;;
15314         pgf77* | pgf90* | pgf95* | pgfortran*)
15315                                         # Portland Group f77 and f90 compilers
15316           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'
15317           tmp_addflag=' $pic_flag -Mnomain' ;;
15318         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15319           tmp_addflag=' -i_dynamic' ;;
15320         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15321           tmp_addflag=' -i_dynamic -nofor_main' ;;
15322         ifc* | ifort*)                  # Intel Fortran compiler
15323           tmp_addflag=' -nofor_main' ;;
15324         lf95*)                          # Lahey Fortran 8.1
15325           whole_archive_flag_spec=
15326           tmp_sharedflag='--shared' ;;
15327         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15328           tmp_sharedflag='-qmkshrobj'
15329           tmp_addflag= ;;
15330         nvcc*)  # Cuda Compiler Driver 2.2
15331           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'
15332           compiler_needs_object=yes
15333           ;;
15334         esac
15335         case `$CC -V 2>&1 | sed 5q` in
15336         *Sun\ C*)                       # Sun C 5.9
15337           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'
15338           compiler_needs_object=yes
15339           tmp_sharedflag='-G' ;;
15340         *Sun\ F*)                       # Sun Fortran 8.3
15341           tmp_sharedflag='-G' ;;
15342         esac
15343         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15344
15345         if test "x$supports_anon_versioning" = xyes; then
15346           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15347             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15348             echo "local: *; };" >> $output_objdir/$libname.ver~
15349             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15350         fi
15351
15352         case $cc_basename in
15353         xlf* | bgf* | bgxlf* | mpixlf*)
15354           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15355           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15356           hardcode_libdir_flag_spec=
15357           hardcode_libdir_flag_spec_ld='-rpath $libdir'
15358           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15359           if test "x$supports_anon_versioning" = xyes; then
15360             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15361               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15362               echo "local: *; };" >> $output_objdir/$libname.ver~
15363               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15364           fi
15365           ;;
15366         esac
15367       else
15368         ld_shlibs=no
15369       fi
15370       ;;
15371
15372     netbsd*)
15373       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15374         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15375         wlarc=
15376       else
15377         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15378         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15379       fi
15380       ;;
15381
15382     solaris*)
15383       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15384         ld_shlibs=no
15385         cat <<_LT_EOF 1>&2
15386
15387 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15388 *** create shared libraries on Solaris systems.  Therefore, libtool
15389 *** is disabling shared libraries support.  We urge you to upgrade GNU
15390 *** binutils to release 2.9.1 or newer.  Another option is to modify
15391 *** your PATH or compiler configuration so that the native linker is
15392 *** used, and then restart.
15393
15394 _LT_EOF
15395       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15396         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15397         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15398       else
15399         ld_shlibs=no
15400       fi
15401       ;;
15402
15403     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15404       case `$LD -v 2>&1` in
15405         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15406         ld_shlibs=no
15407         cat <<_LT_EOF 1>&2
15408
15409 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15410 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15411 *** is disabling shared libraries support.  We urge you to upgrade GNU
15412 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15413 *** your PATH or compiler configuration so that the native linker is
15414 *** used, and then restart.
15415
15416 _LT_EOF
15417         ;;
15418         *)
15419           # For security reasons, it is highly recommended that you always
15420           # use absolute paths for naming shared libraries, and exclude the
15421           # DT_RUNPATH tag from executables and libraries.  But doing so
15422           # requires that you compile everything twice, which is a pain.
15423           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15424             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15425             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15426             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15427           else
15428             ld_shlibs=no
15429           fi
15430         ;;
15431       esac
15432       ;;
15433
15434     sunos4*)
15435       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15436       wlarc=
15437       hardcode_direct=yes
15438       hardcode_shlibpath_var=no
15439       ;;
15440
15441     *)
15442       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15443         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15444         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15445       else
15446         ld_shlibs=no
15447       fi
15448       ;;
15449     esac
15450
15451     if test "$ld_shlibs" = no; then
15452       runpath_var=
15453       hardcode_libdir_flag_spec=
15454       export_dynamic_flag_spec=
15455       whole_archive_flag_spec=
15456     fi
15457   else
15458     # PORTME fill in a description of your system's linker (not GNU ld)
15459     case $host_os in
15460     aix3*)
15461       allow_undefined_flag=unsupported
15462       always_export_symbols=yes
15463       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'
15464       # Note: this linker hardcodes the directories in LIBPATH if there
15465       # are no directories specified by -L.
15466       hardcode_minus_L=yes
15467       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15468         # Neither direct hardcoding nor static linking is supported with a
15469         # broken collect2.
15470         hardcode_direct=unsupported
15471       fi
15472       ;;
15473
15474     aix[4-9]*)
15475       if test "$host_cpu" = ia64; then
15476         # On IA64, the linker does run time linking by default, so we don't
15477         # have to do anything special.
15478         aix_use_runtimelinking=no
15479         exp_sym_flag='-Bexport'
15480         no_entry_flag=""
15481       else
15482         # If we're using GNU nm, then we don't want the "-C" option.
15483         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15484         # Also, AIX nm treats weak defined symbols like other global
15485         # defined symbols, whereas GNU nm marks them as "W".
15486         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15487           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'
15488         else
15489           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'
15490         fi
15491         aix_use_runtimelinking=no
15492
15493         # Test if we are trying to use run time linking or normal
15494         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15495         # need to do runtime linking.
15496         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15497           for ld_flag in $LDFLAGS; do
15498           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15499             aix_use_runtimelinking=yes
15500             break
15501           fi
15502           done
15503           ;;
15504         esac
15505
15506         exp_sym_flag='-bexport'
15507         no_entry_flag='-bnoentry'
15508       fi
15509
15510       # When large executables or shared objects are built, AIX ld can
15511       # have problems creating the table of contents.  If linking a library
15512       # or program results in "error TOC overflow" add -mminimal-toc to
15513       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15514       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15515
15516       archive_cmds=''
15517       hardcode_direct=yes
15518       hardcode_direct_absolute=yes
15519       hardcode_libdir_separator=':'
15520       link_all_deplibs=yes
15521       file_list_spec='${wl}-f,'
15522
15523       if test "$GCC" = yes; then
15524         case $host_os in aix4.[012]|aix4.[012].*)
15525         # We only want to do this on AIX 4.2 and lower, the check
15526         # below for broken collect2 doesn't work under 4.3+
15527           collect2name=`${CC} -print-prog-name=collect2`
15528           if test -f "$collect2name" &&
15529            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15530           then
15531           # We have reworked collect2
15532           :
15533           else
15534           # We have old collect2
15535           hardcode_direct=unsupported
15536           # It fails to find uninstalled libraries when the uninstalled
15537           # path is not listed in the libpath.  Setting hardcode_minus_L
15538           # to unsupported forces relinking
15539           hardcode_minus_L=yes
15540           hardcode_libdir_flag_spec='-L$libdir'
15541           hardcode_libdir_separator=
15542           fi
15543           ;;
15544         esac
15545         shared_flag='-shared'
15546         if test "$aix_use_runtimelinking" = yes; then
15547           shared_flag="$shared_flag "'${wl}-G'
15548         fi
15549       else
15550         # not using gcc
15551         if test "$host_cpu" = ia64; then
15552         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15553         # chokes on -Wl,-G. The following line is correct:
15554           shared_flag='-G'
15555         else
15556           if test "$aix_use_runtimelinking" = yes; then
15557             shared_flag='${wl}-G'
15558           else
15559             shared_flag='${wl}-bM:SRE'
15560           fi
15561         fi
15562       fi
15563
15564       export_dynamic_flag_spec='${wl}-bexpall'
15565       # It seems that -bexpall does not export symbols beginning with
15566       # underscore (_), so it is better to generate a list of symbols to export.
15567       always_export_symbols=yes
15568       if test "$aix_use_runtimelinking" = yes; then
15569         # Warning - without using the other runtime loading flags (-brtl),
15570         # -berok will link without error, but may produce a broken library.
15571         allow_undefined_flag='-berok'
15572         # Determine the default libpath from the value encoded in an
15573         # empty executable.
15574         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15575 /* end confdefs.h.  */
15576
15577 int
15578 main ()
15579 {
15580
15581   ;
15582   return 0;
15583 }
15584 _ACEOF
15585 if ac_fn_c_try_link "$LINENO"; then :
15586
15587 lt_aix_libpath_sed='
15588     /Import File Strings/,/^$/ {
15589         /^0/ {
15590             s/^0  *\(.*\)$/\1/
15591             p
15592         }
15593     }'
15594 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15595 # Check for a 64-bit object if we didn't find anything.
15596 if test -z "$aix_libpath"; then
15597   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15598 fi
15599 fi
15600 rm -f core conftest.err conftest.$ac_objext \
15601     conftest$ac_exeext conftest.$ac_ext
15602 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15603
15604         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15605         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"
15606       else
15607         if test "$host_cpu" = ia64; then
15608           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15609           allow_undefined_flag="-z nodefs"
15610           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"
15611         else
15612          # Determine the default libpath from the value encoded in an
15613          # empty executable.
15614          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15615 /* end confdefs.h.  */
15616
15617 int
15618 main ()
15619 {
15620
15621   ;
15622   return 0;
15623 }
15624 _ACEOF
15625 if ac_fn_c_try_link "$LINENO"; then :
15626
15627 lt_aix_libpath_sed='
15628     /Import File Strings/,/^$/ {
15629         /^0/ {
15630             s/^0  *\(.*\)$/\1/
15631             p
15632         }
15633     }'
15634 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15635 # Check for a 64-bit object if we didn't find anything.
15636 if test -z "$aix_libpath"; then
15637   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15638 fi
15639 fi
15640 rm -f core conftest.err conftest.$ac_objext \
15641     conftest$ac_exeext conftest.$ac_ext
15642 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15643
15644          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15645           # Warning - without using the other run time loading flags,
15646           # -berok will link without error, but may produce a broken library.
15647           no_undefined_flag=' ${wl}-bernotok'
15648           allow_undefined_flag=' ${wl}-berok'
15649           if test "$with_gnu_ld" = yes; then
15650             # We only use this code for GNU lds that support --whole-archive.
15651             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15652           else
15653             # Exported symbols can be pulled into shared objects from archives
15654             whole_archive_flag_spec='$convenience'
15655           fi
15656           archive_cmds_need_lc=yes
15657           # This is similar to how AIX traditionally builds its shared libraries.
15658           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'
15659         fi
15660       fi
15661       ;;
15662
15663     amigaos*)
15664       case $host_cpu in
15665       powerpc)
15666             # see comment about AmigaOS4 .so support
15667             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15668             archive_expsym_cmds=''
15669         ;;
15670       m68k)
15671             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)'
15672             hardcode_libdir_flag_spec='-L$libdir'
15673             hardcode_minus_L=yes
15674         ;;
15675       esac
15676       ;;
15677
15678     bsdi[45]*)
15679       export_dynamic_flag_spec=-rdynamic
15680       ;;
15681
15682     cygwin* | mingw* | pw32* | cegcc*)
15683       # When not using gcc, we currently assume that we are using
15684       # Microsoft Visual C++.
15685       # hardcode_libdir_flag_spec is actually meaningless, as there is
15686       # no search path for DLLs.
15687       hardcode_libdir_flag_spec=' '
15688       allow_undefined_flag=unsupported
15689       # Tell ltmain to make .lib files, not .a files.
15690       libext=lib
15691       # Tell ltmain to make .dll files, not .so files.
15692       shrext_cmds=".dll"
15693       # FIXME: Setting linknames here is a bad hack.
15694       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15695       # The linker will automatically build a .lib file if we build a DLL.
15696       old_archive_from_new_cmds='true'
15697       # FIXME: Should let the user specify the lib program.
15698       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15699       fix_srcfile_path='`cygpath -w "$srcfile"`'
15700       enable_shared_with_static_runtimes=yes
15701       ;;
15702
15703     darwin* | rhapsody*)
15704
15705
15706   archive_cmds_need_lc=no
15707   hardcode_direct=no
15708   hardcode_automatic=yes
15709   hardcode_shlibpath_var=unsupported
15710   if test "$lt_cv_ld_force_load" = "yes"; then
15711     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\"`'
15712   else
15713     whole_archive_flag_spec=''
15714   fi
15715   link_all_deplibs=yes
15716   allow_undefined_flag="$_lt_dar_allow_undefined"
15717   case $cc_basename in
15718      ifort*) _lt_dar_can_shared=yes ;;
15719      *) _lt_dar_can_shared=$GCC ;;
15720   esac
15721   if test "$_lt_dar_can_shared" = "yes"; then
15722     output_verbose_link_cmd=func_echo_all
15723     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15724     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15725     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}"
15726     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}"
15727
15728   else
15729   ld_shlibs=no
15730   fi
15731
15732       ;;
15733
15734     dgux*)
15735       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15736       hardcode_libdir_flag_spec='-L$libdir'
15737       hardcode_shlibpath_var=no
15738       ;;
15739
15740     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15741     # support.  Future versions do this automatically, but an explicit c++rt0.o
15742     # does not break anything, and helps significantly (at the cost of a little
15743     # extra space).
15744     freebsd2.2*)
15745       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15746       hardcode_libdir_flag_spec='-R$libdir'
15747       hardcode_direct=yes
15748       hardcode_shlibpath_var=no
15749       ;;
15750
15751     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15752     freebsd2*)
15753       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15754       hardcode_direct=yes
15755       hardcode_minus_L=yes
15756       hardcode_shlibpath_var=no
15757       ;;
15758
15759     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15760     freebsd* | dragonfly*)
15761       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15762       hardcode_libdir_flag_spec='-R$libdir'
15763       hardcode_direct=yes
15764       hardcode_shlibpath_var=no
15765       ;;
15766
15767     hpux9*)
15768       if test "$GCC" = yes; then
15769         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'
15770       else
15771         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'
15772       fi
15773       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15774       hardcode_libdir_separator=:
15775       hardcode_direct=yes
15776
15777       # hardcode_minus_L: Not really in the search PATH,
15778       # but as the default location of the library.
15779       hardcode_minus_L=yes
15780       export_dynamic_flag_spec='${wl}-E'
15781       ;;
15782
15783     hpux10*)
15784       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15785         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15786       else
15787         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15788       fi
15789       if test "$with_gnu_ld" = no; then
15790         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15791         hardcode_libdir_flag_spec_ld='+b $libdir'
15792         hardcode_libdir_separator=:
15793         hardcode_direct=yes
15794         hardcode_direct_absolute=yes
15795         export_dynamic_flag_spec='${wl}-E'
15796         # hardcode_minus_L: Not really in the search PATH,
15797         # but as the default location of the library.
15798         hardcode_minus_L=yes
15799       fi
15800       ;;
15801
15802     hpux11*)
15803       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15804         case $host_cpu in
15805         hppa*64*)
15806           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15807           ;;
15808         ia64*)
15809           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15810           ;;
15811         *)
15812           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15813           ;;
15814         esac
15815       else
15816         case $host_cpu in
15817         hppa*64*)
15818           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15819           ;;
15820         ia64*)
15821           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15822           ;;
15823         *)
15824
15825           # Older versions of the 11.00 compiler do not understand -b yet
15826           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15827           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15828 $as_echo_n "checking if $CC understands -b... " >&6; }
15829 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15830   $as_echo_n "(cached) " >&6
15831 else
15832   lt_cv_prog_compiler__b=no
15833    save_LDFLAGS="$LDFLAGS"
15834    LDFLAGS="$LDFLAGS -b"
15835    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15836    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15837      # The linker can only warn and ignore the option if not recognized
15838      # So say no if there are warnings
15839      if test -s conftest.err; then
15840        # Append any errors to the config.log.
15841        cat conftest.err 1>&5
15842        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15843        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15844        if diff conftest.exp conftest.er2 >/dev/null; then
15845          lt_cv_prog_compiler__b=yes
15846        fi
15847      else
15848        lt_cv_prog_compiler__b=yes
15849      fi
15850    fi
15851    $RM -r conftest*
15852    LDFLAGS="$save_LDFLAGS"
15853
15854 fi
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15856 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15857
15858 if test x"$lt_cv_prog_compiler__b" = xyes; then
15859     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15860 else
15861     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15862 fi
15863
15864           ;;
15865         esac
15866       fi
15867       if test "$with_gnu_ld" = no; then
15868         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15869         hardcode_libdir_separator=:
15870
15871         case $host_cpu in
15872         hppa*64*|ia64*)
15873           hardcode_direct=no
15874           hardcode_shlibpath_var=no
15875           ;;
15876         *)
15877           hardcode_direct=yes
15878           hardcode_direct_absolute=yes
15879           export_dynamic_flag_spec='${wl}-E'
15880
15881           # hardcode_minus_L: Not really in the search PATH,
15882           # but as the default location of the library.
15883           hardcode_minus_L=yes
15884           ;;
15885         esac
15886       fi
15887       ;;
15888
15889     irix5* | irix6* | nonstopux*)
15890       if test "$GCC" = yes; then
15891         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'
15892         # Try to use the -exported_symbol ld option, if it does not
15893         # work, assume that -exports_file does not work either and
15894         # implicitly export all symbols.
15895         save_LDFLAGS="$LDFLAGS"
15896         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15897         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898 /* end confdefs.h.  */
15899 int foo(void) {}
15900 _ACEOF
15901 if ac_fn_c_try_link "$LINENO"; then :
15902   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'
15903
15904 fi
15905 rm -f core conftest.err conftest.$ac_objext \
15906     conftest$ac_exeext conftest.$ac_ext
15907         LDFLAGS="$save_LDFLAGS"
15908       else
15909         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'
15910         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'
15911       fi
15912       archive_cmds_need_lc='no'
15913       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15914       hardcode_libdir_separator=:
15915       inherit_rpath=yes
15916       link_all_deplibs=yes
15917       ;;
15918
15919     netbsd*)
15920       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15921         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15922       else
15923         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15924       fi
15925       hardcode_libdir_flag_spec='-R$libdir'
15926       hardcode_direct=yes
15927       hardcode_shlibpath_var=no
15928       ;;
15929
15930     newsos6)
15931       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15932       hardcode_direct=yes
15933       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15934       hardcode_libdir_separator=:
15935       hardcode_shlibpath_var=no
15936       ;;
15937
15938     *nto* | *qnx*)
15939       ;;
15940
15941     openbsd*)
15942       if test -f /usr/libexec/ld.so; then
15943         hardcode_direct=yes
15944         hardcode_shlibpath_var=no
15945         hardcode_direct_absolute=yes
15946         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15947           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15948           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15949           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15950           export_dynamic_flag_spec='${wl}-E'
15951         else
15952           case $host_os in
15953            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15954              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15955              hardcode_libdir_flag_spec='-R$libdir'
15956              ;;
15957            *)
15958              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15959              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15960              ;;
15961           esac
15962         fi
15963       else
15964         ld_shlibs=no
15965       fi
15966       ;;
15967
15968     os2*)
15969       hardcode_libdir_flag_spec='-L$libdir'
15970       hardcode_minus_L=yes
15971       allow_undefined_flag=unsupported
15972       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'
15973       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15974       ;;
15975
15976     osf3*)
15977       if test "$GCC" = yes; then
15978         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15979         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'
15980       else
15981         allow_undefined_flag=' -expect_unresolved \*'
15982         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'
15983       fi
15984       archive_cmds_need_lc='no'
15985       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15986       hardcode_libdir_separator=:
15987       ;;
15988
15989     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15990       if test "$GCC" = yes; then
15991         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15992         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'
15993         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15994       else
15995         allow_undefined_flag=' -expect_unresolved \*'
15996         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'
15997         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~
15998         $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'
15999
16000         # Both c and cxx compiler support -rpath directly
16001         hardcode_libdir_flag_spec='-rpath $libdir'
16002       fi
16003       archive_cmds_need_lc='no'
16004       hardcode_libdir_separator=:
16005       ;;
16006
16007     solaris*)
16008       no_undefined_flag=' -z defs'
16009       if test "$GCC" = yes; then
16010         wlarc='${wl}'
16011         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16012         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16013           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16014       else
16015         case `$CC -V 2>&1` in
16016         *"Compilers 5.0"*)
16017           wlarc=''
16018           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16019           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16020           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16021           ;;
16022         *)
16023           wlarc='${wl}'
16024           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16025           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16026           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16027           ;;
16028         esac
16029       fi
16030       hardcode_libdir_flag_spec='-R$libdir'
16031       hardcode_shlibpath_var=no
16032       case $host_os in
16033       solaris2.[0-5] | solaris2.[0-5].*) ;;
16034       *)
16035         # The compiler driver will combine and reorder linker options,
16036         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16037         # but is careful enough not to reorder.
16038         # Supported since Solaris 2.6 (maybe 2.5.1?)
16039         if test "$GCC" = yes; then
16040           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16041         else
16042           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16043         fi
16044         ;;
16045       esac
16046       link_all_deplibs=yes
16047       ;;
16048
16049     sunos4*)
16050       if test "x$host_vendor" = xsequent; then
16051         # Use $CC to link under sequent, because it throws in some extra .o
16052         # files that make .init and .fini sections work.
16053         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16054       else
16055         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16056       fi
16057       hardcode_libdir_flag_spec='-L$libdir'
16058       hardcode_direct=yes
16059       hardcode_minus_L=yes
16060       hardcode_shlibpath_var=no
16061       ;;
16062
16063     sysv4)
16064       case $host_vendor in
16065         sni)
16066           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16067           hardcode_direct=yes # is this really true???
16068         ;;
16069         siemens)
16070           ## LD is ld it makes a PLAMLIB
16071           ## CC just makes a GrossModule.
16072           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16073           reload_cmds='$CC -r -o $output$reload_objs'
16074           hardcode_direct=no
16075         ;;
16076         motorola)
16077           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16078           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16079         ;;
16080       esac
16081       runpath_var='LD_RUN_PATH'
16082       hardcode_shlibpath_var=no
16083       ;;
16084
16085     sysv4.3*)
16086       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16087       hardcode_shlibpath_var=no
16088       export_dynamic_flag_spec='-Bexport'
16089       ;;
16090
16091     sysv4*MP*)
16092       if test -d /usr/nec; then
16093         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16094         hardcode_shlibpath_var=no
16095         runpath_var=LD_RUN_PATH
16096         hardcode_runpath_var=yes
16097         ld_shlibs=yes
16098       fi
16099       ;;
16100
16101     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16102       no_undefined_flag='${wl}-z,text'
16103       archive_cmds_need_lc=no
16104       hardcode_shlibpath_var=no
16105       runpath_var='LD_RUN_PATH'
16106
16107       if test "$GCC" = yes; then
16108         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16109         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16110       else
16111         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16112         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16113       fi
16114       ;;
16115
16116     sysv5* | sco3.2v5* | sco5v6*)
16117       # Note: We can NOT use -z defs as we might desire, because we do not
16118       # link with -lc, and that would cause any symbols used from libc to
16119       # always be unresolved, which means just about no library would
16120       # ever link correctly.  If we're not using GNU ld we use -z text
16121       # though, which does catch some bad symbols but isn't as heavy-handed
16122       # as -z defs.
16123       no_undefined_flag='${wl}-z,text'
16124       allow_undefined_flag='${wl}-z,nodefs'
16125       archive_cmds_need_lc=no
16126       hardcode_shlibpath_var=no
16127       hardcode_libdir_flag_spec='${wl}-R,$libdir'
16128       hardcode_libdir_separator=':'
16129       link_all_deplibs=yes
16130       export_dynamic_flag_spec='${wl}-Bexport'
16131       runpath_var='LD_RUN_PATH'
16132
16133       if test "$GCC" = yes; then
16134         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16135         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16136       else
16137         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16138         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16139       fi
16140       ;;
16141
16142     uts4*)
16143       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16144       hardcode_libdir_flag_spec='-L$libdir'
16145       hardcode_shlibpath_var=no
16146       ;;
16147
16148     *)
16149       ld_shlibs=no
16150       ;;
16151     esac
16152
16153     if test x$host_vendor = xsni; then
16154       case $host in
16155       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16156         export_dynamic_flag_spec='${wl}-Blargedynsym'
16157         ;;
16158       esac
16159     fi
16160   fi
16161
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16163 $as_echo "$ld_shlibs" >&6; }
16164 test "$ld_shlibs" = no && can_build_shared=no
16165
16166 with_gnu_ld=$with_gnu_ld
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182 #
16183 # Do we need to explicitly link libc?
16184 #
16185 case "x$archive_cmds_need_lc" in
16186 x|xyes)
16187   # Assume -lc should be added
16188   archive_cmds_need_lc=yes
16189
16190   if test "$enable_shared" = yes && test "$GCC" = yes; then
16191     case $archive_cmds in
16192     *'~'*)
16193       # FIXME: we may have to deal with multi-command sequences.
16194       ;;
16195     '$CC '*)
16196       # Test whether the compiler implicitly links with -lc since on some
16197       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16198       # to ld, don't add -lc before -lgcc.
16199       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16200 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16201 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16202   $as_echo_n "(cached) " >&6
16203 else
16204   $RM conftest*
16205         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16206
16207         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16208   (eval $ac_compile) 2>&5
16209   ac_status=$?
16210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16211   test $ac_status = 0; } 2>conftest.err; then
16212           soname=conftest
16213           lib=conftest
16214           libobjs=conftest.$ac_objext
16215           deplibs=
16216           wl=$lt_prog_compiler_wl
16217           pic_flag=$lt_prog_compiler_pic
16218           compiler_flags=-v
16219           linker_flags=-v
16220           verstring=
16221           output_objdir=.
16222           libname=conftest
16223           lt_save_allow_undefined_flag=$allow_undefined_flag
16224           allow_undefined_flag=
16225           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16226   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16227   ac_status=$?
16228   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16229   test $ac_status = 0; }
16230           then
16231             lt_cv_archive_cmds_need_lc=no
16232           else
16233             lt_cv_archive_cmds_need_lc=yes
16234           fi
16235           allow_undefined_flag=$lt_save_allow_undefined_flag
16236         else
16237           cat conftest.err 1>&5
16238         fi
16239         $RM conftest*
16240
16241 fi
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16243 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16244       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16245       ;;
16246     esac
16247   fi
16248   ;;
16249 esac
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16408 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16409
16410 if test "$GCC" = yes; then
16411   case $host_os in
16412     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16413     *) lt_awk_arg="/^libraries:/" ;;
16414   esac
16415   case $host_os in
16416     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16417     *) lt_sed_strip_eq="s,=/,/,g" ;;
16418   esac
16419   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16420   case $lt_search_path_spec in
16421   *\;*)
16422     # if the path contains ";" then we assume it to be the separator
16423     # otherwise default to the standard path separator (i.e. ":") - it is
16424     # assumed that no part of a normal pathname contains ";" but that should
16425     # okay in the real world where ";" in dirpaths is itself problematic.
16426     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16427     ;;
16428   *)
16429     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16430     ;;
16431   esac
16432   # Ok, now we have the path, separated by spaces, we can step through it
16433   # and add multilib dir if necessary.
16434   lt_tmp_lt_search_path_spec=
16435   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16436   for lt_sys_path in $lt_search_path_spec; do
16437     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16438       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16439     else
16440       test -d "$lt_sys_path" && \
16441         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16442     fi
16443   done
16444   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16445 BEGIN {RS=" "; FS="/|\n";} {
16446   lt_foo="";
16447   lt_count=0;
16448   for (lt_i = NF; lt_i > 0; lt_i--) {
16449     if ($lt_i != "" && $lt_i != ".") {
16450       if ($lt_i == "..") {
16451         lt_count++;
16452       } else {
16453         if (lt_count == 0) {
16454           lt_foo="/" $lt_i lt_foo;
16455         } else {
16456           lt_count--;
16457         }
16458       }
16459     }
16460   }
16461   if (lt_foo != "") { lt_freq[lt_foo]++; }
16462   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16463 }'`
16464   # AWK program above erroneously prepends '/' to C:/dos/paths
16465   # for these hosts.
16466   case $host_os in
16467     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16468       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16469   esac
16470   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16471 else
16472   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16473 fi
16474 library_names_spec=
16475 libname_spec='lib$name'
16476 soname_spec=
16477 shrext_cmds=".so"
16478 postinstall_cmds=
16479 postuninstall_cmds=
16480 finish_cmds=
16481 finish_eval=
16482 shlibpath_var=
16483 shlibpath_overrides_runpath=unknown
16484 version_type=none
16485 dynamic_linker="$host_os ld.so"
16486 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16487 need_lib_prefix=unknown
16488 hardcode_into_libs=no
16489
16490 # when you set need_version to no, make sure it does not cause -set_version
16491 # flags to be left without arguments
16492 need_version=unknown
16493
16494 case $host_os in
16495 aix3*)
16496   version_type=linux
16497   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16498   shlibpath_var=LIBPATH
16499
16500   # AIX 3 has no versioning support, so we append a major version to the name.
16501   soname_spec='${libname}${release}${shared_ext}$major'
16502   ;;
16503
16504 aix[4-9]*)
16505   version_type=linux
16506   need_lib_prefix=no
16507   need_version=no
16508   hardcode_into_libs=yes
16509   if test "$host_cpu" = ia64; then
16510     # AIX 5 supports IA64
16511     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16512     shlibpath_var=LD_LIBRARY_PATH
16513   else
16514     # With GCC up to 2.95.x, collect2 would create an import file
16515     # for dependence libraries.  The import file would start with
16516     # the line `#! .'.  This would cause the generated library to
16517     # depend on `.', always an invalid library.  This was fixed in
16518     # development snapshots of GCC prior to 3.0.
16519     case $host_os in
16520       aix4 | aix4.[01] | aix4.[01].*)
16521       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16522            echo ' yes '
16523            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16524         :
16525       else
16526         can_build_shared=no
16527       fi
16528       ;;
16529     esac
16530     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16531     # soname into executable. Probably we can add versioning support to
16532     # collect2, so additional links can be useful in future.
16533     if test "$aix_use_runtimelinking" = yes; then
16534       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16535       # instead of lib<name>.a to let people know that these are not
16536       # typical AIX shared libraries.
16537       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16538     else
16539       # We preserve .a as extension for shared libraries through AIX4.2
16540       # and later when we are not doing run time linking.
16541       library_names_spec='${libname}${release}.a $libname.a'
16542       soname_spec='${libname}${release}${shared_ext}$major'
16543     fi
16544     shlibpath_var=LIBPATH
16545   fi
16546   ;;
16547
16548 amigaos*)
16549   case $host_cpu in
16550   powerpc)
16551     # Since July 2007 AmigaOS4 officially supports .so libraries.
16552     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16553     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16554     ;;
16555   m68k)
16556     library_names_spec='$libname.ixlibrary $libname.a'
16557     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16558     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'
16559     ;;
16560   esac
16561   ;;
16562
16563 beos*)
16564   library_names_spec='${libname}${shared_ext}'
16565   dynamic_linker="$host_os ld.so"
16566   shlibpath_var=LIBRARY_PATH
16567   ;;
16568
16569 bsdi[45]*)
16570   version_type=linux
16571   need_version=no
16572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16573   soname_spec='${libname}${release}${shared_ext}$major'
16574   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16575   shlibpath_var=LD_LIBRARY_PATH
16576   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16577   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16578   # the default ld.so.conf also contains /usr/contrib/lib and
16579   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16580   # libtool to hard-code these into programs
16581   ;;
16582
16583 cygwin* | mingw* | pw32* | cegcc*)
16584   version_type=windows
16585   shrext_cmds=".dll"
16586   need_version=no
16587   need_lib_prefix=no
16588
16589   case $GCC,$host_os in
16590   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16591     library_names_spec='$libname.dll.a'
16592     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16593     postinstall_cmds='base_file=`basename \${file}`~
16594       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16595       dldir=$destdir/`dirname \$dlpath`~
16596       test -d \$dldir || mkdir -p \$dldir~
16597       $install_prog $dir/$dlname \$dldir/$dlname~
16598       chmod a+x \$dldir/$dlname~
16599       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16600         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16601       fi'
16602     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16603       dlpath=$dir/\$dldll~
16604        $RM \$dlpath'
16605     shlibpath_overrides_runpath=yes
16606
16607     case $host_os in
16608     cygwin*)
16609       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16610       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16611
16612       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16613       ;;
16614     mingw* | cegcc*)
16615       # MinGW DLLs use traditional 'lib' prefix
16616       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16617       ;;
16618     pw32*)
16619       # pw32 DLLs use 'pw' prefix rather than 'lib'
16620       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16621       ;;
16622     esac
16623     ;;
16624
16625   *)
16626     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16627     ;;
16628   esac
16629   dynamic_linker='Win32 ld.exe'
16630   # FIXME: first we should search . and the directory the executable is in
16631   shlibpath_var=PATH
16632   ;;
16633
16634 darwin* | rhapsody*)
16635   dynamic_linker="$host_os dyld"
16636   version_type=darwin
16637   need_lib_prefix=no
16638   need_version=no
16639   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16640   soname_spec='${libname}${release}${major}$shared_ext'
16641   shlibpath_overrides_runpath=yes
16642   shlibpath_var=DYLD_LIBRARY_PATH
16643   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16644
16645   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16646   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16647   ;;
16648
16649 dgux*)
16650   version_type=linux
16651   need_lib_prefix=no
16652   need_version=no
16653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16654   soname_spec='${libname}${release}${shared_ext}$major'
16655   shlibpath_var=LD_LIBRARY_PATH
16656   ;;
16657
16658 freebsd* | dragonfly*)
16659   # DragonFly does not have aout.  When/if they implement a new
16660   # versioning mechanism, adjust this.
16661   if test -x /usr/bin/objformat; then
16662     objformat=`/usr/bin/objformat`
16663   else
16664     case $host_os in
16665     freebsd[123]*) objformat=aout ;;
16666     *) objformat=elf ;;
16667     esac
16668   fi
16669   version_type=freebsd-$objformat
16670   case $version_type in
16671     freebsd-elf*)
16672       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16673       need_version=no
16674       need_lib_prefix=no
16675       ;;
16676     freebsd-*)
16677       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16678       need_version=yes
16679       ;;
16680   esac
16681   shlibpath_var=LD_LIBRARY_PATH
16682   case $host_os in
16683   freebsd2*)
16684     shlibpath_overrides_runpath=yes
16685     ;;
16686   freebsd3.[01]* | freebsdelf3.[01]*)
16687     shlibpath_overrides_runpath=yes
16688     hardcode_into_libs=yes
16689     ;;
16690   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16691   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16692     shlibpath_overrides_runpath=no
16693     hardcode_into_libs=yes
16694     ;;
16695   *) # from 4.6 on, and DragonFly
16696     shlibpath_overrides_runpath=yes
16697     hardcode_into_libs=yes
16698     ;;
16699   esac
16700   ;;
16701
16702 gnu*)
16703   version_type=linux
16704   need_lib_prefix=no
16705   need_version=no
16706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16707   soname_spec='${libname}${release}${shared_ext}$major'
16708   shlibpath_var=LD_LIBRARY_PATH
16709   hardcode_into_libs=yes
16710   ;;
16711
16712 haiku*)
16713   version_type=linux
16714   need_lib_prefix=no
16715   need_version=no
16716   dynamic_linker="$host_os runtime_loader"
16717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16718   soname_spec='${libname}${release}${shared_ext}$major'
16719   shlibpath_var=LIBRARY_PATH
16720   shlibpath_overrides_runpath=yes
16721   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16722   hardcode_into_libs=yes
16723   ;;
16724
16725 hpux9* | hpux10* | hpux11*)
16726   # Give a soname corresponding to the major version so that dld.sl refuses to
16727   # link against other versions.
16728   version_type=sunos
16729   need_lib_prefix=no
16730   need_version=no
16731   case $host_cpu in
16732   ia64*)
16733     shrext_cmds='.so'
16734     hardcode_into_libs=yes
16735     dynamic_linker="$host_os dld.so"
16736     shlibpath_var=LD_LIBRARY_PATH
16737     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16738     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16739     soname_spec='${libname}${release}${shared_ext}$major'
16740     if test "X$HPUX_IA64_MODE" = X32; then
16741       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16742     else
16743       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16744     fi
16745     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16746     ;;
16747   hppa*64*)
16748     shrext_cmds='.sl'
16749     hardcode_into_libs=yes
16750     dynamic_linker="$host_os dld.sl"
16751     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16752     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16753     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16754     soname_spec='${libname}${release}${shared_ext}$major'
16755     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16756     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16757     ;;
16758   *)
16759     shrext_cmds='.sl'
16760     dynamic_linker="$host_os dld.sl"
16761     shlibpath_var=SHLIB_PATH
16762     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16763     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16764     soname_spec='${libname}${release}${shared_ext}$major'
16765     ;;
16766   esac
16767   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16768   postinstall_cmds='chmod 555 $lib'
16769   # or fails outright, so override atomically:
16770   install_override_mode=555
16771   ;;
16772
16773 interix[3-9]*)
16774   version_type=linux
16775   need_lib_prefix=no
16776   need_version=no
16777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16778   soname_spec='${libname}${release}${shared_ext}$major'
16779   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16780   shlibpath_var=LD_LIBRARY_PATH
16781   shlibpath_overrides_runpath=no
16782   hardcode_into_libs=yes
16783   ;;
16784
16785 irix5* | irix6* | nonstopux*)
16786   case $host_os in
16787     nonstopux*) version_type=nonstopux ;;
16788     *)
16789         if test "$lt_cv_prog_gnu_ld" = yes; then
16790                 version_type=linux
16791         else
16792                 version_type=irix
16793         fi ;;
16794   esac
16795   need_lib_prefix=no
16796   need_version=no
16797   soname_spec='${libname}${release}${shared_ext}$major'
16798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16799   case $host_os in
16800   irix5* | nonstopux*)
16801     libsuff= shlibsuff=
16802     ;;
16803   *)
16804     case $LD in # libtool.m4 will add one of these switches to LD
16805     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16806       libsuff= shlibsuff= libmagic=32-bit;;
16807     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16808       libsuff=32 shlibsuff=N32 libmagic=N32;;
16809     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16810       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16811     *) libsuff= shlibsuff= libmagic=never-match;;
16812     esac
16813     ;;
16814   esac
16815   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16816   shlibpath_overrides_runpath=no
16817   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16818   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16819   hardcode_into_libs=yes
16820   ;;
16821
16822 # No shared lib support for Linux oldld, aout, or coff.
16823 linux*oldld* | linux*aout* | linux*coff*)
16824   dynamic_linker=no
16825   ;;
16826
16827 # This must be Linux ELF.
16828 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16829   version_type=linux
16830   need_lib_prefix=no
16831   need_version=no
16832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16833   soname_spec='${libname}${release}${shared_ext}$major'
16834   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16835   shlibpath_var=LD_LIBRARY_PATH
16836   shlibpath_overrides_runpath=no
16837
16838   # Some binutils ld are patched to set DT_RUNPATH
16839   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16840   $as_echo_n "(cached) " >&6
16841 else
16842   lt_cv_shlibpath_overrides_runpath=no
16843     save_LDFLAGS=$LDFLAGS
16844     save_libdir=$libdir
16845     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16846          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16847     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16848 /* end confdefs.h.  */
16849
16850 int
16851 main ()
16852 {
16853
16854   ;
16855   return 0;
16856 }
16857 _ACEOF
16858 if ac_fn_c_try_link "$LINENO"; then :
16859   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16860   lt_cv_shlibpath_overrides_runpath=yes
16861 fi
16862 fi
16863 rm -f core conftest.err conftest.$ac_objext \
16864     conftest$ac_exeext conftest.$ac_ext
16865     LDFLAGS=$save_LDFLAGS
16866     libdir=$save_libdir
16867
16868 fi
16869
16870   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16871
16872   # This implies no fast_install, which is unacceptable.
16873   # Some rework will be needed to allow for fast_install
16874   # before this can be enabled.
16875   hardcode_into_libs=yes
16876
16877   # Append ld.so.conf contents to the search path
16878   if test -f /etc/ld.so.conf; then
16879     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' ' '`
16880     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16881   fi
16882
16883   # We used to test for /lib/ld.so.1 and disable shared libraries on
16884   # powerpc, because MkLinux only supported shared libraries with the
16885   # GNU dynamic linker.  Since this was broken with cross compilers,
16886   # most powerpc-linux boxes support dynamic linking these days and
16887   # people can always --disable-shared, the test was removed, and we
16888   # assume the GNU/Linux dynamic linker is in use.
16889   dynamic_linker='GNU/Linux ld.so'
16890   ;;
16891
16892 netbsd*)
16893   version_type=sunos
16894   need_lib_prefix=no
16895   need_version=no
16896   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16897     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16898     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16899     dynamic_linker='NetBSD (a.out) ld.so'
16900   else
16901     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16902     soname_spec='${libname}${release}${shared_ext}$major'
16903     dynamic_linker='NetBSD ld.elf_so'
16904   fi
16905   shlibpath_var=LD_LIBRARY_PATH
16906   shlibpath_overrides_runpath=yes
16907   hardcode_into_libs=yes
16908   ;;
16909
16910 newsos6)
16911   version_type=linux
16912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16913   shlibpath_var=LD_LIBRARY_PATH
16914   shlibpath_overrides_runpath=yes
16915   ;;
16916
16917 *nto* | *qnx*)
16918   version_type=qnx
16919   need_lib_prefix=no
16920   need_version=no
16921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16922   soname_spec='${libname}${release}${shared_ext}$major'
16923   shlibpath_var=LD_LIBRARY_PATH
16924   shlibpath_overrides_runpath=no
16925   hardcode_into_libs=yes
16926   dynamic_linker='ldqnx.so'
16927   ;;
16928
16929 openbsd*)
16930   version_type=sunos
16931   sys_lib_dlsearch_path_spec="/usr/lib"
16932   need_lib_prefix=no
16933   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16934   case $host_os in
16935     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16936     *)                          need_version=no  ;;
16937   esac
16938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16939   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16940   shlibpath_var=LD_LIBRARY_PATH
16941   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16942     case $host_os in
16943       openbsd2.[89] | openbsd2.[89].*)
16944         shlibpath_overrides_runpath=no
16945         ;;
16946       *)
16947         shlibpath_overrides_runpath=yes
16948         ;;
16949       esac
16950   else
16951     shlibpath_overrides_runpath=yes
16952   fi
16953   ;;
16954
16955 os2*)
16956   libname_spec='$name'
16957   shrext_cmds=".dll"
16958   need_lib_prefix=no
16959   library_names_spec='$libname${shared_ext} $libname.a'
16960   dynamic_linker='OS/2 ld.exe'
16961   shlibpath_var=LIBPATH
16962   ;;
16963
16964 osf3* | osf4* | osf5*)
16965   version_type=osf
16966   need_lib_prefix=no
16967   need_version=no
16968   soname_spec='${libname}${release}${shared_ext}$major'
16969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16970   shlibpath_var=LD_LIBRARY_PATH
16971   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16972   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16973   ;;
16974
16975 rdos*)
16976   dynamic_linker=no
16977   ;;
16978
16979 solaris*)
16980   version_type=linux
16981   need_lib_prefix=no
16982   need_version=no
16983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16984   soname_spec='${libname}${release}${shared_ext}$major'
16985   shlibpath_var=LD_LIBRARY_PATH
16986   shlibpath_overrides_runpath=yes
16987   hardcode_into_libs=yes
16988   # ldd complains unless libraries are executable
16989   postinstall_cmds='chmod +x $lib'
16990   ;;
16991
16992 sunos4*)
16993   version_type=sunos
16994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16995   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16996   shlibpath_var=LD_LIBRARY_PATH
16997   shlibpath_overrides_runpath=yes
16998   if test "$with_gnu_ld" = yes; then
16999     need_lib_prefix=no
17000   fi
17001   need_version=yes
17002   ;;
17003
17004 sysv4 | sysv4.3*)
17005   version_type=linux
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   shlibpath_var=LD_LIBRARY_PATH
17009   case $host_vendor in
17010     sni)
17011       shlibpath_overrides_runpath=no
17012       need_lib_prefix=no
17013       runpath_var=LD_RUN_PATH
17014       ;;
17015     siemens)
17016       need_lib_prefix=no
17017       ;;
17018     motorola)
17019       need_lib_prefix=no
17020       need_version=no
17021       shlibpath_overrides_runpath=no
17022       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17023       ;;
17024   esac
17025   ;;
17026
17027 sysv4*MP*)
17028   if test -d /usr/nec ;then
17029     version_type=linux
17030     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17031     soname_spec='$libname${shared_ext}.$major'
17032     shlibpath_var=LD_LIBRARY_PATH
17033   fi
17034   ;;
17035
17036 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17037   version_type=freebsd-elf
17038   need_lib_prefix=no
17039   need_version=no
17040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17041   soname_spec='${libname}${release}${shared_ext}$major'
17042   shlibpath_var=LD_LIBRARY_PATH
17043   shlibpath_overrides_runpath=yes
17044   hardcode_into_libs=yes
17045   if test "$with_gnu_ld" = yes; then
17046     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17047   else
17048     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17049     case $host_os in
17050       sco3.2v5*)
17051         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17052         ;;
17053     esac
17054   fi
17055   sys_lib_dlsearch_path_spec='/usr/lib'
17056   ;;
17057
17058 tpf*)
17059   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17060   version_type=linux
17061   need_lib_prefix=no
17062   need_version=no
17063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17064   shlibpath_var=LD_LIBRARY_PATH
17065   shlibpath_overrides_runpath=no
17066   hardcode_into_libs=yes
17067   ;;
17068
17069 uts4*)
17070   version_type=linux
17071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17072   soname_spec='${libname}${release}${shared_ext}$major'
17073   shlibpath_var=LD_LIBRARY_PATH
17074   ;;
17075
17076 *)
17077   dynamic_linker=no
17078   ;;
17079 esac
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17081 $as_echo "$dynamic_linker" >&6; }
17082 test "$dynamic_linker" = no && can_build_shared=no
17083
17084 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17085 if test "$GCC" = yes; then
17086   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17087 fi
17088
17089 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17090   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17091 fi
17092 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17093   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17094 fi
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17188 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17189 hardcode_action=
17190 if test -n "$hardcode_libdir_flag_spec" ||
17191    test -n "$runpath_var" ||
17192    test "X$hardcode_automatic" = "Xyes" ; then
17193
17194   # We can hardcode non-existent directories.
17195   if test "$hardcode_direct" != no &&
17196      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17197      # have to relink, otherwise we might link with an installed library
17198      # when we should be linking with a yet-to-be-installed one
17199      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17200      test "$hardcode_minus_L" != no; then
17201     # Linking always hardcodes the temporary library directory.
17202     hardcode_action=relink
17203   else
17204     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17205     hardcode_action=immediate
17206   fi
17207 else
17208   # We cannot hardcode anything, or else we can only hardcode existing
17209   # directories.
17210   hardcode_action=unsupported
17211 fi
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17213 $as_echo "$hardcode_action" >&6; }
17214
17215 if test "$hardcode_action" = relink ||
17216    test "$inherit_rpath" = yes; then
17217   # Fast installation is not supported
17218   enable_fast_install=no
17219 elif test "$shlibpath_overrides_runpath" = yes ||
17220      test "$enable_shared" = no; then
17221   # Fast installation is not necessary
17222   enable_fast_install=needless
17223 fi
17224
17225
17226
17227
17228
17229
17230   if test "x$enable_dlopen" != xyes; then
17231   enable_dlopen=unknown
17232   enable_dlopen_self=unknown
17233   enable_dlopen_self_static=unknown
17234 else
17235   lt_cv_dlopen=no
17236   lt_cv_dlopen_libs=
17237
17238   case $host_os in
17239   beos*)
17240     lt_cv_dlopen="load_add_on"
17241     lt_cv_dlopen_libs=
17242     lt_cv_dlopen_self=yes
17243     ;;
17244
17245   mingw* | pw32* | cegcc*)
17246     lt_cv_dlopen="LoadLibrary"
17247     lt_cv_dlopen_libs=
17248     ;;
17249
17250   cygwin*)
17251     lt_cv_dlopen="dlopen"
17252     lt_cv_dlopen_libs=
17253     ;;
17254
17255   darwin*)
17256   # if libdl is installed we need to link against it
17257     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17258 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17259 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17260   $as_echo_n "(cached) " >&6
17261 else
17262   ac_check_lib_save_LIBS=$LIBS
17263 LIBS="-ldl  $LIBS"
17264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17265 /* end confdefs.h.  */
17266
17267 /* Override any GCC internal prototype to avoid an error.
17268    Use char because int might match the return type of a GCC
17269    builtin and then its argument prototype would still apply.  */
17270 #ifdef __cplusplus
17271 extern "C"
17272 #endif
17273 char dlopen ();
17274 int
17275 main ()
17276 {
17277 return dlopen ();
17278   ;
17279   return 0;
17280 }
17281 _ACEOF
17282 if ac_fn_c_try_link "$LINENO"; then :
17283   ac_cv_lib_dl_dlopen=yes
17284 else
17285   ac_cv_lib_dl_dlopen=no
17286 fi
17287 rm -f core conftest.err conftest.$ac_objext \
17288     conftest$ac_exeext conftest.$ac_ext
17289 LIBS=$ac_check_lib_save_LIBS
17290 fi
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17292 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17293 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17294   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17295 else
17296
17297     lt_cv_dlopen="dyld"
17298     lt_cv_dlopen_libs=
17299     lt_cv_dlopen_self=yes
17300
17301 fi
17302
17303     ;;
17304
17305   *)
17306     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17307 if test "x$ac_cv_func_shl_load" = x""yes; then :
17308   lt_cv_dlopen="shl_load"
17309 else
17310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17311 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17312 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17313   $as_echo_n "(cached) " >&6
17314 else
17315   ac_check_lib_save_LIBS=$LIBS
17316 LIBS="-ldld  $LIBS"
17317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17318 /* end confdefs.h.  */
17319
17320 /* Override any GCC internal prototype to avoid an error.
17321    Use char because int might match the return type of a GCC
17322    builtin and then its argument prototype would still apply.  */
17323 #ifdef __cplusplus
17324 extern "C"
17325 #endif
17326 char shl_load ();
17327 int
17328 main ()
17329 {
17330 return shl_load ();
17331   ;
17332   return 0;
17333 }
17334 _ACEOF
17335 if ac_fn_c_try_link "$LINENO"; then :
17336   ac_cv_lib_dld_shl_load=yes
17337 else
17338   ac_cv_lib_dld_shl_load=no
17339 fi
17340 rm -f core conftest.err conftest.$ac_objext \
17341     conftest$ac_exeext conftest.$ac_ext
17342 LIBS=$ac_check_lib_save_LIBS
17343 fi
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17345 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17346 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17347   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17348 else
17349   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17350 if test "x$ac_cv_func_dlopen" = x""yes; then :
17351   lt_cv_dlopen="dlopen"
17352 else
17353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17354 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17355 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17356   $as_echo_n "(cached) " >&6
17357 else
17358   ac_check_lib_save_LIBS=$LIBS
17359 LIBS="-ldl  $LIBS"
17360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17361 /* end confdefs.h.  */
17362
17363 /* Override any GCC internal prototype to avoid an error.
17364    Use char because int might match the return type of a GCC
17365    builtin and then its argument prototype would still apply.  */
17366 #ifdef __cplusplus
17367 extern "C"
17368 #endif
17369 char dlopen ();
17370 int
17371 main ()
17372 {
17373 return dlopen ();
17374   ;
17375   return 0;
17376 }
17377 _ACEOF
17378 if ac_fn_c_try_link "$LINENO"; then :
17379   ac_cv_lib_dl_dlopen=yes
17380 else
17381   ac_cv_lib_dl_dlopen=no
17382 fi
17383 rm -f core conftest.err conftest.$ac_objext \
17384     conftest$ac_exeext conftest.$ac_ext
17385 LIBS=$ac_check_lib_save_LIBS
17386 fi
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17388 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17389 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17390   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17391 else
17392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17393 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17394 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17395   $as_echo_n "(cached) " >&6
17396 else
17397   ac_check_lib_save_LIBS=$LIBS
17398 LIBS="-lsvld  $LIBS"
17399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17400 /* end confdefs.h.  */
17401
17402 /* Override any GCC internal prototype to avoid an error.
17403    Use char because int might match the return type of a GCC
17404    builtin and then its argument prototype would still apply.  */
17405 #ifdef __cplusplus
17406 extern "C"
17407 #endif
17408 char dlopen ();
17409 int
17410 main ()
17411 {
17412 return dlopen ();
17413   ;
17414   return 0;
17415 }
17416 _ACEOF
17417 if ac_fn_c_try_link "$LINENO"; then :
17418   ac_cv_lib_svld_dlopen=yes
17419 else
17420   ac_cv_lib_svld_dlopen=no
17421 fi
17422 rm -f core conftest.err conftest.$ac_objext \
17423     conftest$ac_exeext conftest.$ac_ext
17424 LIBS=$ac_check_lib_save_LIBS
17425 fi
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17427 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17428 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17429   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17430 else
17431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17432 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17433 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17434   $as_echo_n "(cached) " >&6
17435 else
17436   ac_check_lib_save_LIBS=$LIBS
17437 LIBS="-ldld  $LIBS"
17438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17439 /* end confdefs.h.  */
17440
17441 /* Override any GCC internal prototype to avoid an error.
17442    Use char because int might match the return type of a GCC
17443    builtin and then its argument prototype would still apply.  */
17444 #ifdef __cplusplus
17445 extern "C"
17446 #endif
17447 char dld_link ();
17448 int
17449 main ()
17450 {
17451 return dld_link ();
17452   ;
17453   return 0;
17454 }
17455 _ACEOF
17456 if ac_fn_c_try_link "$LINENO"; then :
17457   ac_cv_lib_dld_dld_link=yes
17458 else
17459   ac_cv_lib_dld_dld_link=no
17460 fi
17461 rm -f core conftest.err conftest.$ac_objext \
17462     conftest$ac_exeext conftest.$ac_ext
17463 LIBS=$ac_check_lib_save_LIBS
17464 fi
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17466 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17467 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17468   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17469 fi
17470
17471
17472 fi
17473
17474
17475 fi
17476
17477
17478 fi
17479
17480
17481 fi
17482
17483
17484 fi
17485
17486     ;;
17487   esac
17488
17489   if test "x$lt_cv_dlopen" != xno; then
17490     enable_dlopen=yes
17491   else
17492     enable_dlopen=no
17493   fi
17494
17495   case $lt_cv_dlopen in
17496   dlopen)
17497     save_CPPFLAGS="$CPPFLAGS"
17498     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17499
17500     save_LDFLAGS="$LDFLAGS"
17501     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17502
17503     save_LIBS="$LIBS"
17504     LIBS="$lt_cv_dlopen_libs $LIBS"
17505
17506     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17507 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17508 if test "${lt_cv_dlopen_self+set}" = set; then :
17509   $as_echo_n "(cached) " >&6
17510 else
17511           if test "$cross_compiling" = yes; then :
17512   lt_cv_dlopen_self=cross
17513 else
17514   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17515   lt_status=$lt_dlunknown
17516   cat > conftest.$ac_ext <<_LT_EOF
17517 #line 17517 "configure"
17518 #include "confdefs.h"
17519
17520 #if HAVE_DLFCN_H
17521 #include <dlfcn.h>
17522 #endif
17523
17524 #include <stdio.h>
17525
17526 #ifdef RTLD_GLOBAL
17527 #  define LT_DLGLOBAL           RTLD_GLOBAL
17528 #else
17529 #  ifdef DL_GLOBAL
17530 #    define LT_DLGLOBAL         DL_GLOBAL
17531 #  else
17532 #    define LT_DLGLOBAL         0
17533 #  endif
17534 #endif
17535
17536 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17537    find out it does not work in some platform. */
17538 #ifndef LT_DLLAZY_OR_NOW
17539 #  ifdef RTLD_LAZY
17540 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17541 #  else
17542 #    ifdef DL_LAZY
17543 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17544 #    else
17545 #      ifdef RTLD_NOW
17546 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17547 #      else
17548 #        ifdef DL_NOW
17549 #          define LT_DLLAZY_OR_NOW      DL_NOW
17550 #        else
17551 #          define LT_DLLAZY_OR_NOW      0
17552 #        endif
17553 #      endif
17554 #    endif
17555 #  endif
17556 #endif
17557
17558 /* When -fvisbility=hidden is used, assume the code has been annotated
17559    correspondingly for the symbols needed.  */
17560 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17561 void fnord () __attribute__((visibility("default")));
17562 #endif
17563
17564 void fnord () { int i=42; }
17565 int main ()
17566 {
17567   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17568   int status = $lt_dlunknown;
17569
17570   if (self)
17571     {
17572       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17573       else
17574         {
17575           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17576           else puts (dlerror ());
17577         }
17578       /* dlclose (self); */
17579     }
17580   else
17581     puts (dlerror ());
17582
17583   return status;
17584 }
17585 _LT_EOF
17586   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17587   (eval $ac_link) 2>&5
17588   ac_status=$?
17589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17590   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17591     (./conftest; exit; ) >&5 2>/dev/null
17592     lt_status=$?
17593     case x$lt_status in
17594       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17595       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17596       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17597     esac
17598   else :
17599     # compilation failed
17600     lt_cv_dlopen_self=no
17601   fi
17602 fi
17603 rm -fr conftest*
17604
17605
17606 fi
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17608 $as_echo "$lt_cv_dlopen_self" >&6; }
17609
17610     if test "x$lt_cv_dlopen_self" = xyes; then
17611       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17612       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17613 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17614 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17615   $as_echo_n "(cached) " >&6
17616 else
17617           if test "$cross_compiling" = yes; then :
17618   lt_cv_dlopen_self_static=cross
17619 else
17620   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17621   lt_status=$lt_dlunknown
17622   cat > conftest.$ac_ext <<_LT_EOF
17623 #line 17623 "configure"
17624 #include "confdefs.h"
17625
17626 #if HAVE_DLFCN_H
17627 #include <dlfcn.h>
17628 #endif
17629
17630 #include <stdio.h>
17631
17632 #ifdef RTLD_GLOBAL
17633 #  define LT_DLGLOBAL           RTLD_GLOBAL
17634 #else
17635 #  ifdef DL_GLOBAL
17636 #    define LT_DLGLOBAL         DL_GLOBAL
17637 #  else
17638 #    define LT_DLGLOBAL         0
17639 #  endif
17640 #endif
17641
17642 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17643    find out it does not work in some platform. */
17644 #ifndef LT_DLLAZY_OR_NOW
17645 #  ifdef RTLD_LAZY
17646 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17647 #  else
17648 #    ifdef DL_LAZY
17649 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17650 #    else
17651 #      ifdef RTLD_NOW
17652 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17653 #      else
17654 #        ifdef DL_NOW
17655 #          define LT_DLLAZY_OR_NOW      DL_NOW
17656 #        else
17657 #          define LT_DLLAZY_OR_NOW      0
17658 #        endif
17659 #      endif
17660 #    endif
17661 #  endif
17662 #endif
17663
17664 /* When -fvisbility=hidden is used, assume the code has been annotated
17665    correspondingly for the symbols needed.  */
17666 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17667 void fnord () __attribute__((visibility("default")));
17668 #endif
17669
17670 void fnord () { int i=42; }
17671 int main ()
17672 {
17673   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17674   int status = $lt_dlunknown;
17675
17676   if (self)
17677     {
17678       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17679       else
17680         {
17681           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17682           else puts (dlerror ());
17683         }
17684       /* dlclose (self); */
17685     }
17686   else
17687     puts (dlerror ());
17688
17689   return status;
17690 }
17691 _LT_EOF
17692   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17693   (eval $ac_link) 2>&5
17694   ac_status=$?
17695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17696   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17697     (./conftest; exit; ) >&5 2>/dev/null
17698     lt_status=$?
17699     case x$lt_status in
17700       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17701       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17702       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17703     esac
17704   else :
17705     # compilation failed
17706     lt_cv_dlopen_self_static=no
17707   fi
17708 fi
17709 rm -fr conftest*
17710
17711
17712 fi
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17714 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17715     fi
17716
17717     CPPFLAGS="$save_CPPFLAGS"
17718     LDFLAGS="$save_LDFLAGS"
17719     LIBS="$save_LIBS"
17720     ;;
17721   esac
17722
17723   case $lt_cv_dlopen_self in
17724   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17725   *) enable_dlopen_self=unknown ;;
17726   esac
17727
17728   case $lt_cv_dlopen_self_static in
17729   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17730   *) enable_dlopen_self_static=unknown ;;
17731   esac
17732 fi
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750 striplib=
17751 old_striplib=
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17753 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17754 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17755   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17756   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17758 $as_echo "yes" >&6; }
17759 else
17760 # FIXME - insert some real tests, host_os isn't really good enough
17761   case $host_os in
17762   darwin*)
17763     if test -n "$STRIP" ; then
17764       striplib="$STRIP -x"
17765       old_striplib="$STRIP -S"
17766       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17767 $as_echo "yes" >&6; }
17768     else
17769       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17770 $as_echo "no" >&6; }
17771     fi
17772     ;;
17773   *)
17774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17775 $as_echo "no" >&6; }
17776     ;;
17777   esac
17778 fi
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791   # Report which library types will actually be built
17792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17793 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17795 $as_echo "$can_build_shared" >&6; }
17796
17797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17798 $as_echo_n "checking whether to build shared libraries... " >&6; }
17799   test "$can_build_shared" = "no" && enable_shared=no
17800
17801   # On AIX, shared libraries and static libraries use the same namespace, and
17802   # are all built from PIC.
17803   case $host_os in
17804   aix3*)
17805     test "$enable_shared" = yes && enable_static=no
17806     if test -n "$RANLIB"; then
17807       archive_cmds="$archive_cmds~\$RANLIB \$lib"
17808       postinstall_cmds='$RANLIB $lib'
17809     fi
17810     ;;
17811
17812   aix[4-9]*)
17813     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17814       test "$enable_shared" = yes && enable_static=no
17815     fi
17816     ;;
17817   esac
17818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17819 $as_echo "$enable_shared" >&6; }
17820
17821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17822 $as_echo_n "checking whether to build static libraries... " >&6; }
17823   # Make sure either enable_shared or enable_static is yes.
17824   test "$enable_shared" = yes || enable_static=yes
17825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17826 $as_echo "$enable_static" >&6; }
17827
17828
17829
17830
17831 fi
17832 ac_ext=c
17833 ac_cpp='$CPP $CPPFLAGS'
17834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17837
17838 CC="$lt_save_CC"
17839
17840       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17841     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17842     (test "X$CXX" != "Xg++"))) ; then
17843   ac_ext=cpp
17844 ac_cpp='$CXXCPP $CPPFLAGS'
17845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17849 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17850 if test -z "$CXXCPP"; then
17851   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17852   $as_echo_n "(cached) " >&6
17853 else
17854       # Double quotes because CXXCPP needs to be expanded
17855     for CXXCPP in "$CXX -E" "/lib/cpp"
17856     do
17857       ac_preproc_ok=false
17858 for ac_cxx_preproc_warn_flag in '' yes
17859 do
17860   # Use a header file that comes with gcc, so configuring glibc
17861   # with a fresh cross-compiler works.
17862   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17863   # <limits.h> exists even on freestanding compilers.
17864   # On the NeXT, cc -E runs the code through the compiler's parser,
17865   # not just through cpp. "Syntax error" is here to catch this case.
17866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17867 /* end confdefs.h.  */
17868 #ifdef __STDC__
17869 # include <limits.h>
17870 #else
17871 # include <assert.h>
17872 #endif
17873                      Syntax error
17874 _ACEOF
17875 if ac_fn_cxx_try_cpp "$LINENO"; then :
17876
17877 else
17878   # Broken: fails on valid input.
17879 continue
17880 fi
17881 rm -f conftest.err conftest.$ac_ext
17882
17883   # OK, works on sane cases.  Now check whether nonexistent headers
17884   # can be detected and how.
17885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17886 /* end confdefs.h.  */
17887 #include <ac_nonexistent.h>
17888 _ACEOF
17889 if ac_fn_cxx_try_cpp "$LINENO"; then :
17890   # Broken: success on invalid input.
17891 continue
17892 else
17893   # Passes both tests.
17894 ac_preproc_ok=:
17895 break
17896 fi
17897 rm -f conftest.err conftest.$ac_ext
17898
17899 done
17900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17901 rm -f conftest.err conftest.$ac_ext
17902 if $ac_preproc_ok; then :
17903   break
17904 fi
17905
17906     done
17907     ac_cv_prog_CXXCPP=$CXXCPP
17908
17909 fi
17910   CXXCPP=$ac_cv_prog_CXXCPP
17911 else
17912   ac_cv_prog_CXXCPP=$CXXCPP
17913 fi
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17915 $as_echo "$CXXCPP" >&6; }
17916 ac_preproc_ok=false
17917 for ac_cxx_preproc_warn_flag in '' yes
17918 do
17919   # Use a header file that comes with gcc, so configuring glibc
17920   # with a fresh cross-compiler works.
17921   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17922   # <limits.h> exists even on freestanding compilers.
17923   # On the NeXT, cc -E runs the code through the compiler's parser,
17924   # not just through cpp. "Syntax error" is here to catch this case.
17925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17926 /* end confdefs.h.  */
17927 #ifdef __STDC__
17928 # include <limits.h>
17929 #else
17930 # include <assert.h>
17931 #endif
17932                      Syntax error
17933 _ACEOF
17934 if ac_fn_cxx_try_cpp "$LINENO"; then :
17935
17936 else
17937   # Broken: fails on valid input.
17938 continue
17939 fi
17940 rm -f conftest.err conftest.$ac_ext
17941
17942   # OK, works on sane cases.  Now check whether nonexistent headers
17943   # can be detected and how.
17944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17945 /* end confdefs.h.  */
17946 #include <ac_nonexistent.h>
17947 _ACEOF
17948 if ac_fn_cxx_try_cpp "$LINENO"; then :
17949   # Broken: success on invalid input.
17950 continue
17951 else
17952   # Passes both tests.
17953 ac_preproc_ok=:
17954 break
17955 fi
17956 rm -f conftest.err conftest.$ac_ext
17957
17958 done
17959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17960 rm -f conftest.err conftest.$ac_ext
17961 if $ac_preproc_ok; then :
17962
17963 else
17964   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17966 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17967 See \`config.log' for more details." "$LINENO" 5; }
17968 fi
17969
17970 ac_ext=c
17971 ac_cpp='$CPP $CPPFLAGS'
17972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17975
17976 else
17977   _lt_caught_CXX_error=yes
17978 fi
17979
17980 ac_ext=cpp
17981 ac_cpp='$CXXCPP $CPPFLAGS'
17982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17985
17986 archive_cmds_need_lc_CXX=no
17987 allow_undefined_flag_CXX=
17988 always_export_symbols_CXX=no
17989 archive_expsym_cmds_CXX=
17990 compiler_needs_object_CXX=no
17991 export_dynamic_flag_spec_CXX=
17992 hardcode_direct_CXX=no
17993 hardcode_direct_absolute_CXX=no
17994 hardcode_libdir_flag_spec_CXX=
17995 hardcode_libdir_flag_spec_ld_CXX=
17996 hardcode_libdir_separator_CXX=
17997 hardcode_minus_L_CXX=no
17998 hardcode_shlibpath_var_CXX=unsupported
17999 hardcode_automatic_CXX=no
18000 inherit_rpath_CXX=no
18001 module_cmds_CXX=
18002 module_expsym_cmds_CXX=
18003 link_all_deplibs_CXX=unknown
18004 old_archive_cmds_CXX=$old_archive_cmds
18005 reload_flag_CXX=$reload_flag
18006 reload_cmds_CXX=$reload_cmds
18007 no_undefined_flag_CXX=
18008 whole_archive_flag_spec_CXX=
18009 enable_shared_with_static_runtimes_CXX=no
18010
18011 # Source file extension for C++ test sources.
18012 ac_ext=cpp
18013
18014 # Object file extension for compiled C++ test sources.
18015 objext=o
18016 objext_CXX=$objext
18017
18018 # No sense in running all these tests if we already determined that
18019 # the CXX compiler isn't working.  Some variables (like enable_shared)
18020 # are currently assumed to apply to all compilers on this platform,
18021 # and will be corrupted by setting them based on a non-working compiler.
18022 if test "$_lt_caught_CXX_error" != yes; then
18023   # Code to be used in simple compile tests
18024   lt_simple_compile_test_code="int some_variable = 0;"
18025
18026   # Code to be used in simple link tests
18027   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18028
18029   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18030
18031
18032
18033
18034
18035
18036 # If no C compiler was specified, use CC.
18037 LTCC=${LTCC-"$CC"}
18038
18039 # If no C compiler flags were specified, use CFLAGS.
18040 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18041
18042 # Allow CC to be a program name with arguments.
18043 compiler=$CC
18044
18045
18046   # save warnings/boilerplate of simple test code
18047   ac_outfile=conftest.$ac_objext
18048 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18049 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18050 _lt_compiler_boilerplate=`cat conftest.err`
18051 $RM conftest*
18052
18053   ac_outfile=conftest.$ac_objext
18054 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18055 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18056 _lt_linker_boilerplate=`cat conftest.err`
18057 $RM -r conftest*
18058
18059
18060   # Allow CC to be a program name with arguments.
18061   lt_save_CC=$CC
18062   lt_save_LD=$LD
18063   lt_save_GCC=$GCC
18064   GCC=$GXX
18065   lt_save_with_gnu_ld=$with_gnu_ld
18066   lt_save_path_LD=$lt_cv_path_LD
18067   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18068     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18069   else
18070     $as_unset lt_cv_prog_gnu_ld
18071   fi
18072   if test -n "${lt_cv_path_LDCXX+set}"; then
18073     lt_cv_path_LD=$lt_cv_path_LDCXX
18074   else
18075     $as_unset lt_cv_path_LD
18076   fi
18077   test -z "${LDCXX+set}" || LD=$LDCXX
18078   CC=${CXX-"c++"}
18079   compiler=$CC
18080   compiler_CXX=$CC
18081   for cc_temp in $compiler""; do
18082   case $cc_temp in
18083     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18084     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18085     \-*) ;;
18086     *) break;;
18087   esac
18088 done
18089 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18090
18091
18092   if test -n "$compiler"; then
18093     # We don't want -fno-exception when compiling C++ code, so set the
18094     # no_builtin_flag separately
18095     if test "$GXX" = yes; then
18096       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18097     else
18098       lt_prog_compiler_no_builtin_flag_CXX=
18099     fi
18100
18101     if test "$GXX" = yes; then
18102       # Set up default GNU C++ configuration
18103
18104
18105
18106 # Check whether --with-gnu-ld was given.
18107 if test "${with_gnu_ld+set}" = set; then :
18108   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18109 else
18110   with_gnu_ld=no
18111 fi
18112
18113 ac_prog=ld
18114 if test "$GCC" = yes; then
18115   # Check if gcc -print-prog-name=ld gives a path.
18116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18117 $as_echo_n "checking for ld used by $CC... " >&6; }
18118   case $host in
18119   *-*-mingw*)
18120     # gcc leaves a trailing carriage return which upsets mingw
18121     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18122   *)
18123     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18124   esac
18125   case $ac_prog in
18126     # Accept absolute paths.
18127     [\\/]* | ?:[\\/]*)
18128       re_direlt='/[^/][^/]*/\.\./'
18129       # Canonicalize the pathname of ld
18130       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18131       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18132         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18133       done
18134       test -z "$LD" && LD="$ac_prog"
18135       ;;
18136   "")
18137     # If it fails, then pretend we aren't using GCC.
18138     ac_prog=ld
18139     ;;
18140   *)
18141     # If it is relative, then search for the first ld in PATH.
18142     with_gnu_ld=unknown
18143     ;;
18144   esac
18145 elif test "$with_gnu_ld" = yes; then
18146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18147 $as_echo_n "checking for GNU ld... " >&6; }
18148 else
18149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18150 $as_echo_n "checking for non-GNU ld... " >&6; }
18151 fi
18152 if test "${lt_cv_path_LD+set}" = set; then :
18153   $as_echo_n "(cached) " >&6
18154 else
18155   if test -z "$LD"; then
18156   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18157   for ac_dir in $PATH; do
18158     IFS="$lt_save_ifs"
18159     test -z "$ac_dir" && ac_dir=.
18160     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18161       lt_cv_path_LD="$ac_dir/$ac_prog"
18162       # Check to see if the program is GNU ld.  I'd rather use --version,
18163       # but apparently some variants of GNU ld only accept -v.
18164       # Break only if it was the GNU/non-GNU ld that we prefer.
18165       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18166       *GNU* | *'with BFD'*)
18167         test "$with_gnu_ld" != no && break
18168         ;;
18169       *)
18170         test "$with_gnu_ld" != yes && break
18171         ;;
18172       esac
18173     fi
18174   done
18175   IFS="$lt_save_ifs"
18176 else
18177   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18178 fi
18179 fi
18180
18181 LD="$lt_cv_path_LD"
18182 if test -n "$LD"; then
18183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18184 $as_echo "$LD" >&6; }
18185 else
18186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18187 $as_echo "no" >&6; }
18188 fi
18189 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18191 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18192 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18193   $as_echo_n "(cached) " >&6
18194 else
18195   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18196 case `$LD -v 2>&1 </dev/null` in
18197 *GNU* | *'with BFD'*)
18198   lt_cv_prog_gnu_ld=yes
18199   ;;
18200 *)
18201   lt_cv_prog_gnu_ld=no
18202   ;;
18203 esac
18204 fi
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18206 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18207 with_gnu_ld=$lt_cv_prog_gnu_ld
18208
18209
18210
18211
18212
18213
18214
18215       # Check if GNU C++ uses GNU ld as the underlying linker, since the
18216       # archiving commands below assume that GNU ld is being used.
18217       if test "$with_gnu_ld" = yes; then
18218         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18219         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'
18220
18221         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18222         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18223
18224         # If archive_cmds runs LD, not CC, wlarc should be empty
18225         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18226         #     investigate it a little bit more. (MM)
18227         wlarc='${wl}'
18228
18229         # ancient GNU ld didn't support --whole-archive et. al.
18230         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18231           $GREP 'no-whole-archive' > /dev/null; then
18232           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18233         else
18234           whole_archive_flag_spec_CXX=
18235         fi
18236       else
18237         with_gnu_ld=no
18238         wlarc=
18239
18240         # A generic and very simple default shared library creation
18241         # command for GNU C++ for the case where it uses the native
18242         # linker, instead of GNU ld.  If possible, this setting should
18243         # overridden to take advantage of the native linker features on
18244         # the platform it is being used on.
18245         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18246       fi
18247
18248       # Commands to make compiler produce verbose output that lists
18249       # what "hidden" libraries, object files and flags are used when
18250       # linking a shared library.
18251       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18252
18253     else
18254       GXX=no
18255       with_gnu_ld=no
18256       wlarc=
18257     fi
18258
18259     # PORTME: fill in a description of your system's C++ link characteristics
18260     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18261 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18262     ld_shlibs_CXX=yes
18263     case $host_os in
18264       aix3*)
18265         # FIXME: insert proper C++ library support
18266         ld_shlibs_CXX=no
18267         ;;
18268       aix[4-9]*)
18269         if test "$host_cpu" = ia64; then
18270           # On IA64, the linker does run time linking by default, so we don't
18271           # have to do anything special.
18272           aix_use_runtimelinking=no
18273           exp_sym_flag='-Bexport'
18274           no_entry_flag=""
18275         else
18276           aix_use_runtimelinking=no
18277
18278           # Test if we are trying to use run time linking or normal
18279           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18280           # need to do runtime linking.
18281           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18282             for ld_flag in $LDFLAGS; do
18283               case $ld_flag in
18284               *-brtl*)
18285                 aix_use_runtimelinking=yes
18286                 break
18287                 ;;
18288               esac
18289             done
18290             ;;
18291           esac
18292
18293           exp_sym_flag='-bexport'
18294           no_entry_flag='-bnoentry'
18295         fi
18296
18297         # When large executables or shared objects are built, AIX ld can
18298         # have problems creating the table of contents.  If linking a library
18299         # or program results in "error TOC overflow" add -mminimal-toc to
18300         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18301         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18302
18303         archive_cmds_CXX=''
18304         hardcode_direct_CXX=yes
18305         hardcode_direct_absolute_CXX=yes
18306         hardcode_libdir_separator_CXX=':'
18307         link_all_deplibs_CXX=yes
18308         file_list_spec_CXX='${wl}-f,'
18309
18310         if test "$GXX" = yes; then
18311           case $host_os in aix4.[012]|aix4.[012].*)
18312           # We only want to do this on AIX 4.2 and lower, the check
18313           # below for broken collect2 doesn't work under 4.3+
18314           collect2name=`${CC} -print-prog-name=collect2`
18315           if test -f "$collect2name" &&
18316              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18317           then
18318             # We have reworked collect2
18319             :
18320           else
18321             # We have old collect2
18322             hardcode_direct_CXX=unsupported
18323             # It fails to find uninstalled libraries when the uninstalled
18324             # path is not listed in the libpath.  Setting hardcode_minus_L
18325             # to unsupported forces relinking
18326             hardcode_minus_L_CXX=yes
18327             hardcode_libdir_flag_spec_CXX='-L$libdir'
18328             hardcode_libdir_separator_CXX=
18329           fi
18330           esac
18331           shared_flag='-shared'
18332           if test "$aix_use_runtimelinking" = yes; then
18333             shared_flag="$shared_flag "'${wl}-G'
18334           fi
18335         else
18336           # not using gcc
18337           if test "$host_cpu" = ia64; then
18338           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18339           # chokes on -Wl,-G. The following line is correct:
18340           shared_flag='-G'
18341           else
18342             if test "$aix_use_runtimelinking" = yes; then
18343               shared_flag='${wl}-G'
18344             else
18345               shared_flag='${wl}-bM:SRE'
18346             fi
18347           fi
18348         fi
18349
18350         export_dynamic_flag_spec_CXX='${wl}-bexpall'
18351         # It seems that -bexpall does not export symbols beginning with
18352         # underscore (_), so it is better to generate a list of symbols to
18353         # export.
18354         always_export_symbols_CXX=yes
18355         if test "$aix_use_runtimelinking" = yes; then
18356           # Warning - without using the other runtime loading flags (-brtl),
18357           # -berok will link without error, but may produce a broken library.
18358           allow_undefined_flag_CXX='-berok'
18359           # Determine the default libpath from the value encoded in an empty
18360           # executable.
18361           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18362 /* end confdefs.h.  */
18363
18364 int
18365 main ()
18366 {
18367
18368   ;
18369   return 0;
18370 }
18371 _ACEOF
18372 if ac_fn_cxx_try_link "$LINENO"; then :
18373
18374 lt_aix_libpath_sed='
18375     /Import File Strings/,/^$/ {
18376         /^0/ {
18377             s/^0  *\(.*\)$/\1/
18378             p
18379         }
18380     }'
18381 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18382 # Check for a 64-bit object if we didn't find anything.
18383 if test -z "$aix_libpath"; then
18384   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18385 fi
18386 fi
18387 rm -f core conftest.err conftest.$ac_objext \
18388     conftest$ac_exeext conftest.$ac_ext
18389 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18390
18391           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18392
18393           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"
18394         else
18395           if test "$host_cpu" = ia64; then
18396             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18397             allow_undefined_flag_CXX="-z nodefs"
18398             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"
18399           else
18400             # Determine the default libpath from the value encoded in an
18401             # empty executable.
18402             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18403 /* end confdefs.h.  */
18404
18405 int
18406 main ()
18407 {
18408
18409   ;
18410   return 0;
18411 }
18412 _ACEOF
18413 if ac_fn_cxx_try_link "$LINENO"; then :
18414
18415 lt_aix_libpath_sed='
18416     /Import File Strings/,/^$/ {
18417         /^0/ {
18418             s/^0  *\(.*\)$/\1/
18419             p
18420         }
18421     }'
18422 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18423 # Check for a 64-bit object if we didn't find anything.
18424 if test -z "$aix_libpath"; then
18425   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18426 fi
18427 fi
18428 rm -f core conftest.err conftest.$ac_objext \
18429     conftest$ac_exeext conftest.$ac_ext
18430 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18431
18432             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18433             # Warning - without using the other run time loading flags,
18434             # -berok will link without error, but may produce a broken library.
18435             no_undefined_flag_CXX=' ${wl}-bernotok'
18436             allow_undefined_flag_CXX=' ${wl}-berok'
18437             if test "$with_gnu_ld" = yes; then
18438               # We only use this code for GNU lds that support --whole-archive.
18439               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18440             else
18441               # Exported symbols can be pulled into shared objects from archives
18442               whole_archive_flag_spec_CXX='$convenience'
18443             fi
18444             archive_cmds_need_lc_CXX=yes
18445             # This is similar to how AIX traditionally builds its shared
18446             # libraries.
18447             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'
18448           fi
18449         fi
18450         ;;
18451
18452       beos*)
18453         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18454           allow_undefined_flag_CXX=unsupported
18455           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18456           # support --undefined.  This deserves some investigation.  FIXME
18457           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18458         else
18459           ld_shlibs_CXX=no
18460         fi
18461         ;;
18462
18463       chorus*)
18464         case $cc_basename in
18465           *)
18466           # FIXME: insert proper C++ library support
18467           ld_shlibs_CXX=no
18468           ;;
18469         esac
18470         ;;
18471
18472       cygwin* | mingw* | pw32* | cegcc*)
18473         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18474         # as there is no search path for DLLs.
18475         hardcode_libdir_flag_spec_CXX='-L$libdir'
18476         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18477         allow_undefined_flag_CXX=unsupported
18478         always_export_symbols_CXX=no
18479         enable_shared_with_static_runtimes_CXX=yes
18480
18481         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18482           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'
18483           # If the export-symbols file already is a .def file (1st line
18484           # is EXPORTS), use it as is; otherwise, prepend...
18485           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18486             cp $export_symbols $output_objdir/$soname.def;
18487           else
18488             echo EXPORTS > $output_objdir/$soname.def;
18489             cat $export_symbols >> $output_objdir/$soname.def;
18490           fi~
18491           $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'
18492         else
18493           ld_shlibs_CXX=no
18494         fi
18495         ;;
18496       darwin* | rhapsody*)
18497
18498
18499   archive_cmds_need_lc_CXX=no
18500   hardcode_direct_CXX=no
18501   hardcode_automatic_CXX=yes
18502   hardcode_shlibpath_var_CXX=unsupported
18503   if test "$lt_cv_ld_force_load" = "yes"; then
18504     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\"`'
18505   else
18506     whole_archive_flag_spec_CXX=''
18507   fi
18508   link_all_deplibs_CXX=yes
18509   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18510   case $cc_basename in
18511      ifort*) _lt_dar_can_shared=yes ;;
18512      *) _lt_dar_can_shared=$GCC ;;
18513   esac
18514   if test "$_lt_dar_can_shared" = "yes"; then
18515     output_verbose_link_cmd=func_echo_all
18516     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}"
18517     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18518     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}"
18519     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}"
18520        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18521       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}"
18522       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}"
18523     fi
18524
18525   else
18526   ld_shlibs_CXX=no
18527   fi
18528
18529         ;;
18530
18531       dgux*)
18532         case $cc_basename in
18533           ec++*)
18534             # FIXME: insert proper C++ library support
18535             ld_shlibs_CXX=no
18536             ;;
18537           ghcx*)
18538             # Green Hills C++ Compiler
18539             # FIXME: insert proper C++ library support
18540             ld_shlibs_CXX=no
18541             ;;
18542           *)
18543             # FIXME: insert proper C++ library support
18544             ld_shlibs_CXX=no
18545             ;;
18546         esac
18547         ;;
18548
18549       freebsd[12]*)
18550         # C++ shared libraries reported to be fairly broken before
18551         # switch to ELF
18552         ld_shlibs_CXX=no
18553         ;;
18554
18555       freebsd-elf*)
18556         archive_cmds_need_lc_CXX=no
18557         ;;
18558
18559       freebsd* | dragonfly*)
18560         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18561         # conventions
18562         ld_shlibs_CXX=yes
18563         ;;
18564
18565       gnu*)
18566         ;;
18567
18568       haiku*)
18569         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18570         link_all_deplibs_CXX=yes
18571         ;;
18572
18573       hpux9*)
18574         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18575         hardcode_libdir_separator_CXX=:
18576         export_dynamic_flag_spec_CXX='${wl}-E'
18577         hardcode_direct_CXX=yes
18578         hardcode_minus_L_CXX=yes # Not in the search PATH,
18579                                              # but as the default
18580                                              # location of the library.
18581
18582         case $cc_basename in
18583           CC*)
18584             # FIXME: insert proper C++ library support
18585             ld_shlibs_CXX=no
18586             ;;
18587           aCC*)
18588             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'
18589             # Commands to make compiler produce verbose output that lists
18590             # what "hidden" libraries, object files and flags are used when
18591             # linking a shared library.
18592             #
18593             # There doesn't appear to be a way to prevent this compiler from
18594             # explicitly linking system object files so we need to strip them
18595             # from the output so that they don't get included in the library
18596             # dependencies.
18597             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"'
18598             ;;
18599           *)
18600             if test "$GXX" = yes; then
18601               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'
18602             else
18603               # FIXME: insert proper C++ library support
18604               ld_shlibs_CXX=no
18605             fi
18606             ;;
18607         esac
18608         ;;
18609
18610       hpux10*|hpux11*)
18611         if test $with_gnu_ld = no; then
18612           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18613           hardcode_libdir_separator_CXX=:
18614
18615           case $host_cpu in
18616             hppa*64*|ia64*)
18617               ;;
18618             *)
18619               export_dynamic_flag_spec_CXX='${wl}-E'
18620               ;;
18621           esac
18622         fi
18623         case $host_cpu in
18624           hppa*64*|ia64*)
18625             hardcode_direct_CXX=no
18626             hardcode_shlibpath_var_CXX=no
18627             ;;
18628           *)
18629             hardcode_direct_CXX=yes
18630             hardcode_direct_absolute_CXX=yes
18631             hardcode_minus_L_CXX=yes # Not in the search PATH,
18632                                                  # but as the default
18633                                                  # location of the library.
18634             ;;
18635         esac
18636
18637         case $cc_basename in
18638           CC*)
18639             # FIXME: insert proper C++ library support
18640             ld_shlibs_CXX=no
18641             ;;
18642           aCC*)
18643             case $host_cpu in
18644               hppa*64*)
18645                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18646                 ;;
18647               ia64*)
18648                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18649                 ;;
18650               *)
18651                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18652                 ;;
18653             esac
18654             # Commands to make compiler produce verbose output that lists
18655             # what "hidden" libraries, object files and flags are used when
18656             # linking a shared library.
18657             #
18658             # There doesn't appear to be a way to prevent this compiler from
18659             # explicitly linking system object files so we need to strip them
18660             # from the output so that they don't get included in the library
18661             # dependencies.
18662             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"'
18663             ;;
18664           *)
18665             if test "$GXX" = yes; then
18666               if test $with_gnu_ld = no; then
18667                 case $host_cpu in
18668                   hppa*64*)
18669                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18670                     ;;
18671                   ia64*)
18672                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18673                     ;;
18674                   *)
18675                     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'
18676                     ;;
18677                 esac
18678               fi
18679             else
18680               # FIXME: insert proper C++ library support
18681               ld_shlibs_CXX=no
18682             fi
18683             ;;
18684         esac
18685         ;;
18686
18687       interix[3-9]*)
18688         hardcode_direct_CXX=no
18689         hardcode_shlibpath_var_CXX=no
18690         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18691         export_dynamic_flag_spec_CXX='${wl}-E'
18692         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18693         # Instead, shared libraries are loaded at an image base (0x10000000 by
18694         # default) and relocated if they conflict, which is a slow very memory
18695         # consuming and fragmenting process.  To avoid this, we pick a random,
18696         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18697         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18698         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'
18699         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'
18700         ;;
18701       irix5* | irix6*)
18702         case $cc_basename in
18703           CC*)
18704             # SGI C++
18705             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'
18706
18707             # Archives containing C++ object files must be created using
18708             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18709             # necessary to make sure instantiated templates are included
18710             # in the archive.
18711             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18712             ;;
18713           *)
18714             if test "$GXX" = yes; then
18715               if test "$with_gnu_ld" = no; then
18716                 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'
18717               else
18718                 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'
18719               fi
18720             fi
18721             link_all_deplibs_CXX=yes
18722             ;;
18723         esac
18724         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18725         hardcode_libdir_separator_CXX=:
18726         inherit_rpath_CXX=yes
18727         ;;
18728
18729       linux* | k*bsd*-gnu | kopensolaris*-gnu)
18730         case $cc_basename in
18731           KCC*)
18732             # Kuck and Associates, Inc. (KAI) C++ Compiler
18733
18734             # KCC will only create a shared library if the output file
18735             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18736             # to its proper name (with version) after linking.
18737             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'
18738             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'
18739             # Commands to make compiler produce verbose output that lists
18740             # what "hidden" libraries, object files and flags are used when
18741             # linking a shared library.
18742             #
18743             # There doesn't appear to be a way to prevent this compiler from
18744             # explicitly linking system object files so we need to strip them
18745             # from the output so that they don't get included in the library
18746             # dependencies.
18747             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"'
18748
18749             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18750             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18751
18752             # Archives containing C++ object files must be created using
18753             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18754             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18755             ;;
18756           icpc* | ecpc* )
18757             # Intel C++
18758             with_gnu_ld=yes
18759             # version 8.0 and above of icpc choke on multiply defined symbols
18760             # if we add $predep_objects and $postdep_objects, however 7.1 and
18761             # earlier do not add the objects themselves.
18762             case `$CC -V 2>&1` in
18763               *"Version 7."*)
18764                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18765                 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'
18766                 ;;
18767               *)  # Version 8.0 or newer
18768                 tmp_idyn=
18769                 case $host_cpu in
18770                   ia64*) tmp_idyn=' -i_dynamic';;
18771                 esac
18772                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18773                 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'
18774                 ;;
18775             esac
18776             archive_cmds_need_lc_CXX=no
18777             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18778             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18779             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18780             ;;
18781           pgCC* | pgcpp*)
18782             # Portland Group C++ compiler
18783             case `$CC -V` in
18784             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18785               prelink_cmds_CXX='tpldir=Template.dir~
18786                 rm -rf $tpldir~
18787                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18788                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18789               old_archive_cmds_CXX='tpldir=Template.dir~
18790                 rm -rf $tpldir~
18791                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18792                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18793                 $RANLIB $oldlib'
18794               archive_cmds_CXX='tpldir=Template.dir~
18795                 rm -rf $tpldir~
18796                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18797                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18798               archive_expsym_cmds_CXX='tpldir=Template.dir~
18799                 rm -rf $tpldir~
18800                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18801                 $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'
18802               ;;
18803             *) # Version 6 and above use weak symbols
18804               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18805               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'
18806               ;;
18807             esac
18808
18809             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18810             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18811             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'
18812             ;;
18813           cxx*)
18814             # Compaq C++
18815             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18816             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'
18817
18818             runpath_var=LD_RUN_PATH
18819             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18820             hardcode_libdir_separator_CXX=:
18821
18822             # Commands to make compiler produce verbose output that lists
18823             # what "hidden" libraries, object files and flags are used when
18824             # linking a shared library.
18825             #
18826             # There doesn't appear to be a way to prevent this compiler from
18827             # explicitly linking system object files so we need to strip them
18828             # from the output so that they don't get included in the library
18829             # dependencies.
18830             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'
18831             ;;
18832           xl* | mpixl* | bgxl*)
18833             # IBM XL 8.0 on PPC, with GNU ld
18834             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18835             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18836             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18837             if test "x$supports_anon_versioning" = xyes; then
18838               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18839                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18840                 echo "local: *; };" >> $output_objdir/$libname.ver~
18841                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18842             fi
18843             ;;
18844           *)
18845             case `$CC -V 2>&1 | sed 5q` in
18846             *Sun\ C*)
18847               # Sun C++ 5.9
18848               no_undefined_flag_CXX=' -zdefs'
18849               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18850               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'
18851               hardcode_libdir_flag_spec_CXX='-R$libdir'
18852               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'
18853               compiler_needs_object_CXX=yes
18854
18855               # Not sure whether something based on
18856               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18857               # would be better.
18858               output_verbose_link_cmd='func_echo_all'
18859
18860               # Archives containing C++ object files must be created using
18861               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18862               # necessary to make sure instantiated templates are included
18863               # in the archive.
18864               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18865               ;;
18866             esac
18867             ;;
18868         esac
18869         ;;
18870
18871       lynxos*)
18872         # FIXME: insert proper C++ library support
18873         ld_shlibs_CXX=no
18874         ;;
18875
18876       m88k*)
18877         # FIXME: insert proper C++ library support
18878         ld_shlibs_CXX=no
18879         ;;
18880
18881       mvs*)
18882         case $cc_basename in
18883           cxx*)
18884             # FIXME: insert proper C++ library support
18885             ld_shlibs_CXX=no
18886             ;;
18887           *)
18888             # FIXME: insert proper C++ library support
18889             ld_shlibs_CXX=no
18890             ;;
18891         esac
18892         ;;
18893
18894       netbsd*)
18895         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18896           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18897           wlarc=
18898           hardcode_libdir_flag_spec_CXX='-R$libdir'
18899           hardcode_direct_CXX=yes
18900           hardcode_shlibpath_var_CXX=no
18901         fi
18902         # Workaround some broken pre-1.5 toolchains
18903         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18904         ;;
18905
18906       *nto* | *qnx*)
18907         ld_shlibs_CXX=yes
18908         ;;
18909
18910       openbsd2*)
18911         # C++ shared libraries are fairly broken
18912         ld_shlibs_CXX=no
18913         ;;
18914
18915       openbsd*)
18916         if test -f /usr/libexec/ld.so; then
18917           hardcode_direct_CXX=yes
18918           hardcode_shlibpath_var_CXX=no
18919           hardcode_direct_absolute_CXX=yes
18920           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18921           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18922           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18923             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18924             export_dynamic_flag_spec_CXX='${wl}-E'
18925             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18926           fi
18927           output_verbose_link_cmd=func_echo_all
18928         else
18929           ld_shlibs_CXX=no
18930         fi
18931         ;;
18932
18933       osf3* | osf4* | osf5*)
18934         case $cc_basename in
18935           KCC*)
18936             # Kuck and Associates, Inc. (KAI) C++ Compiler
18937
18938             # KCC will only create a shared library if the output file
18939             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18940             # to its proper name (with version) after linking.
18941             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'
18942
18943             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18944             hardcode_libdir_separator_CXX=:
18945
18946             # Archives containing C++ object files must be created using
18947             # the KAI C++ compiler.
18948             case $host in
18949               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18950               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18951             esac
18952             ;;
18953           RCC*)
18954             # Rational C++ 2.4.1
18955             # FIXME: insert proper C++ library support
18956             ld_shlibs_CXX=no
18957             ;;
18958           cxx*)
18959             case $host in
18960               osf3*)
18961                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18962                 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'
18963                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18964                 ;;
18965               *)
18966                 allow_undefined_flag_CXX=' -expect_unresolved \*'
18967                 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'
18968                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18969                   echo "-hidden">> $lib.exp~
18970                   $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~
18971                   $RM $lib.exp'
18972                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18973                 ;;
18974             esac
18975
18976             hardcode_libdir_separator_CXX=:
18977
18978             # Commands to make compiler produce verbose output that lists
18979             # what "hidden" libraries, object files and flags are used when
18980             # linking a shared library.
18981             #
18982             # There doesn't appear to be a way to prevent this compiler from
18983             # explicitly linking system object files so we need to strip them
18984             # from the output so that they don't get included in the library
18985             # dependencies.
18986             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"'
18987             ;;
18988           *)
18989             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18990               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18991               case $host in
18992                 osf3*)
18993                   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'
18994                   ;;
18995                 *)
18996                   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'
18997                   ;;
18998               esac
18999
19000               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19001               hardcode_libdir_separator_CXX=:
19002
19003               # Commands to make compiler produce verbose output that lists
19004               # what "hidden" libraries, object files and flags are used when
19005               # linking a shared library.
19006               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19007
19008             else
19009               # FIXME: insert proper C++ library support
19010               ld_shlibs_CXX=no
19011             fi
19012             ;;
19013         esac
19014         ;;
19015
19016       psos*)
19017         # FIXME: insert proper C++ library support
19018         ld_shlibs_CXX=no
19019         ;;
19020
19021       sunos4*)
19022         case $cc_basename in
19023           CC*)
19024             # Sun C++ 4.x
19025             # FIXME: insert proper C++ library support
19026             ld_shlibs_CXX=no
19027             ;;
19028           lcc*)
19029             # Lucid
19030             # FIXME: insert proper C++ library support
19031             ld_shlibs_CXX=no
19032             ;;
19033           *)
19034             # FIXME: insert proper C++ library support
19035             ld_shlibs_CXX=no
19036             ;;
19037         esac
19038         ;;
19039
19040       solaris*)
19041         case $cc_basename in
19042           CC*)
19043             # Sun C++ 4.2, 5.x and Centerline C++
19044             archive_cmds_need_lc_CXX=yes
19045             no_undefined_flag_CXX=' -zdefs'
19046             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19047             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19048               $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'
19049
19050             hardcode_libdir_flag_spec_CXX='-R$libdir'
19051             hardcode_shlibpath_var_CXX=no
19052             case $host_os in
19053               solaris2.[0-5] | solaris2.[0-5].*) ;;
19054               *)
19055                 # The compiler driver will combine and reorder linker options,
19056                 # but understands `-z linker_flag'.
19057                 # Supported since Solaris 2.6 (maybe 2.5.1?)
19058                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19059                 ;;
19060             esac
19061             link_all_deplibs_CXX=yes
19062
19063             output_verbose_link_cmd='func_echo_all'
19064
19065             # Archives containing C++ object files must be created using
19066             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19067             # necessary to make sure instantiated templates are included
19068             # in the archive.
19069             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19070             ;;
19071           gcx*)
19072             # Green Hills C++ Compiler
19073             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19074
19075             # The C++ compiler must be used to create the archive.
19076             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19077             ;;
19078           *)
19079             # GNU C++ compiler with Solaris linker
19080             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19081               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19082               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19083                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19084                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19085                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19086
19087                 # Commands to make compiler produce verbose output that lists
19088                 # what "hidden" libraries, object files and flags are used when
19089                 # linking a shared library.
19090                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19091               else
19092                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19093                 # platform.
19094                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19095                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19096                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19097
19098                 # Commands to make compiler produce verbose output that lists
19099                 # what "hidden" libraries, object files and flags are used when
19100                 # linking a shared library.
19101                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19102               fi
19103
19104               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19105               case $host_os in
19106                 solaris2.[0-5] | solaris2.[0-5].*) ;;
19107                 *)
19108                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19109                   ;;
19110               esac
19111             fi
19112             ;;
19113         esac
19114         ;;
19115
19116     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19117       no_undefined_flag_CXX='${wl}-z,text'
19118       archive_cmds_need_lc_CXX=no
19119       hardcode_shlibpath_var_CXX=no
19120       runpath_var='LD_RUN_PATH'
19121
19122       case $cc_basename in
19123         CC*)
19124           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19125           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19126           ;;
19127         *)
19128           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19129           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19130           ;;
19131       esac
19132       ;;
19133
19134       sysv5* | sco3.2v5* | sco5v6*)
19135         # Note: We can NOT use -z defs as we might desire, because we do not
19136         # link with -lc, and that would cause any symbols used from libc to
19137         # always be unresolved, which means just about no library would
19138         # ever link correctly.  If we're not using GNU ld we use -z text
19139         # though, which does catch some bad symbols but isn't as heavy-handed
19140         # as -z defs.
19141         no_undefined_flag_CXX='${wl}-z,text'
19142         allow_undefined_flag_CXX='${wl}-z,nodefs'
19143         archive_cmds_need_lc_CXX=no
19144         hardcode_shlibpath_var_CXX=no
19145         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19146         hardcode_libdir_separator_CXX=':'
19147         link_all_deplibs_CXX=yes
19148         export_dynamic_flag_spec_CXX='${wl}-Bexport'
19149         runpath_var='LD_RUN_PATH'
19150
19151         case $cc_basename in
19152           CC*)
19153             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19154             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19155             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19156               '"$old_archive_cmds_CXX"
19157             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19158               '"$reload_cmds_CXX"
19159             ;;
19160           *)
19161             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19162             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19163             ;;
19164         esac
19165       ;;
19166
19167       tandem*)
19168         case $cc_basename in
19169           NCC*)
19170             # NonStop-UX NCC 3.20
19171             # FIXME: insert proper C++ library support
19172             ld_shlibs_CXX=no
19173             ;;
19174           *)
19175             # FIXME: insert proper C++ library support
19176             ld_shlibs_CXX=no
19177             ;;
19178         esac
19179         ;;
19180
19181       vxworks*)
19182         # FIXME: insert proper C++ library support
19183         ld_shlibs_CXX=no
19184         ;;
19185
19186       *)
19187         # FIXME: insert proper C++ library support
19188         ld_shlibs_CXX=no
19189         ;;
19190     esac
19191
19192     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19193 $as_echo "$ld_shlibs_CXX" >&6; }
19194     test "$ld_shlibs_CXX" = no && can_build_shared=no
19195
19196     GCC_CXX="$GXX"
19197     LD_CXX="$LD"
19198
19199     ## CAVEAT EMPTOR:
19200     ## There is no encapsulation within the following macros, do not change
19201     ## the running order or otherwise move them around unless you know exactly
19202     ## what you are doing...
19203     # Dependencies to place before and after the object being linked:
19204 predep_objects_CXX=
19205 postdep_objects_CXX=
19206 predeps_CXX=
19207 postdeps_CXX=
19208 compiler_lib_search_path_CXX=
19209
19210 cat > conftest.$ac_ext <<_LT_EOF
19211 class Foo
19212 {
19213 public:
19214   Foo (void) { a = 0; }
19215 private:
19216   int a;
19217 };
19218 _LT_EOF
19219
19220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19221   (eval $ac_compile) 2>&5
19222   ac_status=$?
19223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19224   test $ac_status = 0; }; then
19225   # Parse the compiler output and extract the necessary
19226   # objects, libraries and library flags.
19227
19228   # Sentinel used to keep track of whether or not we are before
19229   # the conftest object file.
19230   pre_test_object_deps_done=no
19231
19232   for p in `eval "$output_verbose_link_cmd"`; do
19233     case $p in
19234
19235     -L* | -R* | -l*)
19236        # Some compilers place space between "-{L,R}" and the path.
19237        # Remove the space.
19238        if test $p = "-L" ||
19239           test $p = "-R"; then
19240          prev=$p
19241          continue
19242        else
19243          prev=
19244        fi
19245
19246        if test "$pre_test_object_deps_done" = no; then
19247          case $p in
19248          -L* | -R*)
19249            # Internal compiler library paths should come after those
19250            # provided the user.  The postdeps already come after the
19251            # user supplied libs so there is no need to process them.
19252            if test -z "$compiler_lib_search_path_CXX"; then
19253              compiler_lib_search_path_CXX="${prev}${p}"
19254            else
19255              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19256            fi
19257            ;;
19258          # The "-l" case would never come before the object being
19259          # linked, so don't bother handling this case.
19260          esac
19261        else
19262          if test -z "$postdeps_CXX"; then
19263            postdeps_CXX="${prev}${p}"
19264          else
19265            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19266          fi
19267        fi
19268        ;;
19269
19270     *.$objext)
19271        # This assumes that the test object file only shows up
19272        # once in the compiler output.
19273        if test "$p" = "conftest.$objext"; then
19274          pre_test_object_deps_done=yes
19275          continue
19276        fi
19277
19278        if test "$pre_test_object_deps_done" = no; then
19279          if test -z "$predep_objects_CXX"; then
19280            predep_objects_CXX="$p"
19281          else
19282            predep_objects_CXX="$predep_objects_CXX $p"
19283          fi
19284        else
19285          if test -z "$postdep_objects_CXX"; then
19286            postdep_objects_CXX="$p"
19287          else
19288            postdep_objects_CXX="$postdep_objects_CXX $p"
19289          fi
19290        fi
19291        ;;
19292
19293     *) ;; # Ignore the rest.
19294
19295     esac
19296   done
19297
19298   # Clean up.
19299   rm -f a.out a.exe
19300 else
19301   echo "libtool.m4: error: problem compiling CXX test program"
19302 fi
19303
19304 $RM -f confest.$objext
19305
19306 # PORTME: override above test on systems where it is broken
19307 case $host_os in
19308 interix[3-9]*)
19309   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19310   # hack all around it, let's just trust "g++" to DTRT.
19311   predep_objects_CXX=
19312   postdep_objects_CXX=
19313   postdeps_CXX=
19314   ;;
19315
19316 linux*)
19317   case `$CC -V 2>&1 | sed 5q` in
19318   *Sun\ C*)
19319     # Sun C++ 5.9
19320
19321     # The more standards-conforming stlport4 library is
19322     # incompatible with the Cstd library. Avoid specifying
19323     # it if it's in CXXFLAGS. Ignore libCrun as
19324     # -library=stlport4 depends on it.
19325     case " $CXX $CXXFLAGS " in
19326     *" -library=stlport4 "*)
19327       solaris_use_stlport4=yes
19328       ;;
19329     esac
19330
19331     if test "$solaris_use_stlport4" != yes; then
19332       postdeps_CXX='-library=Cstd -library=Crun'
19333     fi
19334     ;;
19335   esac
19336   ;;
19337
19338 solaris*)
19339   case $cc_basename in
19340   CC*)
19341     # The more standards-conforming stlport4 library is
19342     # incompatible with the Cstd library. Avoid specifying
19343     # it if it's in CXXFLAGS. Ignore libCrun as
19344     # -library=stlport4 depends on it.
19345     case " $CXX $CXXFLAGS " in
19346     *" -library=stlport4 "*)
19347       solaris_use_stlport4=yes
19348       ;;
19349     esac
19350
19351     # Adding this requires a known-good setup of shared libraries for
19352     # Sun compiler versions before 5.6, else PIC objects from an old
19353     # archive will be linked into the output, leading to subtle bugs.
19354     if test "$solaris_use_stlport4" != yes; then
19355       postdeps_CXX='-library=Cstd -library=Crun'
19356     fi
19357     ;;
19358   esac
19359   ;;
19360 esac
19361
19362
19363 case " $postdeps_CXX " in
19364 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19365 esac
19366  compiler_lib_search_dirs_CXX=
19367 if test -n "${compiler_lib_search_path_CXX}"; then
19368  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19369 fi
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401     lt_prog_compiler_wl_CXX=
19402 lt_prog_compiler_pic_CXX=
19403 lt_prog_compiler_static_CXX=
19404
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19406 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19407
19408   # C++ specific cases for pic, static, wl, etc.
19409   if test "$GXX" = yes; then
19410     lt_prog_compiler_wl_CXX='-Wl,'
19411     lt_prog_compiler_static_CXX='-static'
19412
19413     case $host_os in
19414     aix*)
19415       # All AIX code is PIC.
19416       if test "$host_cpu" = ia64; then
19417         # AIX 5 now supports IA64 processor
19418         lt_prog_compiler_static_CXX='-Bstatic'
19419       fi
19420       ;;
19421
19422     amigaos*)
19423       case $host_cpu in
19424       powerpc)
19425             # see comment about AmigaOS4 .so support
19426             lt_prog_compiler_pic_CXX='-fPIC'
19427         ;;
19428       m68k)
19429             # FIXME: we need at least 68020 code to build shared libraries, but
19430             # adding the `-m68020' flag to GCC prevents building anything better,
19431             # like `-m68040'.
19432             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19433         ;;
19434       esac
19435       ;;
19436
19437     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19438       # PIC is the default for these OSes.
19439       ;;
19440     mingw* | cygwin* | os2* | pw32* | cegcc*)
19441       # This hack is so that the source file can tell whether it is being
19442       # built for inclusion in a dll (and should export symbols for example).
19443       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19444       # (--disable-auto-import) libraries
19445       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19446       ;;
19447     darwin* | rhapsody*)
19448       # PIC is the default on this platform
19449       # Common symbols not allowed in MH_DYLIB files
19450       lt_prog_compiler_pic_CXX='-fno-common'
19451       ;;
19452     *djgpp*)
19453       # DJGPP does not support shared libraries at all
19454       lt_prog_compiler_pic_CXX=
19455       ;;
19456     haiku*)
19457       # PIC is the default for Haiku.
19458       # The "-static" flag exists, but is broken.
19459       lt_prog_compiler_static_CXX=
19460       ;;
19461     interix[3-9]*)
19462       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19463       # Instead, we relocate shared libraries at runtime.
19464       ;;
19465     sysv4*MP*)
19466       if test -d /usr/nec; then
19467         lt_prog_compiler_pic_CXX=-Kconform_pic
19468       fi
19469       ;;
19470     hpux*)
19471       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19472       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19473       # sets the default TLS model and affects inlining.
19474       case $host_cpu in
19475       hppa*64*)
19476         ;;
19477       *)
19478         lt_prog_compiler_pic_CXX='-fPIC'
19479         ;;
19480       esac
19481       ;;
19482     *qnx* | *nto*)
19483       # QNX uses GNU C++, but need to define -shared option too, otherwise
19484       # it will coredump.
19485       lt_prog_compiler_pic_CXX='-fPIC -shared'
19486       ;;
19487     *)
19488       lt_prog_compiler_pic_CXX='-fPIC'
19489       ;;
19490     esac
19491   else
19492     case $host_os in
19493       aix[4-9]*)
19494         # All AIX code is PIC.
19495         if test "$host_cpu" = ia64; then
19496           # AIX 5 now supports IA64 processor
19497           lt_prog_compiler_static_CXX='-Bstatic'
19498         else
19499           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19500         fi
19501         ;;
19502       chorus*)
19503         case $cc_basename in
19504         cxch68*)
19505           # Green Hills C++ Compiler
19506           # _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"
19507           ;;
19508         esac
19509         ;;
19510       dgux*)
19511         case $cc_basename in
19512           ec++*)
19513             lt_prog_compiler_pic_CXX='-KPIC'
19514             ;;
19515           ghcx*)
19516             # Green Hills C++ Compiler
19517             lt_prog_compiler_pic_CXX='-pic'
19518             ;;
19519           *)
19520             ;;
19521         esac
19522         ;;
19523       freebsd* | dragonfly*)
19524         # FreeBSD uses GNU C++
19525         ;;
19526       hpux9* | hpux10* | hpux11*)
19527         case $cc_basename in
19528           CC*)
19529             lt_prog_compiler_wl_CXX='-Wl,'
19530             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19531             if test "$host_cpu" != ia64; then
19532               lt_prog_compiler_pic_CXX='+Z'
19533             fi
19534             ;;
19535           aCC*)
19536             lt_prog_compiler_wl_CXX='-Wl,'
19537             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19538             case $host_cpu in
19539             hppa*64*|ia64*)
19540               # +Z the default
19541               ;;
19542             *)
19543               lt_prog_compiler_pic_CXX='+Z'
19544               ;;
19545             esac
19546             ;;
19547           *)
19548             ;;
19549         esac
19550         ;;
19551       interix*)
19552         # This is c89, which is MS Visual C++ (no shared libs)
19553         # Anyone wants to do a port?
19554         ;;
19555       irix5* | irix6* | nonstopux*)
19556         case $cc_basename in
19557           CC*)
19558             lt_prog_compiler_wl_CXX='-Wl,'
19559             lt_prog_compiler_static_CXX='-non_shared'
19560             # CC pic flag -KPIC is the default.
19561             ;;
19562           *)
19563             ;;
19564         esac
19565         ;;
19566       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19567         case $cc_basename in
19568           KCC*)
19569             # KAI C++ Compiler
19570             lt_prog_compiler_wl_CXX='--backend -Wl,'
19571             lt_prog_compiler_pic_CXX='-fPIC'
19572             ;;
19573           ecpc* )
19574             # old Intel C++ for x86_64 which still supported -KPIC.
19575             lt_prog_compiler_wl_CXX='-Wl,'
19576             lt_prog_compiler_pic_CXX='-KPIC'
19577             lt_prog_compiler_static_CXX='-static'
19578             ;;
19579           icpc* )
19580             # Intel C++, used to be incompatible with GCC.
19581             # ICC 10 doesn't accept -KPIC any more.
19582             lt_prog_compiler_wl_CXX='-Wl,'
19583             lt_prog_compiler_pic_CXX='-fPIC'
19584             lt_prog_compiler_static_CXX='-static'
19585             ;;
19586           pgCC* | pgcpp*)
19587             # Portland Group C++ compiler
19588             lt_prog_compiler_wl_CXX='-Wl,'
19589             lt_prog_compiler_pic_CXX='-fpic'
19590             lt_prog_compiler_static_CXX='-Bstatic'
19591             ;;
19592           cxx*)
19593             # Compaq C++
19594             # Make sure the PIC flag is empty.  It appears that all Alpha
19595             # Linux and Compaq Tru64 Unix objects are PIC.
19596             lt_prog_compiler_pic_CXX=
19597             lt_prog_compiler_static_CXX='-non_shared'
19598             ;;
19599           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19600             # IBM XL 8.0, 9.0 on PPC and BlueGene
19601             lt_prog_compiler_wl_CXX='-Wl,'
19602             lt_prog_compiler_pic_CXX='-qpic'
19603             lt_prog_compiler_static_CXX='-qstaticlink'
19604             ;;
19605           *)
19606             case `$CC -V 2>&1 | sed 5q` in
19607             *Sun\ C*)
19608               # Sun C++ 5.9
19609               lt_prog_compiler_pic_CXX='-KPIC'
19610               lt_prog_compiler_static_CXX='-Bstatic'
19611               lt_prog_compiler_wl_CXX='-Qoption ld '
19612               ;;
19613             esac
19614             ;;
19615         esac
19616         ;;
19617       lynxos*)
19618         ;;
19619       m88k*)
19620         ;;
19621       mvs*)
19622         case $cc_basename in
19623           cxx*)
19624             lt_prog_compiler_pic_CXX='-W c,exportall'
19625             ;;
19626           *)
19627             ;;
19628         esac
19629         ;;
19630       netbsd*)
19631         ;;
19632       *qnx* | *nto*)
19633         # QNX uses GNU C++, but need to define -shared option too, otherwise
19634         # it will coredump.
19635         lt_prog_compiler_pic_CXX='-fPIC -shared'
19636         ;;
19637       osf3* | osf4* | osf5*)
19638         case $cc_basename in
19639           KCC*)
19640             lt_prog_compiler_wl_CXX='--backend -Wl,'
19641             ;;
19642           RCC*)
19643             # Rational C++ 2.4.1
19644             lt_prog_compiler_pic_CXX='-pic'
19645             ;;
19646           cxx*)
19647             # Digital/Compaq C++
19648             lt_prog_compiler_wl_CXX='-Wl,'
19649             # Make sure the PIC flag is empty.  It appears that all Alpha
19650             # Linux and Compaq Tru64 Unix objects are PIC.
19651             lt_prog_compiler_pic_CXX=
19652             lt_prog_compiler_static_CXX='-non_shared'
19653             ;;
19654           *)
19655             ;;
19656         esac
19657         ;;
19658       psos*)
19659         ;;
19660       solaris*)
19661         case $cc_basename in
19662           CC*)
19663             # Sun C++ 4.2, 5.x and Centerline C++
19664             lt_prog_compiler_pic_CXX='-KPIC'
19665             lt_prog_compiler_static_CXX='-Bstatic'
19666             lt_prog_compiler_wl_CXX='-Qoption ld '
19667             ;;
19668           gcx*)
19669             # Green Hills C++ Compiler
19670             lt_prog_compiler_pic_CXX='-PIC'
19671             ;;
19672           *)
19673             ;;
19674         esac
19675         ;;
19676       sunos4*)
19677         case $cc_basename in
19678           CC*)
19679             # Sun C++ 4.x
19680             lt_prog_compiler_pic_CXX='-pic'
19681             lt_prog_compiler_static_CXX='-Bstatic'
19682             ;;
19683           lcc*)
19684             # Lucid
19685             lt_prog_compiler_pic_CXX='-pic'
19686             ;;
19687           *)
19688             ;;
19689         esac
19690         ;;
19691       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19692         case $cc_basename in
19693           CC*)
19694             lt_prog_compiler_wl_CXX='-Wl,'
19695             lt_prog_compiler_pic_CXX='-KPIC'
19696             lt_prog_compiler_static_CXX='-Bstatic'
19697             ;;
19698         esac
19699         ;;
19700       tandem*)
19701         case $cc_basename in
19702           NCC*)
19703             # NonStop-UX NCC 3.20
19704             lt_prog_compiler_pic_CXX='-KPIC'
19705             ;;
19706           *)
19707             ;;
19708         esac
19709         ;;
19710       vxworks*)
19711         ;;
19712       *)
19713         lt_prog_compiler_can_build_shared_CXX=no
19714         ;;
19715     esac
19716   fi
19717
19718 case $host_os in
19719   # For platforms which do not support PIC, -DPIC is meaningless:
19720   *djgpp*)
19721     lt_prog_compiler_pic_CXX=
19722     ;;
19723   *)
19724     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19725     ;;
19726 esac
19727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19728 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19729
19730
19731
19732 #
19733 # Check to make sure the PIC flag actually works.
19734 #
19735 if test -n "$lt_prog_compiler_pic_CXX"; then
19736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19737 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19738 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19739   $as_echo_n "(cached) " >&6
19740 else
19741   lt_cv_prog_compiler_pic_works_CXX=no
19742    ac_outfile=conftest.$ac_objext
19743    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19744    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19745    # Insert the option either (1) after the last *FLAGS variable, or
19746    # (2) before a word containing "conftest.", or (3) at the end.
19747    # Note that $ac_compile itself does not contain backslashes and begins
19748    # with a dollar sign (not a hyphen), so the echo should work correctly.
19749    # The option is referenced via a variable to avoid confusing sed.
19750    lt_compile=`echo "$ac_compile" | $SED \
19751    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19752    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19753    -e 's:$: $lt_compiler_flag:'`
19754    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19755    (eval "$lt_compile" 2>conftest.err)
19756    ac_status=$?
19757    cat conftest.err >&5
19758    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759    if (exit $ac_status) && test -s "$ac_outfile"; then
19760      # The compiler can only warn and ignore the option if not recognized
19761      # So say no if there are warnings other than the usual output.
19762      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19763      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19764      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19765        lt_cv_prog_compiler_pic_works_CXX=yes
19766      fi
19767    fi
19768    $RM conftest*
19769
19770 fi
19771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19772 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19773
19774 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19775     case $lt_prog_compiler_pic_CXX in
19776      "" | " "*) ;;
19777      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19778      esac
19779 else
19780     lt_prog_compiler_pic_CXX=
19781      lt_prog_compiler_can_build_shared_CXX=no
19782 fi
19783
19784 fi
19785
19786
19787
19788 #
19789 # Check to make sure the static flag actually works.
19790 #
19791 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19793 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19794 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19795   $as_echo_n "(cached) " >&6
19796 else
19797   lt_cv_prog_compiler_static_works_CXX=no
19798    save_LDFLAGS="$LDFLAGS"
19799    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19800    echo "$lt_simple_link_test_code" > conftest.$ac_ext
19801    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19802      # The linker can only warn and ignore the option if not recognized
19803      # So say no if there are warnings
19804      if test -s conftest.err; then
19805        # Append any errors to the config.log.
19806        cat conftest.err 1>&5
19807        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19808        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19809        if diff conftest.exp conftest.er2 >/dev/null; then
19810          lt_cv_prog_compiler_static_works_CXX=yes
19811        fi
19812      else
19813        lt_cv_prog_compiler_static_works_CXX=yes
19814      fi
19815    fi
19816    $RM -r conftest*
19817    LDFLAGS="$save_LDFLAGS"
19818
19819 fi
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19821 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19822
19823 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19824     :
19825 else
19826     lt_prog_compiler_static_CXX=
19827 fi
19828
19829
19830
19831
19832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19833 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19834 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19835   $as_echo_n "(cached) " >&6
19836 else
19837   lt_cv_prog_compiler_c_o_CXX=no
19838    $RM -r conftest 2>/dev/null
19839    mkdir conftest
19840    cd conftest
19841    mkdir out
19842    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19843
19844    lt_compiler_flag="-o out/conftest2.$ac_objext"
19845    # Insert the option either (1) after the last *FLAGS variable, or
19846    # (2) before a word containing "conftest.", or (3) at the end.
19847    # Note that $ac_compile itself does not contain backslashes and begins
19848    # with a dollar sign (not a hyphen), so the echo should work correctly.
19849    lt_compile=`echo "$ac_compile" | $SED \
19850    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19851    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19852    -e 's:$: $lt_compiler_flag:'`
19853    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19854    (eval "$lt_compile" 2>out/conftest.err)
19855    ac_status=$?
19856    cat out/conftest.err >&5
19857    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19859    then
19860      # The compiler can only warn and ignore the option if not recognized
19861      # So say no if there are warnings
19862      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19863      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19864      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19865        lt_cv_prog_compiler_c_o_CXX=yes
19866      fi
19867    fi
19868    chmod u+w . 2>&5
19869    $RM conftest*
19870    # SGI C++ compiler will create directory out/ii_files/ for
19871    # template instantiation
19872    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19873    $RM out/* && rmdir out
19874    cd ..
19875    $RM -r conftest
19876    $RM conftest*
19877
19878 fi
19879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19880 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19881
19882
19883
19884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19885 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19886 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19887   $as_echo_n "(cached) " >&6
19888 else
19889   lt_cv_prog_compiler_c_o_CXX=no
19890    $RM -r conftest 2>/dev/null
19891    mkdir conftest
19892    cd conftest
19893    mkdir out
19894    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19895
19896    lt_compiler_flag="-o out/conftest2.$ac_objext"
19897    # Insert the option either (1) after the last *FLAGS variable, or
19898    # (2) before a word containing "conftest.", or (3) at the end.
19899    # Note that $ac_compile itself does not contain backslashes and begins
19900    # with a dollar sign (not a hyphen), so the echo should work correctly.
19901    lt_compile=`echo "$ac_compile" | $SED \
19902    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19903    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19904    -e 's:$: $lt_compiler_flag:'`
19905    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19906    (eval "$lt_compile" 2>out/conftest.err)
19907    ac_status=$?
19908    cat out/conftest.err >&5
19909    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19911    then
19912      # The compiler can only warn and ignore the option if not recognized
19913      # So say no if there are warnings
19914      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19915      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19916      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19917        lt_cv_prog_compiler_c_o_CXX=yes
19918      fi
19919    fi
19920    chmod u+w . 2>&5
19921    $RM conftest*
19922    # SGI C++ compiler will create directory out/ii_files/ for
19923    # template instantiation
19924    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19925    $RM out/* && rmdir out
19926    cd ..
19927    $RM -r conftest
19928    $RM conftest*
19929
19930 fi
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19932 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19933
19934
19935
19936
19937 hard_links="nottested"
19938 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19939   # do not overwrite the value of need_locks provided by the user
19940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19941 $as_echo_n "checking if we can lock with hard links... " >&6; }
19942   hard_links=yes
19943   $RM conftest*
19944   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19945   touch conftest.a
19946   ln conftest.a conftest.b 2>&5 || hard_links=no
19947   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19949 $as_echo "$hard_links" >&6; }
19950   if test "$hard_links" = no; then
19951     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19952 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19953     need_locks=warn
19954   fi
19955 else
19956   need_locks=no
19957 fi
19958
19959
19960
19961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19962 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19963
19964   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19965   case $host_os in
19966   aix[4-9]*)
19967     # If we're using GNU nm, then we don't want the "-C" option.
19968     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19969     # Also, AIX nm treats weak defined symbols like other global defined
19970     # symbols, whereas GNU nm marks them as "W".
19971     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19972       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'
19973     else
19974       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'
19975     fi
19976     ;;
19977   pw32*)
19978     export_symbols_cmds_CXX="$ltdll_cmds"
19979   ;;
19980   cygwin* | mingw* | cegcc*)
19981     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'
19982   ;;
19983   *)
19984     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19985   ;;
19986   esac
19987   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19988
19989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19990 $as_echo "$ld_shlibs_CXX" >&6; }
19991 test "$ld_shlibs_CXX" = no && can_build_shared=no
19992
19993 with_gnu_ld_CXX=$with_gnu_ld
19994
19995
19996
19997
19998
19999
20000 #
20001 # Do we need to explicitly link libc?
20002 #
20003 case "x$archive_cmds_need_lc_CXX" in
20004 x|xyes)
20005   # Assume -lc should be added
20006   archive_cmds_need_lc_CXX=yes
20007
20008   if test "$enable_shared" = yes && test "$GCC" = yes; then
20009     case $archive_cmds_CXX in
20010     *'~'*)
20011       # FIXME: we may have to deal with multi-command sequences.
20012       ;;
20013     '$CC '*)
20014       # Test whether the compiler implicitly links with -lc since on some
20015       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20016       # to ld, don't add -lc before -lgcc.
20017       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20018 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20019 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20020   $as_echo_n "(cached) " >&6
20021 else
20022   $RM conftest*
20023         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20024
20025         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20026   (eval $ac_compile) 2>&5
20027   ac_status=$?
20028   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20029   test $ac_status = 0; } 2>conftest.err; then
20030           soname=conftest
20031           lib=conftest
20032           libobjs=conftest.$ac_objext
20033           deplibs=
20034           wl=$lt_prog_compiler_wl_CXX
20035           pic_flag=$lt_prog_compiler_pic_CXX
20036           compiler_flags=-v
20037           linker_flags=-v
20038           verstring=
20039           output_objdir=.
20040           libname=conftest
20041           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20042           allow_undefined_flag_CXX=
20043           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20044   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20045   ac_status=$?
20046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20047   test $ac_status = 0; }
20048           then
20049             lt_cv_archive_cmds_need_lc_CXX=no
20050           else
20051             lt_cv_archive_cmds_need_lc_CXX=yes
20052           fi
20053           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20054         else
20055           cat conftest.err 1>&5
20056         fi
20057         $RM conftest*
20058
20059 fi
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20061 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20062       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20063       ;;
20064     esac
20065   fi
20066   ;;
20067 esac
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20133 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20134
20135 library_names_spec=
20136 libname_spec='lib$name'
20137 soname_spec=
20138 shrext_cmds=".so"
20139 postinstall_cmds=
20140 postuninstall_cmds=
20141 finish_cmds=
20142 finish_eval=
20143 shlibpath_var=
20144 shlibpath_overrides_runpath=unknown
20145 version_type=none
20146 dynamic_linker="$host_os ld.so"
20147 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20148 need_lib_prefix=unknown
20149 hardcode_into_libs=no
20150
20151 # when you set need_version to no, make sure it does not cause -set_version
20152 # flags to be left without arguments
20153 need_version=unknown
20154
20155 case $host_os in
20156 aix3*)
20157   version_type=linux
20158   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20159   shlibpath_var=LIBPATH
20160
20161   # AIX 3 has no versioning support, so we append a major version to the name.
20162   soname_spec='${libname}${release}${shared_ext}$major'
20163   ;;
20164
20165 aix[4-9]*)
20166   version_type=linux
20167   need_lib_prefix=no
20168   need_version=no
20169   hardcode_into_libs=yes
20170   if test "$host_cpu" = ia64; then
20171     # AIX 5 supports IA64
20172     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20173     shlibpath_var=LD_LIBRARY_PATH
20174   else
20175     # With GCC up to 2.95.x, collect2 would create an import file
20176     # for dependence libraries.  The import file would start with
20177     # the line `#! .'.  This would cause the generated library to
20178     # depend on `.', always an invalid library.  This was fixed in
20179     # development snapshots of GCC prior to 3.0.
20180     case $host_os in
20181       aix4 | aix4.[01] | aix4.[01].*)
20182       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20183            echo ' yes '
20184            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20185         :
20186       else
20187         can_build_shared=no
20188       fi
20189       ;;
20190     esac
20191     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20192     # soname into executable. Probably we can add versioning support to
20193     # collect2, so additional links can be useful in future.
20194     if test "$aix_use_runtimelinking" = yes; then
20195       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20196       # instead of lib<name>.a to let people know that these are not
20197       # typical AIX shared libraries.
20198       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20199     else
20200       # We preserve .a as extension for shared libraries through AIX4.2
20201       # and later when we are not doing run time linking.
20202       library_names_spec='${libname}${release}.a $libname.a'
20203       soname_spec='${libname}${release}${shared_ext}$major'
20204     fi
20205     shlibpath_var=LIBPATH
20206   fi
20207   ;;
20208
20209 amigaos*)
20210   case $host_cpu in
20211   powerpc)
20212     # Since July 2007 AmigaOS4 officially supports .so libraries.
20213     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20214     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20215     ;;
20216   m68k)
20217     library_names_spec='$libname.ixlibrary $libname.a'
20218     # Create ${libname}_ixlibrary.a entries in /sys/libs.
20219     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'
20220     ;;
20221   esac
20222   ;;
20223
20224 beos*)
20225   library_names_spec='${libname}${shared_ext}'
20226   dynamic_linker="$host_os ld.so"
20227   shlibpath_var=LIBRARY_PATH
20228   ;;
20229
20230 bsdi[45]*)
20231   version_type=linux
20232   need_version=no
20233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20234   soname_spec='${libname}${release}${shared_ext}$major'
20235   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20236   shlibpath_var=LD_LIBRARY_PATH
20237   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20238   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20239   # the default ld.so.conf also contains /usr/contrib/lib and
20240   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20241   # libtool to hard-code these into programs
20242   ;;
20243
20244 cygwin* | mingw* | pw32* | cegcc*)
20245   version_type=windows
20246   shrext_cmds=".dll"
20247   need_version=no
20248   need_lib_prefix=no
20249
20250   case $GCC,$host_os in
20251   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20252     library_names_spec='$libname.dll.a'
20253     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20254     postinstall_cmds='base_file=`basename \${file}`~
20255       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20256       dldir=$destdir/`dirname \$dlpath`~
20257       test -d \$dldir || mkdir -p \$dldir~
20258       $install_prog $dir/$dlname \$dldir/$dlname~
20259       chmod a+x \$dldir/$dlname~
20260       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20261         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20262       fi'
20263     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20264       dlpath=$dir/\$dldll~
20265        $RM \$dlpath'
20266     shlibpath_overrides_runpath=yes
20267
20268     case $host_os in
20269     cygwin*)
20270       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20271       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20272
20273       ;;
20274     mingw* | cegcc*)
20275       # MinGW DLLs use traditional 'lib' prefix
20276       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20277       ;;
20278     pw32*)
20279       # pw32 DLLs use 'pw' prefix rather than 'lib'
20280       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20281       ;;
20282     esac
20283     ;;
20284
20285   *)
20286     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20287     ;;
20288   esac
20289   dynamic_linker='Win32 ld.exe'
20290   # FIXME: first we should search . and the directory the executable is in
20291   shlibpath_var=PATH
20292   ;;
20293
20294 darwin* | rhapsody*)
20295   dynamic_linker="$host_os dyld"
20296   version_type=darwin
20297   need_lib_prefix=no
20298   need_version=no
20299   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20300   soname_spec='${libname}${release}${major}$shared_ext'
20301   shlibpath_overrides_runpath=yes
20302   shlibpath_var=DYLD_LIBRARY_PATH
20303   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20304
20305   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20306   ;;
20307
20308 dgux*)
20309   version_type=linux
20310   need_lib_prefix=no
20311   need_version=no
20312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20313   soname_spec='${libname}${release}${shared_ext}$major'
20314   shlibpath_var=LD_LIBRARY_PATH
20315   ;;
20316
20317 freebsd* | dragonfly*)
20318   # DragonFly does not have aout.  When/if they implement a new
20319   # versioning mechanism, adjust this.
20320   if test -x /usr/bin/objformat; then
20321     objformat=`/usr/bin/objformat`
20322   else
20323     case $host_os in
20324     freebsd[123]*) objformat=aout ;;
20325     *) objformat=elf ;;
20326     esac
20327   fi
20328   version_type=freebsd-$objformat
20329   case $version_type in
20330     freebsd-elf*)
20331       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20332       need_version=no
20333       need_lib_prefix=no
20334       ;;
20335     freebsd-*)
20336       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20337       need_version=yes
20338       ;;
20339   esac
20340   shlibpath_var=LD_LIBRARY_PATH
20341   case $host_os in
20342   freebsd2*)
20343     shlibpath_overrides_runpath=yes
20344     ;;
20345   freebsd3.[01]* | freebsdelf3.[01]*)
20346     shlibpath_overrides_runpath=yes
20347     hardcode_into_libs=yes
20348     ;;
20349   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20350   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20351     shlibpath_overrides_runpath=no
20352     hardcode_into_libs=yes
20353     ;;
20354   *) # from 4.6 on, and DragonFly
20355     shlibpath_overrides_runpath=yes
20356     hardcode_into_libs=yes
20357     ;;
20358   esac
20359   ;;
20360
20361 gnu*)
20362   version_type=linux
20363   need_lib_prefix=no
20364   need_version=no
20365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20366   soname_spec='${libname}${release}${shared_ext}$major'
20367   shlibpath_var=LD_LIBRARY_PATH
20368   hardcode_into_libs=yes
20369   ;;
20370
20371 haiku*)
20372   version_type=linux
20373   need_lib_prefix=no
20374   need_version=no
20375   dynamic_linker="$host_os runtime_loader"
20376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20377   soname_spec='${libname}${release}${shared_ext}$major'
20378   shlibpath_var=LIBRARY_PATH
20379   shlibpath_overrides_runpath=yes
20380   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20381   hardcode_into_libs=yes
20382   ;;
20383
20384 hpux9* | hpux10* | hpux11*)
20385   # Give a soname corresponding to the major version so that dld.sl refuses to
20386   # link against other versions.
20387   version_type=sunos
20388   need_lib_prefix=no
20389   need_version=no
20390   case $host_cpu in
20391   ia64*)
20392     shrext_cmds='.so'
20393     hardcode_into_libs=yes
20394     dynamic_linker="$host_os dld.so"
20395     shlibpath_var=LD_LIBRARY_PATH
20396     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20397     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20398     soname_spec='${libname}${release}${shared_ext}$major'
20399     if test "X$HPUX_IA64_MODE" = X32; then
20400       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20401     else
20402       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20403     fi
20404     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20405     ;;
20406   hppa*64*)
20407     shrext_cmds='.sl'
20408     hardcode_into_libs=yes
20409     dynamic_linker="$host_os dld.sl"
20410     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20411     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20412     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20413     soname_spec='${libname}${release}${shared_ext}$major'
20414     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20415     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20416     ;;
20417   *)
20418     shrext_cmds='.sl'
20419     dynamic_linker="$host_os dld.sl"
20420     shlibpath_var=SHLIB_PATH
20421     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20422     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20423     soname_spec='${libname}${release}${shared_ext}$major'
20424     ;;
20425   esac
20426   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20427   postinstall_cmds='chmod 555 $lib'
20428   # or fails outright, so override atomically:
20429   install_override_mode=555
20430   ;;
20431
20432 interix[3-9]*)
20433   version_type=linux
20434   need_lib_prefix=no
20435   need_version=no
20436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20437   soname_spec='${libname}${release}${shared_ext}$major'
20438   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20439   shlibpath_var=LD_LIBRARY_PATH
20440   shlibpath_overrides_runpath=no
20441   hardcode_into_libs=yes
20442   ;;
20443
20444 irix5* | irix6* | nonstopux*)
20445   case $host_os in
20446     nonstopux*) version_type=nonstopux ;;
20447     *)
20448         if test "$lt_cv_prog_gnu_ld" = yes; then
20449                 version_type=linux
20450         else
20451                 version_type=irix
20452         fi ;;
20453   esac
20454   need_lib_prefix=no
20455   need_version=no
20456   soname_spec='${libname}${release}${shared_ext}$major'
20457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20458   case $host_os in
20459   irix5* | nonstopux*)
20460     libsuff= shlibsuff=
20461     ;;
20462   *)
20463     case $LD in # libtool.m4 will add one of these switches to LD
20464     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20465       libsuff= shlibsuff= libmagic=32-bit;;
20466     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20467       libsuff=32 shlibsuff=N32 libmagic=N32;;
20468     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20469       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20470     *) libsuff= shlibsuff= libmagic=never-match;;
20471     esac
20472     ;;
20473   esac
20474   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20475   shlibpath_overrides_runpath=no
20476   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20477   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20478   hardcode_into_libs=yes
20479   ;;
20480
20481 # No shared lib support for Linux oldld, aout, or coff.
20482 linux*oldld* | linux*aout* | linux*coff*)
20483   dynamic_linker=no
20484   ;;
20485
20486 # This must be Linux ELF.
20487 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20488   version_type=linux
20489   need_lib_prefix=no
20490   need_version=no
20491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20492   soname_spec='${libname}${release}${shared_ext}$major'
20493   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20494   shlibpath_var=LD_LIBRARY_PATH
20495   shlibpath_overrides_runpath=no
20496
20497   # Some binutils ld are patched to set DT_RUNPATH
20498   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20499   $as_echo_n "(cached) " >&6
20500 else
20501   lt_cv_shlibpath_overrides_runpath=no
20502     save_LDFLAGS=$LDFLAGS
20503     save_libdir=$libdir
20504     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20505          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20506     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20507 /* end confdefs.h.  */
20508
20509 int
20510 main ()
20511 {
20512
20513   ;
20514   return 0;
20515 }
20516 _ACEOF
20517 if ac_fn_cxx_try_link "$LINENO"; then :
20518   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20519   lt_cv_shlibpath_overrides_runpath=yes
20520 fi
20521 fi
20522 rm -f core conftest.err conftest.$ac_objext \
20523     conftest$ac_exeext conftest.$ac_ext
20524     LDFLAGS=$save_LDFLAGS
20525     libdir=$save_libdir
20526
20527 fi
20528
20529   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20530
20531   # This implies no fast_install, which is unacceptable.
20532   # Some rework will be needed to allow for fast_install
20533   # before this can be enabled.
20534   hardcode_into_libs=yes
20535
20536   # Append ld.so.conf contents to the search path
20537   if test -f /etc/ld.so.conf; then
20538     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' ' '`
20539     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20540   fi
20541
20542   # We used to test for /lib/ld.so.1 and disable shared libraries on
20543   # powerpc, because MkLinux only supported shared libraries with the
20544   # GNU dynamic linker.  Since this was broken with cross compilers,
20545   # most powerpc-linux boxes support dynamic linking these days and
20546   # people can always --disable-shared, the test was removed, and we
20547   # assume the GNU/Linux dynamic linker is in use.
20548   dynamic_linker='GNU/Linux ld.so'
20549   ;;
20550
20551 netbsd*)
20552   version_type=sunos
20553   need_lib_prefix=no
20554   need_version=no
20555   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20556     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20557     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20558     dynamic_linker='NetBSD (a.out) ld.so'
20559   else
20560     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20561     soname_spec='${libname}${release}${shared_ext}$major'
20562     dynamic_linker='NetBSD ld.elf_so'
20563   fi
20564   shlibpath_var=LD_LIBRARY_PATH
20565   shlibpath_overrides_runpath=yes
20566   hardcode_into_libs=yes
20567   ;;
20568
20569 newsos6)
20570   version_type=linux
20571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20572   shlibpath_var=LD_LIBRARY_PATH
20573   shlibpath_overrides_runpath=yes
20574   ;;
20575
20576 *nto* | *qnx*)
20577   version_type=qnx
20578   need_lib_prefix=no
20579   need_version=no
20580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20581   soname_spec='${libname}${release}${shared_ext}$major'
20582   shlibpath_var=LD_LIBRARY_PATH
20583   shlibpath_overrides_runpath=no
20584   hardcode_into_libs=yes
20585   dynamic_linker='ldqnx.so'
20586   ;;
20587
20588 openbsd*)
20589   version_type=sunos
20590   sys_lib_dlsearch_path_spec="/usr/lib"
20591   need_lib_prefix=no
20592   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20593   case $host_os in
20594     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
20595     *)                          need_version=no  ;;
20596   esac
20597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20598   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20599   shlibpath_var=LD_LIBRARY_PATH
20600   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20601     case $host_os in
20602       openbsd2.[89] | openbsd2.[89].*)
20603         shlibpath_overrides_runpath=no
20604         ;;
20605       *)
20606         shlibpath_overrides_runpath=yes
20607         ;;
20608       esac
20609   else
20610     shlibpath_overrides_runpath=yes
20611   fi
20612   ;;
20613
20614 os2*)
20615   libname_spec='$name'
20616   shrext_cmds=".dll"
20617   need_lib_prefix=no
20618   library_names_spec='$libname${shared_ext} $libname.a'
20619   dynamic_linker='OS/2 ld.exe'
20620   shlibpath_var=LIBPATH
20621   ;;
20622
20623 osf3* | osf4* | osf5*)
20624   version_type=osf
20625   need_lib_prefix=no
20626   need_version=no
20627   soname_spec='${libname}${release}${shared_ext}$major'
20628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20629   shlibpath_var=LD_LIBRARY_PATH
20630   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20631   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20632   ;;
20633
20634 rdos*)
20635   dynamic_linker=no
20636   ;;
20637
20638 solaris*)
20639   version_type=linux
20640   need_lib_prefix=no
20641   need_version=no
20642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20643   soname_spec='${libname}${release}${shared_ext}$major'
20644   shlibpath_var=LD_LIBRARY_PATH
20645   shlibpath_overrides_runpath=yes
20646   hardcode_into_libs=yes
20647   # ldd complains unless libraries are executable
20648   postinstall_cmds='chmod +x $lib'
20649   ;;
20650
20651 sunos4*)
20652   version_type=sunos
20653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20654   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20655   shlibpath_var=LD_LIBRARY_PATH
20656   shlibpath_overrides_runpath=yes
20657   if test "$with_gnu_ld" = yes; then
20658     need_lib_prefix=no
20659   fi
20660   need_version=yes
20661   ;;
20662
20663 sysv4 | sysv4.3*)
20664   version_type=linux
20665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20666   soname_spec='${libname}${release}${shared_ext}$major'
20667   shlibpath_var=LD_LIBRARY_PATH
20668   case $host_vendor in
20669     sni)
20670       shlibpath_overrides_runpath=no
20671       need_lib_prefix=no
20672       runpath_var=LD_RUN_PATH
20673       ;;
20674     siemens)
20675       need_lib_prefix=no
20676       ;;
20677     motorola)
20678       need_lib_prefix=no
20679       need_version=no
20680       shlibpath_overrides_runpath=no
20681       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20682       ;;
20683   esac
20684   ;;
20685
20686 sysv4*MP*)
20687   if test -d /usr/nec ;then
20688     version_type=linux
20689     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20690     soname_spec='$libname${shared_ext}.$major'
20691     shlibpath_var=LD_LIBRARY_PATH
20692   fi
20693   ;;
20694
20695 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20696   version_type=freebsd-elf
20697   need_lib_prefix=no
20698   need_version=no
20699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20700   soname_spec='${libname}${release}${shared_ext}$major'
20701   shlibpath_var=LD_LIBRARY_PATH
20702   shlibpath_overrides_runpath=yes
20703   hardcode_into_libs=yes
20704   if test "$with_gnu_ld" = yes; then
20705     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20706   else
20707     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20708     case $host_os in
20709       sco3.2v5*)
20710         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20711         ;;
20712     esac
20713   fi
20714   sys_lib_dlsearch_path_spec='/usr/lib'
20715   ;;
20716
20717 tpf*)
20718   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20719   version_type=linux
20720   need_lib_prefix=no
20721   need_version=no
20722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20723   shlibpath_var=LD_LIBRARY_PATH
20724   shlibpath_overrides_runpath=no
20725   hardcode_into_libs=yes
20726   ;;
20727
20728 uts4*)
20729   version_type=linux
20730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20731   soname_spec='${libname}${release}${shared_ext}$major'
20732   shlibpath_var=LD_LIBRARY_PATH
20733   ;;
20734
20735 *)
20736   dynamic_linker=no
20737   ;;
20738 esac
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20740 $as_echo "$dynamic_linker" >&6; }
20741 test "$dynamic_linker" = no && can_build_shared=no
20742
20743 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20744 if test "$GCC" = yes; then
20745   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20746 fi
20747
20748 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20749   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20750 fi
20751 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20752   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20753 fi
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20793 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20794 hardcode_action_CXX=
20795 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20796    test -n "$runpath_var_CXX" ||
20797    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20798
20799   # We can hardcode non-existent directories.
20800   if test "$hardcode_direct_CXX" != no &&
20801      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20802      # have to relink, otherwise we might link with an installed library
20803      # when we should be linking with a yet-to-be-installed one
20804      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20805      test "$hardcode_minus_L_CXX" != no; then
20806     # Linking always hardcodes the temporary library directory.
20807     hardcode_action_CXX=relink
20808   else
20809     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20810     hardcode_action_CXX=immediate
20811   fi
20812 else
20813   # We cannot hardcode anything, or else we can only hardcode existing
20814   # directories.
20815   hardcode_action_CXX=unsupported
20816 fi
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20818 $as_echo "$hardcode_action_CXX" >&6; }
20819
20820 if test "$hardcode_action_CXX" = relink ||
20821    test "$inherit_rpath_CXX" = yes; then
20822   # Fast installation is not supported
20823   enable_fast_install=no
20824 elif test "$shlibpath_overrides_runpath" = yes ||
20825      test "$enable_shared" = no; then
20826   # Fast installation is not necessary
20827   enable_fast_install=needless
20828 fi
20829
20830
20831
20832
20833
20834
20835
20836   fi # test -n "$compiler"
20837
20838   CC=$lt_save_CC
20839   LDCXX=$LD
20840   LD=$lt_save_LD
20841   GCC=$lt_save_GCC
20842   with_gnu_ld=$lt_save_with_gnu_ld
20843   lt_cv_path_LDCXX=$lt_cv_path_LD
20844   lt_cv_path_LD=$lt_save_path_LD
20845   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20846   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20847 fi # test "$_lt_caught_CXX_error" != yes
20848
20849 ac_ext=c
20850 ac_cpp='$CPP $CPPFLAGS'
20851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870 # Only expand once:
20871
20872
20873
20874
20875
20876 # Identify the assembler which will work hand-in-glove with the newly
20877 # built GCC, so that we can examine its features.  This is the assembler
20878 # which will be driven by the driver program.
20879 #
20880 # If build != host, and we aren't building gas in-tree, we identify a
20881 # build->target assembler and hope that it will have the same features
20882 # as the host->target assembler we'll be using.
20883 gcc_cv_gas_major_version=
20884 gcc_cv_gas_minor_version=
20885 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20886
20887 if test "${gcc_cv_as+set}" = set; then :
20888
20889 else
20890
20891 if test -x "$DEFAULT_ASSEMBLER"; then
20892         gcc_cv_as="$DEFAULT_ASSEMBLER"
20893 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20894      && test -f ../gas/Makefile \
20895      && test x$build = x$host; then
20896         gcc_cv_as=../gas/as-new$build_exeext
20897 elif test -x as$build_exeext; then
20898         # Build using assembler in the current directory.
20899         gcc_cv_as=./as$build_exeext
20900 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
20901         gcc_cv_as="$AS_FOR_TARGET"
20902 else
20903         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20904 set dummy $AS_FOR_TARGET; ac_word=$2
20905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20906 $as_echo_n "checking for $ac_word... " >&6; }
20907 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20908   $as_echo_n "(cached) " >&6
20909 else
20910   case $gcc_cv_as in
20911   [\\/]* | ?:[\\/]*)
20912   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20913   ;;
20914   *)
20915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20916 for as_dir in $PATH
20917 do
20918   IFS=$as_save_IFS
20919   test -z "$as_dir" && as_dir=.
20920     for ac_exec_ext in '' $ac_executable_extensions; do
20921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20922     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20924     break 2
20925   fi
20926 done
20927   done
20928 IFS=$as_save_IFS
20929
20930   ;;
20931 esac
20932 fi
20933 gcc_cv_as=$ac_cv_path_gcc_cv_as
20934 if test -n "$gcc_cv_as"; then
20935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20936 $as_echo "$gcc_cv_as" >&6; }
20937 else
20938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20939 $as_echo "no" >&6; }
20940 fi
20941
20942
20943 fi
20944 fi
20945
20946 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20947
20948 case "$ORIGINAL_AS_FOR_TARGET" in
20949   ./as | ./as$build_exeext) ;;
20950   *) ac_config_files="$ac_config_files as:exec-tool.in"
20951  ;;
20952 esac
20953
20954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20955 $as_echo_n "checking what assembler to use... " >&6; }
20956 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20957   # Single tree build which includes gas.  We want to prefer it
20958   # over whatever linker top-level may have detected, since
20959   # we'll use what we're building after installation anyway.
20960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20961 $as_echo "newly built gas" >&6; }
20962   in_tree_gas=yes
20963   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20964 for f in $gcc_cv_as_bfd_srcdir/configure \
20965          $gcc_cv_as_gas_srcdir/configure \
20966          $gcc_cv_as_gas_srcdir/configure.in \
20967          $gcc_cv_as_gas_srcdir/Makefile.in ; do
20968   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20969   if test x$gcc_cv_gas_version != x; then
20970     break
20971   fi
20972 done
20973 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20974 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20975 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20976 case $gcc_cv_gas_patch_version in
20977   "") gcc_cv_gas_patch_version="0" ;;
20978 esac
20979 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20980                             + $gcc_cv_gas_minor_version \) \* 1000 \
20981                             + $gcc_cv_gas_patch_version`
20982
20983   in_tree_gas_is_elf=no
20984   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20985      || (grep 'obj_format = multi' ../gas/Makefile \
20986          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20987   then
20988     in_tree_gas_is_elf=yes
20989   fi
20990 else
20991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20992 $as_echo "$gcc_cv_as" >&6; }
20993   in_tree_gas=no
20994 fi
20995
20996 # Identify the linker which will work hand-in-glove with the newly
20997 # built GCC, so that we can examine its features.  This is the linker
20998 # which will be driven by the driver program.
20999 #
21000 # If build != host, and we aren't building gas in-tree, we identify a
21001 # build->target linker and hope that it will have the same features
21002 # as the host->target linker we'll be using.
21003 gcc_cv_gld_major_version=
21004 gcc_cv_gld_minor_version=
21005 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21006 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21007
21008 if test "${gcc_cv_ld+set}" = set; then :
21009
21010 else
21011
21012 if test -x "$DEFAULT_LINKER"; then
21013         gcc_cv_ld="$DEFAULT_LINKER"
21014 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21015      && test -f ../ld/Makefile \
21016      && test x$build = x$host; then
21017         gcc_cv_ld=../ld/ld-new$build_exeext
21018 elif test -x collect-ld$build_exeext; then
21019         # Build using linker in the current directory.
21020         gcc_cv_ld=./collect-ld$build_exeext
21021 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21022         gcc_cv_ld="$LD_FOR_TARGET"
21023 else
21024         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21025 set dummy $LD_FOR_TARGET; ac_word=$2
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21027 $as_echo_n "checking for $ac_word... " >&6; }
21028 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21029   $as_echo_n "(cached) " >&6
21030 else
21031   case $gcc_cv_ld in
21032   [\\/]* | ?:[\\/]*)
21033   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21034   ;;
21035   *)
21036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21037 for as_dir in $PATH
21038 do
21039   IFS=$as_save_IFS
21040   test -z "$as_dir" && as_dir=.
21041     for ac_exec_ext in '' $ac_executable_extensions; do
21042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21043     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21045     break 2
21046   fi
21047 done
21048   done
21049 IFS=$as_save_IFS
21050
21051   ;;
21052 esac
21053 fi
21054 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21055 if test -n "$gcc_cv_ld"; then
21056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21057 $as_echo "$gcc_cv_ld" >&6; }
21058 else
21059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21060 $as_echo "no" >&6; }
21061 fi
21062
21063
21064 fi
21065 fi
21066
21067 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21068 PLUGIN_LD=`basename $gcc_cv_ld`
21069
21070 # Check whether --with-plugin-ld was given.
21071 if test "${with_plugin_ld+set}" = set; then :
21072   withval=$with_plugin_ld; if test x"$withval" != x; then
21073    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21074    PLUGIN_LD="$withval"
21075  fi
21076 fi
21077
21078
21079
21080 cat >>confdefs.h <<_ACEOF
21081 #define PLUGIN_LD "$PLUGIN_LD"
21082 _ACEOF
21083
21084
21085 # Check to see if we are using gold instead of ld
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21087 $as_echo_n "checking whether we are using gold... " >&6; }
21088 ld_is_gold=no
21089 if test x$gcc_cv_ld != x; then
21090   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21091      | grep "GNU gold" > /dev/null; then
21092     ld_is_gold=yes
21093   fi
21094 fi
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21096 $as_echo "$ld_is_gold" >&6; }
21097
21098 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21099
21100 case "$ORIGINAL_LD_FOR_TARGET" in
21101   ./collect-ld | ./collect-ld$build_exeext) ;;
21102   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21103  ;;
21104 esac
21105
21106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21107 $as_echo_n "checking what linker to use... " >&6; }
21108 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21109    || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21110         # Single tree build which includes ld.  We want to prefer it
21111         # over whatever linker top-level may have detected, since
21112         # we'll use what we're building after installation anyway.
21113         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21114 $as_echo "newly built ld" >&6; }
21115         in_tree_ld=yes
21116         in_tree_ld_is_elf=no
21117         if (grep 'EMUL = .*elf' ../ld/Makefile \
21118             || grep 'EMUL = .*linux' ../ld/Makefile \
21119             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21120           in_tree_ld_is_elf=yes
21121         elif test "$ld_is_gold" = yes; then
21122           in_tree_ld_is_elf=yes
21123         fi
21124         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
21125         do
21126                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21127                 if test x$gcc_cv_gld_version != x; then
21128                         break
21129                 fi
21130         done
21131         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21132         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21133 else
21134         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21135 $as_echo "$gcc_cv_ld" >&6; }
21136         in_tree_ld=no
21137 fi
21138
21139 # Figure out what nm we will be using.
21140 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21141 if test "${gcc_cv_nm+set}" = set; then :
21142
21143 else
21144
21145 if test -f $gcc_cv_binutils_srcdir/configure.in \
21146      && test -f ../binutils/Makefile \
21147      && test x$build = x$host; then
21148         gcc_cv_nm=../binutils/nm-new$build_exeext
21149 elif test -x nm$build_exeext; then
21150         gcc_cv_nm=./nm$build_exeext
21151 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21152         gcc_cv_nm="$NM_FOR_TARGET"
21153 else
21154         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21155 set dummy $NM_FOR_TARGET; ac_word=$2
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21157 $as_echo_n "checking for $ac_word... " >&6; }
21158 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21159   $as_echo_n "(cached) " >&6
21160 else
21161   case $gcc_cv_nm in
21162   [\\/]* | ?:[\\/]*)
21163   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21164   ;;
21165   *)
21166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21167 for as_dir in $PATH
21168 do
21169   IFS=$as_save_IFS
21170   test -z "$as_dir" && as_dir=.
21171     for ac_exec_ext in '' $ac_executable_extensions; do
21172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21173     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21175     break 2
21176   fi
21177 done
21178   done
21179 IFS=$as_save_IFS
21180
21181   ;;
21182 esac
21183 fi
21184 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21185 if test -n "$gcc_cv_nm"; then
21186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21187 $as_echo "$gcc_cv_nm" >&6; }
21188 else
21189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21190 $as_echo "no" >&6; }
21191 fi
21192
21193
21194 fi
21195 fi
21196
21197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21198 $as_echo_n "checking what nm to use... " >&6; }
21199 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21200         # Single tree build which includes binutils.
21201         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21202 $as_echo "newly built nm" >&6; }
21203         in_tree_nm=yes
21204 else
21205         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21206 $as_echo "$gcc_cv_nm" >&6; }
21207         in_tree_nm=no
21208 fi
21209
21210 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21211
21212 case "$ORIGINAL_NM_FOR_TARGET" in
21213   ./nm | ./nm$build_exeext) ;;
21214   *) ac_config_files="$ac_config_files nm:exec-tool.in"
21215  ;;
21216 esac
21217
21218
21219 # Figure out what objdump we will be using.
21220 if test "${gcc_cv_objdump+set}" = set; then :
21221
21222 else
21223
21224 if test -f $gcc_cv_binutils_srcdir/configure.in \
21225      && test -f ../binutils/Makefile \
21226      && test x$build = x$host; then
21227         # Single tree build which includes binutils.
21228         gcc_cv_objdump=../binutils/objdump$build_exeext
21229 elif test -x objdump$build_exeext; then
21230         gcc_cv_objdump=./objdump$build_exeext
21231 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21232         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21233 else
21234         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21235 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21237 $as_echo_n "checking for $ac_word... " >&6; }
21238 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21239   $as_echo_n "(cached) " >&6
21240 else
21241   case $gcc_cv_objdump in
21242   [\\/]* | ?:[\\/]*)
21243   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21244   ;;
21245   *)
21246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21247 for as_dir in $PATH
21248 do
21249   IFS=$as_save_IFS
21250   test -z "$as_dir" && as_dir=.
21251     for ac_exec_ext in '' $ac_executable_extensions; do
21252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21253     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21255     break 2
21256   fi
21257 done
21258   done
21259 IFS=$as_save_IFS
21260
21261   ;;
21262 esac
21263 fi
21264 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21265 if test -n "$gcc_cv_objdump"; then
21266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21267 $as_echo "$gcc_cv_objdump" >&6; }
21268 else
21269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21270 $as_echo "no" >&6; }
21271 fi
21272
21273
21274 fi
21275 fi
21276
21277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21278 $as_echo_n "checking what objdump to use... " >&6; }
21279 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21280         # Single tree build which includes binutils.
21281         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21282 $as_echo "newly built objdump" >&6; }
21283 elif test x$gcc_cv_objdump = x; then
21284         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21285 $as_echo "not found" >&6; }
21286 else
21287         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21288 $as_echo "$gcc_cv_objdump" >&6; }
21289 fi
21290
21291 # Figure out what readelf we will be using.
21292 if test "${gcc_cv_readelf+set}" = set; then :
21293
21294 else
21295
21296 if test -f $gcc_cv_binutils_srcdir/configure.in \
21297      && test -f ../binutils/Makefile \
21298      && test x$build = x$host; then
21299         # Single tree build which includes binutils.
21300         gcc_cv_readelf=../binutils/readelf$build_exeext
21301 elif test -x readelf$build_exeext; then
21302         gcc_cv_readelf=./readelf$build_exeext
21303 else
21304         # Extract the first word of "readelf", so it can be a program name with args.
21305 set dummy readelf; ac_word=$2
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21307 $as_echo_n "checking for $ac_word... " >&6; }
21308 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21309   $as_echo_n "(cached) " >&6
21310 else
21311   case $gcc_cv_readelf in
21312   [\\/]* | ?:[\\/]*)
21313   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21314   ;;
21315   *)
21316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21317 for as_dir in $PATH
21318 do
21319   IFS=$as_save_IFS
21320   test -z "$as_dir" && as_dir=.
21321     for ac_exec_ext in '' $ac_executable_extensions; do
21322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21323     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21325     break 2
21326   fi
21327 done
21328   done
21329 IFS=$as_save_IFS
21330
21331   ;;
21332 esac
21333 fi
21334 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21335 if test -n "$gcc_cv_readelf"; then
21336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21337 $as_echo "$gcc_cv_readelf" >&6; }
21338 else
21339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21340 $as_echo "no" >&6; }
21341 fi
21342
21343
21344 fi
21345 fi
21346
21347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21348 $as_echo_n "checking what readelf to use... " >&6; }
21349 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21350         # Single tree build which includes binutils.
21351         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21352 $as_echo "newly built readelf" >&6; }
21353 elif test x$gcc_cv_readelf = x; then
21354         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21355 $as_echo "not found" >&6; }
21356 else
21357         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21358 $as_echo "$gcc_cv_readelf" >&6; }
21359 fi
21360
21361 # Figure out what assembler alignment features are present.
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21363 $as_echo_n "checking assembler flags... " >&6; }
21364 if test "${gcc_cv_as_flags+set}" = set; then :
21365   $as_echo_n "(cached) " >&6
21366 else
21367    case "$target" in
21368   i[34567]86-*-linux*)
21369         gcc_cv_as_flags="--32"
21370     ;;
21371   powerpc*-*-darwin*)
21372         gcc_cv_as_flags="-arch ppc"
21373     ;;
21374   *)
21375     gcc_cv_as_flags=" "
21376     ;;
21377   esac
21378 fi
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21380 $as_echo "$gcc_cv_as_flags" >&6; }
21381
21382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21383 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21384 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21385   $as_echo_n "(cached) " >&6
21386 else
21387   gcc_cv_as_balign_and_p2align=no
21388     if test $in_tree_gas = yes; then
21389     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21390   then gcc_cv_as_balign_and_p2align=yes
21391 fi
21392   elif test x$gcc_cv_as != x; then
21393     echo '.balign 4
21394 .p2align 2' > conftest.s
21395     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21396   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21397   (eval $ac_try) 2>&5
21398   ac_status=$?
21399   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21400   test $ac_status = 0; }; }
21401     then
21402         gcc_cv_as_balign_and_p2align=yes
21403     else
21404       echo "configure: failed program was" >&5
21405       cat conftest.s >&5
21406     fi
21407     rm -f conftest.o conftest.s
21408   fi
21409 fi
21410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21411 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21412 if test $gcc_cv_as_balign_and_p2align = yes; then
21413
21414 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21415
21416 fi
21417
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21419 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21420 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21421   $as_echo_n "(cached) " >&6
21422 else
21423   gcc_cv_as_max_skip_p2align=no
21424     if test $in_tree_gas = yes; then
21425     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21426   then gcc_cv_as_max_skip_p2align=yes
21427 fi
21428   elif test x$gcc_cv_as != x; then
21429     echo '.p2align 4,,7' > conftest.s
21430     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21431   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21432   (eval $ac_try) 2>&5
21433   ac_status=$?
21434   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21435   test $ac_status = 0; }; }
21436     then
21437         gcc_cv_as_max_skip_p2align=yes
21438     else
21439       echo "configure: failed program was" >&5
21440       cat conftest.s >&5
21441     fi
21442     rm -f conftest.o conftest.s
21443   fi
21444 fi
21445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21446 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21447 if test $gcc_cv_as_max_skip_p2align = yes; then
21448
21449 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21450
21451 fi
21452
21453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21454 $as_echo_n "checking assembler for .literal16... " >&6; }
21455 if test "${gcc_cv_as_literal16+set}" = set; then :
21456   $as_echo_n "(cached) " >&6
21457 else
21458   gcc_cv_as_literal16=no
21459     if test $in_tree_gas = yes; then
21460     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21461   then gcc_cv_as_literal16=yes
21462 fi
21463   elif test x$gcc_cv_as != x; then
21464     echo '.literal16' > conftest.s
21465     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21466   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21467   (eval $ac_try) 2>&5
21468   ac_status=$?
21469   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21470   test $ac_status = 0; }; }
21471     then
21472         gcc_cv_as_literal16=yes
21473     else
21474       echo "configure: failed program was" >&5
21475       cat conftest.s >&5
21476     fi
21477     rm -f conftest.o conftest.s
21478   fi
21479 fi
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21481 $as_echo "$gcc_cv_as_literal16" >&6; }
21482 if test $gcc_cv_as_literal16 = yes; then
21483
21484 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21485
21486 fi
21487
21488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21489 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21490 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21491   $as_echo_n "(cached) " >&6
21492 else
21493   gcc_cv_as_subsection_m1=no
21494     if test $in_tree_gas = yes; then
21495     if test $in_tree_gas_is_elf = yes \
21496   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21497   then gcc_cv_as_subsection_m1=yes
21498 fi
21499   elif test x$gcc_cv_as != x; then
21500     echo 'conftest_label1: .word 0
21501 .subsection -1
21502 conftest_label2: .word 0
21503 .previous' > conftest.s
21504     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21505   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21506   (eval $ac_try) 2>&5
21507   ac_status=$?
21508   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21509   test $ac_status = 0; }; }
21510     then
21511         if test x$gcc_cv_nm != x; then
21512     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21513     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21514     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21515     then :
21516     else gcc_cv_as_subsection_m1=yes
21517     fi
21518     rm -f conftest.nm1 conftest.nm2
21519   fi
21520     else
21521       echo "configure: failed program was" >&5
21522       cat conftest.s >&5
21523     fi
21524     rm -f conftest.o conftest.s
21525   fi
21526 fi
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21528 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21529 if test $gcc_cv_as_subsection_m1 = yes; then
21530
21531 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21532
21533 fi
21534
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21536 $as_echo_n "checking assembler for .weak... " >&6; }
21537 if test "${gcc_cv_as_weak+set}" = set; then :
21538   $as_echo_n "(cached) " >&6
21539 else
21540   gcc_cv_as_weak=no
21541     if test $in_tree_gas = yes; then
21542     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21543   then gcc_cv_as_weak=yes
21544 fi
21545   elif test x$gcc_cv_as != x; then
21546     echo '      .weak foobar' > conftest.s
21547     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21548   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21549   (eval $ac_try) 2>&5
21550   ac_status=$?
21551   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21552   test $ac_status = 0; }; }
21553     then
21554         gcc_cv_as_weak=yes
21555     else
21556       echo "configure: failed program was" >&5
21557       cat conftest.s >&5
21558     fi
21559     rm -f conftest.o conftest.s
21560   fi
21561 fi
21562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21563 $as_echo "$gcc_cv_as_weak" >&6; }
21564 if test $gcc_cv_as_weak = yes; then
21565
21566 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21567
21568 fi
21569
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21571 $as_echo_n "checking assembler for .weakref... " >&6; }
21572 if test "${gcc_cv_as_weakref+set}" = set; then :
21573   $as_echo_n "(cached) " >&6
21574 else
21575   gcc_cv_as_weakref=no
21576     if test $in_tree_gas = yes; then
21577     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21578   then gcc_cv_as_weakref=yes
21579 fi
21580   elif test x$gcc_cv_as != x; then
21581     echo '      .weakref foobar, barfnot' > conftest.s
21582     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21583   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21584   (eval $ac_try) 2>&5
21585   ac_status=$?
21586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21587   test $ac_status = 0; }; }
21588     then
21589         gcc_cv_as_weakref=yes
21590     else
21591       echo "configure: failed program was" >&5
21592       cat conftest.s >&5
21593     fi
21594     rm -f conftest.o conftest.s
21595   fi
21596 fi
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21598 $as_echo "$gcc_cv_as_weakref" >&6; }
21599 if test $gcc_cv_as_weakref = yes; then
21600
21601 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21602
21603 fi
21604
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21606 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21607 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21608   $as_echo_n "(cached) " >&6
21609 else
21610   gcc_cv_as_nsubspa_comdat=no
21611     if test $in_tree_gas = yes; then
21612     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21613   then gcc_cv_as_nsubspa_comdat=yes
21614 fi
21615   elif test x$gcc_cv_as != x; then
21616     echo '      .SPACE $TEXT$
21617         .NSUBSPA $CODE$,COMDAT' > conftest.s
21618     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21619   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21620   (eval $ac_try) 2>&5
21621   ac_status=$?
21622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21623   test $ac_status = 0; }; }
21624     then
21625         gcc_cv_as_nsubspa_comdat=yes
21626     else
21627       echo "configure: failed program was" >&5
21628       cat conftest.s >&5
21629     fi
21630     rm -f conftest.o conftest.s
21631   fi
21632 fi
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21634 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21635 if test $gcc_cv_as_nsubspa_comdat = yes; then
21636
21637 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21638
21639 fi
21640
21641 # .hidden needs to be supported in both the assembler and the linker,
21642 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21643 # This is irritatingly difficult to feature test for; we have to check the
21644 # date string after the version number.  If we've got an in-tree
21645 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21646 # to be safe.
21647 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21649 $as_echo_n "checking assembler for .hidden... " >&6; }
21650 if test "${gcc_cv_as_hidden+set}" = set; then :
21651   $as_echo_n "(cached) " >&6
21652 else
21653   gcc_cv_as_hidden=no
21654     if test $in_tree_gas = yes; then
21655     if test $in_tree_gas_is_elf = yes \
21656   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21657   then gcc_cv_as_hidden=yes
21658 fi
21659   elif test x$gcc_cv_as != x; then
21660     echo '      .hidden foobar
21661 foobar:' > conftest.s
21662     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21663   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21664   (eval $ac_try) 2>&5
21665   ac_status=$?
21666   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21667   test $ac_status = 0; }; }
21668     then
21669
21670 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21671 # STV_HIDDEN, so disable .hidden support if so.
21672 case "${target}" in
21673   i?86-*-solaris2*)
21674     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21675       cat > conftest.s <<EOF
21676 .globl hidden
21677         .hidden hidden
21678 hidden:
21679 .globl default
21680         .set    default,hidden
21681 EOF
21682       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21683         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21684         grep '\.hidden default' > /dev/null; then
21685         gcc_cv_as_hidden=no
21686       else
21687         gcc_cv_as_hidden=yes
21688       fi
21689     else
21690       # Assume bug is present if objdump is missing.
21691       gcc_cv_as_hidden=no
21692     fi
21693     ;;
21694   *)
21695     gcc_cv_as_hidden=yes
21696     ;;
21697 esac
21698     else
21699       echo "configure: failed program was" >&5
21700       cat conftest.s >&5
21701     fi
21702     rm -f conftest.o conftest.s
21703   fi
21704 fi
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21706 $as_echo "$gcc_cv_as_hidden" >&6; }
21707
21708
21709 # gnu_indirect_function type is an extension proposed at
21710 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21711 # selection of function implementation
21712 # Check whether --enable-gnu-indirect-function was given.
21713 if test "${enable_gnu_indirect_function+set}" = set; then :
21714   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21715     yes | no) ;;
21716     *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21717 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21718   esac
21719 else
21720   enable_gnu_indirect_function="$default_gnu_indirect_function"
21721 fi
21722
21723 if test x$enable_gnu_indirect_function = xyes; then
21724
21725 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
21726
21727 fi
21728
21729 if test $in_tree_ld != yes ; then
21730   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21731   if echo "$ld_ver" | grep GNU > /dev/null; then
21732     if test x"$ld_is_gold" = xyes; then
21733       # GNU gold --version looks like this:
21734       #
21735       # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
21736       #
21737       # We extract the binutils version which is more familiar and specific
21738       # than the gold version.
21739       ld_vers=`echo $ld_ver | sed -n \
21740           -e 's,^[^)]*[  ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
21741     else
21742       # GNU ld --version looks like this:
21743       #
21744       # GNU ld (GNU Binutils) 2.21.51.20110225
21745       ld_vers=`echo $ld_ver | sed -n \
21746           -e 's,^.*[     ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21747     fi
21748     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'`
21749     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21750     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21751     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21752   else
21753     case "${target}" in
21754       *-*-solaris2*)
21755         #
21756         # Solaris 2 ld -V output looks like this for a regular version:
21757         #
21758         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21759         #
21760         # but test versions add stuff at the end:
21761         #
21762         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21763         #
21764         ld_ver=`$gcc_cv_ld -V 2>&1`
21765         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21766           ld_vers=`echo $ld_ver | sed -n \
21767             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21768           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21769           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21770         fi
21771         ;;
21772     esac
21773   fi
21774 fi
21775
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21777 $as_echo_n "checking linker for .hidden support... " >&6; }
21778 if test "${gcc_cv_ld_hidden+set}" = set; then :
21779   $as_echo_n "(cached) " >&6
21780 else
21781   if test $in_tree_ld = yes ; then
21782   gcc_cv_ld_hidden=no
21783   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 \
21784      && test $in_tree_ld_is_elf = yes; then
21785      gcc_cv_ld_hidden=yes
21786   fi
21787 else
21788   gcc_cv_ld_hidden=yes
21789   if test x"$ld_is_gold" = xyes; then
21790     :
21791   elif echo "$ld_ver" | grep GNU > /dev/null; then
21792     if test 0"$ld_date" -lt 20020404; then
21793       if test -n "$ld_date"; then
21794         # If there was date string, but was earlier than 2002-04-04, fail
21795         gcc_cv_ld_hidden=no
21796       elif test -z "$ld_vers"; then
21797         # If there was no date string nor ld version number, something is wrong
21798         gcc_cv_ld_hidden=no
21799       else
21800         test -z "$ld_vers_patch" && ld_vers_patch=0
21801         if test "$ld_vers_major" -lt 2; then
21802           gcc_cv_ld_hidden=no
21803         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21804           gcc_cv_ld_hidden="no"
21805         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21806           gcc_cv_ld_hidden=no
21807         fi
21808       fi
21809     fi
21810   else
21811     case "${target}" in
21812       hppa64*-*-hpux* | ia64*-*-hpux*)
21813         gcc_cv_ld_hidden=yes
21814         ;;
21815       *-*-solaris2.8*)
21816         # .hidden support was backported to Solaris 8, starting with ld
21817         # version 1.276.
21818         if test "$ld_vers_minor" -ge 276; then
21819           gcc_cv_ld_hidden=yes
21820         else
21821           gcc_cv_ld_hidden=no
21822         fi
21823         ;;
21824       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21825         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21826         # .symbolic was only added in Solaris 9 12/02.
21827         gcc_cv_ld_hidden=yes
21828         ;;
21829       *)
21830         gcc_cv_ld_hidden=no
21831         ;;
21832     esac
21833   fi
21834 fi
21835 fi
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21837 $as_echo "$gcc_cv_ld_hidden" >&6; }
21838 libgcc_visibility=no
21839
21840
21841 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21842   libgcc_visibility=yes
21843
21844 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21845
21846 fi
21847
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21849 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21850 gcc_cv_ld_ro_rw_mix=unknown
21851 if test $in_tree_ld = yes ; then
21852   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 \
21853      && test $in_tree_ld_is_elf = yes; then
21854     gcc_cv_ld_ro_rw_mix=read-write
21855   fi
21856 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21857   echo '.section myfoosect, "a"' > conftest1.s
21858   echo '.section myfoosect, "aw"' > conftest2.s
21859   echo '.byte 1' >> conftest2.s
21860   echo '.section myfoosect, "a"' > conftest3.s
21861   echo '.byte 0' >> conftest3.s
21862   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21863      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21864      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21865      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21866         conftest2.o conftest3.o > /dev/null 2>&1; then
21867     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21868                          | sed -e '/myfoosect/!d' -e N`
21869     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21870       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21871         gcc_cv_ld_ro_rw_mix=read-only
21872       else
21873         gcc_cv_ld_ro_rw_mix=read-write
21874       fi
21875     fi
21876   fi
21877   rm -f conftest.* conftest[123].*
21878 fi
21879 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21880
21881 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21882
21883 fi
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21885 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21886
21887 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21889 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21890 if test "${gcc_cv_as_leb128+set}" = set; then :
21891   $as_echo_n "(cached) " >&6
21892 else
21893   gcc_cv_as_leb128=no
21894     if test $in_tree_gas = yes; then
21895     if test $in_tree_gas_is_elf = yes \
21896   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21897   then gcc_cv_as_leb128=yes
21898 fi
21899   elif test x$gcc_cv_as != x; then
21900     echo '      .data
21901         .uleb128 L2 - L1
21902 L1:
21903         .uleb128 1280
21904         .sleb128 -1010
21905 L2:' > conftest.s
21906     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21907   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21908   (eval $ac_try) 2>&5
21909   ac_status=$?
21910   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21911   test $ac_status = 0; }; }
21912     then
21913         # GAS versions before 2.11 do not support uleb128,
21914   # despite appearing to.
21915   # ??? There exists an elf-specific test that will crash
21916   # the assembler.  Perhaps it's better to figure out whether
21917   # arbitrary sections are supported and try the test.
21918   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21919   if echo "$as_ver" | grep GNU > /dev/null; then
21920     as_vers=`echo $as_ver | sed -n \
21921         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21922     as_major=`expr "$as_vers" : '\([0-9]*\)'`
21923     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21924     if test $as_major -eq 2 && test $as_minor -lt 11
21925     then :
21926     else gcc_cv_as_leb128=yes
21927     fi
21928   fi
21929     else
21930       echo "configure: failed program was" >&5
21931       cat conftest.s >&5
21932     fi
21933     rm -f conftest.o conftest.s
21934   fi
21935 fi
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21937 $as_echo "$gcc_cv_as_leb128" >&6; }
21938 if test $gcc_cv_as_leb128 = yes; then
21939
21940 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21941
21942 fi
21943
21944 # Check if we have assembler support for unwind directives.
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21946 $as_echo_n "checking assembler for cfi directives... " >&6; }
21947 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21948   $as_echo_n "(cached) " >&6
21949 else
21950   gcc_cv_as_cfi_directive=no
21951   if test x$gcc_cv_as != x; then
21952     echo '      .text
21953         .cfi_startproc
21954         .cfi_offset 0, 0
21955         .cfi_same_value 1
21956         .cfi_def_cfa 1, 2
21957         .cfi_escape 1, 2, 3, 4, 5
21958         .cfi_endproc' > conftest.s
21959     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21960   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21961   (eval $ac_try) 2>&5
21962   ac_status=$?
21963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21964   test $ac_status = 0; }; }
21965     then
21966         case "$target" in
21967   *-*-solaris*)
21968     # If the linker used on Solaris (like Sun ld) isn't capable of merging
21969     # read-only and read-write sections, we need to make sure that the
21970     # assembler used emits read-write .eh_frame sections.
21971     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21972       if test "x$gcc_cv_objdump" != x; then
21973         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21974                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21975           gcc_cv_as_cfi_directive=no
21976         else
21977           case "$target" in
21978             i?86-*-solaris2.1[0-9]*)
21979               # On Solaris/x86, make sure that GCC and gas agree on using
21980               # read-only .eh_frame sections for 64-bit.
21981               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21982                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21983                         sed -e /.eh_frame/!d -e N | \
21984                         grep READONLY > /dev/null; then
21985                 gcc_cv_as_cfi_directive=yes
21986               else
21987                 gcc_cv_as_cfi_directive=no
21988               fi
21989               ;;
21990             *)
21991               gcc_cv_as_cfi_directive=yes
21992               ;;
21993           esac
21994         fi
21995       else
21996         # no objdump, err on the side of caution
21997         gcc_cv_as_cfi_directive=no
21998       fi
21999     else
22000       gcc_cv_as_cfi_directive=yes
22001     fi
22002     ;;
22003   *-*-*)
22004     gcc_cv_as_cfi_directive=yes
22005     ;;
22006 esac
22007     else
22008       echo "configure: failed program was" >&5
22009       cat conftest.s >&5
22010     fi
22011     rm -f conftest.o conftest.s
22012   fi
22013 fi
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22015 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22016
22017 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22019 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22020 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22021   $as_echo_n "(cached) " >&6
22022 else
22023   gcc_cv_as_cfi_advance_working=no
22024   if test x$gcc_cv_as != x; then
22025     echo '      .text
22026         .cfi_startproc
22027         .cfi_adjust_cfa_offset 64
22028         .skip 75040, 0
22029         .cfi_adjust_cfa_offset 128
22030         .cfi_endproc' > conftest.s
22031     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22032   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22033   (eval $ac_try) 2>&5
22034   ac_status=$?
22035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22036   test $ac_status = 0; }; }
22037     then
22038
22039 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22040     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
22041    gcc_cv_as_cfi_advance_working=yes
22042 fi
22043
22044     else
22045       echo "configure: failed program was" >&5
22046       cat conftest.s >&5
22047     fi
22048     rm -f conftest.o conftest.s
22049   fi
22050 fi
22051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22052 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22053
22054 else
22055   # no objdump, err on the side of caution
22056   gcc_cv_as_cfi_advance_working=no
22057 fi
22058
22059
22060 cat >>confdefs.h <<_ACEOF
22061 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22062        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22063 _ACEOF
22064
22065
22066
22067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22068 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22069 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22070   $as_echo_n "(cached) " >&6
22071 else
22072   gcc_cv_as_cfi_personality_directive=no
22073   if test x$gcc_cv_as != x; then
22074     echo '      .text
22075         .cfi_startproc
22076         .cfi_personality 0, symbol
22077         .cfi_endproc' > conftest.s
22078     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22079   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22080   (eval $ac_try) 2>&5
22081   ac_status=$?
22082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22083   test $ac_status = 0; }; }
22084     then
22085         gcc_cv_as_cfi_personality_directive=yes
22086     else
22087       echo "configure: failed program was" >&5
22088       cat conftest.s >&5
22089     fi
22090     rm -f conftest.o conftest.s
22091   fi
22092 fi
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22094 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22095
22096
22097 cat >>confdefs.h <<_ACEOF
22098 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22099     then echo 1; else echo 0; fi`
22100 _ACEOF
22101
22102
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22104 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22105 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22106   $as_echo_n "(cached) " >&6
22107 else
22108   gcc_cv_as_cfi_sections_directive=no
22109   if test x$gcc_cv_as != x; then
22110     echo '      .text
22111         .cfi_sections .debug_frame, .eh_frame
22112         .cfi_startproc
22113         .cfi_endproc' > conftest.s
22114     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22115   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22116   (eval $ac_try) 2>&5
22117   ac_status=$?
22118   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22119   test $ac_status = 0; }; }
22120     then
22121         case $target_os in
22122   win32 | pe | cygwin* | mingw32* | uwin*)
22123     # Need to check that we generated the correct relocation for the
22124     # .debug_frame section.  This was fixed for binutils 2.21.
22125     gcc_cv_as_cfi_sections_directive=no
22126     if test "x$gcc_cv_objdump" != x; then
22127      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22128         grep secrel > /dev/null; then
22129       gcc_cv_as_cfi_sections_directive=yes
22130      fi
22131     fi
22132     ;;
22133   *)
22134     gcc_cv_as_cfi_sections_directive=yes
22135     ;;
22136 esac
22137     else
22138       echo "configure: failed program was" >&5
22139       cat conftest.s >&5
22140     fi
22141     rm -f conftest.o conftest.s
22142   fi
22143 fi
22144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22145 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22146
22147
22148
22149 cat >>confdefs.h <<_ACEOF
22150 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22151     then echo 1; else echo 0; fi`
22152 _ACEOF
22153
22154
22155 # GAS versions up to and including 2.11.0 may mis-optimize
22156 # .eh_frame data.
22157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22158 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22159 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22160   $as_echo_n "(cached) " >&6
22161 else
22162   gcc_cv_as_eh_frame=no
22163     if test $in_tree_gas = yes; then
22164     if test $in_tree_gas_is_elf = yes \
22165   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22166   then gcc_cv_as_eh_frame=yes
22167 fi
22168   elif test x$gcc_cv_as != x; then
22169     echo '      .text
22170 .LFB1:
22171         .4byte  0
22172 .L1:
22173         .4byte  0
22174 .LFE1:
22175         .section        .eh_frame,"aw",@progbits
22176 __FRAME_BEGIN__:
22177         .4byte  .LECIE1-.LSCIE1
22178 .LSCIE1:
22179         .4byte  0x0
22180         .byte   0x1
22181         .ascii "z\0"
22182         .byte   0x1
22183         .byte   0x78
22184         .byte   0x1a
22185         .byte   0x0
22186         .byte   0x4
22187         .4byte  1
22188         .p2align 1
22189 .LECIE1:
22190 .LSFDE1:
22191         .4byte  .LEFDE1-.LASFDE1
22192 .LASFDE1:
22193         .4byte  .LASFDE1-__FRAME_BEGIN__
22194         .4byte  .LFB1
22195         .4byte  .LFE1-.LFB1
22196         .byte   0x4
22197         .4byte  .LFE1-.LFB1
22198         .byte   0x4
22199         .4byte  .L1-.LFB1
22200 .LEFDE1:' > conftest.s
22201     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22202   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22203   (eval $ac_try) 2>&5
22204   ac_status=$?
22205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22206   test $ac_status = 0; }; }
22207     then
22208           cat > conftest.lit <<EOF
22209  0000 10000000 00000000 017a0001 781a0004  .........z..x...
22210  0010 01000000 12000000 18000000 00000000  ................
22211  0020 08000000 04080000 0044               .........D      
22212 EOF
22213 cat > conftest.big <<EOF
22214  0000 00000010 00000000 017a0001 781a0004  .........z..x...
22215  0010 00000001 00000012 00000018 00000000  ................
22216  0020 00000008 04000000 0844               .........D      
22217 EOF
22218   # If the assembler didn't choke, and we can objdump,
22219   # and we got the correct data, then succeed.
22220   # The text in the here-document typically retains its unix-style line
22221   # endings, while the output of objdump will use host line endings.
22222   # Therefore, use diff -b for the comparisons.
22223   if test x$gcc_cv_objdump != x \
22224   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22225      | tail -3 > conftest.got \
22226   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22227     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22228   then
22229     gcc_cv_as_eh_frame=yes
22230   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22231   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22232   (eval $ac_try) 2>&5
22233   ac_status=$?
22234   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22235   test $ac_status = 0; }; }; then
22236     gcc_cv_as_eh_frame=buggy
22237   else
22238     # Uh oh, what do we do now?
22239     gcc_cv_as_eh_frame=no
22240   fi
22241     else
22242       echo "configure: failed program was" >&5
22243       cat conftest.s >&5
22244     fi
22245     rm -f conftest.o conftest.s
22246   fi
22247 fi
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22249 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22250
22251
22252 if test $gcc_cv_as_eh_frame = buggy; then
22253
22254 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22255
22256 fi
22257
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22259 $as_echo_n "checking assembler for section merging support... " >&6; }
22260 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22261   $as_echo_n "(cached) " >&6
22262 else
22263   gcc_cv_as_shf_merge=no
22264     if test $in_tree_gas = yes; then
22265     if test $in_tree_gas_is_elf = yes \
22266   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22267   then gcc_cv_as_shf_merge=yes
22268 fi
22269   elif test x$gcc_cv_as != x; then
22270     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22271     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22272   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22273   (eval $ac_try) 2>&5
22274   ac_status=$?
22275   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22276   test $ac_status = 0; }; }
22277     then
22278         gcc_cv_as_shf_merge=yes
22279     else
22280       echo "configure: failed program was" >&5
22281       cat conftest.s >&5
22282     fi
22283     rm -f conftest.o conftest.s
22284   fi
22285 fi
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22287 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22288
22289 if test $gcc_cv_as_shf_merge = no; then
22290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22291 $as_echo_n "checking assembler for section merging support... " >&6; }
22292 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22293   $as_echo_n "(cached) " >&6
22294 else
22295   gcc_cv_as_shf_merge=no
22296     if test $in_tree_gas = yes; then
22297     if test $in_tree_gas_is_elf = yes \
22298   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22299   then gcc_cv_as_shf_merge=yes
22300 fi
22301   elif test x$gcc_cv_as != x; then
22302     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22303     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22304   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22305   (eval $ac_try) 2>&5
22306   ac_status=$?
22307   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22308   test $ac_status = 0; }; }
22309     then
22310         gcc_cv_as_shf_merge=yes
22311     else
22312       echo "configure: failed program was" >&5
22313       cat conftest.s >&5
22314     fi
22315     rm -f conftest.o conftest.s
22316   fi
22317 fi
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22319 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22320
22321 fi
22322
22323 cat >>confdefs.h <<_ACEOF
22324 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22325 _ACEOF
22326
22327
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22329 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22330 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22331   $as_echo_n "(cached) " >&6
22332 else
22333   gcc_cv_as_comdat_group=no
22334     if test $in_tree_gas = yes; then
22335     if test $in_tree_gas_is_elf = yes \
22336   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22337   then gcc_cv_as_comdat_group=yes
22338 fi
22339   elif test x$gcc_cv_as != x; then
22340     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22341     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22342   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22343   (eval $ac_try) 2>&5
22344   ac_status=$?
22345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22346   test $ac_status = 0; }; }
22347     then
22348         gcc_cv_as_comdat_group=yes
22349     else
22350       echo "configure: failed program was" >&5
22351       cat conftest.s >&5
22352     fi
22353     rm -f conftest.o conftest.s
22354   fi
22355 fi
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22357 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22358
22359 if test $gcc_cv_as_comdat_group = yes; then
22360   gcc_cv_as_comdat_group_percent=no
22361 else
22362  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22363 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22364 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22365   $as_echo_n "(cached) " >&6
22366 else
22367   gcc_cv_as_comdat_group_percent=no
22368     if test $in_tree_gas = yes; then
22369     if test $in_tree_gas_is_elf = yes \
22370   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22371   then gcc_cv_as_comdat_group_percent=yes
22372 fi
22373   elif test x$gcc_cv_as != x; then
22374     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22375     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22376   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22377   (eval $ac_try) 2>&5
22378   ac_status=$?
22379   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22380   test $ac_status = 0; }; }
22381     then
22382         gcc_cv_as_comdat_group_percent=yes
22383     else
22384       echo "configure: failed program was" >&5
22385       cat conftest.s >&5
22386     fi
22387     rm -f conftest.o conftest.s
22388   fi
22389 fi
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22391 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22392
22393 fi
22394 if test x"$ld_is_gold" = xyes; then
22395   comdat_group=yes
22396 elif test $in_tree_ld = yes ; then
22397   comdat_group=no
22398   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 \
22399      && test $in_tree_ld_is_elf = yes; then
22400      comdat_group=yes
22401   fi
22402 elif echo "$ld_ver" | grep GNU > /dev/null; then
22403   comdat_group=yes
22404   if test 0"$ld_date" -lt 20050308; then
22405     if test -n "$ld_date"; then
22406       # If there was date string, but was earlier than 2005-03-08, fail
22407       comdat_group=no
22408     elif test "$ld_vers_major" -lt 2; then
22409       comdat_group=no
22410     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22411       comdat_group=no
22412     fi
22413   fi
22414 else
22415   case "${target}" in
22416     *-*-solaris2.1[1-9]*)
22417       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22418       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22419       # version 1.688.
22420       #
22421       # FIXME: Maybe need to refine later when COMDAT group support with
22422       # Sun as is implemented.
22423       if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
22424         comdat_group=yes
22425       else
22426         comdat_group=no
22427       fi
22428       ;;
22429     *)
22430       # Assume linkers other than GNU ld don't support COMDAT group.
22431       comdat_group=no
22432       ;;
22433   esac
22434 fi
22435 # Allow overriding the automatic COMDAT group tests above.
22436 # Check whether --enable-comdat was given.
22437 if test "${enable_comdat+set}" = set; then :
22438   enableval=$enable_comdat; comdat_group="$enable_comdat"
22439 fi
22440
22441 if test $comdat_group = no; then
22442   gcc_cv_as_comdat_group=no
22443   gcc_cv_as_comdat_group_percent=no
22444 fi
22445
22446 cat >>confdefs.h <<_ACEOF
22447 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
22448 _ACEOF
22449
22450
22451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22452 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22453 if test "${gcc_cv_as_discriminator+set}" = set; then :
22454   $as_echo_n "(cached) " >&6
22455 else
22456   gcc_cv_as_discriminator=no
22457     if test $in_tree_gas = yes; then
22458     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22459   then gcc_cv_as_discriminator=yes
22460 fi
22461   elif test x$gcc_cv_as != x; then
22462     echo '      .text
22463         .file 1 "conf.c"
22464         .loc 1 1 0 discriminator 1' > conftest.s
22465     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22466   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22467   (eval $ac_try) 2>&5
22468   ac_status=$?
22469   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22470   test $ac_status = 0; }; }
22471     then
22472         gcc_cv_as_discriminator=yes
22473     else
22474       echo "configure: failed program was" >&5
22475       cat conftest.s >&5
22476     fi
22477     rm -f conftest.o conftest.s
22478   fi
22479 fi
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22481 $as_echo "$gcc_cv_as_discriminator" >&6; }
22482 if test $gcc_cv_as_discriminator = yes; then
22483
22484 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22485
22486 fi
22487
22488 # Thread-local storage - the check is heavily parameterized.
22489 conftest_s=
22490 tls_first_major=
22491 tls_first_minor=
22492 tls_as_opt=
22493 case "$target" in
22494   alpha*-*-*)
22495     conftest_s='
22496         .section ".tdata","awT",@progbits
22497 foo:    .long   25
22498         .text
22499         ldq     $27,__tls_get_addr($29)         !literal!1
22500         lda     $16,foo($29)                    !tlsgd!1
22501         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
22502         ldq     $27,__tls_get_addr($29)         !literal!2
22503         lda     $16,foo($29)                    !tlsldm!2
22504         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
22505         ldq     $1,foo($29)                     !gotdtprel
22506         ldah    $2,foo($29)                     !dtprelhi
22507         lda     $3,foo($2)                      !dtprello
22508         lda     $4,foo($29)                     !dtprel
22509         ldq     $1,foo($29)                     !gottprel
22510         ldah    $2,foo($29)                     !tprelhi
22511         lda     $3,foo($2)                      !tprello
22512         lda     $4,foo($29)                     !tprel'
22513         tls_first_major=2
22514         tls_first_minor=13
22515         tls_as_opt=--fatal-warnings
22516         ;;
22517   cris-*-*|crisv32-*-*)
22518     conftest_s='
22519         .section ".tdata","awT",@progbits
22520 x:      .long   25
22521         .text
22522         move.d x:IE,$r10
22523         nop'
22524         tls_first_major=2
22525         tls_first_minor=20
22526         tls_as_opt=--fatal-warnings
22527         ;;
22528   frv*-*-*)
22529     conftest_s='
22530         .section ".tdata","awT",@progbits
22531 x:      .long   25
22532         .text
22533         call    #gettlsoff(x)'
22534         tls_first_major=2
22535         tls_first_minor=14
22536         ;;
22537   hppa*-*-linux*)
22538     conftest_s='
22539 t1:     .reg    %r20
22540 t2:     .reg    %r21
22541 gp:     .reg    %r19
22542         .section ".tdata","awT",@progbits
22543 foo:    .long   25
22544         .text
22545         .align  4
22546         addil LT%foo-$tls_gdidx$,gp
22547         ldo RT%foo-$tls_gdidx$(%r1),%arg0
22548         b __tls_get_addr
22549         nop
22550         addil LT%foo-$tls_ldidx$,gp
22551         b __tls_get_addr
22552         ldo RT%foo-$tls_ldidx$(%r1),%arg0
22553         addil LR%foo-$tls_dtpoff$,%ret0
22554         ldo RR%foo-$tls_dtpoff$(%r1),%t1
22555         mfctl %cr27,%t1
22556         addil LT%foo-$tls_ieoff$,gp
22557         ldw RT%foo-$tls_ieoff$(%r1),%t2
22558         add %t1,%t2,%t3
22559         mfctl %cr27,%t1
22560         addil LR%foo-$tls_leoff$,%t1
22561         ldo RR%foo-$tls_leoff$(%r1),%t2'
22562         tls_first_major=2
22563         tls_first_minor=15
22564         tls_as_opt=--fatal-warnings
22565         ;;
22566   arm*-*-*)
22567     conftest_s='
22568         .section ".tdata","awT",%progbits
22569 foo:    .long   25
22570         .text
22571 .word foo(gottpoff)
22572 .word foo(tpoff)
22573 .word foo(tlsgd)
22574 .word foo(tlsldm)
22575 .word foo(tlsldo)'
22576         tls_first_major=2
22577         tls_first_minor=17
22578         ;;
22579   i[34567]86-*-*)
22580     case "$target" in
22581       i[34567]86-*-solaris2.*)
22582         on_solaris=yes
22583         tga_func=___tls_get_addr
22584         ;;
22585       *)
22586         on_solaris=no
22587         ;;
22588     esac
22589     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22590       conftest_s='
22591         .section .tdata,"awt",@progbits'
22592       tls_first_major=0
22593       tls_first_minor=0
22594
22595 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22596
22597     else
22598       conftest_s='
22599         .section ".tdata","awT",@progbits'
22600       tls_first_major=2
22601       tls_first_minor=14
22602       tls_as_opt="--fatal-warnings"
22603     fi
22604     conftest_s="$conftest_s
22605 foo:    .long   25
22606         .text
22607         movl    %gs:0, %eax
22608         leal    foo@tlsgd(,%ebx,1), %eax
22609         leal    foo@tlsldm(%ebx), %eax
22610         leal    foo@dtpoff(%eax), %edx
22611         movl    foo@gottpoff(%ebx), %eax
22612         subl    foo@gottpoff(%ebx), %eax
22613         addl    foo@gotntpoff(%ebx), %eax
22614         movl    foo@indntpoff, %eax
22615         movl    \$foo@tpoff, %eax
22616         subl    \$foo@tpoff, %eax
22617         leal    foo@ntpoff(%ecx), %eax"
22618     ;;
22619   x86_64-*-*)
22620     conftest_s='
22621         .section ".tdata","awT",@progbits
22622 foo:    .long   25
22623         .text
22624         movq    %fs:0, %rax
22625         leaq    foo@TLSGD(%rip), %rdi
22626         leaq    foo@TLSLD(%rip), %rdi
22627         leaq    foo@DTPOFF(%rax), %rdx
22628         movq    foo@GOTTPOFF(%rip), %rax
22629         movq    $foo@TPOFF, %rax'
22630         tls_first_major=2
22631         tls_first_minor=14
22632         tls_as_opt=--fatal-warnings
22633         ;;
22634   ia64-*-*)
22635     conftest_s='
22636         .section ".tdata","awT",@progbits
22637 foo:    data8   25
22638         .text
22639         addl    r16 = @ltoff(@dtpmod(foo#)), gp
22640         addl    r17 = @ltoff(@dtprel(foo#)), gp
22641         addl    r18 = @ltoff(@tprel(foo#)), gp
22642         addl    r19 = @dtprel(foo#), gp
22643         adds    r21 = @dtprel(foo#), r13
22644         movl    r23 = @dtprel(foo#)
22645         addl    r20 = @tprel(foo#), gp
22646         adds    r22 = @tprel(foo#), r13
22647         movl    r24 = @tprel(foo#)'
22648         tls_first_major=2
22649         tls_first_minor=13
22650         tls_as_opt=--fatal-warnings
22651         ;;
22652   mips*-*-*)
22653     conftest_s='
22654         .section .tdata,"awT",@progbits
22655 x:
22656         .word 2
22657         .text
22658         addiu $4, $28, %tlsgd(x)
22659         addiu $4, $28, %tlsldm(x)
22660         lui $4, %dtprel_hi(x)
22661         addiu $4, $4, %dtprel_lo(x)
22662         lw $4, %gottprel(x)($28)
22663         lui $4, %tprel_hi(x)
22664         addiu $4, $4, %tprel_lo(x)'
22665         tls_first_major=2
22666         tls_first_minor=16
22667         tls_as_opt='-32 --fatal-warnings'
22668         ;;
22669   m68k-*-*)
22670     conftest_s='
22671         .section .tdata,"awT",@progbits
22672 x:
22673         .word 2
22674         .text
22675 foo:
22676         move.l x@TLSGD(%a5),%a0
22677         move.l x@TLSLDM(%a5),%a0
22678         move.l x@TLSLDO(%a5),%a0
22679         move.l x@TLSIE(%a5),%a0
22680         move.l x@TLSLE(%a5),%a0'
22681         tls_first_major=2
22682         tls_first_minor=19
22683         tls_as_opt='--fatal-warnings'
22684         ;;
22685   powerpc-*-*)
22686     conftest_s='
22687         .section ".tdata","awT",@progbits
22688         .align 2
22689 ld0:    .space 4
22690 ld1:    .space 4
22691 x1:     .space 4
22692 x2:     .space 4
22693 x3:     .space 4
22694         .text
22695         addi 3,31,ld0@got@tlsgd
22696         bl __tls_get_addr
22697         addi 3,31,x1@got@tlsld
22698         bl __tls_get_addr
22699         addi 9,3,x1@dtprel
22700         addis 9,3,x2@dtprel@ha
22701         addi 9,9,x2@dtprel@l
22702         lwz 9,x3@got@tprel(31)
22703         add 9,9,x@tls
22704         addi 9,2,x1@tprel
22705         addis 9,2,x2@tprel@ha
22706         addi 9,9,x2@tprel@l'
22707         tls_first_major=2
22708         tls_first_minor=14
22709         tls_as_opt="-a32 --fatal-warnings"
22710         ;;
22711   powerpc64-*-*)
22712     conftest_s='
22713         .section ".tdata","awT",@progbits
22714         .align 3
22715 ld0:    .space 8
22716 ld1:    .space 8
22717 x1:     .space 8
22718 x2:     .space 8
22719 x3:     .space 8
22720         .text
22721         addi 3,2,ld0@got@tlsgd
22722         bl .__tls_get_addr
22723         nop
22724         addi 3,2,ld1@toc
22725         bl .__tls_get_addr
22726         nop
22727         addi 3,2,x1@got@tlsld
22728         bl .__tls_get_addr
22729         nop
22730         addi 9,3,x1@dtprel
22731         bl .__tls_get_addr
22732         nop
22733         addis 9,3,x2@dtprel@ha
22734         addi 9,9,x2@dtprel@l
22735         bl .__tls_get_addr
22736         nop
22737         ld 9,x3@got@dtprel(2)
22738         add 9,9,3
22739         bl .__tls_get_addr
22740         nop'
22741         tls_first_major=2
22742         tls_first_minor=14
22743         tls_as_opt="-a64 --fatal-warnings"
22744         ;;
22745   s390-*-*)
22746     conftest_s='
22747         .section ".tdata","awT",@progbits
22748 foo:    .long   25
22749         .text
22750         .long   foo@TLSGD
22751         .long   foo@TLSLDM
22752         .long   foo@DTPOFF
22753         .long   foo@NTPOFF
22754         .long   foo@GOTNTPOFF
22755         .long   foo@INDNTPOFF
22756         l       %r1,foo@GOTNTPOFF(%r12)
22757         l       %r1,0(%r1):tls_load:foo
22758         bas     %r14,0(%r1,%r13):tls_gdcall:foo
22759         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
22760         tls_first_major=2
22761         tls_first_minor=14
22762         tls_as_opt="-m31 --fatal-warnings"
22763         ;;
22764   s390x-*-*)
22765     conftest_s='
22766         .section ".tdata","awT",@progbits
22767 foo:    .long   25
22768         .text
22769         .quad   foo@TLSGD
22770         .quad   foo@TLSLDM
22771         .quad   foo@DTPOFF
22772         .quad   foo@NTPOFF
22773         .quad   foo@GOTNTPOFF
22774         lg      %r1,foo@GOTNTPOFF(%r12)
22775         larl    %r1,foo@INDNTPOFF
22776         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
22777         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22778         tls_first_major=2
22779         tls_first_minor=14
22780         tls_as_opt="-m64 -Aesame --fatal-warnings"
22781         ;;
22782   sh-*-* | sh[34]-*-*)
22783     conftest_s='
22784         .section ".tdata","awT",@progbits
22785 foo:    .long   25
22786         .text
22787         .long   foo@TLSGD
22788         .long   foo@TLSLDM
22789         .long   foo@DTPOFF
22790         .long   foo@GOTTPOFF
22791         .long   foo@TPOFF'
22792         tls_first_major=2
22793         tls_first_minor=13
22794         tls_as_opt=--fatal-warnings
22795         ;;
22796   sparc*-*-*)
22797     case "$target" in
22798       sparc*-sun-solaris2.*)
22799         on_solaris=yes
22800         tga_func=__tls_get_addr
22801         ;;
22802       *)
22803         on_solaris=no
22804         ;;
22805     esac
22806     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22807       conftest_s='
22808         .section ".tdata",#alloc,#write,#tls'
22809         tls_first_major=0
22810         tls_first_minor=0
22811     else
22812       conftest_s='
22813         .section ".tdata","awT",@progbits'
22814         tls_first_major=2
22815         tls_first_minor=14
22816         tls_as_opt="-32 --fatal-warnings"
22817     fi
22818     conftest_s="$conftest_s
22819 foo:    .long   25
22820         .text
22821         sethi   %tgd_hi22(foo), %o0
22822         add     %o0, %tgd_lo10(foo), %o1
22823         add     %l7, %o1, %o0, %tgd_add(foo)
22824         call    __tls_get_addr, %tgd_call(foo)
22825         sethi   %tldm_hi22(foo), %l1
22826         add     %l1, %tldm_lo10(foo), %l2
22827         add     %l7, %l2, %o0, %tldm_add(foo)
22828         call    __tls_get_addr, %tldm_call(foo)
22829         sethi   %tldo_hix22(foo), %l3
22830         xor     %l3, %tldo_lox10(foo), %l4
22831         add     %o0, %l4, %l5, %tldo_add(foo)
22832         sethi   %tie_hi22(foo), %o3
22833         add     %o3, %tie_lo10(foo), %o3
22834         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22835         add     %g7, %o2, %o4, %tie_add(foo)
22836         sethi   %tle_hix22(foo), %l1
22837         xor     %l1, %tle_lox10(foo), %o5
22838         ld      [%g7 + %o5], %o1"
22839         ;;
22840   xtensa*-*-*)
22841     conftest_s='
22842         .section ".tdata","awT",@progbits
22843 foo:    .long   25
22844         .text
22845         movi    a8, foo@TLSFUNC
22846         movi    a10, foo@TLSARG
22847         callx8.tls a8, foo@TLSCALL'
22848         tls_first_major=2
22849         tls_first_minor=19
22850         ;;
22851 esac
22852 set_have_as_tls=no
22853 if test "x$enable_tls" = xno ; then
22854   : # TLS explicitly disabled.
22855 elif test "x$enable_tls" = xyes ; then
22856   set_have_as_tls=yes # TLS explicitly enabled.
22857 elif test -z "$tls_first_major"; then
22858   : # If we don't have a check, assume no support.
22859 else
22860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22861 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22862 if test "${gcc_cv_as_tls+set}" = set; then :
22863   $as_echo_n "(cached) " >&6
22864 else
22865   gcc_cv_as_tls=no
22866     if test $in_tree_gas = yes; then
22867     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22868   then gcc_cv_as_tls=yes
22869 fi
22870   elif test x$gcc_cv_as != x; then
22871     echo "$conftest_s" > conftest.s
22872     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22873   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22874   (eval $ac_try) 2>&5
22875   ac_status=$?
22876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22877   test $ac_status = 0; }; }
22878     then
22879         gcc_cv_as_tls=yes
22880     else
22881       echo "configure: failed program was" >&5
22882       cat conftest.s >&5
22883     fi
22884     rm -f conftest.o conftest.s
22885   fi
22886 fi
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22888 $as_echo "$gcc_cv_as_tls" >&6; }
22889 if test $gcc_cv_as_tls = yes; then
22890   set_have_as_tls=yes
22891 fi
22892 fi
22893 case "$target" in
22894   *-*-irix6*)
22895     # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
22896     # with TLS support are in use, native TLS cannot work.
22897     set_have_as_tls=no
22898     ;;
22899   *-*-osf*)
22900     # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
22901     # gld with TLS support are in use, native TLS cannot work.
22902     set_have_as_tls=no
22903     ;;
22904   # TLS was introduced in the Solaris 9 FCS release and backported to
22905   # Solaris 8 patches.  Support for GNU-style TLS on x86 was only
22906   # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22907   # ld and GCC don't support any longer.
22908   *-*-solaris2.*)
22909     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22910 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22911     ld_tls_support=no
22912     # Check ld and ld.so.1 TLS support.
22913     if echo "$ld_ver" | grep GNU > /dev/null; then
22914       # Assume all interesting versions of GNU ld have TLS support.
22915       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22916       ld_tls_support=yes
22917     else
22918       case "$target" in
22919         # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22920         i?86-*-solaris2.8)
22921           min_tls_ld_vers_minor=280
22922           ;;
22923         # Solaris 8/SPARC ld has TLS support since version 1.272.
22924         sparc*-*-solaris2.8)
22925           min_tls_ld_vers_minor=272
22926           ;;
22927         # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22928         i?86-*-solaris2.9)
22929           min_tls_ld_vers_minor=374
22930           ;;
22931         # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22932         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
22933           min_tls_ld_vers_minor=343
22934           ;;
22935       esac
22936       if test "$ld_vers_major" -gt 1 || \
22937         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
22938         ld_tls_support=yes
22939       else
22940         set_have_as_tls=no
22941       fi
22942     fi
22943     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
22944 $as_echo "$ld_tls_support" >&6; }
22945
22946     save_LIBS="$LIBS"
22947     save_LDFLAGS="$LDFLAGS"
22948     LIBS=
22949     LDFLAGS=
22950
22951     { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
22952 $as_echo_n "checking alternate thread library... " >&6; }
22953     case "$target" in
22954       # TLS support was backported to Solaris 8 patches, but only lives in
22955       # the alternate thread library which became the default in Solaris 9.
22956       # We want to always use that, irrespective of TLS support.
22957       *-*-solaris2.8)
22958         # Take multilib subdir into account.  There's no spec to handle
22959         # this.  The 64 symlink exists since Solaris 8.
22960         lwp_dir=/usr/lib/lwp
22961         lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
22962         LDFLAGS="-L$lwp_dir -R$lwp_dir"
22963         ;;
22964       *-*-solaris2*)
22965         lwp_dir="none"
22966         lwp_spec=""
22967         ;;
22968     esac
22969     # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
22970
22971 cat >>confdefs.h <<_ACEOF
22972 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
22973 _ACEOF
22974
22975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
22976 $as_echo "$lwp_dir" >&6; }
22977
22978     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
22979 $as_echo_n "checking library containing $tga_func... " >&6; }
22980     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
22981     # (32-bit x86) only lived in libthread, so check for that.  Keep
22982     # set_have_as_tls if found, disable if not.
22983     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
22985 $as_echo_n "checking for library containing $tga_func... " >&6; }
22986 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22987   $as_echo_n "(cached) " >&6
22988 else
22989   ac_func_search_save_LIBS=$LIBS
22990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22991 /* end confdefs.h.  */
22992
22993 /* Override any GCC internal prototype to avoid an error.
22994    Use char because int might match the return type of a GCC
22995    builtin and then its argument prototype would still apply.  */
22996 #ifdef __cplusplus
22997 extern "C"
22998 #endif
22999 char $tga_func ();
23000 int
23001 main ()
23002 {
23003 return $tga_func ();
23004   ;
23005   return 0;
23006 }
23007 _ACEOF
23008 for ac_lib in '' thread; do
23009   if test -z "$ac_lib"; then
23010     ac_res="none required"
23011   else
23012     ac_res=-l$ac_lib
23013     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23014   fi
23015   if ac_fn_c_try_link "$LINENO"; then :
23016   eval "$as_ac_Search=\$ac_res"
23017 fi
23018 rm -f core conftest.err conftest.$ac_objext \
23019     conftest$ac_exeext
23020   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23021   break
23022 fi
23023 done
23024 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23025
23026 else
23027   eval "$as_ac_Search=no"
23028 fi
23029 rm conftest.$ac_ext
23030 LIBS=$ac_func_search_save_LIBS
23031 fi
23032 eval ac_res=\$$as_ac_Search
23033                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23034 $as_echo "$ac_res" >&6; }
23035 eval ac_res=\$$as_ac_Search
23036 if test "$ac_res" != no; then :
23037   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23038
23039 else
23040   set_have_as_tls=no
23041 fi
23042
23043     # Clear LIBS if we cannot support TLS.
23044     if test $set_have_as_tls = no; then
23045       LIBS=
23046     fi
23047     # Always define LIB_TLS_SPEC, even without TLS support.
23048
23049 cat >>confdefs.h <<_ACEOF
23050 #define LIB_TLS_SPEC "$LIBS"
23051 _ACEOF
23052
23053     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23054 $as_echo "$LIBS" >&6; }
23055
23056     LIBS="$save_LIBS"
23057     LDFLAGS="$save_LDFLAGS"
23058     ;;
23059 esac
23060 if test $set_have_as_tls = yes ; then
23061
23062 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23063
23064 fi
23065
23066 # Target-specific assembler checks.
23067
23068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23069 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23070 gcc_cv_ld_static_dynamic=no
23071 gcc_cv_ld_static_option='-Bstatic'
23072 gcc_cv_ld_dynamic_option='-Bdynamic'
23073 if test $in_tree_ld = yes ; then
23074   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2; then
23075     gcc_cv_ld_static_dynamic=yes
23076   fi
23077 elif test x$gcc_cv_ld != x; then
23078   # Check if linker supports -Bstatic/-Bdynamic option
23079   if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23080      && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23081       gcc_cv_ld_static_dynamic=yes
23082   else
23083     case "$target" in
23084       # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23085       alpha*-dec-osf*)
23086         gcc_cv_ld_static_dynamic=yes
23087         gcc_cv_ld_static_option="-noso"
23088         gcc_cv_ld_dynamic_option="-so_archive"
23089         ;;
23090       # IRIX 6 ld supports -Bstatic/-Bdynamic.
23091       mips-sgi-irix6*)
23092         gcc_cv_ld_static_dynamic=yes
23093         ;;
23094       # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23095       *-*-solaris2*)
23096         gcc_cv_ld_static_dynamic=yes
23097         ;;
23098     esac
23099   fi
23100 fi
23101 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23102
23103 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23104
23105
23106 cat >>confdefs.h <<_ACEOF
23107 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23108 _ACEOF
23109
23110
23111 cat >>confdefs.h <<_ACEOF
23112 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23113 _ACEOF
23114
23115 fi
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23117 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23118
23119 if test x"$demangler_in_ld" = xyes; then
23120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23121 $as_echo_n "checking linker --demangle support... " >&6; }
23122   gcc_cv_ld_demangle=no
23123   if test $in_tree_ld = yes; then
23124     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 \
23125       gcc_cv_ld_demangle=yes
23126     fi
23127   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23128     # Check if the GNU linker supports --demangle option
23129     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23130       gcc_cv_ld_demangle=yes
23131     fi
23132   fi
23133   if test x"$gcc_cv_ld_demangle" = xyes; then
23134
23135 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23136
23137   fi
23138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23139 $as_echo "$gcc_cv_ld_demangle" >&6; }
23140 fi
23141
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23143 $as_echo_n "checking linker plugin support... " >&6; }
23144 gcc_cv_lto_plugin=0
23145 if test -f liblto_plugin.la; then
23146   if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23147     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
23148       gcc_cv_lto_plugin=2
23149     elif test "$ld_is_gold" = yes -a "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -eq 20; then
23150       gcc_cv_lto_plugin=1
23151
23152     fi
23153   elif test x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld" && echo "$ld_ver" | grep GNU > /dev/null; then
23154     # Require GNU ld or gold 2.21+ for plugin support by default.
23155     if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23156       gcc_cv_lto_plugin=2
23157     # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23158     elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23159       gcc_cv_lto_plugin=1
23160     fi
23161   elif test x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" != x"$gcc_cv_ld"; then
23162     # Allow -fuse-linker-plugin if plugin linker differs from
23163     # default/specified linker.
23164     gcc_cv_lto_plugin=1
23165   fi
23166 fi
23167
23168 cat >>confdefs.h <<_ACEOF
23169 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23170 _ACEOF
23171
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23173 $as_echo "$gcc_cv_lto_plugin" >&6; }
23174
23175 case "$target" in
23176   # All TARGET_ABI_OSF targets.
23177   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23179 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23180 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23181   $as_echo_n "(cached) " >&6
23182 else
23183   gcc_cv_as_alpha_explicit_relocs=no
23184     if test $in_tree_gas = yes; then
23185     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23186   then gcc_cv_as_alpha_explicit_relocs=yes
23187 fi
23188   elif test x$gcc_cv_as != x; then
23189     echo '      .set nomacro
23190         .text
23191         extbl   $3, $2, $3      !lituse_bytoff!1
23192         ldq     $2, a($29)      !literal!1
23193         ldq     $4, b($29)      !literal!2
23194         ldq_u   $3, 0($2)       !lituse_base!1
23195         ldq     $27, f($29)     !literal!5
23196         jsr     $26, ($27), f   !lituse_jsr!5
23197         ldah    $29, 0($26)     !gpdisp!3
23198         lda     $0, c($29)      !gprel
23199         ldah    $1, d($29)      !gprelhigh
23200         lda     $1, d($1)       !gprellow
23201         lda     $29, 0($29)     !gpdisp!3' > conftest.s
23202     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23203   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23204   (eval $ac_try) 2>&5
23205   ac_status=$?
23206   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23207   test $ac_status = 0; }; }
23208     then
23209         gcc_cv_as_alpha_explicit_relocs=yes
23210     else
23211       echo "configure: failed program was" >&5
23212       cat conftest.s >&5
23213     fi
23214     rm -f conftest.o conftest.s
23215   fi
23216 fi
23217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23218 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23219 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23220
23221 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23222
23223 fi
23224     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23225 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23226 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23227   $as_echo_n "(cached) " >&6
23228 else
23229   gcc_cv_as_alpha_jsrdirect_relocs=no
23230     if test $in_tree_gas = yes; then
23231     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23232   then gcc_cv_as_alpha_jsrdirect_relocs=yes
23233 fi
23234   elif test x$gcc_cv_as != x; then
23235     echo '      .set nomacro
23236         .text
23237         ldq     $27, a($29)     !literal!1
23238         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
23239     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23240   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23241   (eval $ac_try) 2>&5
23242   ac_status=$?
23243   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23244   test $ac_status = 0; }; }
23245     then
23246         gcc_cv_as_alpha_jsrdirect_relocs=yes
23247     else
23248       echo "configure: failed program was" >&5
23249       cat conftest.s >&5
23250     fi
23251     rm -f conftest.o conftest.s
23252   fi
23253 fi
23254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23255 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23256 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23257
23258 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23259
23260 fi
23261     ;;
23262
23263   cris-*-*)
23264     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23265 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23266 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23267   $as_echo_n "(cached) " >&6
23268 else
23269   gcc_cv_as_cris_no_mul_bug=no
23270     if test $in_tree_gas = yes; then
23271     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23272   then gcc_cv_as_cris_no_mul_bug=yes
23273 fi
23274   elif test x$gcc_cv_as != x; then
23275     echo '.text' > conftest.s
23276     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23277   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23278   (eval $ac_try) 2>&5
23279   ac_status=$?
23280   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23281   test $ac_status = 0; }; }
23282     then
23283         gcc_cv_as_cris_no_mul_bug=yes
23284     else
23285       echo "configure: failed program was" >&5
23286       cat conftest.s >&5
23287     fi
23288     rm -f conftest.o conftest.s
23289   fi
23290 fi
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23292 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23293 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23294
23295 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23296
23297 fi
23298     ;;
23299
23300   sparc*-*-*)
23301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23302 $as_echo_n "checking assembler for .register... " >&6; }
23303 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23304   $as_echo_n "(cached) " >&6
23305 else
23306   gcc_cv_as_sparc_register_op=no
23307   if test x$gcc_cv_as != x; then
23308     echo '.register %g2, #scratch' > conftest.s
23309     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23310   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23311   (eval $ac_try) 2>&5
23312   ac_status=$?
23313   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23314   test $ac_status = 0; }; }
23315     then
23316         gcc_cv_as_sparc_register_op=yes
23317     else
23318       echo "configure: failed program was" >&5
23319       cat conftest.s >&5
23320     fi
23321     rm -f conftest.o conftest.s
23322   fi
23323 fi
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23325 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23326 if test $gcc_cv_as_sparc_register_op = yes; then
23327
23328 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23329
23330 fi
23331
23332     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23333 $as_echo_n "checking assembler for -relax option... " >&6; }
23334 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23335   $as_echo_n "(cached) " >&6
23336 else
23337   gcc_cv_as_sparc_relax=no
23338   if test x$gcc_cv_as != x; then
23339     echo '.text' > conftest.s
23340     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23341   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23342   (eval $ac_try) 2>&5
23343   ac_status=$?
23344   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23345   test $ac_status = 0; }; }
23346     then
23347         gcc_cv_as_sparc_relax=yes
23348     else
23349       echo "configure: failed program was" >&5
23350       cat conftest.s >&5
23351     fi
23352     rm -f conftest.o conftest.s
23353   fi
23354 fi
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23356 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23357 if test $gcc_cv_as_sparc_relax = yes; then
23358
23359 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23360
23361 fi
23362
23363     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23364 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23365 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23366   $as_echo_n "(cached) " >&6
23367 else
23368   gcc_cv_as_sparc_gotdata_op=no
23369   if test x$gcc_cv_as != x; then
23370     echo '.text
23371 .align 4
23372 foo:
23373         nop
23374 bar:
23375         sethi %gdop_hix22(foo), %g1
23376         xor    %g1, %gdop_lox10(foo), %g1
23377         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23378     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23379   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23380   (eval $ac_try) 2>&5
23381   ac_status=$?
23382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23383   test $ac_status = 0; }; }
23384     then
23385         if test x$gcc_cv_ld != x \
23386        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23387          if test x$gcc_cv_objdump != x; then
23388            if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23389               | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23390                gcc_cv_as_sparc_gotdata_op=no
23391            else
23392                gcc_cv_as_sparc_gotdata_op=yes
23393            fi
23394          fi
23395        fi
23396        rm -f conftest
23397     else
23398       echo "configure: failed program was" >&5
23399       cat conftest.s >&5
23400     fi
23401     rm -f conftest.o conftest.s
23402   fi
23403 fi
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23405 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23406 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23407
23408 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23409
23410 fi
23411
23412     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23413 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23414 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23415   $as_echo_n "(cached) " >&6
23416 else
23417   gcc_cv_as_sparc_ua_pcrel=no
23418   if test x$gcc_cv_as != x; then
23419     echo '.text
23420 foo:
23421         nop
23422 .data
23423 .align 4
23424 .byte 0
23425 .uaword %r_disp32(foo)' > conftest.s
23426     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23427   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23428   (eval $ac_try) 2>&5
23429   ac_status=$?
23430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23431   test $ac_status = 0; }; }
23432     then
23433         if test x$gcc_cv_ld != x \
23434        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23435          gcc_cv_as_sparc_ua_pcrel=yes
23436        fi
23437        rm -f conftest
23438     else
23439       echo "configure: failed program was" >&5
23440       cat conftest.s >&5
23441     fi
23442     rm -f conftest.o conftest.s
23443   fi
23444 fi
23445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23446 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23447 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23448
23449 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23450
23451
23452       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23453 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23454 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23455   $as_echo_n "(cached) " >&6
23456 else
23457   gcc_cv_as_sparc_ua_pcrel_hidden=no
23458   if test x$gcc_cv_as != x; then
23459     echo '.data
23460 .align 4
23461 .byte 0x31
23462 .uaword %r_disp32(foo)
23463 .byte 0x32, 0x33, 0x34
23464 .global foo
23465 .hidden foo
23466 foo:
23467 .skip 4' > conftest.s
23468     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23469   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23470   (eval $ac_try) 2>&5
23471   ac_status=$?
23472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23473   test $ac_status = 0; }; }
23474     then
23475         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23476          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23477          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23478             | grep ' 31000000 07323334' > /dev/null 2>&1; then
23479             if $gcc_cv_objdump -R conftest 2> /dev/null \
23480                | grep 'DISP32' > /dev/null 2>&1; then
23481                 :
23482             else
23483                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23484             fi
23485          fi
23486          rm -f conftest
23487     else
23488       echo "configure: failed program was" >&5
23489       cat conftest.s >&5
23490     fi
23491     rm -f conftest.o conftest.s
23492   fi
23493 fi
23494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23495 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23496 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23497
23498 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23499
23500 fi
23501
23502 fi # unaligned pcrel relocs
23503
23504     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23505 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23506 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23507   $as_echo_n "(cached) " >&6
23508 else
23509   gcc_cv_as_sparc_offsetable_lo10=no
23510   if test x$gcc_cv_as != x; then
23511     echo '.text
23512         or %g1, %lo(ab) + 12, %g1
23513         or %g1, %lo(ab + 12), %g1' > conftest.s
23514     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23515   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23516   (eval $ac_try) 2>&5
23517   ac_status=$?
23518   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23519   test $ac_status = 0; }; }
23520     then
23521         if test x$gcc_cv_objdump != x \
23522        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23523           | grep ' 82106000 82106000' > /dev/null 2>&1; then
23524          gcc_cv_as_sparc_offsetable_lo10=yes
23525        fi
23526     else
23527       echo "configure: failed program was" >&5
23528       cat conftest.s >&5
23529     fi
23530     rm -f conftest.o conftest.s
23531   fi
23532 fi
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23534 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23535 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23536
23537 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23538
23539 fi
23540     ;;
23541
23542   i[34567]86-*-* | x86_64-*-*)
23543     case $target_os in
23544       cygwin*)
23545         # Full C++ conformance when using a shared libstdc++-v3 requires some
23546         # support from the Cygwin DLL, which in more recent versions exports
23547         # wrappers to aid in interposing and redirecting operators new, delete,
23548         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
23549         # are configuring for a version of Cygwin that exports the wrappers.
23550         if test x$host = x$target; then
23551           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23552 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23553   gcc_ac_cygwin_dll_wrappers=yes
23554 else
23555   gcc_ac_cygwin_dll_wrappers=no
23556 fi
23557
23558         else
23559           # Can't check presence of libc functions during cross-compile, so
23560           # we just have to assume we're building for an up-to-date target.
23561           gcc_ac_cygwin_dll_wrappers=yes
23562         fi
23563
23564 cat >>confdefs.h <<_ACEOF
23565 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23566 _ACEOF
23567
23568     esac
23569     case $target_os in
23570       cygwin* | pe | mingw32*)
23571         # Recent binutils allows the three-operand form of ".comm" on PE.  This
23572         # definition is used unconditionally to initialise the default state of
23573         # the target option variable that governs usage of the feature.
23574         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23575 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23576 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23577   $as_echo_n "(cached) " >&6
23578 else
23579   gcc_cv_as_comm_has_align=no
23580     if test $in_tree_gas = yes; then
23581     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23582   then gcc_cv_as_comm_has_align=yes
23583 fi
23584   elif test x$gcc_cv_as != x; then
23585     echo '.comm foo,1,32' > conftest.s
23586     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23587   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23588   (eval $ac_try) 2>&5
23589   ac_status=$?
23590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23591   test $ac_status = 0; }; }
23592     then
23593         gcc_cv_as_comm_has_align=yes
23594     else
23595       echo "configure: failed program was" >&5
23596       cat conftest.s >&5
23597     fi
23598     rm -f conftest.o conftest.s
23599   fi
23600 fi
23601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23602 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23603
23604
23605 cat >>confdefs.h <<_ACEOF
23606 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23607 _ACEOF
23608
23609         # Used for DWARF 2 in PE
23610         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23611 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23612 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23613   $as_echo_n "(cached) " >&6
23614 else
23615   gcc_cv_as_ix86_pe_secrel32=no
23616     if test $in_tree_gas = yes; then
23617     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23618   then gcc_cv_as_ix86_pe_secrel32=yes
23619 fi
23620   elif test x$gcc_cv_as != x; then
23621     echo '.text
23622 foo:    nop
23623 .data
23624         .secrel32 foo' > conftest.s
23625     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23626   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23627   (eval $ac_try) 2>&5
23628   ac_status=$?
23629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23630   test $ac_status = 0; }; }
23631     then
23632         if test x$gcc_cv_ld != x \
23633            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23634              gcc_cv_as_ix86_pe_secrel32=yes
23635            fi
23636            rm -f conftest
23637     else
23638       echo "configure: failed program was" >&5
23639       cat conftest.s >&5
23640     fi
23641     rm -f conftest.o conftest.s
23642   fi
23643 fi
23644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23645 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23646 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23647
23648 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23649
23650 fi
23651         # Test if the assembler supports the extended form of the .section
23652         # directive that specifies section alignment.  LTO support uses this,
23653         # but normally only after installation, so we warn but don't fail the
23654         # configure if LTO is enabled but the assembler does not support it.
23655         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23656 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23657 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23658   $as_echo_n "(cached) " >&6
23659 else
23660   gcc_cv_as_section_has_align=no
23661     if test $in_tree_gas = yes; then
23662     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23663   then gcc_cv_as_section_has_align=yes
23664 fi
23665   elif test x$gcc_cv_as != x; then
23666     echo '.section lto_test,"dr0"' > conftest.s
23667     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23668   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23669   (eval $ac_try) 2>&5
23670   ac_status=$?
23671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23672   test $ac_status = 0; }; }
23673     then
23674         gcc_cv_as_section_has_align=yes
23675     else
23676       echo "configure: failed program was" >&5
23677       cat conftest.s >&5
23678     fi
23679     rm -f conftest.o conftest.s
23680   fi
23681 fi
23682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23683 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23684
23685         if test x$gcc_cv_as_section_has_align != xyes; then
23686           case ",$enable_languages," in
23687             *,lto,*)
23688               { $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
23689 $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;}
23690               ;;
23691           esac
23692         fi
23693         ;;
23694     esac
23695
23696     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23697 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23698 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23699   $as_echo_n "(cached) " >&6
23700 else
23701   gcc_cv_as_ix86_filds=no
23702   if test x$gcc_cv_as != x; then
23703     echo 'filds mem; fists mem' > conftest.s
23704     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23705   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23706   (eval $ac_try) 2>&5
23707   ac_status=$?
23708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23709   test $ac_status = 0; }; }
23710     then
23711         gcc_cv_as_ix86_filds=yes
23712     else
23713       echo "configure: failed program was" >&5
23714       cat conftest.s >&5
23715     fi
23716     rm -f conftest.o conftest.s
23717   fi
23718 fi
23719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23720 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23721 if test $gcc_cv_as_ix86_filds = yes; then
23722
23723 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23724
23725 fi
23726
23727     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23728 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23729 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23730   $as_echo_n "(cached) " >&6
23731 else
23732   gcc_cv_as_ix86_fildq=no
23733   if test x$gcc_cv_as != x; then
23734     echo 'fildq mem; fistpq mem' > conftest.s
23735     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23736   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23737   (eval $ac_try) 2>&5
23738   ac_status=$?
23739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23740   test $ac_status = 0; }; }
23741     then
23742         gcc_cv_as_ix86_fildq=yes
23743     else
23744       echo "configure: failed program was" >&5
23745       cat conftest.s >&5
23746     fi
23747     rm -f conftest.o conftest.s
23748   fi
23749 fi
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23751 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23752 if test $gcc_cv_as_ix86_fildq = yes; then
23753
23754 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23755
23756 fi
23757
23758     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23759 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23760 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23761   $as_echo_n "(cached) " >&6
23762 else
23763   gcc_cv_as_ix86_cmov_sun_syntax=no
23764   if test x$gcc_cv_as != x; then
23765     echo 'cmovl.l %edx, %eax' > conftest.s
23766     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23767   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23768   (eval $ac_try) 2>&5
23769   ac_status=$?
23770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23771   test $ac_status = 0; }; }
23772     then
23773         gcc_cv_as_ix86_cmov_sun_syntax=yes
23774     else
23775       echo "configure: failed program was" >&5
23776       cat conftest.s >&5
23777     fi
23778     rm -f conftest.o conftest.s
23779   fi
23780 fi
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23782 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23783 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23784
23785 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23786
23787 fi
23788
23789     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23790 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23791 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23792   $as_echo_n "(cached) " >&6
23793 else
23794   gcc_cv_as_ix86_ffreep=no
23795   if test x$gcc_cv_as != x; then
23796     echo 'ffreep %st(1)' > conftest.s
23797     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23798   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23799   (eval $ac_try) 2>&5
23800   ac_status=$?
23801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23802   test $ac_status = 0; }; }
23803     then
23804         gcc_cv_as_ix86_ffreep=yes
23805     else
23806       echo "configure: failed program was" >&5
23807       cat conftest.s >&5
23808     fi
23809     rm -f conftest.o conftest.s
23810   fi
23811 fi
23812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23813 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23814 if test $gcc_cv_as_ix86_ffreep = yes; then
23815
23816 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23817
23818 fi
23819
23820     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23821 $as_echo_n "checking assembler for .quad directive... " >&6; }
23822 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23823   $as_echo_n "(cached) " >&6
23824 else
23825   gcc_cv_as_ix86_quad=no
23826   if test x$gcc_cv_as != x; then
23827     echo '.quad 0' > conftest.s
23828     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23829   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23830   (eval $ac_try) 2>&5
23831   ac_status=$?
23832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23833   test $ac_status = 0; }; }
23834     then
23835         gcc_cv_as_ix86_quad=yes
23836     else
23837       echo "configure: failed program was" >&5
23838       cat conftest.s >&5
23839     fi
23840     rm -f conftest.o conftest.s
23841   fi
23842 fi
23843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23844 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23845 if test $gcc_cv_as_ix86_quad = yes; then
23846
23847 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23848
23849 fi
23850
23851     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23852 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23853 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23854   $as_echo_n "(cached) " >&6
23855 else
23856   gcc_cv_as_ix86_sahf=no
23857   if test x$gcc_cv_as != x; then
23858     echo '.code64
23859        sahf' > conftest.s
23860     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23861   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23862   (eval $ac_try) 2>&5
23863   ac_status=$?
23864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23865   test $ac_status = 0; }; }
23866     then
23867         gcc_cv_as_ix86_sahf=yes
23868     else
23869       echo "configure: failed program was" >&5
23870       cat conftest.s >&5
23871     fi
23872     rm -f conftest.o conftest.s
23873   fi
23874 fi
23875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23876 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23877 if test $gcc_cv_as_ix86_sahf = yes; then
23878
23879 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23880
23881 fi
23882
23883     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23884 $as_echo_n "checking assembler for swap suffix... " >&6; }
23885 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23886   $as_echo_n "(cached) " >&6
23887 else
23888   gcc_cv_as_ix86_swap=no
23889   if test x$gcc_cv_as != x; then
23890     echo 'movl.s %esp, %ebp' > conftest.s
23891     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23892   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23893   (eval $ac_try) 2>&5
23894   ac_status=$?
23895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23896   test $ac_status = 0; }; }
23897     then
23898         gcc_cv_as_ix86_swap=yes
23899     else
23900       echo "configure: failed program was" >&5
23901       cat conftest.s >&5
23902     fi
23903     rm -f conftest.o conftest.s
23904   fi
23905 fi
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23907 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23908 if test $gcc_cv_as_ix86_swap = yes; then
23909
23910 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23911
23912 fi
23913
23914     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23915 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23916 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23917   $as_echo_n "(cached) " >&6
23918 else
23919   gcc_cv_as_ix86_diff_sect_delta=no
23920   if test x$gcc_cv_as != x; then
23921     echo '.section .rodata
23922 .L1:
23923         .long .L2-.L1
23924         .long .L3-.L1
23925         .text
23926 .L3:    nop
23927 .L2:    nop' > conftest.s
23928     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23929   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23930   (eval $ac_try) 2>&5
23931   ac_status=$?
23932   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23933   test $ac_status = 0; }; }
23934     then
23935         gcc_cv_as_ix86_diff_sect_delta=yes
23936     else
23937       echo "configure: failed program was" >&5
23938       cat conftest.s >&5
23939     fi
23940     rm -f conftest.o conftest.s
23941   fi
23942 fi
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23944 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23945 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23946
23947 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23948
23949 fi
23950
23951     # These two are used unconditionally by i386.[ch]; it is to be defined
23952     # to 1 if the feature is present, 0 otherwise.
23953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23954 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23955 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23956   $as_echo_n "(cached) " >&6
23957 else
23958   gcc_cv_as_ix86_gotoff_in_data=no
23959     if test $in_tree_gas = yes; then
23960     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23961   then gcc_cv_as_ix86_gotoff_in_data=yes
23962 fi
23963   elif test x$gcc_cv_as != x; then
23964     echo '      .text
23965 .L0:
23966         nop
23967         .data
23968         .long .L0@GOTOFF' > conftest.s
23969     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23970   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23971   (eval $ac_try) 2>&5
23972   ac_status=$?
23973   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23974   test $ac_status = 0; }; }
23975     then
23976         gcc_cv_as_ix86_gotoff_in_data=yes
23977     else
23978       echo "configure: failed program was" >&5
23979       cat conftest.s >&5
23980     fi
23981     rm -f conftest.o conftest.s
23982   fi
23983 fi
23984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23985 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23986
23987
23988 cat >>confdefs.h <<_ACEOF
23989 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23990 _ACEOF
23991
23992
23993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23994 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23995 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23996   $as_echo_n "(cached) " >&6
23997 else
23998   gcc_cv_as_ix86_rep_lock_prefix=no
23999   if test x$gcc_cv_as != x; then
24000     echo 'rep movsl
24001          lock addl %edi, (%eax,%esi)
24002          lock orl $0, (%esp)' > conftest.s
24003     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24004   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24005   (eval $ac_try) 2>&5
24006   ac_status=$?
24007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24008   test $ac_status = 0; }; }
24009     then
24010         gcc_cv_as_ix86_rep_lock_prefix=yes
24011     else
24012       echo "configure: failed program was" >&5
24013       cat conftest.s >&5
24014     fi
24015     rm -f conftest.o conftest.s
24016   fi
24017 fi
24018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24019 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24020 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24021
24022 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24023
24024 fi
24025
24026     ;;
24027
24028   ia64*-*-*)
24029     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24030 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24031 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24032   $as_echo_n "(cached) " >&6
24033 else
24034   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24035     if test $in_tree_gas = yes; then
24036     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24037   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24038 fi
24039   elif test x$gcc_cv_as != x; then
24040     echo '      .text
24041         addl r15 = @ltoffx(x#), gp
24042         ;;
24043         ld8.mov r16 = [r15], x#' > conftest.s
24044     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24045   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24046   (eval $ac_try) 2>&5
24047   ac_status=$?
24048   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24049   test $ac_status = 0; }; }
24050     then
24051         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24052     else
24053       echo "configure: failed program was" >&5
24054       cat conftest.s >&5
24055     fi
24056     rm -f conftest.o conftest.s
24057   fi
24058 fi
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24060 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24061 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24062
24063 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24064
24065 fi
24066
24067     ;;
24068
24069   powerpc*-*-*)
24070     case $target in
24071       *-*-aix*) conftest_s='    .machine "pwr5"
24072         .csect .text[PR]
24073         mfcr 3,128';;
24074       *-*-darwin*)
24075         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24076 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24077 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24078   $as_echo_n "(cached) " >&6
24079 else
24080   gcc_cv_as_machine_directive=no
24081   if test x$gcc_cv_as != x; then
24082     echo '      .machine ppc7400' > conftest.s
24083     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24084   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24085   (eval $ac_try) 2>&5
24086   ac_status=$?
24087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24088   test $ac_status = 0; }; }
24089     then
24090         gcc_cv_as_machine_directive=yes
24091     else
24092       echo "configure: failed program was" >&5
24093       cat conftest.s >&5
24094     fi
24095     rm -f conftest.o conftest.s
24096   fi
24097 fi
24098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24099 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24100
24101         if test x$gcc_cv_as_machine_directive != xyes; then
24102           echo "*** This target requires an assembler supporting \".machine\"" >&2
24103           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24104           test x$build = x$target && exit 1
24105         fi
24106         conftest_s='    .text
24107         mfcr r3,128';;
24108       *) conftest_s='   .machine power4
24109         .text
24110         mfcr 3,128';;
24111     esac
24112
24113     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24114 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24115 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24116   $as_echo_n "(cached) " >&6
24117 else
24118   gcc_cv_as_powerpc_mfcrf=no
24119     if test $in_tree_gas = yes; then
24120     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24121   then gcc_cv_as_powerpc_mfcrf=yes
24122 fi
24123   elif test x$gcc_cv_as != x; then
24124     echo "$conftest_s" > conftest.s
24125     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24126   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24127   (eval $ac_try) 2>&5
24128   ac_status=$?
24129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24130   test $ac_status = 0; }; }
24131     then
24132         gcc_cv_as_powerpc_mfcrf=yes
24133     else
24134       echo "configure: failed program was" >&5
24135       cat conftest.s >&5
24136     fi
24137     rm -f conftest.o conftest.s
24138   fi
24139 fi
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24141 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24142 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24143
24144 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24145
24146 fi
24147
24148     case $target in
24149       *-*-aix*) conftest_s='    .machine "pwr5"
24150         .csect .text[PR]
24151         popcntb 3,3';;
24152       *) conftest_s='   .machine power5
24153         .text
24154         popcntb 3,3';;
24155     esac
24156
24157     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24158 $as_echo_n "checking assembler for popcntb support... " >&6; }
24159 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24160   $as_echo_n "(cached) " >&6
24161 else
24162   gcc_cv_as_powerpc_popcntb=no
24163     if test $in_tree_gas = yes; then
24164     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24165   then gcc_cv_as_powerpc_popcntb=yes
24166 fi
24167   elif test x$gcc_cv_as != x; then
24168     echo "$conftest_s" > conftest.s
24169     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24170   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24171   (eval $ac_try) 2>&5
24172   ac_status=$?
24173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24174   test $ac_status = 0; }; }
24175     then
24176         gcc_cv_as_powerpc_popcntb=yes
24177     else
24178       echo "configure: failed program was" >&5
24179       cat conftest.s >&5
24180     fi
24181     rm -f conftest.o conftest.s
24182   fi
24183 fi
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24185 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24186 if test $gcc_cv_as_powerpc_popcntb = yes; then
24187
24188 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24189
24190 fi
24191
24192     case $target in
24193       *-*-aix*) conftest_s='    .machine "pwr5x"
24194         .csect .text[PR]
24195         frin 1,1';;
24196       *) conftest_s='   .machine power5
24197         .text
24198         frin 1,1';;
24199     esac
24200
24201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24202 $as_echo_n "checking assembler for fp round support... " >&6; }
24203 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24204   $as_echo_n "(cached) " >&6
24205 else
24206   gcc_cv_as_powerpc_fprnd=no
24207     if test $in_tree_gas = yes; then
24208     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24209   then gcc_cv_as_powerpc_fprnd=yes
24210 fi
24211   elif test x$gcc_cv_as != x; then
24212     echo "$conftest_s" > conftest.s
24213     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24214   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24215   (eval $ac_try) 2>&5
24216   ac_status=$?
24217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24218   test $ac_status = 0; }; }
24219     then
24220         gcc_cv_as_powerpc_fprnd=yes
24221     else
24222       echo "configure: failed program was" >&5
24223       cat conftest.s >&5
24224     fi
24225     rm -f conftest.o conftest.s
24226   fi
24227 fi
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24229 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24230 if test $gcc_cv_as_powerpc_fprnd = yes; then
24231
24232 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24233
24234 fi
24235
24236     case $target in
24237       *-*-aix*) conftest_s='    .machine "pwr6"
24238         .csect .text[PR]
24239         mffgpr 1,3';;
24240       *) conftest_s='   .machine power6
24241         .text
24242         mffgpr 1,3';;
24243     esac
24244
24245     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24246 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24247 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24248   $as_echo_n "(cached) " >&6
24249 else
24250   gcc_cv_as_powerpc_mfpgpr=no
24251     if test $in_tree_gas = yes; then
24252     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24253   then gcc_cv_as_powerpc_mfpgpr=yes
24254 fi
24255   elif test x$gcc_cv_as != x; then
24256     echo "$conftest_s" > conftest.s
24257     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24258   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24259   (eval $ac_try) 2>&5
24260   ac_status=$?
24261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24262   test $ac_status = 0; }; }
24263     then
24264         gcc_cv_as_powerpc_mfpgpr=yes
24265     else
24266       echo "configure: failed program was" >&5
24267       cat conftest.s >&5
24268     fi
24269     rm -f conftest.o conftest.s
24270   fi
24271 fi
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24273 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24274 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24275
24276 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24277
24278 fi
24279
24280     case $target in
24281       *-*-aix*) conftest_s='    .csect .text[PR]
24282 LCF..0:
24283         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24284       *-*-darwin*)
24285         conftest_s='    .text
24286 LCF0:
24287         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24288       *) conftest_s='   .text
24289 .LCF0:
24290         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24291     esac
24292
24293     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24294 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24295 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24296   $as_echo_n "(cached) " >&6
24297 else
24298   gcc_cv_as_powerpc_rel16=no
24299     if test $in_tree_gas = yes; then
24300     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24301   then gcc_cv_as_powerpc_rel16=yes
24302 fi
24303   elif test x$gcc_cv_as != x; then
24304     echo "$conftest_s" > conftest.s
24305     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24306   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24307   (eval $ac_try) 2>&5
24308   ac_status=$?
24309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24310   test $ac_status = 0; }; }
24311     then
24312         gcc_cv_as_powerpc_rel16=yes
24313     else
24314       echo "configure: failed program was" >&5
24315       cat conftest.s >&5
24316     fi
24317     rm -f conftest.o conftest.s
24318   fi
24319 fi
24320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24321 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24322 if test $gcc_cv_as_powerpc_rel16 = yes; then
24323
24324 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24325
24326 fi
24327
24328     case $target in
24329       *-*-aix*) conftest_s='    .machine "pwr6"
24330         .csect .text[PR]
24331         cmpb 3,4,5';;
24332       *) conftest_s='   .machine power6
24333         .text
24334         cmpb 3,4,5';;
24335     esac
24336
24337     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24338 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24339 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24340   $as_echo_n "(cached) " >&6
24341 else
24342   gcc_cv_as_powerpc_cmpb=no
24343     if test $in_tree_gas = yes; then
24344     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24345   then gcc_cv_as_powerpc_cmpb=yes
24346 fi
24347   elif test x$gcc_cv_as != x; then
24348     echo "$conftest_s" > conftest.s
24349     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24350   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24351   (eval $ac_try) 2>&5
24352   ac_status=$?
24353   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24354   test $ac_status = 0; }; }
24355     then
24356         gcc_cv_as_powerpc_cmpb=yes
24357     else
24358       echo "configure: failed program was" >&5
24359       cat conftest.s >&5
24360     fi
24361     rm -f conftest.o conftest.s
24362   fi
24363 fi
24364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24365 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24366 if test $gcc_cv_as_powerpc_cmpb = yes; then
24367
24368 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24369
24370 fi
24371
24372     case $target in
24373       *-*-aix*) conftest_s='    .machine "pwr6"
24374         .csect .text[PR]
24375         dadd 1,2,3';;
24376       *) conftest_s='   .machine power6
24377         .text
24378         dadd 1,2,3';;
24379     esac
24380
24381     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24382 $as_echo_n "checking assembler for decimal float support... " >&6; }
24383 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24384   $as_echo_n "(cached) " >&6
24385 else
24386   gcc_cv_as_powerpc_dfp=no
24387     if test $in_tree_gas = yes; then
24388     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24389   then gcc_cv_as_powerpc_dfp=yes
24390 fi
24391   elif test x$gcc_cv_as != x; then
24392     echo "$conftest_s" > conftest.s
24393     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24394   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24395   (eval $ac_try) 2>&5
24396   ac_status=$?
24397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24398   test $ac_status = 0; }; }
24399     then
24400         gcc_cv_as_powerpc_dfp=yes
24401     else
24402       echo "configure: failed program was" >&5
24403       cat conftest.s >&5
24404     fi
24405     rm -f conftest.o conftest.s
24406   fi
24407 fi
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24409 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24410 if test $gcc_cv_as_powerpc_dfp = yes; then
24411
24412 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24413
24414 fi
24415
24416     case $target in
24417       *-*-aix*) conftest_s='    .machine "pwr7"
24418         .csect .text[PR]
24419         lxvd2x 1,2,3';;
24420       *) conftest_s='   .machine power7
24421         .text
24422         lxvd2x 1,2,3';;
24423     esac
24424
24425     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24426 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24427 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24428   $as_echo_n "(cached) " >&6
24429 else
24430   gcc_cv_as_powerpc_vsx=no
24431     if test $in_tree_gas = yes; then
24432     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24433   then gcc_cv_as_powerpc_vsx=yes
24434 fi
24435   elif test x$gcc_cv_as != x; then
24436     echo "$conftest_s" > conftest.s
24437     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24438   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24439   (eval $ac_try) 2>&5
24440   ac_status=$?
24441   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24442   test $ac_status = 0; }; }
24443     then
24444         gcc_cv_as_powerpc_vsx=yes
24445     else
24446       echo "configure: failed program was" >&5
24447       cat conftest.s >&5
24448     fi
24449     rm -f conftest.o conftest.s
24450   fi
24451 fi
24452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24453 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24454 if test $gcc_cv_as_powerpc_vsx = yes; then
24455
24456 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24457
24458 fi
24459
24460     case $target in
24461       *-*-aix*) conftest_s='    .machine "pwr7"
24462         .csect .text[PR]
24463         popcntd 3,3';;
24464       *) conftest_s='   .machine power7
24465         .text
24466         popcntd 3,3';;
24467     esac
24468
24469     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24470 $as_echo_n "checking assembler for popcntd support... " >&6; }
24471 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24472   $as_echo_n "(cached) " >&6
24473 else
24474   gcc_cv_as_powerpc_popcntd=no
24475     if test $in_tree_gas = yes; then
24476     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24477   then gcc_cv_as_powerpc_popcntd=yes
24478 fi
24479   elif test x$gcc_cv_as != x; then
24480     echo "$conftest_s" > conftest.s
24481     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24482   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24483   (eval $ac_try) 2>&5
24484   ac_status=$?
24485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24486   test $ac_status = 0; }; }
24487     then
24488         gcc_cv_as_powerpc_popcntd=yes
24489     else
24490       echo "configure: failed program was" >&5
24491       cat conftest.s >&5
24492     fi
24493     rm -f conftest.o conftest.s
24494   fi
24495 fi
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24497 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24498 if test $gcc_cv_as_powerpc_popcntd = yes; then
24499
24500 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24501
24502 fi
24503
24504     case $target in
24505       *-*-aix*) conftest_s='    .csect .text[PR]
24506         lwsync';;
24507       *) conftest_s='   .text
24508         lwsync';;
24509     esac
24510
24511     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24512 $as_echo_n "checking assembler for lwsync support... " >&6; }
24513 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24514   $as_echo_n "(cached) " >&6
24515 else
24516   gcc_cv_as_powerpc_lwsync=no
24517     if test $in_tree_gas = yes; then
24518     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24519   then gcc_cv_as_powerpc_lwsync=yes
24520 fi
24521   elif test x$gcc_cv_as != x; then
24522     echo "$conftest_s" > conftest.s
24523     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24524   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24525   (eval $ac_try) 2>&5
24526   ac_status=$?
24527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24528   test $ac_status = 0; }; }
24529     then
24530         gcc_cv_as_powerpc_lwsync=yes
24531     else
24532       echo "configure: failed program was" >&5
24533       cat conftest.s >&5
24534     fi
24535     rm -f conftest.o conftest.s
24536   fi
24537 fi
24538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24539 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24540 if test $gcc_cv_as_powerpc_lwsync = yes; then
24541
24542 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24543
24544 fi
24545
24546     case $target in
24547       *-*-aix*) conftest_s='    .machine "476"
24548         .csect .text[PR]
24549         dci 0';;
24550       *) conftest_s='   .machine "476"
24551         .text
24552         dci 0';;
24553     esac
24554
24555     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24556 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24557 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24558   $as_echo_n "(cached) " >&6
24559 else
24560   gcc_cv_as_powerpc_dci=no
24561     if test $in_tree_gas = yes; then
24562     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24563   then gcc_cv_as_powerpc_dci=yes
24564 fi
24565   elif test x$gcc_cv_as != x; then
24566     echo "$conftest_s" > conftest.s
24567     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24568   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24569   (eval $ac_try) 2>&5
24570   ac_status=$?
24571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24572   test $ac_status = 0; }; }
24573     then
24574         gcc_cv_as_powerpc_dci=yes
24575     else
24576       echo "configure: failed program was" >&5
24577       cat conftest.s >&5
24578     fi
24579     rm -f conftest.o conftest.s
24580   fi
24581 fi
24582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24583 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24584 if test $gcc_cv_as_powerpc_dci = yes; then
24585
24586 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24587
24588 fi
24589
24590     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24591 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24592 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24593   $as_echo_n "(cached) " >&6
24594 else
24595   gcc_cv_as_powerpc_gnu_attribute=no
24596     if test $in_tree_gas = yes; then
24597     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24598   then gcc_cv_as_powerpc_gnu_attribute=yes
24599 fi
24600   elif test x$gcc_cv_as != x; then
24601     echo '.gnu_attribute 4,1' > conftest.s
24602     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24603   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24604   (eval $ac_try) 2>&5
24605   ac_status=$?
24606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24607   test $ac_status = 0; }; }
24608     then
24609         gcc_cv_as_powerpc_gnu_attribute=yes
24610     else
24611       echo "configure: failed program was" >&5
24612       cat conftest.s >&5
24613     fi
24614     rm -f conftest.o conftest.s
24615   fi
24616 fi
24617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24618 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24619 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24620
24621 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24622
24623 fi
24624
24625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24626 $as_echo_n "checking assembler for tls marker support... " >&6; }
24627 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24628   $as_echo_n "(cached) " >&6
24629 else
24630   gcc_cv_as_powerpc_tls_markers=no
24631     if test $in_tree_gas = yes; then
24632     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24633   then gcc_cv_as_powerpc_tls_markers=yes
24634 fi
24635   elif test x$gcc_cv_as != x; then
24636     echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24637     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24638   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24639   (eval $ac_try) 2>&5
24640   ac_status=$?
24641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24642   test $ac_status = 0; }; }
24643     then
24644         gcc_cv_as_powerpc_tls_markers=yes
24645     else
24646       echo "configure: failed program was" >&5
24647       cat conftest.s >&5
24648     fi
24649     rm -f conftest.o conftest.s
24650   fi
24651 fi
24652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24653 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24654 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24655
24656 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24657
24658 fi
24659
24660     case $target in
24661       *-*-aix*)
24662         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24663 $as_echo_n "checking assembler for .ref support... " >&6; }
24664 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24665   $as_echo_n "(cached) " >&6
24666 else
24667   gcc_cv_as_aix_ref=no
24668     if test $in_tree_gas = yes; then
24669     if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24670   then :
24671 fi
24672   elif test x$gcc_cv_as != x; then
24673     echo '      .csect stuff[rw]
24674              stuff:
24675                 .long 1
24676                 .extern sym
24677                 .ref sym
24678           ' > conftest.s
24679     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24680   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24681   (eval $ac_try) 2>&5
24682   ac_status=$?
24683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24684   test $ac_status = 0; }; }
24685     then
24686         gcc_cv_as_aix_ref=yes
24687     else
24688       echo "configure: failed program was" >&5
24689       cat conftest.s >&5
24690     fi
24691     rm -f conftest.o conftest.s
24692   fi
24693 fi
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24695 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24696 if test $gcc_cv_as_aix_ref = yes; then
24697
24698 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24699
24700 fi
24701         ;;
24702     esac
24703     ;;
24704
24705   mips*-*-*)
24706     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24707 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24708 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24709   $as_echo_n "(cached) " >&6
24710 else
24711   gcc_cv_as_mips_explicit_relocs=no
24712     if test $in_tree_gas = yes; then
24713     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24714   then gcc_cv_as_mips_explicit_relocs=yes
24715 fi
24716   elif test x$gcc_cv_as != x; then
24717     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
24718     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24719   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24720   (eval $ac_try) 2>&5
24721   ac_status=$?
24722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24723   test $ac_status = 0; }; }
24724     then
24725         gcc_cv_as_mips_explicit_relocs=yes
24726     else
24727       echo "configure: failed program was" >&5
24728       cat conftest.s >&5
24729     fi
24730     rm -f conftest.o conftest.s
24731   fi
24732 fi
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24734 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24735 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24736   if test x$target_cpu_default = x
24737        then target_cpu_default=MASK_EXPLICIT_RELOCS
24738        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24739        fi
24740 fi
24741     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24742 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24743 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24744   $as_echo_n "(cached) " >&6
24745 else
24746   gcc_cv_as_mips_no_shared=no
24747     if test $in_tree_gas = yes; then
24748     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24749   then gcc_cv_as_mips_no_shared=yes
24750 fi
24751   elif test x$gcc_cv_as != x; then
24752     echo 'nop' > conftest.s
24753     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24754   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24755   (eval $ac_try) 2>&5
24756   ac_status=$?
24757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24758   test $ac_status = 0; }; }
24759     then
24760         gcc_cv_as_mips_no_shared=yes
24761     else
24762       echo "configure: failed program was" >&5
24763       cat conftest.s >&5
24764     fi
24765     rm -f conftest.o conftest.s
24766   fi
24767 fi
24768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24769 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24770 if test $gcc_cv_as_mips_no_shared = yes; then
24771
24772 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24773
24774 fi
24775
24776     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24777 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24778 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24779   $as_echo_n "(cached) " >&6
24780 else
24781   gcc_cv_as_mips_gnu_attribute=no
24782     if test $in_tree_gas = yes; then
24783     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24784   then gcc_cv_as_mips_gnu_attribute=yes
24785 fi
24786   elif test x$gcc_cv_as != x; then
24787     echo '.gnu_attribute 4,1' > conftest.s
24788     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24789   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24790   (eval $ac_try) 2>&5
24791   ac_status=$?
24792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24793   test $ac_status = 0; }; }
24794     then
24795         gcc_cv_as_mips_gnu_attribute=yes
24796     else
24797       echo "configure: failed program was" >&5
24798       cat conftest.s >&5
24799     fi
24800     rm -f conftest.o conftest.s
24801   fi
24802 fi
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24804 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24805 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24806
24807 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24808
24809 fi
24810
24811     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24812 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24813 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24814   $as_echo_n "(cached) " >&6
24815 else
24816   gcc_cv_as_mips_dtprelword=no
24817     if test $in_tree_gas = yes; then
24818     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24819   then gcc_cv_as_mips_dtprelword=yes
24820 fi
24821   elif test x$gcc_cv_as != x; then
24822     echo '.section .tdata,"awT",@progbits
24823 x:
24824         .word 2
24825         .text
24826         .dtprelword x+0x8000' > conftest.s
24827     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24828   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24829   (eval $ac_try) 2>&5
24830   ac_status=$?
24831   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24832   test $ac_status = 0; }; }
24833     then
24834         gcc_cv_as_mips_dtprelword=yes
24835     else
24836       echo "configure: failed program was" >&5
24837       cat conftest.s >&5
24838     fi
24839     rm -f conftest.o conftest.s
24840   fi
24841 fi
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24843 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24844 if test $gcc_cv_as_mips_dtprelword = yes; then
24845
24846 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24847
24848 fi
24849
24850     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
24851 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
24852 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
24853   $as_echo_n "(cached) " >&6
24854 else
24855   gcc_cv_as_mips_dspr1_mult=no
24856   if test x$gcc_cv_as != x; then
24857     echo '      .set    mips32r2
24858         .set    nodspr2
24859         .set    dsp
24860         madd    $ac3,$4,$5
24861         maddu   $ac3,$4,$5
24862         msub    $ac3,$4,$5
24863         msubu   $ac3,$4,$5
24864         mult    $ac3,$4,$5
24865         multu   $ac3,$4,$5' > conftest.s
24866     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24867   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24868   (eval $ac_try) 2>&5
24869   ac_status=$?
24870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24871   test $ac_status = 0; }; }
24872     then
24873         gcc_cv_as_mips_dspr1_mult=yes
24874     else
24875       echo "configure: failed program was" >&5
24876       cat conftest.s >&5
24877     fi
24878     rm -f conftest.o conftest.s
24879   fi
24880 fi
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
24882 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
24883 if test $gcc_cv_as_mips_dspr1_mult = yes; then
24884
24885 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
24886
24887 fi
24888
24889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24890 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24891     gcc_cv_as_ld_jalr_reloc=no
24892     if test $gcc_cv_as_mips_explicit_relocs = yes; then
24893       if test $in_tree_ld = yes ; then
24894         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 \
24895            && test $in_tree_ld_is_elf = yes; then
24896           gcc_cv_as_ld_jalr_reloc=yes
24897         fi
24898       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24899         echo '  .ent x' > conftest.s
24900         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
24901         echo '  ld $25,%call16(y)($28)' >> conftest.s
24902         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
24903         echo '1:        jalr $25' >> conftest.s
24904         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
24905         echo '1:        jalr $25' >> conftest.s
24906         echo '  .end x' >> conftest.s
24907         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24908            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24909           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
24910              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
24911             gcc_cv_as_ld_jalr_reloc=yes
24912           fi
24913         fi
24914         rm -f conftest.*
24915       fi
24916     fi
24917     if test $gcc_cv_as_ld_jalr_reloc = yes; then
24918       if test x$target_cpu_default = x; then
24919         target_cpu_default=MASK_RELAX_PIC_CALLS
24920       else
24921         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24922       fi
24923     fi
24924     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24925 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24926
24927     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24928 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24929 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24930   $as_echo_n "(cached) " >&6
24931 else
24932   gcc_cv_ld_mips_personality_relaxation=no
24933        if test $in_tree_ld = yes ; then
24934          if test "$gcc_cv_gld_major_version" -eq 2 \
24935                  -a "$gcc_cv_gld_minor_version" -ge 21 \
24936                  -o "$gcc_cv_gld_major_version" -gt 2; then
24937            gcc_cv_ld_mips_personality_relaxation=yes
24938          fi
24939        elif test x$gcc_cv_as != x \
24940                  -a x$gcc_cv_ld != x \
24941                  -a x$gcc_cv_readelf != x ; then
24942          cat > conftest.s <<EOF
24943         .cfi_startproc
24944         .cfi_personality 0x80,indirect_ptr
24945         .ent test
24946 test:
24947         nop
24948         .end test
24949         .cfi_endproc
24950
24951         .section .data,"aw",@progbits
24952 indirect_ptr:
24953         .dc.a personality
24954 EOF
24955          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24956             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24957            if $gcc_cv_readelf -d conftest 2>&1 \
24958               | grep TEXTREL > /dev/null 2>&1; then
24959              :
24960            elif $gcc_cv_readelf --relocs conftest 2>&1 \
24961                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24962              :
24963            else
24964              gcc_cv_ld_mips_personality_relaxation=yes
24965            fi
24966          fi
24967        fi
24968        rm -f conftest.s conftest.o conftest
24969 fi
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24971 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24972     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24973
24974 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24975
24976     fi
24977     ;;
24978 esac
24979
24980 # Mips and HP-UX need the GNU assembler.
24981 # Linux on IA64 might be able to use the Intel assembler.
24982
24983 case "$target" in
24984   mips*-*-* | *-*-hpux* )
24985     if test x$gas_flag = xyes \
24986        || test x"$host" != x"$build" \
24987        || test ! -x "$gcc_cv_as" \
24988        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24989       :
24990     else
24991       echo "*** This configuration requires the GNU assembler" >&2
24992       exit 1
24993     fi
24994     ;;
24995 esac
24996
24997 # ??? Not all targets support dwarf2 debug_line, even within a version
24998 # of gas.  Moreover, we need to emit a valid instruction to trigger any
24999 # info to the output file.  So, as supported targets are added to gas 2.11,
25000 # add some instruction here to (also) show we expect this might work.
25001 # ??? Once 2.11 is released, probably need to add first known working
25002 # version to the per-target configury.
25003 case "$cpu_type" in
25004   alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25005   | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25006     insn="nop"
25007     ;;
25008   ia64 | s390)
25009     insn="nop 0"
25010     ;;
25011   mmix)
25012     insn="swym 0"
25013     ;;
25014 esac
25015 if test x"$insn" != x; then
25016  conftest_s="\
25017         .file 1 \"conftest.s\"
25018         .loc 1 3 0
25019         $insn"
25020  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25021 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25022 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25023   $as_echo_n "(cached) " >&6
25024 else
25025   gcc_cv_as_dwarf2_debug_line=no
25026     if test $in_tree_gas = yes; then
25027     if test $in_tree_gas_is_elf = yes \
25028   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25029   then gcc_cv_as_dwarf2_debug_line=yes
25030 fi
25031   elif test x$gcc_cv_as != x; then
25032     echo "$conftest_s" > conftest.s
25033     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25034   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25035   (eval $ac_try) 2>&5
25036   ac_status=$?
25037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25038   test $ac_status = 0; }; }
25039     then
25040         if test x$gcc_cv_objdump != x \
25041    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25042       | grep debug_line > /dev/null 2>&1; then
25043      gcc_cv_as_dwarf2_debug_line=yes
25044    fi
25045     else
25046       echo "configure: failed program was" >&5
25047       cat conftest.s >&5
25048     fi
25049     rm -f conftest.o conftest.s
25050   fi
25051 fi
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25053 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25054
25055
25056 # The .debug_line file table must be in the exact order that
25057 # we specified the files, since these indices are also used
25058 # by DW_AT_decl_file.  Approximate this test by testing if
25059 # the assembler bitches if the same index is assigned twice.
25060  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25061 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25062 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25063   $as_echo_n "(cached) " >&6
25064 else
25065   gcc_cv_as_dwarf2_file_buggy=no
25066   if test x$gcc_cv_as != x; then
25067     echo '      .file 1 "foo.s"
25068         .file 1 "bar.s"' > conftest.s
25069     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25070   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25071   (eval $ac_try) 2>&5
25072   ac_status=$?
25073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25074   test $ac_status = 0; }; }
25075     then
25076         gcc_cv_as_dwarf2_file_buggy=yes
25077     else
25078       echo "configure: failed program was" >&5
25079       cat conftest.s >&5
25080     fi
25081     rm -f conftest.o conftest.s
25082   fi
25083 fi
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25085 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25086
25087
25088  if test $gcc_cv_as_dwarf2_debug_line = yes \
25089  && test $gcc_cv_as_dwarf2_file_buggy = no; then
25090
25091 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25092
25093  fi
25094
25095  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25096 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25097 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25098   $as_echo_n "(cached) " >&6
25099 else
25100   gcc_cv_as_gdwarf2_flag=no
25101     if test $in_tree_gas = yes; then
25102     if test $in_tree_gas_is_elf = yes \
25103   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25104   then gcc_cv_as_gdwarf2_flag=yes
25105 fi
25106   elif test x$gcc_cv_as != x; then
25107     echo "$insn" > conftest.s
25108     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25109   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25110   (eval $ac_try) 2>&5
25111   ac_status=$?
25112   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25113   test $ac_status = 0; }; }
25114     then
25115         gcc_cv_as_gdwarf2_flag=yes
25116     else
25117       echo "configure: failed program was" >&5
25118       cat conftest.s >&5
25119     fi
25120     rm -f conftest.o conftest.s
25121   fi
25122 fi
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25124 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25125 if test $gcc_cv_as_gdwarf2_flag = yes; then
25126
25127 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25128
25129 fi
25130
25131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25132 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25133 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25134   $as_echo_n "(cached) " >&6
25135 else
25136   gcc_cv_as_gstabs_flag=no
25137     if test $in_tree_gas = yes; then
25138     if test $in_tree_gas_is_elf = yes \
25139   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25140   then gcc_cv_as_gstabs_flag=yes
25141 fi
25142   elif test x$gcc_cv_as != x; then
25143     echo "$insn" > conftest.s
25144     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25145   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25146   (eval $ac_try) 2>&5
25147   ac_status=$?
25148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25149   test $ac_status = 0; }; }
25150     then
25151         # The native Solaris 9/Intel assembler doesn't understand --gstabs
25152    # and warns about it, but still exits successfully.  So check for
25153    # this.
25154    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25155   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25156   (eval $ac_try) 2>&5
25157   ac_status=$?
25158   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25159   test $ac_status = 0; }; }
25160    then :
25161    else gcc_cv_as_gstabs_flag=yes
25162    fi
25163     else
25164       echo "configure: failed program was" >&5
25165       cat conftest.s >&5
25166     fi
25167     rm -f conftest.o conftest.s
25168   fi
25169 fi
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25171 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25172 if test $gcc_cv_as_gstabs_flag = yes; then
25173
25174 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25175
25176 fi
25177
25178  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25179 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25180 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25181   $as_echo_n "(cached) " >&6
25182 else
25183   gcc_cv_as_debug_prefix_map_flag=no
25184     if test $in_tree_gas = yes; then
25185     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25186   then gcc_cv_as_debug_prefix_map_flag=yes
25187 fi
25188   elif test x$gcc_cv_as != x; then
25189     echo "$insn" > conftest.s
25190     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25191   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25192   (eval $ac_try) 2>&5
25193   ac_status=$?
25194   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25195   test $ac_status = 0; }; }
25196     then
25197         gcc_cv_as_debug_prefix_map_flag=yes
25198     else
25199       echo "configure: failed program was" >&5
25200       cat conftest.s >&5
25201     fi
25202     rm -f conftest.o conftest.s
25203   fi
25204 fi
25205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25206 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25207 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25208
25209 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25210
25211 fi
25212 fi
25213
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25215 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25216 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25217   $as_echo_n "(cached) " >&6
25218 else
25219   gcc_cv_as_lcomm_with_alignment=no
25220   if test x$gcc_cv_as != x; then
25221     echo '.lcomm bar,4,16' > conftest.s
25222     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25223   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25224   (eval $ac_try) 2>&5
25225   ac_status=$?
25226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25227   test $ac_status = 0; }; }
25228     then
25229         gcc_cv_as_lcomm_with_alignment=yes
25230     else
25231       echo "configure: failed program was" >&5
25232       cat conftest.s >&5
25233     fi
25234     rm -f conftest.o conftest.s
25235   fi
25236 fi
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25238 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25239 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25240
25241 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25242
25243 fi
25244
25245 # Check whether --enable-gnu-unique-object was given.
25246 if test "${enable_gnu_unique_object+set}" = set; then :
25247   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25248     yes | no) ;;
25249     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25250 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25251   esac
25252 else
25253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25254 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25255 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25256   $as_echo_n "(cached) " >&6
25257 else
25258   gcc_cv_as_gnu_unique_object=no
25259     if test $in_tree_gas = yes; then
25260     if test $in_tree_gas_is_elf = yes \
25261   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25262   then gcc_cv_as_gnu_unique_object=yes
25263 fi
25264   elif test x$gcc_cv_as != x; then
25265     echo '.type foo, @gnu_unique_object' > conftest.s
25266     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25267   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25268   (eval $ac_try) 2>&5
25269   ac_status=$?
25270   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25271   test $ac_status = 0; }; }
25272     then
25273         gcc_cv_as_gnu_unique_object=yes
25274     else
25275       echo "configure: failed program was" >&5
25276       cat conftest.s >&5
25277     fi
25278     rm -f conftest.o conftest.s
25279   fi
25280 fi
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25282 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25283 if test $gcc_cv_as_gnu_unique_object = yes; then
25284   # Also check for ld.so support, i.e. glibc 2.11 or higher.
25285    if test x$host = x$build -a x$host = x$target &&
25286        ldd --version 2>/dev/null &&
25287        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25288       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25289       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25290       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25291       if test "$glibcnum" -ge 2011 ; then
25292         enable_gnu_unique_object=yes
25293       fi
25294     fi
25295 fi
25296 fi
25297
25298 if test x$enable_gnu_unique_object = xyes; then
25299
25300 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25301
25302 fi
25303
25304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25305 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25306 if test "${gcc_cv_as_line_zero+set}" = set; then :
25307   $as_echo_n "(cached) " >&6
25308 else
25309   gcc_cv_as_line_zero=no
25310   if test $in_tree_gas = yes; then
25311     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25312   then gcc_cv_as_line_zero=yes
25313 fi
25314   elif test "x$gcc_cv_as" != x; then
25315     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25316     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
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        test "x`cat conftest.out`" = x
25323     then
25324       gcc_cv_as_line_zero=yes
25325     else
25326       echo "configure: failed program was" >&5
25327       cat conftest.s >&5
25328       echo "configure: error output was" >&5
25329       cat conftest.out >&5
25330     fi
25331     rm -f conftest.o conftest.s conftest.out
25332   fi
25333 fi
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25335 $as_echo "$gcc_cv_as_line_zero" >&6; }
25336 if test "x$gcc_cv_as_line_zero" = xyes; then
25337
25338 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25339
25340 fi
25341
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25343 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25344 gcc_cv_ld_eh_frame_hdr=no
25345 if test $in_tree_ld = yes ; then
25346   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 \
25347      && test $in_tree_ld_is_elf = yes; then
25348     gcc_cv_ld_eh_frame_hdr=yes
25349   fi
25350 elif test x$gcc_cv_ld != x; then
25351   if echo "$ld_ver" | grep GNU > /dev/null; then
25352     # Check if linker supports --eh-frame-hdr option
25353     if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
25354       gcc_cv_ld_eh_frame_hdr=yes
25355     fi
25356   else
25357     case "$target" in
25358       *-*-solaris2*)
25359         # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
25360         if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
25361           gcc_cv_ld_eh_frame_hdr=yes
25362         fi
25363         ;;
25364     esac
25365   fi
25366 fi
25367
25368 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
25369
25370 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25371
25372 fi
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25374 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25375
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25377 $as_echo_n "checking linker position independent executable support... " >&6; }
25378 gcc_cv_ld_pie=no
25379 if test $in_tree_ld = yes ; then
25380   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 \
25381      && test $in_tree_ld_is_elf = yes; then
25382     gcc_cv_ld_pie=yes
25383   fi
25384 elif test x$gcc_cv_ld != x; then
25385         # Check if linker supports -pie option
25386         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
25387                 gcc_cv_ld_pie=yes
25388         fi
25389 fi
25390 if test x"$gcc_cv_ld_pie" = xyes; then
25391
25392 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25393
25394 fi
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25396 $as_echo "$gcc_cv_ld_pie" >&6; }
25397
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25399 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25400 gcc_cv_ld_eh_gc_sections=no
25401 if test $in_tree_ld = yes ; then
25402   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 \
25403      && test $in_tree_ld_is_elf = yes; then
25404     gcc_cv_ld_eh_gc_sections=yes
25405   fi
25406 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
25407   cat > conftest.s <<EOF
25408         .section        .text
25409 .globl _start
25410         .type _start, @function
25411 _start:
25412         .long foo
25413         .size _start, .-_start
25414         .section        .text.foo,"ax",@progbits
25415         .type foo, @function
25416 foo:
25417         .long 0
25418         .size foo, .-foo
25419         .section        .gcc_except_table.foo,"a",@progbits
25420 .L0:
25421         .long 0
25422         .section        .eh_frame,"a",@progbits
25423         .long .L0
25424 EOF
25425   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25426     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25427          | grep "gc-sections option ignored" > /dev/null; then
25428       gcc_cv_ld_eh_gc_sections=no
25429     elif $gcc_cv_objdump -h conftest 2> /dev/null \
25430          | grep gcc_except_table > /dev/null; then
25431       gcc_cv_ld_eh_gc_sections=yes
25432       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25433       if test x$gcc_cv_as_comdat_group != xyes; then
25434         gcc_cv_ld_eh_gc_sections=no
25435         cat > conftest.s <<EOF
25436         .section        .text
25437 .globl _start
25438         .type _start, @function
25439 _start:
25440         .long foo
25441         .size _start, .-_start
25442         .section        .gnu.linkonce.t.foo,"ax",@progbits
25443         .type foo, @function
25444 foo:
25445         .long 0
25446         .size foo, .-foo
25447         .section        .gcc_except_table.foo,"a",@progbits
25448 .L0:
25449         .long 0
25450         .section        .eh_frame,"a",@progbits
25451         .long .L0
25452 EOF
25453         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25454           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25455                | grep "gc-sections option ignored" > /dev/null; then
25456             gcc_cv_ld_eh_gc_sections=no
25457           elif $gcc_cv_objdump -h conftest 2> /dev/null \
25458                | grep gcc_except_table > /dev/null; then
25459             gcc_cv_ld_eh_gc_sections=yes
25460           fi
25461         fi
25462       fi
25463     fi
25464   fi
25465   rm -f conftest.s conftest.o conftest
25466 fi
25467 case "$target" in
25468   hppa*-*-linux*)
25469     # ??? This apparently exposes a binutils bug with PC-relative relocations.
25470     gcc_cv_ld_eh_gc_sections=no
25471     ;;
25472 esac
25473 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
25474
25475 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25476
25477 fi
25478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25479 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25480
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
25482 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
25483 gcc_cv_ld_eh_gc_sections_bug=no
25484 if test $in_tree_ld = yes ; then
25485   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 \
25486      && test $in_tree_ld_is_elf = yes; then
25487     gcc_cv_ld_eh_gc_sections_bug=yes
25488   fi
25489 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
25490   gcc_cv_ld_eh_gc_sections_bug=yes
25491   cat > conftest.s <<EOF
25492         .section        .text
25493 .globl _start
25494         .type _start, @function
25495 _start:
25496         .long foo
25497         .size _start, .-_start
25498         .section        .text.startup.foo,"ax",@progbits
25499         .type foo, @function
25500 foo:
25501         .long 0
25502         .size foo, .-foo
25503         .section        .gcc_except_table.foo,"a",@progbits
25504 .L0:
25505         .long 0
25506         .section        .eh_frame,"a",@progbits
25507         .long .L0
25508 EOF
25509   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25510     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25511          | grep "gc-sections option ignored" > /dev/null; then
25512       :
25513     elif $gcc_cv_objdump -h conftest 2> /dev/null \
25514          | grep gcc_except_table > /dev/null; then
25515       gcc_cv_ld_eh_gc_sections_bug=no
25516     fi
25517   fi
25518   rm -f conftest.s conftest.o conftest
25519 fi
25520 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
25521
25522 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
25523
25524 fi
25525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
25526 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
25527
25528 # --------
25529 # UNSORTED
25530 # --------
25531
25532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
25533 $as_echo_n "checking linker --as-needed support... " >&6; }
25534 if test "${gcc_cv_ld_as_needed+set}" = set; then :
25535   $as_echo_n "(cached) " >&6
25536 else
25537   gcc_cv_ld_as_needed=no
25538 if test $in_tree_ld = yes ; then
25539   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 \
25540      && test $in_tree_ld_is_elf = yes; then
25541     gcc_cv_ld_as_needed=yes
25542   fi
25543 elif test x$gcc_cv_ld != x; then
25544         # Check if linker supports --as-needed and --no-as-needed options
25545         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
25546                 gcc_cv_ld_as_needed=yes
25547         fi
25548 fi
25549
25550 fi
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
25552 $as_echo "$gcc_cv_ld_as_needed" >&6; }
25553 if test x"$gcc_cv_ld_as_needed" = xyes; then
25554
25555 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25556
25557 fi
25558
25559 case "$target:$tm_file" in
25560   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
25561     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25562 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25563 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25564   $as_echo_n "(cached) " >&6
25565 else
25566   gcc_cv_ld_no_dot_syms=no
25567     if test $in_tree_ld = yes ; then
25568       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
25569         gcc_cv_ld_no_dot_syms=yes
25570       fi
25571     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25572       cat > conftest1.s <<EOF
25573         .text
25574         bl .foo
25575 EOF
25576       cat > conftest2.s <<EOF
25577         .section ".opd","aw"
25578         .align 3
25579         .globl foo
25580         .type foo,@function
25581 foo:
25582         .quad .LEfoo,.TOC.@tocbase,0
25583         .text
25584 .LEfoo:
25585         blr
25586         .size foo,.-.LEfoo
25587 EOF
25588       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
25589          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
25590          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
25591         gcc_cv_ld_no_dot_syms=yes
25592       fi
25593       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25594     fi
25595
25596 fi
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25598 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25599     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
25600
25601 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25602
25603     fi
25604
25605     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25606 $as_echo_n "checking linker large toc support... " >&6; }
25607 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25608   $as_echo_n "(cached) " >&6
25609 else
25610   gcc_cv_ld_large_toc=no
25611     if test $in_tree_ld = yes ; then
25612       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
25613         gcc_cv_ld_large_toc=yes
25614       fi
25615     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25616       cat > conftest.s <<EOF
25617         .section ".tbss","awT",@nobits
25618         .align 3
25619 ie0:    .space 8
25620         .global _start
25621         .text
25622 _start:
25623         addis 9,13,ie0@got@tprel@ha
25624         ld 9,ie0@got@tprel@l(9)
25625 EOF
25626       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
25627          && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
25628         gcc_cv_ld_large_toc=yes
25629       fi
25630       rm -f conftest conftest.o conftest.s
25631     fi
25632
25633 fi
25634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25635 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25636     if test x"$gcc_cv_ld_large_toc" = xyes; then
25637
25638 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25639
25640     fi
25641     ;;
25642 esac
25643
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25645 $as_echo_n "checking linker --build-id support... " >&6; }
25646 if test "${gcc_cv_ld_buildid+set}" = set; then :
25647   $as_echo_n "(cached) " >&6
25648 else
25649   gcc_cv_ld_buildid=no
25650   if test $in_tree_ld = yes ; then
25651     if test "$gcc_cv_gld_major_version" -eq 2 -a \
25652        "$gcc_cv_gld_minor_version" -ge 18 -o \
25653        "$gcc_cv_gld_major_version" -gt 2 \
25654        && test $in_tree_ld_is_elf = yes; then
25655       gcc_cv_ld_buildid=yes
25656     fi
25657   elif test x$gcc_cv_ld != x; then
25658     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
25659       gcc_cv_ld_buildid=yes
25660     fi
25661   fi
25662 fi
25663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25664 $as_echo "$gcc_cv_ld_buildid" >&6; }
25665 if test x"$gcc_cv_ld_buildid" = xyes; then
25666
25667 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25668
25669 fi
25670
25671 # Check whether --enable-linker-build-id was given.
25672 if test "${enable_linker_build_id+set}" = set; then :
25673   enableval=$enable_linker_build_id;
25674 else
25675   enable_linker_build_id=no
25676 fi
25677
25678
25679 if test x"$enable_linker_build_id" = xyes; then
25680   if test x"$gcc_cv_ld_buildid" = xyes; then
25681
25682 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25683
25684   else
25685     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25686 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25687   fi
25688 fi
25689
25690 # In binutils 2.21, GNU ld gained support for new emulations fully
25691 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25693 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25694 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25695   $as_echo_n "(cached) " >&6
25696 else
25697   gcc_cv_ld_sol2_emulation=no
25698   if test $in_tree_ld = yes ; then
25699     if test "$gcc_cv_gld_major_version" -eq 2 -a \
25700        "$gcc_cv_gld_minor_version" -ge 21 -o \
25701        "$gcc_cv_gld_major_version" -gt 2 \
25702        && test $in_tree_ld_is_elf = yes; then
25703       gcc_cv_ld_sol2_emulation=yes
25704     fi
25705   elif test x$gcc_cv_ld != x; then
25706     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
25707        grep _sol2 > /dev/null; then
25708       gcc_cv_ld_sol2_emulation=yes
25709     fi
25710   fi
25711 fi
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25713 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25714 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
25715
25716 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25717
25718 fi
25719
25720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25721 $as_echo_n "checking linker --sysroot support... " >&6; }
25722 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25723   $as_echo_n "(cached) " >&6
25724 else
25725   gcc_cv_ld_sysroot=no
25726   if test $in_tree_ld = yes ; then
25727       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
25728         gcc_cv_ld_sysroot=yes
25729       fi
25730   elif test x$gcc_cv_ld != x; then
25731     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
25732       gcc_cv_ld_sysroot=yes
25733     fi
25734   fi
25735 fi
25736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25737 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25738 if test x"$gcc_cv_ld_sysroot" = xyes; then
25739
25740 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25741
25742 fi
25743
25744 if test x$with_sysroot = x && test x$host = x$target \
25745    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25746    && test "$prefix" != "NONE"; then
25747
25748 cat >>confdefs.h <<_ACEOF
25749 #define PREFIX_INCLUDE_DIR "$prefix/include"
25750 _ACEOF
25751
25752 fi
25753
25754 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25755   if test "x$with_headers" != x; then
25756     target_header_dir=$with_headers
25757   elif test "x$with_sysroot" = x; then
25758     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25759   elif test "x$with_build_sysroot" != "x"; then
25760     target_header_dir="${with_build_sysroot}/usr/include"
25761   elif test "x$with_sysroot" = xyes; then
25762     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25763   else
25764     target_header_dir="${with_sysroot}/usr/include"
25765   fi
25766 else
25767   target_header_dir=/usr/include
25768 fi
25769
25770 # Test for stack protector support in target C library.
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25772 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25773 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25774   $as_echo_n "(cached) " >&6
25775 else
25776   gcc_cv_libc_provides_ssp=no
25777     case "$target" in
25778        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
25779       # glibc 2.4 and later provides __stack_chk_fail and
25780       # either __stack_chk_guard, or TLS access to stack guard canary.
25781       if test -f $target_header_dir/features.h \
25782          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
25783             $target_header_dir/features.h > /dev/null; then
25784         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
25785            $target_header_dir/features.h > /dev/null; then
25786           gcc_cv_libc_provides_ssp=yes
25787         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
25788              $target_header_dir/features.h > /dev/null \
25789              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
25790              $target_header_dir/features.h > /dev/null; then
25791           gcc_cv_libc_provides_ssp=yes
25792         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
25793              $target_header_dir/features.h > /dev/null && \
25794              test -f $target_header_dir/bits/uClibc_config.h && \
25795              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
25796              $target_header_dir/bits/uClibc_config.h > /dev/null; then
25797           gcc_cv_libc_provides_ssp=yes
25798         fi
25799       fi
25800         ;;
25801        *-*-gnu*)
25802          # Avoid complicated tests (see
25803          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25804          # simply assert that glibc does provide this, which is true for all
25805          # realistically usable GNU/Hurd configurations.
25806          gcc_cv_libc_provides_ssp=yes;;
25807        *-*-darwin* | *-*-freebsd*)
25808          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25809 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
25810   gcc_cv_libc_provides_ssp=yes
25811 else
25812   echo "no __stack_chk_fail on this target"
25813 fi
25814
25815         ;;
25816   *) gcc_cv_libc_provides_ssp=no ;;
25817     esac
25818 fi
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25820 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25821
25822 if test x$gcc_cv_libc_provides_ssp = xyes; then
25823
25824 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25825
25826 fi
25827
25828 # Test for <sys/sdt.h> on the target.
25829
25830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
25831 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
25832 have_sys_sdt_h=no
25833 if test -f $target_header_dir/sys/sdt.h; then
25834
25835 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
25836
25837 fi
25838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
25839 $as_echo "$have_sys_sdt_h" >&6; }
25840
25841 # Check if TFmode long double should be used by default or not.
25842 # Some glibc targets used DFmode long double, but with glibc 2.4
25843 # and later they can use TFmode.
25844 case "$target" in
25845   powerpc*-*-linux* | \
25846   sparc*-*-linux* | \
25847   s390*-*-linux* | \
25848   alpha*-*-linux*)
25849
25850 # Check whether --with-long-double-128 was given.
25851 if test "${with_long_double_128+set}" = set; then :
25852   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
25853 else
25854   gcc_cv_target_ldbl128=no
25855       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25856         $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
25857       && gcc_cv_target_ldbl128=yes
25858
25859 fi
25860
25861     ;;
25862 esac
25863 if test x$gcc_cv_target_ldbl128 = xyes; then
25864
25865 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25866
25867 fi
25868
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
25870 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
25871 gcc_cv_target_dl_iterate_phdr=unknown
25872 case "$target" in
25873   *-*-solaris2*)
25874     # <link.h> needs both a dl_iterate_phdr declaration and support for
25875     # compilation with largefile support.
25876     if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
25877       && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
25878       gcc_cv_target_dl_iterate_phdr=yes
25879     else
25880       gcc_cv_target_dl_iterate_phdr=no
25881     fi
25882     ;;
25883 esac
25884
25885 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
25886
25887 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
25888
25889 fi
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
25891 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
25892
25893 # Find out what GC implementation we want, or may, use.
25894
25895 # Check whether --with-gc was given.
25896 if test "${with_gc+set}" = set; then :
25897   withval=$with_gc; case "$withval" in
25898   page)
25899     GGC=ggc-$withval
25900     ;;
25901   zone)
25902     GGC=ggc-$withval
25903
25904 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25905
25906     ;;
25907   *)
25908     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
25909     ;;
25910 esac
25911 else
25912   GGC=ggc-page
25913 fi
25914
25915
25916 echo "Using $GGC for garbage collection."
25917
25918 # Libraries to use on the host.  This will normally be set by the top
25919 # level Makefile.  Here we simply capture the value for our Makefile.
25920 if test -z "${HOST_LIBS+set}"; then
25921   HOST_LIBS=
25922 fi
25923
25924
25925 # Use the system's zlib library.
25926 zlibdir=-L../zlib
25927 zlibinc="-I\$(srcdir)/../zlib"
25928
25929 # Check whether --with-system-zlib was given.
25930 if test "${with_system_zlib+set}" = set; then :
25931   withval=$with_system_zlib; zlibdir=
25932 zlibinc=
25933
25934 fi
25935
25936
25937
25938
25939
25940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25941 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25942     # Check whether --enable-maintainer-mode was given.
25943 if test "${enable_maintainer_mode+set}" = set; then :
25944   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
25945 else
25946   maintainer_mode=no
25947 fi
25948
25949
25950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25951 $as_echo "$maintainer_mode" >&6; }
25952
25953 if test "$maintainer_mode" = "yes"; then
25954   MAINT=''
25955 else
25956   MAINT='#'
25957 fi
25958
25959 # --------------
25960 # Language hooks
25961 # --------------
25962
25963 # Make empty files to contain the specs and options for each language.
25964 # Then add #include lines to for a compiler that has specs and/or options.
25965
25966 subdirs=
25967 lang_opt_files=
25968 lang_specs_files=
25969 lang_tree_files=
25970 # These (without "all_") are set in each config-lang.in.
25971 # `language' must be a single word so is spelled singularly.
25972 all_languages=
25973 all_compilers=
25974 all_outputs='Makefile'
25975 # List of language makefile fragments.
25976 all_lang_makefrags=
25977 # Additional files for gengtype
25978 all_gtfiles="$target_gtfiles"
25979
25980 # These are the languages that are set in --enable-languages,
25981 # and are available in the GCC tree.
25982 all_selected_languages=
25983
25984 # Add the language fragments.
25985 # Languages are added via two mechanisms.  Some information must be
25986 # recorded in makefile variables, these are defined in config-lang.in.
25987 # We accumulate them and plug them into the main Makefile.
25988 # The other mechanism is a set of hooks for each of the main targets
25989 # like `clean', `install', etc.
25990
25991 language_hooks="Make-hooks"
25992
25993 for lang in ${srcdir}/*/config-lang.in
25994 do
25995         test "$lang" = "${srcdir}/*/config-lang.in" && continue
25996
25997         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
25998         if test "x$lang_alias" = x
25999         then
26000               echo "$lang doesn't set \$language." 1>&2
26001               exit 1
26002         fi
26003         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26004         subdirs="$subdirs $subdir"
26005
26006         # $gcc_subdir is where the gcc integration files are to be found
26007         # for a language, both for internal compiler purposes (compiler
26008         # sources implementing front-end to GCC tree converters), and for
26009         # build infrastructure purposes (Make-lang.in, etc.)
26010         #
26011         # This will be <subdir> (relative to $srcdir) if a line like
26012         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26013         # is found in <langdir>/config-lang.in, and will remain <langdir>
26014         # otherwise.
26015         #
26016         # Except for the language alias (fetched above), the regular
26017         # "config-lang.in" contents are always retrieved from $gcc_subdir,
26018         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26019         # only this and the language alias.
26020
26021         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
26022         if [ "$gcc_subdir" = "" ]; then
26023            gcc_subdir="$subdir"
26024         fi
26025
26026         case ",$enable_languages," in
26027         *,$lang_alias,*)
26028             all_selected_languages="$all_selected_languages $lang_alias"
26029             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26030                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26031             fi
26032             ;;
26033         esac
26034
26035         language=
26036         boot_language=
26037         compilers=
26038         outputs=
26039         gtfiles=
26040         subdir_requires=
26041         . ${srcdir}/$gcc_subdir/config-lang.in
26042         if test "x$language" = x
26043         then
26044                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26045                 exit 1
26046         fi
26047
26048         ok=:
26049         case ",$enable_languages," in
26050                 *,$lang_alias,*) ;;
26051                 *)
26052                         for i in $subdir_requires; do
26053                                 test -f "${srcdir}/$i/config-lang.in" && continue
26054                                 ok=false
26055                                 break
26056                         done
26057                 ;;
26058         esac
26059         $ok || continue
26060
26061         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26062         if test -f $srcdir/$gcc_subdir/lang.opt; then
26063             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26064             all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26065         fi
26066         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26067             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26068         fi
26069         all_languages="$all_languages $language"
26070         all_compilers="$all_compilers $compilers"
26071         all_outputs="$all_outputs $outputs"
26072         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26073         case ",$enable_languages," in
26074                 *,lto,*)
26075
26076 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26077
26078                     enable_lto=yes
26079
26080                     ;;
26081                 *) ;;
26082         esac
26083 done
26084
26085 # Pick up gtfiles for c
26086 gtfiles=
26087 . ${srcdir}/c-config-lang.in
26088 all_gtfiles="$all_gtfiles [c] $gtfiles"
26089
26090 check_languages=
26091 for language in $all_selected_languages
26092 do
26093         check_languages="$check_languages check-$language"
26094 done
26095
26096 # We link each language in with a set of hooks, reached indirectly via
26097 # lang.${target}.  Only do so for selected languages.
26098
26099 rm -f Make-hooks
26100 touch Make-hooks
26101 target_list="all.cross start.encap rest.encap tags \
26102         install-common install-man install-info install-pdf install-html dvi \
26103         pdf html uninstall info man srcextra srcman srcinfo \
26104         mostlyclean clean distclean maintainer-clean install-plugin"
26105
26106 for t in $target_list
26107 do
26108         x=
26109         for lang in $all_selected_languages
26110         do
26111                 x="$x $lang.$t"
26112         done
26113         echo "lang.$t: $x" >> Make-hooks
26114 done
26115
26116 # --------
26117 # Option include files
26118 # --------
26119
26120 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26121 option_includes="option-includes.mk"
26122
26123
26124 # --------
26125 # UNSORTED
26126 # --------
26127
26128 # Create .gdbinit.
26129
26130 echo "dir ." > .gdbinit
26131 echo "dir ${srcdir}" >> .gdbinit
26132 if test x$gdb_needs_out_file_path = xyes
26133 then
26134         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26135 fi
26136 if test "x$subdirs" != x; then
26137         for s in $subdirs
26138         do
26139                 echo "dir ${srcdir}/$s" >> .gdbinit
26140         done
26141 fi
26142 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26143
26144 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26145
26146
26147
26148 # Find a directory in which to install a shared libgcc.
26149
26150 # Check whether --enable-version-specific-runtime-libs was given.
26151 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26152   enableval=$enable_version_specific_runtime_libs;
26153 fi
26154
26155
26156
26157 # Check whether --with-slibdir was given.
26158 if test "${with_slibdir+set}" = set; then :
26159   withval=$with_slibdir; slibdir="$with_slibdir"
26160 else
26161   if test "${enable_version_specific_runtime_libs+set}" = set; then
26162   slibdir='$(libsubdir)'
26163 elif test "$host" != "$target"; then
26164   slibdir='$(build_tooldir)/lib'
26165 else
26166   slibdir='$(libdir)'
26167 fi
26168 fi
26169
26170
26171
26172 # Substitute configuration variables
26173
26174
26175
26176
26177
26178
26179
26180
26181
26182
26183
26184
26185
26186
26187
26188
26189
26190
26191
26192
26193
26194
26195
26196
26197
26198
26199
26200
26201
26202
26203
26204
26205
26206
26207
26208
26209
26210
26211
26212
26213
26214
26215
26216
26217
26218
26219
26220
26221
26222
26223
26224
26225
26226
26227
26228
26229
26230
26231
26232
26233
26234
26235
26236
26237 # Echo link setup.
26238 if test x${build} = x${host} ; then
26239   if test x${host} = x${target} ; then
26240     echo "Links are now set up to build a native compiler for ${target}." 1>&2
26241   else
26242     echo "Links are now set up to build a cross-compiler" 1>&2
26243     echo " from ${host} to ${target}." 1>&2
26244   fi
26245 else
26246   if test x${host} = x${target} ; then
26247     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26248     echo " for ${target}." 1>&2
26249   else
26250     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26251     echo " from ${host} to ${target}." 1>&2
26252   fi
26253 fi
26254
26255
26256
26257
26258
26259
26260
26261
26262
26263 if test "x${CLOOGLIBS}" != "x" ; then
26264
26265 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26266
26267 fi
26268
26269 # Check for plugin support
26270 # Check whether --enable-plugin was given.
26271 if test "${enable_plugin+set}" = set; then :
26272   enableval=$enable_plugin; enable_plugin=$enableval
26273 else
26274   enable_plugin=yes; default_plugin=yes
26275 fi
26276
26277
26278 pluginlibs=
26279
26280 case "${host}" in
26281   *-*-darwin*)
26282     if test x$build = x$host; then
26283       export_sym_check="nm${exeext} -g"
26284     elif test x$host = x$target; then
26285       export_sym_check="$gcc_cv_nm -g"
26286     else
26287       export_sym_check=
26288     fi
26289   ;;
26290   *)
26291     if test x$build = x$host; then
26292       export_sym_check="objdump${exeext} -T"
26293     elif test x$host = x$target; then
26294       export_sym_check="$gcc_cv_objdump -T"
26295     else
26296       export_sym_check=
26297     fi
26298   ;;
26299 esac
26300
26301 if test x"$enable_plugin" = x"yes"; then
26302
26303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26304 $as_echo_n "checking for exported symbols... " >&6; }
26305   if test "x$export_sym_check" != x; then
26306     echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26307     ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
26308     if $export_sym_check conftest | grep foobar > /dev/null; then
26309       : # No need to use a flag
26310       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26311 $as_echo "yes" >&6; }
26312     else
26313       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26314 $as_echo "yes" >&6; }
26315       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26316 $as_echo_n "checking for -rdynamic... " >&6; }
26317       ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
26318       if $export_sym_check conftest | grep foobar > /dev/null; then
26319         plugin_rdynamic=yes
26320         pluginlibs="-rdynamic"
26321       else
26322         plugin_rdynamic=no
26323         enable_plugin=no
26324       fi
26325       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26326 $as_echo "$plugin_rdynamic" >&6; }
26327     fi
26328   else
26329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26330 $as_echo "unable to check" >&6; }
26331   fi
26332
26333   # Check -ldl
26334   saved_LIBS="$LIBS"
26335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26336 $as_echo_n "checking for library containing dlopen... " >&6; }
26337 if test "${ac_cv_search_dlopen+set}" = set; then :
26338   $as_echo_n "(cached) " >&6
26339 else
26340   ac_func_search_save_LIBS=$LIBS
26341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26342 /* end confdefs.h.  */
26343
26344 /* Override any GCC internal prototype to avoid an error.
26345    Use char because int might match the return type of a GCC
26346    builtin and then its argument prototype would still apply.  */
26347 #ifdef __cplusplus
26348 extern "C"
26349 #endif
26350 char dlopen ();
26351 int
26352 main ()
26353 {
26354 return dlopen ();
26355   ;
26356   return 0;
26357 }
26358 _ACEOF
26359 for ac_lib in '' dl; do
26360   if test -z "$ac_lib"; then
26361     ac_res="none required"
26362   else
26363     ac_res=-l$ac_lib
26364     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26365   fi
26366   if ac_fn_c_try_link "$LINENO"; then :
26367   ac_cv_search_dlopen=$ac_res
26368 fi
26369 rm -f core conftest.err conftest.$ac_objext \
26370     conftest$ac_exeext
26371   if test "${ac_cv_search_dlopen+set}" = set; then :
26372   break
26373 fi
26374 done
26375 if test "${ac_cv_search_dlopen+set}" = set; then :
26376
26377 else
26378   ac_cv_search_dlopen=no
26379 fi
26380 rm conftest.$ac_ext
26381 LIBS=$ac_func_search_save_LIBS
26382 fi
26383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26384 $as_echo "$ac_cv_search_dlopen" >&6; }
26385 ac_res=$ac_cv_search_dlopen
26386 if test "$ac_res" != no; then :
26387   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26388
26389 fi
26390
26391   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
26392     pluginlibs="$pluginlibs -ldl"
26393   fi
26394   LIBS="$saved_LIBS"
26395
26396   # Check that we can build shared objects with -fPIC -shared
26397   saved_LDFLAGS="$LDFLAGS"
26398   saved_CFLAGS="$CFLAGS"
26399   case "${host}" in
26400     *-*-darwin*)
26401       CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26402       CFLAGS="$CFLAGS -fPIC"
26403       LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
26404     ;;
26405     *)
26406       CFLAGS="$CFLAGS -fPIC"
26407       LDFLAGS="$LDFLAGS -fPIC -shared"
26408     ;;
26409   esac
26410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26411 $as_echo_n "checking for -fPIC -shared... " >&6; }
26412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26413 /* end confdefs.h.  */
26414 extern int X;
26415 int
26416 main ()
26417 {
26418 return X == 0;
26419   ;
26420   return 0;
26421 }
26422 _ACEOF
26423 if ac_fn_c_try_link "$LINENO"; then :
26424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26425 $as_echo "yes" >&6; }; have_pic_shared=yes
26426 else
26427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26428 $as_echo "no" >&6; }; have_pic_shared=no
26429 fi
26430 rm -f core conftest.err conftest.$ac_objext \
26431     conftest$ac_exeext conftest.$ac_ext
26432   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
26433     pluginlibs=
26434     enable_plugin=no
26435   fi
26436   LDFLAGS="$saved_LDFLAGS"
26437   CFLAGS="$saved_CFLAGS"
26438
26439   # If plugin support had been requested but not available, fail.
26440   if test x"$enable_plugin" = x"no" ; then
26441     if test x"$default_plugin" != x"yes"; then
26442       as_fn_error "
26443 Building GCC with plugin support requires a host that supports
26444 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26445     fi
26446   fi
26447 fi
26448
26449
26450
26451 if test x"$enable_plugin" = x"yes"; then
26452
26453 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26454
26455 fi
26456
26457
26458 # Check whether --enable-libquadmath-support was given.
26459 if test "${enable_libquadmath_support+set}" = set; then :
26460   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
26461 else
26462   ENABLE_LIBQUADMATH_SUPPORT=yes
26463 fi
26464
26465 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
26466
26467 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
26468
26469 fi
26470
26471
26472 # Configure the subdirectories
26473 # AC_CONFIG_SUBDIRS($subdirs)
26474
26475 # Create the Makefile
26476 # and configure language subdirectories
26477 ac_config_files="$ac_config_files $all_outputs"
26478
26479
26480 ac_config_commands="$ac_config_commands default"
26481
26482 cat >confcache <<\_ACEOF
26483 # This file is a shell script that caches the results of configure
26484 # tests run on this system so they can be shared between configure
26485 # scripts and configure runs, see configure's option --config-cache.
26486 # It is not useful on other systems.  If it contains results you don't
26487 # want to keep, you may remove or edit it.
26488 #
26489 # config.status only pays attention to the cache file if you give it
26490 # the --recheck option to rerun configure.
26491 #
26492 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26493 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26494 # following values.
26495
26496 _ACEOF
26497
26498 # The following way of writing the cache mishandles newlines in values,
26499 # but we know of no workaround that is simple, portable, and efficient.
26500 # So, we kill variables containing newlines.
26501 # Ultrix sh set writes to stderr and can't be redirected directly,
26502 # and sets the high bit in the cache file unless we assign to the vars.
26503 (
26504   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26505     eval ac_val=\$$ac_var
26506     case $ac_val in #(
26507     *${as_nl}*)
26508       case $ac_var in #(
26509       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26510 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26511       esac
26512       case $ac_var in #(
26513       _ | IFS | as_nl) ;; #(
26514       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26515       *) { eval $ac_var=; unset $ac_var;} ;;
26516       esac ;;
26517     esac
26518   done
26519
26520   (set) 2>&1 |
26521     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26522     *${as_nl}ac_space=\ *)
26523       # `set' does not quote correctly, so add quotes: double-quote
26524       # substitution turns \\\\ into \\, and sed turns \\ into \.
26525       sed -n \
26526         "s/'/'\\\\''/g;
26527           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26528       ;; #(
26529     *)
26530       # `set' quotes correctly as required by POSIX, so do not add quotes.
26531       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26532       ;;
26533     esac |
26534     sort
26535 ) |
26536   sed '
26537      /^ac_cv_env_/b end
26538      t clear
26539      :clear
26540      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26541      t end
26542      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26543      :end' >>confcache
26544 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26545   if test -w "$cache_file"; then
26546     test "x$cache_file" != "x/dev/null" &&
26547       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26548 $as_echo "$as_me: updating cache $cache_file" >&6;}
26549     cat confcache >$cache_file
26550   else
26551     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26552 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26553   fi
26554 fi
26555 rm -f confcache
26556
26557 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26558 # Let make expand exec_prefix.
26559 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26560
26561 DEFS=-DHAVE_CONFIG_H
26562
26563 ac_libobjs=
26564 ac_ltlibobjs=
26565 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26566   # 1. Remove the extension, and $U if already installed.
26567   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26568   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26569   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26570   #    will be set to the directory where LIBOBJS objects are built.
26571   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26572   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26573 done
26574 LIBOBJS=$ac_libobjs
26575
26576 LTLIBOBJS=$ac_ltlibobjs
26577
26578
26579
26580
26581 : ${CONFIG_STATUS=./config.status}
26582 ac_write_fail=0
26583 ac_clean_files_save=$ac_clean_files
26584 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26586 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26587 as_write_fail=0
26588 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26589 #! $SHELL
26590 # Generated by $as_me.
26591 # Run this file to recreate the current configuration.
26592 # Compiler output produced by configure, useful for debugging
26593 # configure, is in config.log if it exists.
26594
26595 debug=false
26596 ac_cs_recheck=false
26597 ac_cs_silent=false
26598
26599 SHELL=\${CONFIG_SHELL-$SHELL}
26600 export SHELL
26601 _ASEOF
26602 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26603 ## -------------------- ##
26604 ## M4sh Initialization. ##
26605 ## -------------------- ##
26606
26607 # Be more Bourne compatible
26608 DUALCASE=1; export DUALCASE # for MKS sh
26609 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26610   emulate sh
26611   NULLCMD=:
26612   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26613   # is contrary to our usage.  Disable this feature.
26614   alias -g '${1+"$@"}'='"$@"'
26615   setopt NO_GLOB_SUBST
26616 else
26617   case `(set -o) 2>/dev/null` in #(
26618   *posix*) :
26619     set -o posix ;; #(
26620   *) :
26621      ;;
26622 esac
26623 fi
26624
26625
26626 as_nl='
26627 '
26628 export as_nl
26629 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26630 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26631 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26632 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26633 # Prefer a ksh shell builtin over an external printf program on Solaris,
26634 # but without wasting forks for bash or zsh.
26635 if test -z "$BASH_VERSION$ZSH_VERSION" \
26636     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26637   as_echo='print -r --'
26638   as_echo_n='print -rn --'
26639 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26640   as_echo='printf %s\n'
26641   as_echo_n='printf %s'
26642 else
26643   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26644     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26645     as_echo_n='/usr/ucb/echo -n'
26646   else
26647     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26648     as_echo_n_body='eval
26649       arg=$1;
26650       case $arg in #(
26651       *"$as_nl"*)
26652         expr "X$arg" : "X\\(.*\\)$as_nl";
26653         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26654       esac;
26655       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26656     '
26657     export as_echo_n_body
26658     as_echo_n='sh -c $as_echo_n_body as_echo'
26659   fi
26660   export as_echo_body
26661   as_echo='sh -c $as_echo_body as_echo'
26662 fi
26663
26664 # The user is always right.
26665 if test "${PATH_SEPARATOR+set}" != set; then
26666   PATH_SEPARATOR=:
26667   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26668     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26669       PATH_SEPARATOR=';'
26670   }
26671 fi
26672
26673
26674 # IFS
26675 # We need space, tab and new line, in precisely that order.  Quoting is
26676 # there to prevent editors from complaining about space-tab.
26677 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26678 # splitting by setting IFS to empty value.)
26679 IFS=" ""        $as_nl"
26680
26681 # Find who we are.  Look in the path if we contain no directory separator.
26682 case $0 in #((
26683   *[\\/]* ) as_myself=$0 ;;
26684   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26685 for as_dir in $PATH
26686 do
26687   IFS=$as_save_IFS
26688   test -z "$as_dir" && as_dir=.
26689     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26690   done
26691 IFS=$as_save_IFS
26692
26693      ;;
26694 esac
26695 # We did not find ourselves, most probably we were run as `sh COMMAND'
26696 # in which case we are not to be found in the path.
26697 if test "x$as_myself" = x; then
26698   as_myself=$0
26699 fi
26700 if test ! -f "$as_myself"; then
26701   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26702   exit 1
26703 fi
26704
26705 # Unset variables that we do not need and which cause bugs (e.g. in
26706 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26707 # suppresses any "Segmentation fault" message there.  '((' could
26708 # trigger a bug in pdksh 5.2.14.
26709 for as_var in BASH_ENV ENV MAIL MAILPATH
26710 do eval test x\${$as_var+set} = xset \
26711   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26712 done
26713 PS1='$ '
26714 PS2='> '
26715 PS4='+ '
26716
26717 # NLS nuisances.
26718 LC_ALL=C
26719 export LC_ALL
26720 LANGUAGE=C
26721 export LANGUAGE
26722
26723 # CDPATH.
26724 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26725
26726
26727 # as_fn_error ERROR [LINENO LOG_FD]
26728 # ---------------------------------
26729 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26730 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26731 # script with status $?, using 1 if that was 0.
26732 as_fn_error ()
26733 {
26734   as_status=$?; test $as_status -eq 0 && as_status=1
26735   if test "$3"; then
26736     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26737     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26738   fi
26739   $as_echo "$as_me: error: $1" >&2
26740   as_fn_exit $as_status
26741 } # as_fn_error
26742
26743
26744 # as_fn_set_status STATUS
26745 # -----------------------
26746 # Set $? to STATUS, without forking.
26747 as_fn_set_status ()
26748 {
26749   return $1
26750 } # as_fn_set_status
26751
26752 # as_fn_exit STATUS
26753 # -----------------
26754 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26755 as_fn_exit ()
26756 {
26757   set +e
26758   as_fn_set_status $1
26759   exit $1
26760 } # as_fn_exit
26761
26762 # as_fn_unset VAR
26763 # ---------------
26764 # Portably unset VAR.
26765 as_fn_unset ()
26766 {
26767   { eval $1=; unset $1;}
26768 }
26769 as_unset=as_fn_unset
26770 # as_fn_append VAR VALUE
26771 # ----------------------
26772 # Append the text in VALUE to the end of the definition contained in VAR. Take
26773 # advantage of any shell optimizations that allow amortized linear growth over
26774 # repeated appends, instead of the typical quadratic growth present in naive
26775 # implementations.
26776 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26777   eval 'as_fn_append ()
26778   {
26779     eval $1+=\$2
26780   }'
26781 else
26782   as_fn_append ()
26783   {
26784     eval $1=\$$1\$2
26785   }
26786 fi # as_fn_append
26787
26788 # as_fn_arith ARG...
26789 # ------------------
26790 # Perform arithmetic evaluation on the ARGs, and store the result in the
26791 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26792 # must be portable across $(()) and expr.
26793 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26794   eval 'as_fn_arith ()
26795   {
26796     as_val=$(( $* ))
26797   }'
26798 else
26799   as_fn_arith ()
26800   {
26801     as_val=`expr "$@" || test $? -eq 1`
26802   }
26803 fi # as_fn_arith
26804
26805
26806 if expr a : '\(a\)' >/dev/null 2>&1 &&
26807    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26808   as_expr=expr
26809 else
26810   as_expr=false
26811 fi
26812
26813 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26814   as_basename=basename
26815 else
26816   as_basename=false
26817 fi
26818
26819 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26820   as_dirname=dirname
26821 else
26822   as_dirname=false
26823 fi
26824
26825 as_me=`$as_basename -- "$0" ||
26826 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26827          X"$0" : 'X\(//\)$' \| \
26828          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26829 $as_echo X/"$0" |
26830     sed '/^.*\/\([^/][^/]*\)\/*$/{
26831             s//\1/
26832             q
26833           }
26834           /^X\/\(\/\/\)$/{
26835             s//\1/
26836             q
26837           }
26838           /^X\/\(\/\).*/{
26839             s//\1/
26840             q
26841           }
26842           s/.*/./; q'`
26843
26844 # Avoid depending upon Character Ranges.
26845 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26846 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26847 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26848 as_cr_digits='0123456789'
26849 as_cr_alnum=$as_cr_Letters$as_cr_digits
26850
26851 ECHO_C= ECHO_N= ECHO_T=
26852 case `echo -n x` in #(((((
26853 -n*)
26854   case `echo 'xy\c'` in
26855   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26856   xy)  ECHO_C='\c';;
26857   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26858        ECHO_T=' ';;
26859   esac;;
26860 *)
26861   ECHO_N='-n';;
26862 esac
26863
26864 rm -f conf$$ conf$$.exe conf$$.file
26865 if test -d conf$$.dir; then
26866   rm -f conf$$.dir/conf$$.file
26867 else
26868   rm -f conf$$.dir
26869   mkdir conf$$.dir 2>/dev/null
26870 fi
26871 if (echo >conf$$.file) 2>/dev/null; then
26872   if ln -s conf$$.file conf$$ 2>/dev/null; then
26873     as_ln_s='ln -s'
26874     # ... but there are two gotchas:
26875     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26876     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26877     # In both cases, we have to default to `cp -p'.
26878     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26879       as_ln_s='cp -p'
26880   elif ln conf$$.file conf$$ 2>/dev/null; then
26881     as_ln_s=ln
26882   else
26883     as_ln_s='cp -p'
26884   fi
26885 else
26886   as_ln_s='cp -p'
26887 fi
26888 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26889 rmdir conf$$.dir 2>/dev/null
26890
26891
26892 # as_fn_mkdir_p
26893 # -------------
26894 # Create "$as_dir" as a directory, including parents if necessary.
26895 as_fn_mkdir_p ()
26896 {
26897
26898   case $as_dir in #(
26899   -*) as_dir=./$as_dir;;
26900   esac
26901   test -d "$as_dir" || eval $as_mkdir_p || {
26902     as_dirs=
26903     while :; do
26904       case $as_dir in #(
26905       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26906       *) as_qdir=$as_dir;;
26907       esac
26908       as_dirs="'$as_qdir' $as_dirs"
26909       as_dir=`$as_dirname -- "$as_dir" ||
26910 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26911          X"$as_dir" : 'X\(//\)[^/]' \| \
26912          X"$as_dir" : 'X\(//\)$' \| \
26913          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26914 $as_echo X"$as_dir" |
26915     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26916             s//\1/
26917             q
26918           }
26919           /^X\(\/\/\)[^/].*/{
26920             s//\1/
26921             q
26922           }
26923           /^X\(\/\/\)$/{
26924             s//\1/
26925             q
26926           }
26927           /^X\(\/\).*/{
26928             s//\1/
26929             q
26930           }
26931           s/.*/./; q'`
26932       test -d "$as_dir" && break
26933     done
26934     test -z "$as_dirs" || eval "mkdir $as_dirs"
26935   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26936
26937
26938 } # as_fn_mkdir_p
26939 if mkdir -p . 2>/dev/null; then
26940   as_mkdir_p='mkdir -p "$as_dir"'
26941 else
26942   test -d ./-p && rmdir ./-p
26943   as_mkdir_p=false
26944 fi
26945
26946 if test -x / >/dev/null 2>&1; then
26947   as_test_x='test -x'
26948 else
26949   if ls -dL / >/dev/null 2>&1; then
26950     as_ls_L_option=L
26951   else
26952     as_ls_L_option=
26953   fi
26954   as_test_x='
26955     eval sh -c '\''
26956       if test -d "$1"; then
26957         test -d "$1/.";
26958       else
26959         case $1 in #(
26960         -*)set "./$1";;
26961         esac;
26962         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26963         ???[sx]*):;;*)false;;esac;fi
26964     '\'' sh
26965   '
26966 fi
26967 as_executable_p=$as_test_x
26968
26969 # Sed expression to map a string onto a valid CPP name.
26970 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26971
26972 # Sed expression to map a string onto a valid variable name.
26973 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26974
26975
26976 exec 6>&1
26977 ## ----------------------------------- ##
26978 ## Main body of $CONFIG_STATUS script. ##
26979 ## ----------------------------------- ##
26980 _ASEOF
26981 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26982
26983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26984 # Save the log message, to keep $0 and so on meaningful, and to
26985 # report actual input values of CONFIG_FILES etc. instead of their
26986 # values after options handling.
26987 ac_log="
26988 This file was extended by $as_me, which was
26989 generated by GNU Autoconf 2.64.  Invocation command line was
26990
26991   CONFIG_FILES    = $CONFIG_FILES
26992   CONFIG_HEADERS  = $CONFIG_HEADERS
26993   CONFIG_LINKS    = $CONFIG_LINKS
26994   CONFIG_COMMANDS = $CONFIG_COMMANDS
26995   $ $0 $@
26996
26997 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26998 "
26999
27000 _ACEOF
27001
27002 case $ac_config_files in *"
27003 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27004 esac
27005
27006 case $ac_config_headers in *"
27007 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27008 esac
27009
27010
27011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27012 # Files that config.status was made for.
27013 config_files="$ac_config_files"
27014 config_headers="$ac_config_headers"
27015 config_commands="$ac_config_commands"
27016
27017 _ACEOF
27018
27019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27020 ac_cs_usage="\
27021 \`$as_me' instantiates files and other configuration actions
27022 from templates according to the current configuration.  Unless the files
27023 and actions are specified as TAGs, all are instantiated by default.
27024
27025 Usage: $0 [OPTION]... [TAG]...
27026
27027   -h, --help       print this help, then exit
27028   -V, --version    print version number and configuration settings, then exit
27029   -q, --quiet, --silent
27030                    do not print progress messages
27031   -d, --debug      don't remove temporary files
27032       --recheck    update $as_me by reconfiguring in the same conditions
27033       --file=FILE[:TEMPLATE]
27034                    instantiate the configuration file FILE
27035       --header=FILE[:TEMPLATE]
27036                    instantiate the configuration header FILE
27037
27038 Configuration files:
27039 $config_files
27040
27041 Configuration headers:
27042 $config_headers
27043
27044 Configuration commands:
27045 $config_commands
27046
27047 Report bugs to the package provider."
27048
27049 _ACEOF
27050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27051 ac_cs_version="\\
27052 config.status
27053 configured by $0, generated by GNU Autoconf 2.64,
27054   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27055
27056 Copyright (C) 2009 Free Software Foundation, Inc.
27057 This config.status script is free software; the Free Software Foundation
27058 gives unlimited permission to copy, distribute and modify it."
27059
27060 ac_pwd='$ac_pwd'
27061 srcdir='$srcdir'
27062 AWK='$AWK'
27063 test -n "\$AWK" || AWK=awk
27064 _ACEOF
27065
27066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27067 # The default lists apply if the user does not specify any file.
27068 ac_need_defaults=:
27069 while test $# != 0
27070 do
27071   case $1 in
27072   --*=*)
27073     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27074     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27075     ac_shift=:
27076     ;;
27077   *)
27078     ac_option=$1
27079     ac_optarg=$2
27080     ac_shift=shift
27081     ;;
27082   esac
27083
27084   case $ac_option in
27085   # Handling of the options.
27086   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27087     ac_cs_recheck=: ;;
27088   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27089     $as_echo "$ac_cs_version"; exit ;;
27090   --debug | --debu | --deb | --de | --d | -d )
27091     debug=: ;;
27092   --file | --fil | --fi | --f )
27093     $ac_shift
27094     case $ac_optarg in
27095     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27096     esac
27097     as_fn_append CONFIG_FILES " '$ac_optarg'"
27098     ac_need_defaults=false;;
27099   --header | --heade | --head | --hea )
27100     $ac_shift
27101     case $ac_optarg in
27102     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27103     esac
27104     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27105     ac_need_defaults=false;;
27106   --he | --h)
27107     # Conflict between --help and --header
27108     as_fn_error "ambiguous option: \`$1'
27109 Try \`$0 --help' for more information.";;
27110   --help | --hel | -h )
27111     $as_echo "$ac_cs_usage"; exit ;;
27112   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27113   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27114     ac_cs_silent=: ;;
27115
27116   # This is an error.
27117   -*) as_fn_error "unrecognized option: \`$1'
27118 Try \`$0 --help' for more information." ;;
27119
27120   *) as_fn_append ac_config_targets " $1"
27121      ac_need_defaults=false ;;
27122
27123   esac
27124   shift
27125 done
27126
27127 ac_configure_extra_args=
27128
27129 if $ac_cs_silent; then
27130   exec 6>/dev/null
27131   ac_configure_extra_args="$ac_configure_extra_args --silent"
27132 fi
27133
27134 _ACEOF
27135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27136 if \$ac_cs_recheck; then
27137   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27138   shift
27139   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27140   CONFIG_SHELL='$SHELL'
27141   export CONFIG_SHELL
27142   exec "\$@"
27143 fi
27144
27145 _ACEOF
27146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27147 exec 5>>config.log
27148 {
27149   echo
27150   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27151 ## Running $as_me. ##
27152 _ASBOX
27153   $as_echo "$ac_log"
27154 } >&5
27155
27156 _ACEOF
27157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27158 #
27159 # INIT-COMMANDS
27160 #
27161 subdirs='$subdirs'
27162
27163 _ACEOF
27164
27165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27166
27167 # Handling of arguments.
27168 for ac_config_target in $ac_config_targets
27169 do
27170   case $ac_config_target in
27171     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27172     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27173     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27174     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27175     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27176     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27177
27178   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27179   esac
27180 done
27181
27182
27183 # If the user did not use the arguments to specify the items to instantiate,
27184 # then the envvar interface is used.  Set only those that are not.
27185 # We use the long form for the default assignment because of an extremely
27186 # bizarre bug on SunOS 4.1.3.
27187 if $ac_need_defaults; then
27188   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27189   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27190   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27191 fi
27192
27193 # Have a temporary directory for convenience.  Make it in the build tree
27194 # simply because there is no reason against having it here, and in addition,
27195 # creating and moving files from /tmp can sometimes cause problems.
27196 # Hook for its removal unless debugging.
27197 # Note that there is a small window in which the directory will not be cleaned:
27198 # after its creation but before its name has been assigned to `$tmp'.
27199 $debug ||
27200 {
27201   tmp=
27202   trap 'exit_status=$?
27203   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27204 ' 0
27205   trap 'as_fn_exit 1' 1 2 13 15
27206 }
27207 # Create a (secure) tmp directory for tmp files.
27208
27209 {
27210   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27211   test -n "$tmp" && test -d "$tmp"
27212 }  ||
27213 {
27214   tmp=./conf$$-$RANDOM
27215   (umask 077 && mkdir "$tmp")
27216 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27217
27218 # Set up the scripts for CONFIG_FILES section.
27219 # No need to generate them if there are no CONFIG_FILES.
27220 # This happens for instance with `./config.status config.h'.
27221 if test -n "$CONFIG_FILES"; then
27222
27223 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27224   ac_cs_awk_getline=:
27225   ac_cs_awk_pipe_init=
27226   ac_cs_awk_read_file='
27227       while ((getline aline < (F[key])) > 0)
27228         print(aline)
27229       close(F[key])'
27230   ac_cs_awk_pipe_fini=
27231 else
27232   ac_cs_awk_getline=false
27233   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27234   ac_cs_awk_read_file='
27235       print "|#_!!_#|"
27236       print "cat " F[key] " &&"
27237       '$ac_cs_awk_pipe_init
27238   # The final `:' finishes the AND list.
27239   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27240 fi
27241 ac_cr=`echo X | tr X '\015'`
27242 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27243 # But we know of no other shell where ac_cr would be empty at this
27244 # point, so we can use a bashism as a fallback.
27245 if test "x$ac_cr" = x; then
27246   eval ac_cr=\$\'\\r\'
27247 fi
27248 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27249 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27250   ac_cs_awk_cr='\r'
27251 else
27252   ac_cs_awk_cr=$ac_cr
27253 fi
27254
27255 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27256 _ACEOF
27257
27258 # Create commands to substitute file output variables.
27259 {
27260   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27261   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27262   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27263   echo "_ACAWK" &&
27264   echo "_ACEOF"
27265 } >conf$$files.sh &&
27266 . ./conf$$files.sh ||
27267   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27268 rm -f conf$$files.sh
27269
27270 {
27271   echo "cat >conf$$subs.awk <<_ACEOF" &&
27272   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27273   echo "_ACEOF"
27274 } >conf$$subs.sh ||
27275   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27276 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27277 ac_delim='%!_!# '
27278 for ac_last_try in false false false false false :; do
27279   . ./conf$$subs.sh ||
27280     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27281
27282   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27283   if test $ac_delim_n = $ac_delim_num; then
27284     break
27285   elif $ac_last_try; then
27286     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27287   else
27288     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27289   fi
27290 done
27291 rm -f conf$$subs.sh
27292
27293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27294 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27295 _ACEOF
27296 sed -n '
27297 h
27298 s/^/S["/; s/!.*/"]=/
27299 p
27300 g
27301 s/^[^!]*!//
27302 :repl
27303 t repl
27304 s/'"$ac_delim"'$//
27305 t delim
27306 :nl
27307 h
27308 s/\(.\{148\}\).*/\1/
27309 t more1
27310 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27311 p
27312 n
27313 b repl
27314 :more1
27315 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27316 p
27317 g
27318 s/.\{148\}//
27319 t nl
27320 :delim
27321 h
27322 s/\(.\{148\}\).*/\1/
27323 t more2
27324 s/["\\]/\\&/g; s/^/"/; s/$/"/
27325 p
27326 b
27327 :more2
27328 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27329 p
27330 g
27331 s/.\{148\}//
27332 t delim
27333 ' <conf$$subs.awk | sed '
27334 /^[^""]/{
27335   N
27336   s/\n//
27337 }
27338 ' >>$CONFIG_STATUS || ac_write_fail=1
27339 rm -f conf$$subs.awk
27340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27341 _ACAWK
27342 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27343   for (key in S) S_is_set[key] = 1
27344   FS = "\a"
27345   \$ac_cs_awk_pipe_init
27346 }
27347 {
27348   line = $ 0
27349   nfields = split(line, field, "@")
27350   substed = 0
27351   len = length(field[1])
27352   for (i = 2; i < nfields; i++) {
27353     key = field[i]
27354     keylen = length(key)
27355     if (S_is_set[key]) {
27356       value = S[key]
27357       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27358       len += length(value) + length(field[++i])
27359       substed = 1
27360     } else
27361       len += 1 + keylen
27362   }
27363   if (nfields == 3 && !substed) {
27364     key = field[2]
27365     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
27366       \$ac_cs_awk_read_file
27367       next
27368     }
27369   }
27370   print line
27371 }
27372 \$ac_cs_awk_pipe_fini
27373 _ACAWK
27374 _ACEOF
27375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27376 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27377   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27378 else
27379   cat
27380 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27381   || as_fn_error "could not setup config files machinery" "$LINENO" 5
27382 _ACEOF
27383
27384 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27385 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27386 # trailing colons and then remove the whole line if VPATH becomes empty
27387 # (actually we leave an empty line to preserve line numbers).
27388 if test "x$srcdir" = x.; then
27389   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27390 s/:*\$(srcdir):*/:/
27391 s/:*\${srcdir}:*/:/
27392 s/:*@srcdir@:*/:/
27393 s/^\([^=]*=[     ]*\):*/\1/
27394 s/:*$//
27395 s/^[^=]*=[       ]*$//
27396 }'
27397 fi
27398
27399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27400 fi # test -n "$CONFIG_FILES"
27401
27402 # Set up the scripts for CONFIG_HEADERS section.
27403 # No need to generate them if there are no CONFIG_HEADERS.
27404 # This happens for instance with `./config.status Makefile'.
27405 if test -n "$CONFIG_HEADERS"; then
27406 cat >"$tmp/defines.awk" <<\_ACAWK ||
27407 BEGIN {
27408 _ACEOF
27409
27410 # Transform confdefs.h into an awk script `defines.awk', embedded as
27411 # here-document in config.status, that substitutes the proper values into
27412 # config.h.in to produce config.h.
27413
27414 # Create a delimiter string that does not exist in confdefs.h, to ease
27415 # handling of long lines.
27416 ac_delim='%!_!# '
27417 for ac_last_try in false false :; do
27418   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27419   if test -z "$ac_t"; then
27420     break
27421   elif $ac_last_try; then
27422     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27423   else
27424     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27425   fi
27426 done
27427
27428 # For the awk script, D is an array of macro values keyed by name,
27429 # likewise P contains macro parameters if any.  Preserve backslash
27430 # newline sequences.
27431
27432 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27433 sed -n '
27434 s/.\{148\}/&'"$ac_delim"'/g
27435 t rset
27436 :rset
27437 s/^[     ]*#[    ]*define[       ][      ]*/ /
27438 t def
27439 d
27440 :def
27441 s/\\$//
27442 t bsnl
27443 s/["\\]/\\&/g
27444 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27445 D["\1"]=" \3"/p
27446 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
27447 d
27448 :bsnl
27449 s/["\\]/\\&/g
27450 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27451 D["\1"]=" \3\\\\\\n"\\/p
27452 t cont
27453 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27454 t cont
27455 d
27456 :cont
27457 n
27458 s/.\{148\}/&'"$ac_delim"'/g
27459 t clear
27460 :clear
27461 s/\\$//
27462 t bsnlc
27463 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27464 d
27465 :bsnlc
27466 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27467 b cont
27468 ' <confdefs.h | sed '
27469 s/'"$ac_delim"'/"\\\
27470 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27471
27472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27473   for (key in D) D_is_set[key] = 1
27474   FS = "\a"
27475 }
27476 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27477   line = \$ 0
27478   split(line, arg, " ")
27479   if (arg[1] == "#") {
27480     defundef = arg[2]
27481     mac1 = arg[3]
27482   } else {
27483     defundef = substr(arg[1], 2)
27484     mac1 = arg[2]
27485   }
27486   split(mac1, mac2, "(") #)
27487   macro = mac2[1]
27488   prefix = substr(line, 1, index(line, defundef) - 1)
27489   if (D_is_set[macro]) {
27490     # Preserve the white space surrounding the "#".
27491     print prefix "define", macro P[macro] D[macro]
27492     next
27493   } else {
27494     # Replace #undef with comments.  This is necessary, for example,
27495     # in the case of _POSIX_SOURCE, which is predefined and required
27496     # on some systems where configure will not decide to define it.
27497     if (defundef == "undef") {
27498       print "/*", prefix defundef, macro, "*/"
27499       next
27500     }
27501   }
27502 }
27503 { print }
27504 _ACAWK
27505 _ACEOF
27506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27507   as_fn_error "could not setup config headers machinery" "$LINENO" 5
27508 fi # test -n "$CONFIG_HEADERS"
27509
27510
27511 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27512 shift
27513 for ac_tag
27514 do
27515   case $ac_tag in
27516   :[FHLC]) ac_mode=$ac_tag; continue;;
27517   esac
27518   case $ac_mode$ac_tag in
27519   :[FHL]*:*);;
27520   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27521   :[FH]-) ac_tag=-:-;;
27522   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27523   esac
27524   ac_save_IFS=$IFS
27525   IFS=:
27526   set x $ac_tag
27527   IFS=$ac_save_IFS
27528   shift
27529   ac_file=$1
27530   shift
27531
27532   case $ac_mode in
27533   :L) ac_source=$1;;
27534   :[FH])
27535     ac_file_inputs=
27536     for ac_f
27537     do
27538       case $ac_f in
27539       -) ac_f="$tmp/stdin";;
27540       *) # Look for the file first in the build tree, then in the source tree
27541          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27542          # because $ac_f cannot contain `:'.
27543          test -f "$ac_f" ||
27544            case $ac_f in
27545            [\\/$]*) false;;
27546            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27547            esac ||
27548            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27549       esac
27550       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27551       as_fn_append ac_file_inputs " '$ac_f'"
27552     done
27553
27554     # Let's still pretend it is `configure' which instantiates (i.e., don't
27555     # use $as_me), people would be surprised to read:
27556     #    /* config.h.  Generated by config.status.  */
27557     configure_input='Generated from '`
27558           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27559         `' by configure.'
27560     if test x"$ac_file" != x-; then
27561       configure_input="$ac_file.  $configure_input"
27562       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27563 $as_echo "$as_me: creating $ac_file" >&6;}
27564     fi
27565     # Neutralize special characters interpreted by sed in replacement strings.
27566     case $configure_input in #(
27567     *\&* | *\|* | *\\* )
27568        ac_sed_conf_input=`$as_echo "$configure_input" |
27569        sed 's/[\\\\&|]/\\\\&/g'`;; #(
27570     *) ac_sed_conf_input=$configure_input;;
27571     esac
27572
27573     case $ac_tag in
27574     *:-:* | *:-) cat >"$tmp/stdin" \
27575       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27576     esac
27577     ;;
27578   esac
27579
27580   ac_dir=`$as_dirname -- "$ac_file" ||
27581 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27582          X"$ac_file" : 'X\(//\)[^/]' \| \
27583          X"$ac_file" : 'X\(//\)$' \| \
27584          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27585 $as_echo X"$ac_file" |
27586     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27587             s//\1/
27588             q
27589           }
27590           /^X\(\/\/\)[^/].*/{
27591             s//\1/
27592             q
27593           }
27594           /^X\(\/\/\)$/{
27595             s//\1/
27596             q
27597           }
27598           /^X\(\/\).*/{
27599             s//\1/
27600             q
27601           }
27602           s/.*/./; q'`
27603   as_dir="$ac_dir"; as_fn_mkdir_p
27604   ac_builddir=.
27605
27606 case "$ac_dir" in
27607 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27608 *)
27609   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27610   # A ".." for each directory in $ac_dir_suffix.
27611   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27612   case $ac_top_builddir_sub in
27613   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27614   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27615   esac ;;
27616 esac
27617 ac_abs_top_builddir=$ac_pwd
27618 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27619 # for backward compatibility:
27620 ac_top_builddir=$ac_top_build_prefix
27621
27622 case $srcdir in
27623   .)  # We are building in place.
27624     ac_srcdir=.
27625     ac_top_srcdir=$ac_top_builddir_sub
27626     ac_abs_top_srcdir=$ac_pwd ;;
27627   [\\/]* | ?:[\\/]* )  # Absolute name.
27628     ac_srcdir=$srcdir$ac_dir_suffix;
27629     ac_top_srcdir=$srcdir
27630     ac_abs_top_srcdir=$srcdir ;;
27631   *) # Relative name.
27632     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27633     ac_top_srcdir=$ac_top_build_prefix$srcdir
27634     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27635 esac
27636 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27637
27638
27639   case $ac_mode in
27640   :F)
27641   #
27642   # CONFIG_FILE
27643   #
27644
27645 _ACEOF
27646
27647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27648 # If the template does not know about datarootdir, expand it.
27649 # FIXME: This hack should be removed a few years after 2.60.
27650 ac_datarootdir_hack=; ac_datarootdir_seen=
27651 ac_sed_dataroot='
27652 /datarootdir/ {
27653   p
27654   q
27655 }
27656 /@datadir@/p
27657 /@docdir@/p
27658 /@infodir@/p
27659 /@localedir@/p
27660 /@mandir@/p'
27661 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27662 *datarootdir*) ac_datarootdir_seen=yes;;
27663 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27664   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27665 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27666 _ACEOF
27667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27668   ac_datarootdir_hack='
27669   s&@datadir@&$datadir&g
27670   s&@docdir@&$docdir&g
27671   s&@infodir@&$infodir&g
27672   s&@localedir@&$localedir&g
27673   s&@mandir@&$mandir&g
27674   s&\\\${datarootdir}&$datarootdir&g' ;;
27675 esac
27676 _ACEOF
27677
27678 # Neutralize VPATH when `$srcdir' = `.'.
27679 # Shell code in configure.ac might set extrasub.
27680 # FIXME: do we really want to maintain this feature?
27681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27682 ac_sed_extra="$ac_vpsub
27683 $extrasub
27684 _ACEOF
27685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27686 :t
27687 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27688 s|@configure_input@|$ac_sed_conf_input|;t t
27689 s&@top_builddir@&$ac_top_builddir_sub&;t t
27690 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27691 s&@srcdir@&$ac_srcdir&;t t
27692 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27693 s&@top_srcdir@&$ac_top_srcdir&;t t
27694 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27695 s&@builddir@&$ac_builddir&;t t
27696 s&@abs_builddir@&$ac_abs_builddir&;t t
27697 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27698 $ac_datarootdir_hack
27699 "
27700 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27701 if $ac_cs_awk_getline; then
27702   $AWK -f "$tmp/subs.awk"
27703 else
27704   $AWK -f "$tmp/subs.awk" | $SHELL
27705 fi >$tmp/out \
27706   || as_fn_error "could not create $ac_file" "$LINENO" 5
27707
27708 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27709   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27710   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27711   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27712 which seems to be undefined.  Please make sure it is defined." >&5
27713 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27714 which seems to be undefined.  Please make sure it is defined." >&2;}
27715
27716   rm -f "$tmp/stdin"
27717   case $ac_file in
27718   -) cat "$tmp/out" && rm -f "$tmp/out";;
27719   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27720   esac \
27721   || as_fn_error "could not create $ac_file" "$LINENO" 5
27722  ;;
27723   :H)
27724   #
27725   # CONFIG_HEADER
27726   #
27727   if test x"$ac_file" != x-; then
27728     {
27729       $as_echo "/* $configure_input  */" \
27730       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27731     } >"$tmp/config.h" \
27732       || as_fn_error "could not create $ac_file" "$LINENO" 5
27733     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27734       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27735 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27736     else
27737       rm -f "$ac_file"
27738       mv "$tmp/config.h" "$ac_file" \
27739         || as_fn_error "could not create $ac_file" "$LINENO" 5
27740     fi
27741   else
27742     $as_echo "/* $configure_input  */" \
27743       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27744       || as_fn_error "could not create -" "$LINENO" 5
27745   fi
27746  ;;
27747
27748   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27749 $as_echo "$as_me: executing $ac_file commands" >&6;}
27750  ;;
27751   esac
27752
27753
27754   case $ac_file$ac_mode in
27755     "as":F) chmod +x as ;;
27756     "collect-ld":F) chmod +x collect-ld ;;
27757     "nm":F) chmod +x nm ;;
27758     "default":C)
27759 case ${CONFIG_HEADERS} in
27760   *auto-host.h:config.in*)
27761   echo > cstamp-h ;;
27762 esac
27763 # Make sure all the subdirs exist.
27764 for d in $subdirs doc build c-family
27765 do
27766     test -d $d || mkdir $d
27767 done
27768  ;;
27769
27770   esac
27771 done # for ac_tag
27772
27773
27774 as_fn_exit 0
27775 _ACEOF
27776 ac_clean_files=$ac_clean_files_save
27777
27778 test $ac_write_fail = 0 ||
27779   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27780
27781
27782 # configure is writing to config.log, and then calls config.status.
27783 # config.status does its own redirection, appending to config.log.
27784 # Unfortunately, on DOS this fails, as config.log is still kept open
27785 # by configure, so config.status won't be able to write to it; its
27786 # output is simply discarded.  So we exec the FD to /dev/null,
27787 # effectively closing config.log, so it can be properly (re)opened and
27788 # appended to by config.status.  When coming back to configure, we
27789 # need to make the FD available again.
27790 if test "$no_create" != yes; then
27791   ac_cs_success=:
27792   ac_config_status_args=
27793   test "$silent" = yes &&
27794     ac_config_status_args="$ac_config_status_args --quiet"
27795   exec 5>/dev/null
27796   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27797   exec 5>>config.log
27798   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27799   # would make configure fail if this is the last instruction.
27800   $ac_cs_success || as_fn_exit $?
27801 fi
27802 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27803   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27804 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27805 fi
27806
27807