OSDN Git Service

Remove freebsd1 from libtool.m4 macros and config.rpath.
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178     PATH=/empty FPATH=/empty; export PATH FPATH
179     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 PPLINC
608 PPLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 tm_defines
622 tm_include_list
623 tm_file_list
624 thread_file
625 out_object_file
626 out_file
627 objc_boehm_gc
628 md_file
629 local_prefix
630 lang_tree_files
631 lang_specs_files
632 lang_opt_files
633 install
634 out_host_hook_obj
635 host_xm_defines
636 host_xm_include_list
637 host_xm_file_list
638 host_exeext
639 gcc_gxx_include_dir
640 gcc_config_arguments
641 float_h_file
642 extra_programs
643 extra_passes
644 extra_parts
645 extra_objs
646 extra_headers_list
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 slibdir
671 dollar
672 gcc_tooldir
673 enable_lto
674 MAINT
675 zlibinc
676 zlibdir
677 HOST_LIBS
678 GGC
679 libgcc_visibility
680 gcc_cv_readelf
681 gcc_cv_objdump
682 ORIGINAL_NM_FOR_TARGET
683 gcc_cv_nm
684 ORIGINAL_LD_FOR_TARGET
685 ORIGINAL_PLUGIN_LD_FOR_TARGET
686 gcc_cv_ld
687 ORIGINAL_AS_FOR_TARGET
688 gcc_cv_as
689 enable_fast_install
690 objdir
691 OTOOL64
692 OTOOL
693 LIPO
694 NMEDIT
695 DSYMUTIL
696 STRIP
697 OBJDUMP
698 ac_ct_DUMPBIN
699 DUMPBIN
700 LD
701 FGREP
702 SED
703 LIBTOOL
704 collect2
705 STMP_FIXINC
706 BUILD_LDFLAGS
707 BUILD_CFLAGS
708 CC_FOR_BUILD
709 inhibit_libc
710 SYSTEM_HEADER_DIR
711 ALL
712 CROSS
713 CATOBJEXT
714 GENCAT
715 INSTOBJEXT
716 DATADIRNAME
717 CATALOGS
718 POSUB
719 GMSGFMT
720 XGETTEXT
721 INCINTL
722 LIBINTL_DEP
723 LIBINTL
724 USE_NLS
725 extra_opt_files
726 extra_modes_file
727 gthread_flags
728 objext
729 manext
730 LIBICONV_DEP
731 LTLIBICONV
732 LIBICONV
733 LDEXP_LIB
734 GNAT_LIBEXC
735 COLLECT2_LIBS
736 CXXCPP
737 AR
738 NM
739 BISON
740 FLEX
741 GENERATED_MANPAGES
742 BUILD_INFO
743 MAKEINFO
744 have_mktemp_command
745 make_compare_target
746 INSTALL_DATA
747 INSTALL_PROGRAM
748 INSTALL
749 ranlib_flags
750 RANLIB
751 LN
752 LN_S
753 AWK
754 SET_MAKE
755 REPORT_BUGS_TEXI
756 REPORT_BUGS_TO
757 PKGVERSION
758 CONFIGURE_SPECS
759 CROSS_SYSTEM_HEADER_DIR
760 TARGET_SYSTEM_ROOT_DEFINE
761 TARGET_SYSTEM_ROOT
762 enable_shared
763 enable_fixed_point
764 enable_decimal_float
765 enable_multilib
766 ENABLE_BUILD_WITH_CXX
767 coverage_flags
768 valgrind_command
769 valgrind_path_defines
770 valgrind_path
771 TREEBROWSER
772 nocommon_flag
773 warn_cxxflags
774 warn_cflags
775 c_strict_warn
776 strict_warn
777 c_loose_warn
778 loose_warn
779 EGREP
780 GREP
781 CPP
782 OUTPUT_OPTION
783 NO_MINUS_C_MINUS_O
784 GNATMAKE
785 GNATBIND
786 ac_ct_CXX
787 CXXFLAGS
788 CXX
789 OBJEXT
790 EXEEXT
791 ac_ct_CC
792 CPPFLAGS
793 LDFLAGS
794 CFLAGS
795 CC
796 GENINSRC
797 target_subdir
798 host_subdir
799 build_subdir
800 build_libsubdir
801 target_noncanonical
802 target_os
803 target_vendor
804 target_cpu
805 target
806 host_os
807 host_vendor
808 host_cpu
809 host
810 build_os
811 build_vendor
812 build_cpu
813 build
814 target_alias
815 host_alias
816 build_alias
817 LIBS
818 ECHO_T
819 ECHO_N
820 ECHO_C
821 DEFS
822 mandir
823 localedir
824 libdir
825 psdir
826 pdfdir
827 dvidir
828 htmldir
829 infodir
830 docdir
831 oldincludedir
832 includedir
833 localstatedir
834 sharedstatedir
835 sysconfdir
836 datadir
837 datarootdir
838 libexecdir
839 sbindir
840 bindir
841 program_transform_name
842 prefix
843 exec_prefix
844 PACKAGE_URL
845 PACKAGE_BUGREPORT
846 PACKAGE_STRING
847 PACKAGE_VERSION
848 PACKAGE_TARNAME
849 PACKAGE_NAME
850 PATH_SEPARATOR
851 SHELL'
852 ac_subst_files='option_includes
853 language_hooks'
854 ac_user_opts='
855 enable_option_checking
856 with_build_libsubdir
857 with_local_prefix
858 with_gxx_include_dir
859 with_cpp_install_dir
860 enable_generated_files_in_srcdir
861 with_gnu_ld
862 with_ld
863 with_demangler_in_ld
864 with_gnu_as
865 with_as
866 enable_largefile
867 enable_werror_always
868 enable_checking
869 enable_coverage
870 enable_gather_detailed_mem_stats
871 enable_build_with_cxx
872 with_stabs
873 enable_multilib
874 enable___cxa_atexit
875 enable_decimal_float
876 enable_fixed_point
877 enable_threads
878 enable_tls
879 enable_objc_gc
880 with_dwarf2
881 enable_shared
882 with_build_sysroot
883 with_sysroot
884 with_specs
885 with_pkgversion
886 with_bugurl
887 enable_languages
888 with_multilib_list
889 enable_rpath
890 with_libiconv_prefix
891 enable_initfini_array
892 enable_sjlj_exceptions
893 with_system_libunwind
894 enable_secureplt
895 enable_leading_mingw64_underscores
896 enable_cld
897 enable_frame_pointer
898 enable_win32_registry
899 enable_static
900 with_pic
901 enable_fast_install
902 enable_libtool_lock
903 with_plugin_ld
904 enable_gnu_indirect_function
905 enable_comdat
906 enable_gnu_unique_object
907 enable_linker_build_id
908 with_long_double_128
909 with_gc
910 with_system_zlib
911 enable_maintainer_mode
912 enable_version_specific_runtime_libs
913 with_slibdir
914 enable_plugin
915 enable_libquadmath_support
916 '
917       ac_precious_vars='build_alias
918 host_alias
919 target_alias
920 CC
921 CFLAGS
922 LDFLAGS
923 LIBS
924 CPPFLAGS
925 CXX
926 CXXFLAGS
927 CCC
928 CPP
929 CXXCPP
930 GMPLIBS
931 GMPINC
932 PPLLIBS
933 PPLINC
934 CLOOGLIBS
935 CLOOGINC'
936
937
938 # Initialize some variables set by options.
939 ac_init_help=
940 ac_init_version=false
941 ac_unrecognized_opts=
942 ac_unrecognized_sep=
943 # The variables have the same names as the options, with
944 # dashes changed to underlines.
945 cache_file=/dev/null
946 exec_prefix=NONE
947 no_create=
948 no_recursion=
949 prefix=NONE
950 program_prefix=NONE
951 program_suffix=NONE
952 program_transform_name=s,x,x,
953 silent=
954 site=
955 srcdir=
956 verbose=
957 x_includes=NONE
958 x_libraries=NONE
959
960 # Installation directory options.
961 # These are left unexpanded so users can "make install exec_prefix=/foo"
962 # and all the variables that are supposed to be based on exec_prefix
963 # by default will actually change.
964 # Use braces instead of parens because sh, perl, etc. also accept them.
965 # (The list follows the same order as the GNU Coding Standards.)
966 bindir='${exec_prefix}/bin'
967 sbindir='${exec_prefix}/sbin'
968 libexecdir='${exec_prefix}/libexec'
969 datarootdir='${prefix}/share'
970 datadir='${datarootdir}'
971 sysconfdir='${prefix}/etc'
972 sharedstatedir='${prefix}/com'
973 localstatedir='${prefix}/var'
974 includedir='${prefix}/include'
975 oldincludedir='/usr/include'
976 docdir='${datarootdir}/doc/${PACKAGE}'
977 infodir='${datarootdir}/info'
978 htmldir='${docdir}'
979 dvidir='${docdir}'
980 pdfdir='${docdir}'
981 psdir='${docdir}'
982 libdir='${exec_prefix}/lib'
983 localedir='${datarootdir}/locale'
984 mandir='${datarootdir}/man'
985
986 ac_prev=
987 ac_dashdash=
988 for ac_option
989 do
990   # If the previous option needs an argument, assign it.
991   if test -n "$ac_prev"; then
992     eval $ac_prev=\$ac_option
993     ac_prev=
994     continue
995   fi
996
997   case $ac_option in
998   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
999   *)    ac_optarg=yes ;;
1000   esac
1001
1002   # Accept the important Cygnus configure options, so we can diagnose typos.
1003
1004   case $ac_dashdash$ac_option in
1005   --)
1006     ac_dashdash=yes ;;
1007
1008   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1009     ac_prev=bindir ;;
1010   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1011     bindir=$ac_optarg ;;
1012
1013   -build | --build | --buil | --bui | --bu)
1014     ac_prev=build_alias ;;
1015   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1016     build_alias=$ac_optarg ;;
1017
1018   -cache-file | --cache-file | --cache-fil | --cache-fi \
1019   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1020     ac_prev=cache_file ;;
1021   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1022   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1023     cache_file=$ac_optarg ;;
1024
1025   --config-cache | -C)
1026     cache_file=config.cache ;;
1027
1028   -datadir | --datadir | --datadi | --datad)
1029     ac_prev=datadir ;;
1030   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1031     datadir=$ac_optarg ;;
1032
1033   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1034   | --dataroo | --dataro | --datar)
1035     ac_prev=datarootdir ;;
1036   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1037   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1038     datarootdir=$ac_optarg ;;
1039
1040   -disable-* | --disable-*)
1041     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1042     # Reject names that are not valid shell variable names.
1043     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044       as_fn_error "invalid feature name: $ac_useropt"
1045     ac_useropt_orig=$ac_useropt
1046     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047     case $ac_user_opts in
1048       *"
1049 "enable_$ac_useropt"
1050 "*) ;;
1051       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1052          ac_unrecognized_sep=', ';;
1053     esac
1054     eval enable_$ac_useropt=no ;;
1055
1056   -docdir | --docdir | --docdi | --doc | --do)
1057     ac_prev=docdir ;;
1058   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059     docdir=$ac_optarg ;;
1060
1061   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062     ac_prev=dvidir ;;
1063   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064     dvidir=$ac_optarg ;;
1065
1066   -enable-* | --enable-*)
1067     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1068     # Reject names that are not valid shell variable names.
1069     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070       as_fn_error "invalid feature name: $ac_useropt"
1071     ac_useropt_orig=$ac_useropt
1072     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073     case $ac_user_opts in
1074       *"
1075 "enable_$ac_useropt"
1076 "*) ;;
1077       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1078          ac_unrecognized_sep=', ';;
1079     esac
1080     eval enable_$ac_useropt=\$ac_optarg ;;
1081
1082   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1083   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1084   | --exec | --exe | --ex)
1085     ac_prev=exec_prefix ;;
1086   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1087   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1088   | --exec=* | --exe=* | --ex=*)
1089     exec_prefix=$ac_optarg ;;
1090
1091   -gas | --gas | --ga | --g)
1092     # Obsolete; use --with-gas.
1093     with_gas=yes ;;
1094
1095   -help | --help | --hel | --he | -h)
1096     ac_init_help=long ;;
1097   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1098     ac_init_help=recursive ;;
1099   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1100     ac_init_help=short ;;
1101
1102   -host | --host | --hos | --ho)
1103     ac_prev=host_alias ;;
1104   -host=* | --host=* | --hos=* | --ho=*)
1105     host_alias=$ac_optarg ;;
1106
1107   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108     ac_prev=htmldir ;;
1109   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110   | --ht=*)
1111     htmldir=$ac_optarg ;;
1112
1113   -includedir | --includedir | --includedi | --included | --include \
1114   | --includ | --inclu | --incl | --inc)
1115     ac_prev=includedir ;;
1116   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1117   | --includ=* | --inclu=* | --incl=* | --inc=*)
1118     includedir=$ac_optarg ;;
1119
1120   -infodir | --infodir | --infodi | --infod | --info | --inf)
1121     ac_prev=infodir ;;
1122   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1123     infodir=$ac_optarg ;;
1124
1125   -libdir | --libdir | --libdi | --libd)
1126     ac_prev=libdir ;;
1127   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1128     libdir=$ac_optarg ;;
1129
1130   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1131   | --libexe | --libex | --libe)
1132     ac_prev=libexecdir ;;
1133   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1134   | --libexe=* | --libex=* | --libe=*)
1135     libexecdir=$ac_optarg ;;
1136
1137   -localedir | --localedir | --localedi | --localed | --locale)
1138     ac_prev=localedir ;;
1139   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1140     localedir=$ac_optarg ;;
1141
1142   -localstatedir | --localstatedir | --localstatedi | --localstated \
1143   | --localstate | --localstat | --localsta | --localst | --locals)
1144     ac_prev=localstatedir ;;
1145   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1146   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1147     localstatedir=$ac_optarg ;;
1148
1149   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150     ac_prev=mandir ;;
1151   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1152     mandir=$ac_optarg ;;
1153
1154   -nfp | --nfp | --nf)
1155     # Obsolete; use --without-fp.
1156     with_fp=no ;;
1157
1158   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1159   | --no-cr | --no-c | -n)
1160     no_create=yes ;;
1161
1162   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164     no_recursion=yes ;;
1165
1166   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1167   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1168   | --oldin | --oldi | --old | --ol | --o)
1169     ac_prev=oldincludedir ;;
1170   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1171   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1172   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1173     oldincludedir=$ac_optarg ;;
1174
1175   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176     ac_prev=prefix ;;
1177   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1178     prefix=$ac_optarg ;;
1179
1180   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1181   | --program-pre | --program-pr | --program-p)
1182     ac_prev=program_prefix ;;
1183   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1184   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1185     program_prefix=$ac_optarg ;;
1186
1187   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1188   | --program-suf | --program-su | --program-s)
1189     ac_prev=program_suffix ;;
1190   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1191   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1192     program_suffix=$ac_optarg ;;
1193
1194   -program-transform-name | --program-transform-name \
1195   | --program-transform-nam | --program-transform-na \
1196   | --program-transform-n | --program-transform- \
1197   | --program-transform | --program-transfor \
1198   | --program-transfo | --program-transf \
1199   | --program-trans | --program-tran \
1200   | --progr-tra | --program-tr | --program-t)
1201     ac_prev=program_transform_name ;;
1202   -program-transform-name=* | --program-transform-name=* \
1203   | --program-transform-nam=* | --program-transform-na=* \
1204   | --program-transform-n=* | --program-transform-=* \
1205   | --program-transform=* | --program-transfor=* \
1206   | --program-transfo=* | --program-transf=* \
1207   | --program-trans=* | --program-tran=* \
1208   | --progr-tra=* | --program-tr=* | --program-t=*)
1209     program_transform_name=$ac_optarg ;;
1210
1211   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212     ac_prev=pdfdir ;;
1213   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1214     pdfdir=$ac_optarg ;;
1215
1216   -psdir | --psdir | --psdi | --psd | --ps)
1217     ac_prev=psdir ;;
1218   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1219     psdir=$ac_optarg ;;
1220
1221   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222   | -silent | --silent | --silen | --sile | --sil)
1223     silent=yes ;;
1224
1225   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1226     ac_prev=sbindir ;;
1227   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1228   | --sbi=* | --sb=*)
1229     sbindir=$ac_optarg ;;
1230
1231   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1232   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1233   | --sharedst | --shareds | --shared | --share | --shar \
1234   | --sha | --sh)
1235     ac_prev=sharedstatedir ;;
1236   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1237   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1238   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1239   | --sha=* | --sh=*)
1240     sharedstatedir=$ac_optarg ;;
1241
1242   -site | --site | --sit)
1243     ac_prev=site ;;
1244   -site=* | --site=* | --sit=*)
1245     site=$ac_optarg ;;
1246
1247   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1248     ac_prev=srcdir ;;
1249   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1250     srcdir=$ac_optarg ;;
1251
1252   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1253   | --syscon | --sysco | --sysc | --sys | --sy)
1254     ac_prev=sysconfdir ;;
1255   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1256   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1257     sysconfdir=$ac_optarg ;;
1258
1259   -target | --target | --targe | --targ | --tar | --ta | --t)
1260     ac_prev=target_alias ;;
1261   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1262     target_alias=$ac_optarg ;;
1263
1264   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1265     verbose=yes ;;
1266
1267   -version | --version | --versio | --versi | --vers | -V)
1268     ac_init_version=: ;;
1269
1270   -with-* | --with-*)
1271     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1272     # Reject names that are not valid shell variable names.
1273     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274       as_fn_error "invalid package name: $ac_useropt"
1275     ac_useropt_orig=$ac_useropt
1276     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277     case $ac_user_opts in
1278       *"
1279 "with_$ac_useropt"
1280 "*) ;;
1281       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1282          ac_unrecognized_sep=', ';;
1283     esac
1284     eval with_$ac_useropt=\$ac_optarg ;;
1285
1286   -without-* | --without-*)
1287     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288     # Reject names that are not valid shell variable names.
1289     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290       as_fn_error "invalid package name: $ac_useropt"
1291     ac_useropt_orig=$ac_useropt
1292     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1293     case $ac_user_opts in
1294       *"
1295 "with_$ac_useropt"
1296 "*) ;;
1297       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1298          ac_unrecognized_sep=', ';;
1299     esac
1300     eval with_$ac_useropt=no ;;
1301
1302   --x)
1303     # Obsolete; use --with-x.
1304     with_x=yes ;;
1305
1306   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1307   | --x-incl | --x-inc | --x-in | --x-i)
1308     ac_prev=x_includes ;;
1309   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1310   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1311     x_includes=$ac_optarg ;;
1312
1313   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1314   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1315     ac_prev=x_libraries ;;
1316   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1317   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1318     x_libraries=$ac_optarg ;;
1319
1320   -*) as_fn_error "unrecognized option: \`$ac_option'
1321 Try \`$0 --help' for more information."
1322     ;;
1323
1324   *=*)
1325     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1326     # Reject names that are not valid shell variable names.
1327     case $ac_envvar in #(
1328       '' | [0-9]* | *[!_$as_cr_alnum]* )
1329       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1330     esac
1331     eval $ac_envvar=\$ac_optarg
1332     export $ac_envvar ;;
1333
1334   *)
1335     # FIXME: should be removed in autoconf 3.0.
1336     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1337     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1338       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1339     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1340     ;;
1341
1342   esac
1343 done
1344
1345 if test -n "$ac_prev"; then
1346   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1347   as_fn_error "missing argument to $ac_option"
1348 fi
1349
1350 if test -n "$ac_unrecognized_opts"; then
1351   case $enable_option_checking in
1352     no) ;;
1353     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1354     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1355   esac
1356 fi
1357
1358 # Check all directory arguments for consistency.
1359 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1360                 datadir sysconfdir sharedstatedir localstatedir includedir \
1361                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1362                 libdir localedir mandir
1363 do
1364   eval ac_val=\$$ac_var
1365   # Remove trailing slashes.
1366   case $ac_val in
1367     */ )
1368       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1369       eval $ac_var=\$ac_val;;
1370   esac
1371   # Be sure to have absolute directory names.
1372   case $ac_val in
1373     [\\/$]* | ?:[\\/]* )  continue;;
1374     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1375   esac
1376   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1377 done
1378
1379 # There might be people who depend on the old broken behavior: `$host'
1380 # used to hold the argument of --host etc.
1381 # FIXME: To remove some day.
1382 build=$build_alias
1383 host=$host_alias
1384 target=$target_alias
1385
1386 # FIXME: To remove some day.
1387 if test "x$host_alias" != x; then
1388   if test "x$build_alias" = x; then
1389     cross_compiling=maybe
1390     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1391     If a cross compiler is detected then cross compile mode will be used." >&2
1392   elif test "x$build_alias" != "x$host_alias"; then
1393     cross_compiling=yes
1394   fi
1395 fi
1396
1397 ac_tool_prefix=
1398 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1399
1400 test "$silent" = yes && exec 6>/dev/null
1401
1402
1403 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1404 ac_ls_di=`ls -di .` &&
1405 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1406   as_fn_error "working directory cannot be determined"
1407 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1408   as_fn_error "pwd does not report name of working directory"
1409
1410
1411 # Find the source files, if location was not specified.
1412 if test -z "$srcdir"; then
1413   ac_srcdir_defaulted=yes
1414   # Try the directory containing this script, then the parent directory.
1415   ac_confdir=`$as_dirname -- "$as_myself" ||
1416 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1417          X"$as_myself" : 'X\(//\)[^/]' \| \
1418          X"$as_myself" : 'X\(//\)$' \| \
1419          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1420 $as_echo X"$as_myself" |
1421     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1422             s//\1/
1423             q
1424           }
1425           /^X\(\/\/\)[^/].*/{
1426             s//\1/
1427             q
1428           }
1429           /^X\(\/\/\)$/{
1430             s//\1/
1431             q
1432           }
1433           /^X\(\/\).*/{
1434             s//\1/
1435             q
1436           }
1437           s/.*/./; q'`
1438   srcdir=$ac_confdir
1439   if test ! -r "$srcdir/$ac_unique_file"; then
1440     srcdir=..
1441   fi
1442 else
1443   ac_srcdir_defaulted=no
1444 fi
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1447   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1448 fi
1449 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1450 ac_abs_confdir=`(
1451         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1452         pwd)`
1453 # When building in place, set srcdir=.
1454 if test "$ac_abs_confdir" = "$ac_pwd"; then
1455   srcdir=.
1456 fi
1457 # Remove unnecessary trailing slashes from srcdir.
1458 # Double slashes in file names in object file debugging info
1459 # mess up M-x gdb in Emacs.
1460 case $srcdir in
1461 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1462 esac
1463 for ac_var in $ac_precious_vars; do
1464   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1465   eval ac_env_${ac_var}_value=\$${ac_var}
1466   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1467   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1468 done
1469
1470 #
1471 # Report the --help message.
1472 #
1473 if test "$ac_init_help" = "long"; then
1474   # Omit some internal or obsolete options to make the list less imposing.
1475   # This message is too long to be a string in the A/UX 3.1 sh.
1476   cat <<_ACEOF
1477 \`configure' configures this package to adapt to many kinds of systems.
1478
1479 Usage: $0 [OPTION]... [VAR=VALUE]...
1480
1481 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1482 VAR=VALUE.  See below for descriptions of some of the useful variables.
1483
1484 Defaults for the options are specified in brackets.
1485
1486 Configuration:
1487   -h, --help              display this help and exit
1488       --help=short        display options specific to this package
1489       --help=recursive    display the short help of all the included packages
1490   -V, --version           display version information and exit
1491   -q, --quiet, --silent   do not print \`checking...' messages
1492       --cache-file=FILE   cache test results in FILE [disabled]
1493   -C, --config-cache      alias for \`--cache-file=config.cache'
1494   -n, --no-create         do not create output files
1495       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1496
1497 Installation directories:
1498   --prefix=PREFIX         install architecture-independent files in PREFIX
1499                           [$ac_default_prefix]
1500   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1501                           [PREFIX]
1502
1503 By default, \`make install' will install all the files in
1504 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1505 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1506 for instance \`--prefix=\$HOME'.
1507
1508 For better control, use the options below.
1509
1510 Fine tuning of the installation directories:
1511   --bindir=DIR            user executables [EPREFIX/bin]
1512   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1513   --libexecdir=DIR        program executables [EPREFIX/libexec]
1514   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1515   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1516   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1517   --libdir=DIR            object code libraries [EPREFIX/lib]
1518   --includedir=DIR        C header files [PREFIX/include]
1519   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1520   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1521   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1522   --infodir=DIR           info documentation [DATAROOTDIR/info]
1523   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1524   --mandir=DIR            man documentation [DATAROOTDIR/man]
1525   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1526   --htmldir=DIR           html documentation [DOCDIR]
1527   --dvidir=DIR            dvi documentation [DOCDIR]
1528   --pdfdir=DIR            pdf documentation [DOCDIR]
1529   --psdir=DIR             ps documentation [DOCDIR]
1530 _ACEOF
1531
1532   cat <<\_ACEOF
1533
1534 Program names:
1535   --program-prefix=PREFIX            prepend PREFIX to installed program names
1536   --program-suffix=SUFFIX            append SUFFIX to installed program names
1537   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1538
1539 System types:
1540   --build=BUILD     configure for building on BUILD [guessed]
1541   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1542   --target=TARGET   configure for building compilers for TARGET [HOST]
1543 _ACEOF
1544 fi
1545
1546 if test -n "$ac_init_help"; then
1547
1548   cat <<\_ACEOF
1549
1550 Optional Features:
1551   --disable-option-checking  ignore unrecognized --enable/--with options
1552   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1553   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1554   --enable-generated-files-in-srcdir
1555                           put copies of generated files in source dir
1556                           intended for creating source tarballs for users
1557                           without texinfo bison or flex.
1558   --disable-largefile     omit support for large files
1559   --enable-werror-always  enable -Werror despite compiler version
1560   --enable-checking=LIST
1561                           enable expensive run-time checks.  With LIST,
1562                           enable only specific categories of checks.
1563                           Categories are: yes,no,all,none,release.
1564                           Flags are: assert,df,fold,gc,gcac,gimple,misc,
1565                           rtlflag,rtl,runtime,tree,valgrind,types.
1566   --enable-coverage=LEVEL
1567                           enable compiler's code coverage collection.
1568                           Use to measure compiler performance and locate
1569                           unused parts of the compiler. With LEVEL, specify
1570                           optimization. Values are opt, noopt,
1571                           default is noopt
1572   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
1573   --enable-build-with-cxx build with C++ compiler instead of C compiler
1574   --enable-multilib       enable library support for multiple ABIs
1575   --enable-__cxa_atexit   enable __cxa_atexit for C++
1576   --enable-decimal-float={no,yes,bid,dpd}
1577                         enable decimal float extension to C.  Selecting 'bid'
1578                         or 'dpd' choses which decimal floating point format
1579                         to use
1580   --enable-fixed-point    enable fixed-point arithmetic extension to C
1581   --enable-threads        enable thread usage for target GCC
1582   --enable-threads=LIB    use LIB thread package for target GCC
1583   --enable-tls            enable or disable generation of tls code
1584                           overriding the assembler check for tls support
1585   --enable-objc-gc        enable the use of Boehm's garbage collector with
1586                           the GNU Objective-C runtime
1587   --disable-shared        don't provide a shared libgcc
1588   --enable-languages=LIST specify which front-ends to build
1589   --disable-rpath         do not hardcode runtime library paths
1590   --enable-initfini-array       use .init_array/.fini_array sections
1591   --enable-sjlj-exceptions
1592                           arrange to use setjmp/longjmp exception handling
1593   --enable-secureplt      enable -msecure-plt by default for PowerPC
1594   --enable-leading-mingw64-underscores
1595                           Enable leading underscores on 64 bit mingw targets
1596   --enable-cld            enable -mcld by default for 32bit x86
1597   --enable-frame-pointer  enable -fno-omit-frame-pointer by default for 32bit x86
1598   --disable-win32-registry
1599                           disable lookup of installation paths in the
1600                           Registry on Windows hosts
1601   --enable-win32-registry enable registry lookup (default)
1602   --enable-win32-registry=KEY
1603                           use KEY instead of GCC version as the last portion
1604                           of the registry key
1605   --enable-shared[=PKGS]  build shared libraries [default=yes]
1606   --enable-static[=PKGS]  build static libraries [default=yes]
1607   --enable-fast-install[=PKGS]
1608                           optimize for fast installation [default=yes]
1609   --disable-libtool-lock  avoid locking (might break parallel builds)
1610   --enable-gnu-indirect-function
1611                           enable the use of the @gnu_indirect_function to
1612                           glibc systems
1613   --enable-comdat         enable COMDAT group support
1614   --enable-gnu-unique-object
1615                           enable the use of the @gnu_unique_object ELF
1616                           extension on glibc systems
1617   --enable-linker-build-id
1618                           compiler will always pass --build-id to linker
1619   --enable-maintainer-mode
1620                           enable make rules and dependencies not useful
1621                           (and sometimes confusing) to the casual installer
1622   --enable-version-specific-runtime-libs
1623                           specify that runtime libraries should be
1624                           installed in a compiler-specific directory
1625   --enable-plugin         enable plugin support
1626   --disable-libquadmath-support
1627                           disable libquadmath support for Fortran
1628
1629 Optional Packages:
1630   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1631   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1632   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1633   --with-local-prefix=DIR specifies directory to put local include
1634   --with-gxx-include-dir=DIR
1635                           specifies directory to put g++ header files
1636   --with-cpp-install-dir=DIR
1637                           install the user visible C preprocessor in DIR
1638                           (relative to PREFIX) as well as PREFIX/bin
1639   --with-gnu-ld           arrange to work with GNU ld.
1640   --with-ld               arrange to use the specified ld (full pathname)
1641   --with-demangler-in-ld  try to use demangler in GNU ld.
1642   --with-gnu-as           arrange to work with GNU as
1643   --with-as               arrange to use the specified as (full pathname)
1644   --with-stabs            arrange to use stabs instead of host debug format
1645   --with-dwarf2           force the default debug format to be DWARF 2
1646   --with-build-sysroot=sysroot
1647                           use sysroot as the system root during the build
1648   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1649   --with-specs=SPECS      add SPECS to driver command-line processing
1650   --with-pkgversion=PKG   Use PKG in the version string in place of "GCC"
1651   --with-bugurl=URL       Direct users to URL to report a bug
1652   --with-multilib-list    Select multilibs (SH only)
1653   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1654   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1655   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1656   --with-system-libunwind use installed libunwind
1657   --with-pic              try to use only PIC/non-PIC objects [default=use
1658                           both]
1659   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1660   --with-plugin-ld=[ARG]  specify the plugin linker
1661   --with-long-double-128  Use 128-bit long double by default.
1662   --with-gc={page,zone}   choose the garbage collection mechanism to use
1663                           with the compiler
1664   --with-system-zlib      use installed libz
1665   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
1666
1667 Some influential environment variables:
1668   CC          C compiler command
1669   CFLAGS      C compiler flags
1670   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1671               nonstandard directory <lib dir>
1672   LIBS        libraries to pass to the linker, e.g. -l<library>
1673   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1674               you have headers in a nonstandard directory <include dir>
1675   CXX         C++ compiler command
1676   CXXFLAGS    C++ compiler flags
1677   CPP         C preprocessor
1678   CXXCPP      C++ preprocessor
1679   GMPLIBS     How to link GMP
1680   GMPINC      How to find GMP include files
1681   PPLLIBS     How to link PPL
1682   PPLINC      How to find PPL include files
1683   CLOOGLIBS   How to link CLOOG
1684   CLOOGINC    How to find CLOOG include files
1685
1686 Use these variables to override the choices made by `configure' or to help
1687 it to find libraries and programs with nonstandard names/locations.
1688
1689 Report bugs to the package provider.
1690 _ACEOF
1691 ac_status=$?
1692 fi
1693
1694 if test "$ac_init_help" = "recursive"; then
1695   # If there are subdirs, report their specific --help.
1696   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1697     test -d "$ac_dir" ||
1698       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1699       continue
1700     ac_builddir=.
1701
1702 case "$ac_dir" in
1703 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1704 *)
1705   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1706   # A ".." for each directory in $ac_dir_suffix.
1707   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1708   case $ac_top_builddir_sub in
1709   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1711   esac ;;
1712 esac
1713 ac_abs_top_builddir=$ac_pwd
1714 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1715 # for backward compatibility:
1716 ac_top_builddir=$ac_top_build_prefix
1717
1718 case $srcdir in
1719   .)  # We are building in place.
1720     ac_srcdir=.
1721     ac_top_srcdir=$ac_top_builddir_sub
1722     ac_abs_top_srcdir=$ac_pwd ;;
1723   [\\/]* | ?:[\\/]* )  # Absolute name.
1724     ac_srcdir=$srcdir$ac_dir_suffix;
1725     ac_top_srcdir=$srcdir
1726     ac_abs_top_srcdir=$srcdir ;;
1727   *) # Relative name.
1728     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1729     ac_top_srcdir=$ac_top_build_prefix$srcdir
1730     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1731 esac
1732 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1733
1734     cd "$ac_dir" || { ac_status=$?; continue; }
1735     # Check for guested configure.
1736     if test -f "$ac_srcdir/configure.gnu"; then
1737       echo &&
1738       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1739     elif test -f "$ac_srcdir/configure"; then
1740       echo &&
1741       $SHELL "$ac_srcdir/configure" --help=recursive
1742     else
1743       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1744     fi || ac_status=$?
1745     cd "$ac_pwd" || { ac_status=$?; break; }
1746   done
1747 fi
1748
1749 test -n "$ac_init_help" && exit $ac_status
1750 if $ac_init_version; then
1751   cat <<\_ACEOF
1752 configure
1753 generated by GNU Autoconf 2.64
1754
1755 Copyright (C) 2009 Free Software Foundation, Inc.
1756 This configure script is free software; the Free Software Foundation
1757 gives unlimited permission to copy, distribute and modify it.
1758 _ACEOF
1759   exit
1760 fi
1761
1762 ## ------------------------ ##
1763 ## Autoconf initialization. ##
1764 ## ------------------------ ##
1765
1766 # ac_fn_c_try_compile LINENO
1767 # --------------------------
1768 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1769 ac_fn_c_try_compile ()
1770 {
1771   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772   rm -f conftest.$ac_objext
1773   if { { ac_try="$ac_compile"
1774 case "(($ac_try" in
1775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776   *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780   (eval "$ac_compile") 2>conftest.err
1781   ac_status=$?
1782   if test -s conftest.err; then
1783     grep -v '^ *+' conftest.err >conftest.er1
1784     cat conftest.er1 >&5
1785     mv -f conftest.er1 conftest.err
1786   fi
1787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788   test $ac_status = 0; } && {
1789          test -z "$ac_c_werror_flag" ||
1790          test ! -s conftest.err
1791        } && test -s conftest.$ac_objext; then :
1792   ac_retval=0
1793 else
1794   $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797         ac_retval=1
1798 fi
1799   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800   return $ac_retval
1801
1802 } # ac_fn_c_try_compile
1803
1804 # ac_fn_cxx_try_compile LINENO
1805 # ----------------------------
1806 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_cxx_try_compile ()
1808 {
1809   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810   rm -f conftest.$ac_objext
1811   if { { ac_try="$ac_compile"
1812 case "(($ac_try" in
1813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814   *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818   (eval "$ac_compile") 2>conftest.err
1819   ac_status=$?
1820   if test -s conftest.err; then
1821     grep -v '^ *+' conftest.err >conftest.er1
1822     cat conftest.er1 >&5
1823     mv -f conftest.er1 conftest.err
1824   fi
1825   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826   test $ac_status = 0; } && {
1827          test -z "$ac_cxx_werror_flag" ||
1828          test ! -s conftest.err
1829        } && test -s conftest.$ac_objext; then :
1830   ac_retval=0
1831 else
1832   $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1834
1835         ac_retval=1
1836 fi
1837   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838   return $ac_retval
1839
1840 } # ac_fn_cxx_try_compile
1841
1842 # ac_fn_c_try_cpp LINENO
1843 # ----------------------
1844 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_c_try_cpp ()
1846 {
1847   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848   if { { ac_try="$ac_cpp conftest.$ac_ext"
1849 case "(($ac_try" in
1850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851   *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1856   ac_status=$?
1857   if test -s conftest.err; then
1858     grep -v '^ *+' conftest.err >conftest.er1
1859     cat conftest.er1 >&5
1860     mv -f conftest.er1 conftest.err
1861   fi
1862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863   test $ac_status = 0; } >/dev/null && {
1864          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1865          test ! -s conftest.err
1866        }; then :
1867   ac_retval=0
1868 else
1869   $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872     ac_retval=1
1873 fi
1874   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875   return $ac_retval
1876
1877 } # ac_fn_c_try_cpp
1878
1879 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1880 # -------------------------------------------------------
1881 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1882 # the include files in INCLUDES and setting the cache variable VAR
1883 # accordingly.
1884 ac_fn_c_check_header_mongrel ()
1885 {
1886   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891   $as_echo_n "(cached) " >&6
1892 fi
1893 eval ac_res=\$$3
1894                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1896 else
1897   # Is the header compilable?
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1899 $as_echo_n "checking $2 usability... " >&6; }
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h.  */
1902 $4
1903 #include <$2>
1904 _ACEOF
1905 if ac_fn_c_try_compile "$LINENO"; then :
1906   ac_header_compiler=yes
1907 else
1908   ac_header_compiler=no
1909 fi
1910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1912 $as_echo "$ac_header_compiler" >&6; }
1913
1914 # Is the header present?
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1916 $as_echo_n "checking $2 presence... " >&6; }
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h.  */
1919 #include <$2>
1920 _ACEOF
1921 if ac_fn_c_try_cpp "$LINENO"; then :
1922   ac_header_preproc=yes
1923 else
1924   ac_header_preproc=no
1925 fi
1926 rm -f conftest.err conftest.$ac_ext
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1928 $as_echo "$ac_header_preproc" >&6; }
1929
1930 # So?  What about this header?
1931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1932   yes:no: )
1933     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1934 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1935     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1936 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1937     ;;
1938   no:yes:* )
1939     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1940 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1941     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1942 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1943     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1944 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1945     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1946 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1947     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1948 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1949     ;;
1950 esac
1951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954   $as_echo_n "(cached) " >&6
1955 else
1956   eval "$3=\$ac_header_compiler"
1957 fi
1958 eval ac_res=\$$3
1959                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1961 fi
1962   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1963
1964 } # ac_fn_c_check_header_mongrel
1965
1966 # ac_fn_c_try_run LINENO
1967 # ----------------------
1968 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1969 # that executables *can* be run.
1970 ac_fn_c_try_run ()
1971 {
1972   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973   if { { ac_try="$ac_link"
1974 case "(($ac_try" in
1975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976   *) ac_try_echo=$ac_try;;
1977 esac
1978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979 $as_echo "$ac_try_echo"; } >&5
1980   (eval "$ac_link") 2>&5
1981   ac_status=$?
1982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1984   { { case "(($ac_try" in
1985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986   *) ac_try_echo=$ac_try;;
1987 esac
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990   (eval "$ac_try") 2>&5
1991   ac_status=$?
1992   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993   test $ac_status = 0; }; }; then :
1994   ac_retval=0
1995 else
1996   $as_echo "$as_me: program exited with status $ac_status" >&5
1997        $as_echo "$as_me: failed program was:" >&5
1998 sed 's/^/| /' conftest.$ac_ext >&5
1999
2000        ac_retval=$ac_status
2001 fi
2002   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2003   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2004   return $ac_retval
2005
2006 } # ac_fn_c_try_run
2007
2008 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2009 # -------------------------------------------------------
2010 # Tests whether HEADER exists and can be compiled using the include files in
2011 # INCLUDES, setting the cache variable VAR accordingly.
2012 ac_fn_c_check_header_compile ()
2013 {
2014   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018   $as_echo_n "(cached) " >&6
2019 else
2020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h.  */
2022 $4
2023 #include <$2>
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026   eval "$3=yes"
2027 else
2028   eval "$3=no"
2029 fi
2030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 fi
2032 eval ac_res=\$$3
2033                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2035   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2036
2037 } # ac_fn_c_check_header_compile
2038
2039 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2040 # --------------------------------------------
2041 # Tries to find the compile-time value of EXPR in a program that includes
2042 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2043 # computed
2044 ac_fn_c_compute_int ()
2045 {
2046   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047   if test "$cross_compiling" = yes; then
2048     # Depending upon the size, compute the lo and hi bounds.
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h.  */
2051 $4
2052 int
2053 main ()
2054 {
2055 static int test_array [1 - 2 * !(($2) >= 0)];
2056 test_array [0] = 0
2057
2058   ;
2059   return 0;
2060 }
2061 _ACEOF
2062 if ac_fn_c_try_compile "$LINENO"; then :
2063   ac_lo=0 ac_mid=0
2064   while :; do
2065     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h.  */
2067 $4
2068 int
2069 main ()
2070 {
2071 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2072 test_array [0] = 0
2073
2074   ;
2075   return 0;
2076 }
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079   ac_hi=$ac_mid; break
2080 else
2081   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2082                         if test $ac_lo -le $ac_mid; then
2083                           ac_lo= ac_hi=
2084                           break
2085                         fi
2086                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2087 fi
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089   done
2090 else
2091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h.  */
2093 $4
2094 int
2095 main ()
2096 {
2097 static int test_array [1 - 2 * !(($2) < 0)];
2098 test_array [0] = 0
2099
2100   ;
2101   return 0;
2102 }
2103 _ACEOF
2104 if ac_fn_c_try_compile "$LINENO"; then :
2105   ac_hi=-1 ac_mid=-1
2106   while :; do
2107     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h.  */
2109 $4
2110 int
2111 main ()
2112 {
2113 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2114 test_array [0] = 0
2115
2116   ;
2117   return 0;
2118 }
2119 _ACEOF
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121   ac_lo=$ac_mid; break
2122 else
2123   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2124                         if test $ac_mid -le $ac_hi; then
2125                           ac_lo= ac_hi=
2126                           break
2127                         fi
2128                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2129 fi
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131   done
2132 else
2133   ac_lo= ac_hi=
2134 fi
2135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 # Binary search between lo and hi bounds.
2139 while test "x$ac_lo" != "x$ac_hi"; do
2140   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h.  */
2143 $4
2144 int
2145 main ()
2146 {
2147 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2148 test_array [0] = 0
2149
2150   ;
2151   return 0;
2152 }
2153 _ACEOF
2154 if ac_fn_c_try_compile "$LINENO"; then :
2155   ac_hi=$ac_mid
2156 else
2157   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2158 fi
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 done
2161 case $ac_lo in #((
2162 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2163 '') ac_retval=1 ;;
2164 esac
2165   else
2166     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h.  */
2168 $4
2169 static long int longval () { return $2; }
2170 static unsigned long int ulongval () { return $2; }
2171 #include <stdio.h>
2172 #include <stdlib.h>
2173 int
2174 main ()
2175 {
2176
2177   FILE *f = fopen ("conftest.val", "w");
2178   if (! f)
2179     return 1;
2180   if (($2) < 0)
2181     {
2182       long int i = longval ();
2183       if (i != ($2))
2184         return 1;
2185       fprintf (f, "%ld", i);
2186     }
2187   else
2188     {
2189       unsigned long int i = ulongval ();
2190       if (i != ($2))
2191         return 1;
2192       fprintf (f, "%lu", i);
2193     }
2194   /* Do not output a trailing newline, as this causes \r\n confusion
2195      on some platforms.  */
2196   return ferror (f) || fclose (f) != 0;
2197
2198   ;
2199   return 0;
2200 }
2201 _ACEOF
2202 if ac_fn_c_try_run "$LINENO"; then :
2203   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2204 else
2205   ac_retval=1
2206 fi
2207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2208   conftest.$ac_objext conftest.beam conftest.$ac_ext
2209 rm -f conftest.val
2210
2211   fi
2212   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2213   return $ac_retval
2214
2215 } # ac_fn_c_compute_int
2216
2217 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2218 # -------------------------------------------
2219 # Tests whether TYPE exists after having included INCLUDES, setting cache
2220 # variable VAR accordingly.
2221 ac_fn_c_check_type ()
2222 {
2223   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2225 $as_echo_n "checking for $2... " >&6; }
2226 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2227   $as_echo_n "(cached) " >&6
2228 else
2229   eval "$3=no"
2230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h.  */
2232 $4
2233 int
2234 main ()
2235 {
2236 if (sizeof ($2))
2237          return 0;
2238   ;
2239   return 0;
2240 }
2241 _ACEOF
2242 if ac_fn_c_try_compile "$LINENO"; then :
2243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h.  */
2245 $4
2246 int
2247 main ()
2248 {
2249 if (sizeof (($2)))
2250             return 0;
2251   ;
2252   return 0;
2253 }
2254 _ACEOF
2255 if ac_fn_c_try_compile "$LINENO"; then :
2256
2257 else
2258   eval "$3=yes"
2259 fi
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 fi
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 fi
2264 eval ac_res=\$$3
2265                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2267   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2268
2269 } # ac_fn_c_check_type
2270
2271 # ac_fn_c_find_intX_t LINENO BITS VAR
2272 # -----------------------------------
2273 # Finds a signed integer type with width BITS, setting cache variable VAR
2274 # accordingly.
2275 ac_fn_c_find_intX_t ()
2276 {
2277   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2279 $as_echo_n "checking for int$2_t... " >&6; }
2280 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2281   $as_echo_n "(cached) " >&6
2282 else
2283   eval "$3=no"
2284      for ac_type in int$2_t 'int' 'long int' \
2285          'long long int' 'short int' 'signed char'; do
2286        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h.  */
2288 $ac_includes_default
2289 int
2290 main ()
2291 {
2292 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2293 test_array [0] = 0
2294
2295   ;
2296   return 0;
2297 }
2298 _ACEOF
2299 if ac_fn_c_try_compile "$LINENO"; then :
2300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301 /* end confdefs.h.  */
2302 $ac_includes_default
2303 int
2304 main ()
2305 {
2306 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2307                  < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2308 test_array [0] = 0
2309
2310   ;
2311   return 0;
2312 }
2313 _ACEOF
2314 if ac_fn_c_try_compile "$LINENO"; then :
2315
2316 else
2317   case $ac_type in #(
2318   int$2_t) :
2319     eval "$3=yes" ;; #(
2320   *) :
2321     eval "$3=\$ac_type" ;;
2322 esac
2323 fi
2324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325 fi
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327        eval as_val=\$$3
2328    if test "x$as_val" = x""no; then :
2329
2330 else
2331   break
2332 fi
2333      done
2334 fi
2335 eval ac_res=\$$3
2336                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2337 $as_echo "$ac_res" >&6; }
2338   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2339
2340 } # ac_fn_c_find_intX_t
2341
2342 # ac_fn_c_try_link LINENO
2343 # -----------------------
2344 # Try to link conftest.$ac_ext, and return whether this succeeded.
2345 ac_fn_c_try_link ()
2346 {
2347   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2348   rm -f conftest.$ac_objext conftest$ac_exeext
2349   if { { ac_try="$ac_link"
2350 case "(($ac_try" in
2351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352   *) ac_try_echo=$ac_try;;
2353 esac
2354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2355 $as_echo "$ac_try_echo"; } >&5
2356   (eval "$ac_link") 2>conftest.err
2357   ac_status=$?
2358   if test -s conftest.err; then
2359     grep -v '^ *+' conftest.err >conftest.er1
2360     cat conftest.er1 >&5
2361     mv -f conftest.er1 conftest.err
2362   fi
2363   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2364   test $ac_status = 0; } && {
2365          test -z "$ac_c_werror_flag" ||
2366          test ! -s conftest.err
2367        } && test -s conftest$ac_exeext && {
2368          test "$cross_compiling" = yes ||
2369          $as_test_x conftest$ac_exeext
2370        }; then :
2371   ac_retval=0
2372 else
2373   $as_echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2375
2376         ac_retval=1
2377 fi
2378   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2379   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2380   # interfere with the next link command; also delete a directory that is
2381   # left behind by Apple's compiler.  We do this before executing the actions.
2382   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2383   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2384   return $ac_retval
2385
2386 } # ac_fn_c_try_link
2387
2388 # ac_fn_c_find_uintX_t LINENO BITS VAR
2389 # ------------------------------------
2390 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2391 # accordingly.
2392 ac_fn_c_find_uintX_t ()
2393 {
2394   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2396 $as_echo_n "checking for uint$2_t... " >&6; }
2397 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2398   $as_echo_n "(cached) " >&6
2399 else
2400   eval "$3=no"
2401      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2402          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2403        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h.  */
2405 $ac_includes_default
2406 int
2407 main ()
2408 {
2409 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2410 test_array [0] = 0
2411
2412   ;
2413   return 0;
2414 }
2415 _ACEOF
2416 if ac_fn_c_try_compile "$LINENO"; then :
2417   case $ac_type in #(
2418   uint$2_t) :
2419     eval "$3=yes" ;; #(
2420   *) :
2421     eval "$3=\$ac_type" ;;
2422 esac
2423 fi
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425        eval as_val=\$$3
2426    if test "x$as_val" = x""no; then :
2427
2428 else
2429   break
2430 fi
2431      done
2432 fi
2433 eval ac_res=\$$3
2434                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2435 $as_echo "$ac_res" >&6; }
2436   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2437
2438 } # ac_fn_c_find_uintX_t
2439
2440 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2441 # ----------------------------------------------
2442 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2443 ac_fn_c_check_header_preproc ()
2444 {
2445   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2447 $as_echo_n "checking for $2... " >&6; }
2448 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2449   $as_echo_n "(cached) " >&6
2450 else
2451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h.  */
2453 #include <$2>
2454 _ACEOF
2455 if ac_fn_c_try_cpp "$LINENO"; then :
2456   eval "$3=yes"
2457 else
2458   eval "$3=no"
2459 fi
2460 rm -f conftest.err conftest.$ac_ext
2461 fi
2462 eval ac_res=\$$3
2463                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2464 $as_echo "$ac_res" >&6; }
2465   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2466
2467 } # ac_fn_c_check_header_preproc
2468
2469 # ac_fn_cxx_try_cpp LINENO
2470 # ------------------------
2471 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2472 ac_fn_cxx_try_cpp ()
2473 {
2474   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475   if { { ac_try="$ac_cpp conftest.$ac_ext"
2476 case "(($ac_try" in
2477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478   *) ac_try_echo=$ac_try;;
2479 esac
2480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2481 $as_echo "$ac_try_echo"; } >&5
2482   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2483   ac_status=$?
2484   if test -s conftest.err; then
2485     grep -v '^ *+' conftest.err >conftest.er1
2486     cat conftest.er1 >&5
2487     mv -f conftest.er1 conftest.err
2488   fi
2489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2490   test $ac_status = 0; } >/dev/null && {
2491          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2492          test ! -s conftest.err
2493        }; then :
2494   ac_retval=0
2495 else
2496   $as_echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2498
2499     ac_retval=1
2500 fi
2501   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2502   return $ac_retval
2503
2504 } # ac_fn_cxx_try_cpp
2505
2506 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2507 # ------------------------------------------------
2508 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2509 ac_fn_cxx_check_header_preproc ()
2510 {
2511   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2512   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2513 $as_echo_n "checking for $2... " >&6; }
2514 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2515   $as_echo_n "(cached) " >&6
2516 else
2517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518 /* end confdefs.h.  */
2519 #include <$2>
2520 _ACEOF
2521 if ac_fn_cxx_try_cpp "$LINENO"; then :
2522   eval "$3=yes"
2523 else
2524   eval "$3=no"
2525 fi
2526 rm -f conftest.err conftest.$ac_ext
2527 fi
2528 eval ac_res=\$$3
2529                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2530 $as_echo "$ac_res" >&6; }
2531   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2532
2533 } # ac_fn_cxx_check_header_preproc
2534
2535 # ac_fn_c_check_func LINENO FUNC VAR
2536 # ----------------------------------
2537 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2538 ac_fn_c_check_func ()
2539 {
2540   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2542 $as_echo_n "checking for $2... " >&6; }
2543 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2544   $as_echo_n "(cached) " >&6
2545 else
2546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547 /* end confdefs.h.  */
2548 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2550 #define $2 innocuous_$2
2551
2552 /* System header to define __stub macros and hopefully few prototypes,
2553     which can conflict with char $2 (); below.
2554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2555     <limits.h> exists even on freestanding compilers.  */
2556
2557 #ifdef __STDC__
2558 # include <limits.h>
2559 #else
2560 # include <assert.h>
2561 #endif
2562
2563 #undef $2
2564
2565 /* Override any GCC internal prototype to avoid an error.
2566    Use char because int might match the return type of a GCC
2567    builtin and then its argument prototype would still apply.  */
2568 #ifdef __cplusplus
2569 extern "C"
2570 #endif
2571 char $2 ();
2572 /* The GNU C library defines this for functions which it implements
2573     to always fail with ENOSYS.  Some functions are actually named
2574     something starting with __ and the normal name is an alias.  */
2575 #if defined __stub_$2 || defined __stub___$2
2576 choke me
2577 #endif
2578
2579 int
2580 main ()
2581 {
2582 return $2 ();
2583   ;
2584   return 0;
2585 }
2586 _ACEOF
2587 if ac_fn_c_try_link "$LINENO"; then :
2588   eval "$3=yes"
2589 else
2590   eval "$3=no"
2591 fi
2592 rm -f core conftest.err conftest.$ac_objext \
2593     conftest$ac_exeext conftest.$ac_ext
2594 fi
2595 eval ac_res=\$$3
2596                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2597 $as_echo "$ac_res" >&6; }
2598   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2599
2600 } # ac_fn_c_check_func
2601
2602 # ac_fn_cxx_try_link LINENO
2603 # -------------------------
2604 # Try to link conftest.$ac_ext, and return whether this succeeded.
2605 ac_fn_cxx_try_link ()
2606 {
2607   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2608   rm -f conftest.$ac_objext conftest$ac_exeext
2609   if { { ac_try="$ac_link"
2610 case "(($ac_try" in
2611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612   *) ac_try_echo=$ac_try;;
2613 esac
2614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2615 $as_echo "$ac_try_echo"; } >&5
2616   (eval "$ac_link") 2>conftest.err
2617   ac_status=$?
2618   if test -s conftest.err; then
2619     grep -v '^ *+' conftest.err >conftest.er1
2620     cat conftest.er1 >&5
2621     mv -f conftest.er1 conftest.err
2622   fi
2623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2624   test $ac_status = 0; } && {
2625          test -z "$ac_cxx_werror_flag" ||
2626          test ! -s conftest.err
2627        } && test -s conftest$ac_exeext && {
2628          test "$cross_compiling" = yes ||
2629          $as_test_x conftest$ac_exeext
2630        }; then :
2631   ac_retval=0
2632 else
2633   $as_echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2635
2636         ac_retval=1
2637 fi
2638   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2639   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2640   # interfere with the next link command; also delete a directory that is
2641   # left behind by Apple's compiler.  We do this before executing the actions.
2642   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2643   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2644   return $ac_retval
2645
2646 } # ac_fn_cxx_try_link
2647 cat >config.log <<_ACEOF
2648 This file contains any messages produced by compilers while
2649 running configure, to aid debugging if configure makes a mistake.
2650
2651 It was created by $as_me, which was
2652 generated by GNU Autoconf 2.64.  Invocation command line was
2653
2654   $ $0 $@
2655
2656 _ACEOF
2657 exec 5>>config.log
2658 {
2659 cat <<_ASUNAME
2660 ## --------- ##
2661 ## Platform. ##
2662 ## --------- ##
2663
2664 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2665 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2666 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2667 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2668 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2669
2670 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2671 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2672
2673 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2674 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2675 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2676 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2677 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2678 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2679 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2680
2681 _ASUNAME
2682
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2685 do
2686   IFS=$as_save_IFS
2687   test -z "$as_dir" && as_dir=.
2688     $as_echo "PATH: $as_dir"
2689   done
2690 IFS=$as_save_IFS
2691
2692 } >&5
2693
2694 cat >&5 <<_ACEOF
2695
2696
2697 ## ----------- ##
2698 ## Core tests. ##
2699 ## ----------- ##
2700
2701 _ACEOF
2702
2703
2704 # Keep a trace of the command line.
2705 # Strip out --no-create and --no-recursion so they do not pile up.
2706 # Strip out --silent because we don't want to record it for future runs.
2707 # Also quote any args containing shell meta-characters.
2708 # Make two passes to allow for proper duplicate-argument suppression.
2709 ac_configure_args=
2710 ac_configure_args0=
2711 ac_configure_args1=
2712 ac_must_keep_next=false
2713 for ac_pass in 1 2
2714 do
2715   for ac_arg
2716   do
2717     case $ac_arg in
2718     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2719     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2720     | -silent | --silent | --silen | --sile | --sil)
2721       continue ;;
2722     *\'*)
2723       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2724     esac
2725     case $ac_pass in
2726     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2727     2)
2728       as_fn_append ac_configure_args1 " '$ac_arg'"
2729       if test $ac_must_keep_next = true; then
2730         ac_must_keep_next=false # Got value, back to normal.
2731       else
2732         case $ac_arg in
2733           *=* | --config-cache | -C | -disable-* | --disable-* \
2734           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2735           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2736           | -with-* | --with-* | -without-* | --without-* | --x)
2737             case "$ac_configure_args0 " in
2738               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2739             esac
2740             ;;
2741           -* ) ac_must_keep_next=true ;;
2742         esac
2743       fi
2744       as_fn_append ac_configure_args " '$ac_arg'"
2745       ;;
2746     esac
2747   done
2748 done
2749 { ac_configure_args0=; unset ac_configure_args0;}
2750 { ac_configure_args1=; unset ac_configure_args1;}
2751
2752 # When interrupted or exit'd, cleanup temporary files, and complete
2753 # config.log.  We remove comments because anyway the quotes in there
2754 # would cause problems or look ugly.
2755 # WARNING: Use '\'' to represent an apostrophe within the trap.
2756 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2757 trap 'exit_status=$?
2758   # Save into config.log some information that might help in debugging.
2759   {
2760     echo
2761
2762     cat <<\_ASBOX
2763 ## ---------------- ##
2764 ## Cache variables. ##
2765 ## ---------------- ##
2766 _ASBOX
2767     echo
2768     # The following way of writing the cache mishandles newlines in values,
2769 (
2770   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2771     eval ac_val=\$$ac_var
2772     case $ac_val in #(
2773     *${as_nl}*)
2774       case $ac_var in #(
2775       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2776 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2777       esac
2778       case $ac_var in #(
2779       _ | IFS | as_nl) ;; #(
2780       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2781       *) { eval $ac_var=; unset $ac_var;} ;;
2782       esac ;;
2783     esac
2784   done
2785   (set) 2>&1 |
2786     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2787     *${as_nl}ac_space=\ *)
2788       sed -n \
2789         "s/'\''/'\''\\\\'\'''\''/g;
2790           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2791       ;; #(
2792     *)
2793       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2794       ;;
2795     esac |
2796     sort
2797 )
2798     echo
2799
2800     cat <<\_ASBOX
2801 ## ----------------- ##
2802 ## Output variables. ##
2803 ## ----------------- ##
2804 _ASBOX
2805     echo
2806     for ac_var in $ac_subst_vars
2807     do
2808       eval ac_val=\$$ac_var
2809       case $ac_val in
2810       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2811       esac
2812       $as_echo "$ac_var='\''$ac_val'\''"
2813     done | sort
2814     echo
2815
2816     if test -n "$ac_subst_files"; then
2817       cat <<\_ASBOX
2818 ## ------------------- ##
2819 ## File substitutions. ##
2820 ## ------------------- ##
2821 _ASBOX
2822       echo
2823       for ac_var in $ac_subst_files
2824       do
2825         eval ac_val=\$$ac_var
2826         case $ac_val in
2827         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2828         esac
2829         $as_echo "$ac_var='\''$ac_val'\''"
2830       done | sort
2831       echo
2832     fi
2833
2834     if test -s confdefs.h; then
2835       cat <<\_ASBOX
2836 ## ----------- ##
2837 ## confdefs.h. ##
2838 ## ----------- ##
2839 _ASBOX
2840       echo
2841       cat confdefs.h
2842       echo
2843     fi
2844     test "$ac_signal" != 0 &&
2845       $as_echo "$as_me: caught signal $ac_signal"
2846     $as_echo "$as_me: exit $exit_status"
2847   } >&5
2848   rm -f core *.core core.conftest.* &&
2849     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2850     exit $exit_status
2851 ' 0
2852 for ac_signal in 1 2 13 15; do
2853   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2854 done
2855 ac_signal=0
2856
2857 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2858 rm -f -r conftest* confdefs.h
2859
2860 $as_echo "/* confdefs.h */" > confdefs.h
2861
2862 # Predefined preprocessor variables.
2863
2864 cat >>confdefs.h <<_ACEOF
2865 #define PACKAGE_NAME "$PACKAGE_NAME"
2866 _ACEOF
2867
2868 cat >>confdefs.h <<_ACEOF
2869 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2870 _ACEOF
2871
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2874 _ACEOF
2875
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_STRING "$PACKAGE_STRING"
2878 _ACEOF
2879
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2882 _ACEOF
2883
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_URL "$PACKAGE_URL"
2886 _ACEOF
2887
2888
2889 # Let the site file select an alternate cache file if it wants to.
2890 # Prefer an explicitly selected file to automatically selected ones.
2891 ac_site_file1=NONE
2892 ac_site_file2=NONE
2893 if test -n "$CONFIG_SITE"; then
2894   ac_site_file1=$CONFIG_SITE
2895 elif test "x$prefix" != xNONE; then
2896   ac_site_file1=$prefix/share/config.site
2897   ac_site_file2=$prefix/etc/config.site
2898 else
2899   ac_site_file1=$ac_default_prefix/share/config.site
2900   ac_site_file2=$ac_default_prefix/etc/config.site
2901 fi
2902 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2903 do
2904   test "x$ac_site_file" = xNONE && continue
2905   if test -r "$ac_site_file"; then
2906     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2907 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2908     sed 's/^/| /' "$ac_site_file" >&5
2909     . "$ac_site_file"
2910   fi
2911 done
2912
2913 if test -r "$cache_file"; then
2914   # Some versions of bash will fail to source /dev/null (special
2915   # files actually), so we avoid doing that.
2916   if test -f "$cache_file"; then
2917     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2918 $as_echo "$as_me: loading cache $cache_file" >&6;}
2919     case $cache_file in
2920       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2921       *)                      . "./$cache_file";;
2922     esac
2923   fi
2924 else
2925   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2926 $as_echo "$as_me: creating cache $cache_file" >&6;}
2927   >$cache_file
2928 fi
2929
2930 # Check that the precious variables saved in the cache have kept the same
2931 # value.
2932 ac_cache_corrupted=false
2933 for ac_var in $ac_precious_vars; do
2934   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2935   eval ac_new_set=\$ac_env_${ac_var}_set
2936   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2937   eval ac_new_val=\$ac_env_${ac_var}_value
2938   case $ac_old_set,$ac_new_set in
2939     set,)
2940       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2941 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2942       ac_cache_corrupted=: ;;
2943     ,set)
2944       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2945 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2946       ac_cache_corrupted=: ;;
2947     ,);;
2948     *)
2949       if test "x$ac_old_val" != "x$ac_new_val"; then
2950         # differences in whitespace do not lead to failure.
2951         ac_old_val_w=`echo x $ac_old_val`
2952         ac_new_val_w=`echo x $ac_new_val`
2953         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2954           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2955 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2956           ac_cache_corrupted=:
2957         else
2958           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2959 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2960           eval $ac_var=\$ac_old_val
2961         fi
2962         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2963 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2964         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2965 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2966       fi;;
2967   esac
2968   # Pass precious variables to config.status.
2969   if test "$ac_new_set" = set; then
2970     case $ac_new_val in
2971     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2972     *) ac_arg=$ac_var=$ac_new_val ;;
2973     esac
2974     case " $ac_configure_args " in
2975       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2976       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2977     esac
2978   fi
2979 done
2980 if $ac_cache_corrupted; then
2981   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2983   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2984 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2985   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2986 fi
2987 ## -------------------- ##
2988 ## Main body of script. ##
2989 ## -------------------- ##
2990
2991 ac_ext=c
2992 ac_cpp='$CPP $CPPFLAGS'
2993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2996
2997
2998
2999
3000
3001
3002 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3003
3004
3005 gcc_version=`cat $srcdir/BASE-VER`
3006
3007 # Determine the host, build, and target systems
3008 ac_aux_dir=
3009 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3010   for ac_t in install-sh install.sh shtool; do
3011     if test -f "$ac_dir/$ac_t"; then
3012       ac_aux_dir=$ac_dir
3013       ac_install_sh="$ac_aux_dir/$ac_t -c"
3014       break 2
3015     fi
3016   done
3017 done
3018 if test -z "$ac_aux_dir"; then
3019   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3020 fi
3021
3022 # These three variables are undocumented and unsupported,
3023 # and are intended to be withdrawn in a future Autoconf release.
3024 # They can cause serious problems if a builder's source tree is in a directory
3025 # whose full name contains unusual characters.
3026 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3027 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3028 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3029
3030
3031 # Make sure we can run config.sub.
3032 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3033   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3034
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3036 $as_echo_n "checking build system type... " >&6; }
3037 if test "${ac_cv_build+set}" = set; then :
3038   $as_echo_n "(cached) " >&6
3039 else
3040   ac_build_alias=$build_alias
3041 test "x$ac_build_alias" = x &&
3042   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3043 test "x$ac_build_alias" = x &&
3044   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3045 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3046   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3047
3048 fi
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3050 $as_echo "$ac_cv_build" >&6; }
3051 case $ac_cv_build in
3052 *-*-*) ;;
3053 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3054 esac
3055 build=$ac_cv_build
3056 ac_save_IFS=$IFS; IFS='-'
3057 set x $ac_cv_build
3058 shift
3059 build_cpu=$1
3060 build_vendor=$2
3061 shift; shift
3062 # Remember, the first character of IFS is used to create $*,
3063 # except with old shells:
3064 build_os=$*
3065 IFS=$ac_save_IFS
3066 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3067
3068
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3070 $as_echo_n "checking host system type... " >&6; }
3071 if test "${ac_cv_host+set}" = set; then :
3072   $as_echo_n "(cached) " >&6
3073 else
3074   if test "x$host_alias" = x; then
3075   ac_cv_host=$ac_cv_build
3076 else
3077   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3078     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3079 fi
3080
3081 fi
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3083 $as_echo "$ac_cv_host" >&6; }
3084 case $ac_cv_host in
3085 *-*-*) ;;
3086 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3087 esac
3088 host=$ac_cv_host
3089 ac_save_IFS=$IFS; IFS='-'
3090 set x $ac_cv_host
3091 shift
3092 host_cpu=$1
3093 host_vendor=$2
3094 shift; shift
3095 # Remember, the first character of IFS is used to create $*,
3096 # except with old shells:
3097 host_os=$*
3098 IFS=$ac_save_IFS
3099 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3100
3101
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3103 $as_echo_n "checking target system type... " >&6; }
3104 if test "${ac_cv_target+set}" = set; then :
3105   $as_echo_n "(cached) " >&6
3106 else
3107   if test "x$target_alias" = x; then
3108   ac_cv_target=$ac_cv_host
3109 else
3110   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3111     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3112 fi
3113
3114 fi
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3116 $as_echo "$ac_cv_target" >&6; }
3117 case $ac_cv_target in
3118 *-*-*) ;;
3119 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3120 esac
3121 target=$ac_cv_target
3122 ac_save_IFS=$IFS; IFS='-'
3123 set x $ac_cv_target
3124 shift
3125 target_cpu=$1
3126 target_vendor=$2
3127 shift; shift
3128 # Remember, the first character of IFS is used to create $*,
3129 # except with old shells:
3130 target_os=$*
3131 IFS=$ac_save_IFS
3132 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3133
3134
3135 # The aliases save the names the user supplied, while $host etc.
3136 # will get canonicalized.
3137 test -n "$target_alias" &&
3138   test "$program_prefix$program_suffix$program_transform_name" = \
3139     NONENONEs,x,x, &&
3140   program_prefix=${target_alias}-
3141
3142 # Determine the noncanonical target name, for directory use.
3143  case ${build_alias} in
3144   "") build_noncanonical=${build} ;;
3145   *) build_noncanonical=${build_alias} ;;
3146 esac
3147
3148  case ${host_alias} in
3149   "") host_noncanonical=${build_noncanonical} ;;
3150   *) host_noncanonical=${host_alias} ;;
3151 esac
3152
3153  case ${target_alias} in
3154   "") target_noncanonical=${host_noncanonical} ;;
3155   *) target_noncanonical=${target_alias} ;;
3156 esac
3157
3158
3159
3160
3161 # Determine the target- and build-specific subdirectories
3162
3163 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3164 # have matching libraries, they should use host libraries: Makefile.tpl
3165 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3166 # However, they still use the build modules, because the corresponding
3167 # host modules (e.g. bison) are only built for the host when bootstrap
3168 # finishes. So:
3169 # - build_subdir is where we find build modules, and never changes.
3170 # - build_libsubdir is where we find build libraries, and can be overridden.
3171
3172 # Prefix 'build-' so this never conflicts with target_subdir.
3173 build_subdir="build-${build_noncanonical}"
3174
3175 # Check whether --with-build-libsubdir was given.
3176 if test "${with_build_libsubdir+set}" = set; then :
3177   withval=$with_build_libsubdir; build_libsubdir="$withval"
3178 else
3179   build_libsubdir="$build_subdir"
3180 fi
3181
3182 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3183 if ( test $srcdir = . && test -d gcc ) \
3184    || test -d $srcdir/../host-${host_noncanonical}; then
3185   host_subdir="host-${host_noncanonical}"
3186 else
3187   host_subdir=.
3188 fi
3189 # No prefix.
3190 target_subdir=${target_noncanonical}
3191
3192
3193 # Set program_transform_name
3194 test "$program_prefix" != NONE &&
3195   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3196 # Use a double $ so make ignores it.
3197 test "$program_suffix" != NONE &&
3198   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3199 # Double any \ or $.
3200 # By default was `s,x,x', remove it if useless.
3201 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3202 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3203
3204
3205 # Check for bogus environment variables.
3206 # Test if LIBRARY_PATH contains the notation for the current directory
3207 # since this would lead to problems installing/building glibc.
3208 # LIBRARY_PATH contains the current directory if one of the following
3209 # is true:
3210 # - one of the terminals (":" and ";") is the first or last sign
3211 # - two terminals occur directly after each other
3212 # - the path contains an element with a dot in it
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3214 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3215 case ${LIBRARY_PATH} in
3216   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3217     library_path_setting="contains current directory"
3218     ;;
3219   *)
3220     library_path_setting="ok"
3221     ;;
3222 esac
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3224 $as_echo "$library_path_setting" >&6; }
3225 if test "$library_path_setting" != "ok"; then
3226 as_fn_error "
3227 *** LIBRARY_PATH shouldn't contain the current directory when
3228 *** building gcc. Please change the environment variable
3229 *** and run configure again." "$LINENO" 5
3230 fi
3231
3232 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3233 # since this would lead to problems installing/building glibc.
3234 # GCC_EXEC_PREFIX contains the current directory if one of the following
3235 # is true:
3236 # - one of the terminals (":" and ";") is the first or last sign
3237 # - two terminals occur directly after each other
3238 # - the path contains an element with a dot in it
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3240 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3241 case ${GCC_EXEC_PREFIX} in
3242   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3243     gcc_exec_prefix_setting="contains current directory"
3244     ;;
3245   *)
3246     gcc_exec_prefix_setting="ok"
3247     ;;
3248 esac
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3250 $as_echo "$gcc_exec_prefix_setting" >&6; }
3251 if test "$gcc_exec_prefix_setting" != "ok"; then
3252 as_fn_error "
3253 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3254 *** building gcc. Please change the environment variable
3255 *** and run configure again." "$LINENO" 5
3256 fi
3257
3258 # -----------
3259 # Directories
3260 # -----------
3261
3262 # Specify the local prefix
3263 local_prefix=
3264
3265 # Check whether --with-local-prefix was given.
3266 if test "${with_local_prefix+set}" = set; then :
3267   withval=$with_local_prefix; case "${withval}" in
3268 yes)    as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3269 no)     ;;
3270 *)      local_prefix=$with_local_prefix ;;
3271 esac
3272 fi
3273
3274
3275 # Default local prefix if it is empty
3276 if test x$local_prefix = x; then
3277         local_prefix=/usr/local
3278 fi
3279
3280 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3281 # passed in by the toplevel make and thus we'd get different behavior
3282 # depending on where we built the sources.
3283 gcc_gxx_include_dir=
3284 # Specify the g++ header file directory
3285
3286 # Check whether --with-gxx-include-dir was given.
3287 if test "${with_gxx_include_dir+set}" = set; then :
3288   withval=$with_gxx_include_dir; case "${withval}" in
3289 yes)    as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3290 no)     ;;
3291 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
3292 esac
3293 fi
3294
3295
3296 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3297 if test x${gcc_gxx_include_dir} = x; then
3298   if test x${enable_version_specific_runtime_libs} = xyes; then
3299     gcc_gxx_include_dir='${libsubdir}/include/c++'
3300   else
3301     libstdcxx_incdir='include/c++/$(version)'
3302     if test x$host != x$target; then
3303        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3304     fi
3305     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3306   fi
3307 fi
3308
3309
3310 # Check whether --with-cpp_install_dir was given.
3311 if test "${with_cpp_install_dir+set}" = set; then :
3312   withval=$with_cpp_install_dir; if test x$withval = xyes; then
3313   as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3314 elif test x$withval != xno; then
3315   cpp_install_dir=$withval
3316 fi
3317 fi
3318
3319
3320 # We would like to our source tree to be readonly.  However when releases or
3321 # pre-releases are generated, the flex/bison generated files as well as the
3322 # various formats of manuals need to be included along with the rest of the
3323 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
3324 # just that.
3325
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3327 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3328     # Check whether --enable-generated-files-in-srcdir was given.
3329 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3330   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3331 else
3332   generated_files_in_srcdir=no
3333 fi
3334
3335
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3337 $as_echo "$generated_files_in_srcdir" >&6; }
3338
3339 if test "$generated_files_in_srcdir" = "yes"; then
3340   GENINSRC=''
3341 else
3342   GENINSRC='#'
3343 fi
3344
3345
3346 # -------------------
3347 # Find default linker
3348 # -------------------
3349
3350 # With GNU ld
3351
3352 # Check whether --with-gnu-ld was given.
3353 if test "${with_gnu_ld+set}" = set; then :
3354   withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3355 else
3356   gnu_ld_flag=no
3357 fi
3358
3359
3360 # With pre-defined ld
3361
3362 # Check whether --with-ld was given.
3363 if test "${with_ld+set}" = set; then :
3364   withval=$with_ld; DEFAULT_LINKER="$with_ld"
3365 fi
3366
3367 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3368   if test ! -x "$DEFAULT_LINKER"; then
3369     as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3370   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3371     gnu_ld_flag=yes
3372   fi
3373
3374 cat >>confdefs.h <<_ACEOF
3375 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3376 _ACEOF
3377
3378 fi
3379
3380 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3381
3382 cat >>confdefs.h <<_ACEOF
3383 #define HAVE_GNU_LD $gnu_ld
3384 _ACEOF
3385
3386
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3388 $as_echo_n "checking whether a default linker was specified... " >&6; }
3389 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3390   if test x"$gnu_ld_flag" = x"no"; then
3391     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3392 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3393   else
3394     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3395 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3396   fi
3397 else
3398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3400 fi
3401
3402 # With demangler in GNU ld
3403
3404 # Check whether --with-demangler-in-ld was given.
3405 if test "${with_demangler_in_ld+set}" = set; then :
3406   withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3407 else
3408   demangler_in_ld=no
3409 fi
3410
3411
3412 # ----------------------
3413 # Find default assembler
3414 # ----------------------
3415
3416 # With GNU as
3417
3418 # Check whether --with-gnu-as was given.
3419 if test "${with_gnu_as+set}" = set; then :
3420   withval=$with_gnu_as; gas_flag="$with_gnu_as"
3421 else
3422   gas_flag=no
3423 fi
3424
3425
3426
3427 # Check whether --with-as was given.
3428 if test "${with_as+set}" = set; then :
3429   withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3430 fi
3431
3432 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3433   if test ! -x "$DEFAULT_ASSEMBLER"; then
3434     as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3435   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3436     gas_flag=yes
3437   fi
3438
3439 cat >>confdefs.h <<_ACEOF
3440 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3441 _ACEOF
3442
3443 fi
3444
3445 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3446
3447 cat >>confdefs.h <<_ACEOF
3448 #define HAVE_GNU_AS $gnu_as
3449 _ACEOF
3450
3451
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3453 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3454 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3455   if test x"$gas_flag" = x"no"; then
3456     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3457 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3458   else
3459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3460 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3461   fi
3462 else
3463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 $as_echo "no" >&6; }
3465 fi
3466
3467 # ---------------
3468 # Find C compiler
3469 # ---------------
3470
3471 # If a non-executable a.out is present (e.g. created by GNU as above even if
3472 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3473 # file, even when creating an executable, so an execution test fails.
3474 # Remove possible default executable files to avoid this.
3475 #
3476 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3477 # Autoconf includes it.
3478 rm -f a.out a.exe b.out
3479
3480 # Find the native compiler
3481 ac_ext=c
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486 if test -n "$ac_tool_prefix"; then
3487   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3488 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3490 $as_echo_n "checking for $ac_word... " >&6; }
3491 if test "${ac_cv_prog_CC+set}" = set; then :
3492   $as_echo_n "(cached) " >&6
3493 else
3494   if test -n "$CC"; then
3495   ac_cv_prog_CC="$CC" # Let the user override the test.
3496 else
3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 for as_dir in $PATH
3499 do
3500   IFS=$as_save_IFS
3501   test -z "$as_dir" && as_dir=.
3502     for ac_exec_ext in '' $ac_executable_extensions; do
3503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3504     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3506     break 2
3507   fi
3508 done
3509   done
3510 IFS=$as_save_IFS
3511
3512 fi
3513 fi
3514 CC=$ac_cv_prog_CC
3515 if test -n "$CC"; then
3516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3517 $as_echo "$CC" >&6; }
3518 else
3519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520 $as_echo "no" >&6; }
3521 fi
3522
3523
3524 fi
3525 if test -z "$ac_cv_prog_CC"; then
3526   ac_ct_CC=$CC
3527   # Extract the first word of "gcc", so it can be a program name with args.
3528 set dummy gcc; ac_word=$2
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3530 $as_echo_n "checking for $ac_word... " >&6; }
3531 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3532   $as_echo_n "(cached) " >&6
3533 else
3534   if test -n "$ac_ct_CC"; then
3535   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3536 else
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 for as_dir in $PATH
3539 do
3540   IFS=$as_save_IFS
3541   test -z "$as_dir" && as_dir=.
3542     for ac_exec_ext in '' $ac_executable_extensions; do
3543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3544     ac_cv_prog_ac_ct_CC="gcc"
3545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3546     break 2
3547   fi
3548 done
3549   done
3550 IFS=$as_save_IFS
3551
3552 fi
3553 fi
3554 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3555 if test -n "$ac_ct_CC"; then
3556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3557 $as_echo "$ac_ct_CC" >&6; }
3558 else
3559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560 $as_echo "no" >&6; }
3561 fi
3562
3563   if test "x$ac_ct_CC" = x; then
3564     CC=""
3565   else
3566     case $cross_compiling:$ac_tool_warned in
3567 yes:)
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3570 ac_tool_warned=yes ;;
3571 esac
3572     CC=$ac_ct_CC
3573   fi
3574 else
3575   CC="$ac_cv_prog_CC"
3576 fi
3577
3578 if test -z "$CC"; then
3579           if test -n "$ac_tool_prefix"; then
3580     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3581 set dummy ${ac_tool_prefix}cc; ac_word=$2
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583 $as_echo_n "checking for $ac_word... " >&6; }
3584 if test "${ac_cv_prog_CC+set}" = set; then :
3585   $as_echo_n "(cached) " >&6
3586 else
3587   if test -n "$CC"; then
3588   ac_cv_prog_CC="$CC" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593   IFS=$as_save_IFS
3594   test -z "$as_dir" && as_dir=.
3595     for ac_exec_ext in '' $ac_executable_extensions; do
3596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3597     ac_cv_prog_CC="${ac_tool_prefix}cc"
3598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3599     break 2
3600   fi
3601 done
3602   done
3603 IFS=$as_save_IFS
3604
3605 fi
3606 fi
3607 CC=$ac_cv_prog_CC
3608 if test -n "$CC"; then
3609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3610 $as_echo "$CC" >&6; }
3611 else
3612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 $as_echo "no" >&6; }
3614 fi
3615
3616
3617   fi
3618 fi
3619 if test -z "$CC"; then
3620   # Extract the first word of "cc", so it can be a program name with args.
3621 set dummy cc; ac_word=$2
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3623 $as_echo_n "checking for $ac_word... " >&6; }
3624 if test "${ac_cv_prog_CC+set}" = set; then :
3625   $as_echo_n "(cached) " >&6
3626 else
3627   if test -n "$CC"; then
3628   ac_cv_prog_CC="$CC" # Let the user override the test.
3629 else
3630   ac_prog_rejected=no
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 for as_dir in $PATH
3633 do
3634   IFS=$as_save_IFS
3635   test -z "$as_dir" && as_dir=.
3636     for ac_exec_ext in '' $ac_executable_extensions; do
3637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3638     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3639        ac_prog_rejected=yes
3640        continue
3641      fi
3642     ac_cv_prog_CC="cc"
3643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3644     break 2
3645   fi
3646 done
3647   done
3648 IFS=$as_save_IFS
3649
3650 if test $ac_prog_rejected = yes; then
3651   # We found a bogon in the path, so make sure we never use it.
3652   set dummy $ac_cv_prog_CC
3653   shift
3654   if test $# != 0; then
3655     # We chose a different compiler from the bogus one.
3656     # However, it has the same basename, so the bogon will be chosen
3657     # first if we set CC to just the basename; use the full file name.
3658     shift
3659     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3660   fi
3661 fi
3662 fi
3663 fi
3664 CC=$ac_cv_prog_CC
3665 if test -n "$CC"; then
3666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3667 $as_echo "$CC" >&6; }
3668 else
3669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3670 $as_echo "no" >&6; }
3671 fi
3672
3673
3674 fi
3675 if test -z "$CC"; then
3676   if test -n "$ac_tool_prefix"; then
3677   for ac_prog in cl.exe
3678   do
3679     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3680 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3682 $as_echo_n "checking for $ac_word... " >&6; }
3683 if test "${ac_cv_prog_CC+set}" = set; then :
3684   $as_echo_n "(cached) " >&6
3685 else
3686   if test -n "$CC"; then
3687   ac_cv_prog_CC="$CC" # Let the user override the test.
3688 else
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690 for as_dir in $PATH
3691 do
3692   IFS=$as_save_IFS
3693   test -z "$as_dir" && as_dir=.
3694     for ac_exec_ext in '' $ac_executable_extensions; do
3695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3696     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3697     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3698     break 2
3699   fi
3700 done
3701   done
3702 IFS=$as_save_IFS
3703
3704 fi
3705 fi
3706 CC=$ac_cv_prog_CC
3707 if test -n "$CC"; then
3708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3709 $as_echo "$CC" >&6; }
3710 else
3711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3713 fi
3714
3715
3716     test -n "$CC" && break
3717   done
3718 fi
3719 if test -z "$CC"; then
3720   ac_ct_CC=$CC
3721   for ac_prog in cl.exe
3722 do
3723   # Extract the first word of "$ac_prog", so it can be a program name with args.
3724 set dummy $ac_prog; ac_word=$2
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3726 $as_echo_n "checking for $ac_word... " >&6; }
3727 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3728   $as_echo_n "(cached) " >&6
3729 else
3730   if test -n "$ac_ct_CC"; then
3731   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3732 else
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH
3735 do
3736   IFS=$as_save_IFS
3737   test -z "$as_dir" && as_dir=.
3738     for ac_exec_ext in '' $ac_executable_extensions; do
3739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3740     ac_cv_prog_ac_ct_CC="$ac_prog"
3741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3742     break 2
3743   fi
3744 done
3745   done
3746 IFS=$as_save_IFS
3747
3748 fi
3749 fi
3750 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3751 if test -n "$ac_ct_CC"; then
3752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3753 $as_echo "$ac_ct_CC" >&6; }
3754 else
3755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3756 $as_echo "no" >&6; }
3757 fi
3758
3759
3760   test -n "$ac_ct_CC" && break
3761 done
3762
3763   if test "x$ac_ct_CC" = x; then
3764     CC=""
3765   else
3766     case $cross_compiling:$ac_tool_warned in
3767 yes:)
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3770 ac_tool_warned=yes ;;
3771 esac
3772     CC=$ac_ct_CC
3773   fi
3774 fi
3775
3776 fi
3777
3778
3779 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3781 as_fn_error "no acceptable C compiler found in \$PATH
3782 See \`config.log' for more details." "$LINENO" 5; }
3783
3784 # Provide some information about the compiler.
3785 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3786 set X $ac_compile
3787 ac_compiler=$2
3788 for ac_option in --version -v -V -qversion; do
3789   { { ac_try="$ac_compiler $ac_option >&5"
3790 case "(($ac_try" in
3791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792   *) ac_try_echo=$ac_try;;
3793 esac
3794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3795 $as_echo "$ac_try_echo"; } >&5
3796   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3797   ac_status=$?
3798   if test -s conftest.err; then
3799     sed '10a\
3800 ... rest of stderr output deleted ...
3801          10q' conftest.err >conftest.er1
3802     cat conftest.er1 >&5
3803     rm -f conftest.er1 conftest.err
3804   fi
3805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3806   test $ac_status = 0; }
3807 done
3808
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h.  */
3811
3812 int
3813 main ()
3814 {
3815
3816   ;
3817   return 0;
3818 }
3819 _ACEOF
3820 ac_clean_files_save=$ac_clean_files
3821 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3822 # Try to create an executable without -o first, disregard a.out.
3823 # It will help us diagnose broken compilers, and finding out an intuition
3824 # of exeext.
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3826 $as_echo_n "checking for C compiler default output file name... " >&6; }
3827 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3828
3829 # The possible output files:
3830 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3831
3832 ac_rmfiles=
3833 for ac_file in $ac_files
3834 do
3835   case $ac_file in
3836     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3837     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3838   esac
3839 done
3840 rm -f $ac_rmfiles
3841
3842 if { { ac_try="$ac_link_default"
3843 case "(($ac_try" in
3844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845   *) ac_try_echo=$ac_try;;
3846 esac
3847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3848 $as_echo "$ac_try_echo"; } >&5
3849   (eval "$ac_link_default") 2>&5
3850   ac_status=$?
3851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3852   test $ac_status = 0; }; then :
3853   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3854 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3855 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3856 # so that the user can short-circuit this test for compilers unknown to
3857 # Autoconf.
3858 for ac_file in $ac_files ''
3859 do
3860   test -f "$ac_file" || continue
3861   case $ac_file in
3862     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3863         ;;
3864     [ab].out )
3865         # We found the default executable, but exeext='' is most
3866         # certainly right.
3867         break;;
3868     *.* )
3869         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3870         then :; else
3871            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3872         fi
3873         # We set ac_cv_exeext here because the later test for it is not
3874         # safe: cross compilers may not add the suffix if given an `-o'
3875         # argument, so we may need to know it at that point already.
3876         # Even if this section looks crufty: it has the advantage of
3877         # actually working.
3878         break;;
3879     * )
3880         break;;
3881   esac
3882 done
3883 test "$ac_cv_exeext" = no && ac_cv_exeext=
3884
3885 else
3886   ac_file=''
3887 fi
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3889 $as_echo "$ac_file" >&6; }
3890 if test -z "$ac_file"; then :
3891   $as_echo "$as_me: failed program was:" >&5
3892 sed 's/^/| /' conftest.$ac_ext >&5
3893
3894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3896 { as_fn_set_status 77
3897 as_fn_error "C compiler cannot create executables
3898 See \`config.log' for more details." "$LINENO" 5; }; }
3899 fi
3900 ac_exeext=$ac_cv_exeext
3901
3902 # Check that the compiler produces executables we can run.  If not, either
3903 # the compiler is broken, or we cross compile.
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3905 $as_echo_n "checking whether the C compiler works... " >&6; }
3906 # If not cross compiling, check that we can run a simple program.
3907 if test "$cross_compiling" != yes; then
3908   if { ac_try='./$ac_file'
3909   { { case "(($ac_try" in
3910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911   *) ac_try_echo=$ac_try;;
3912 esac
3913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3914 $as_echo "$ac_try_echo"; } >&5
3915   (eval "$ac_try") 2>&5
3916   ac_status=$?
3917   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3918   test $ac_status = 0; }; }; then
3919     cross_compiling=no
3920   else
3921     if test "$cross_compiling" = maybe; then
3922         cross_compiling=yes
3923     else
3924         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3926 as_fn_error "cannot run C compiled programs.
3927 If you meant to cross compile, use \`--host'.
3928 See \`config.log' for more details." "$LINENO" 5; }
3929     fi
3930   fi
3931 fi
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3933 $as_echo "yes" >&6; }
3934
3935 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3936 ac_clean_files=$ac_clean_files_save
3937 # Check that the compiler produces executables we can run.  If not, either
3938 # the compiler is broken, or we cross compile.
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3940 $as_echo_n "checking whether we are cross compiling... " >&6; }
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3942 $as_echo "$cross_compiling" >&6; }
3943
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3945 $as_echo_n "checking for suffix of executables... " >&6; }
3946 if { { ac_try="$ac_link"
3947 case "(($ac_try" in
3948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949   *) ac_try_echo=$ac_try;;
3950 esac
3951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3952 $as_echo "$ac_try_echo"; } >&5
3953   (eval "$ac_link") 2>&5
3954   ac_status=$?
3955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3956   test $ac_status = 0; }; then :
3957   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3958 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3959 # work properly (i.e., refer to `conftest.exe'), while it won't with
3960 # `rm'.
3961 for ac_file in conftest.exe conftest conftest.*; do
3962   test -f "$ac_file" || continue
3963   case $ac_file in
3964     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3965     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3966           break;;
3967     * ) break;;
3968   esac
3969 done
3970 else
3971   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3973 as_fn_error "cannot compute suffix of executables: cannot compile and link
3974 See \`config.log' for more details." "$LINENO" 5; }
3975 fi
3976 rm -f conftest$ac_cv_exeext
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3978 $as_echo "$ac_cv_exeext" >&6; }
3979
3980 rm -f conftest.$ac_ext
3981 EXEEXT=$ac_cv_exeext
3982 ac_exeext=$EXEEXT
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3984 $as_echo_n "checking for suffix of object files... " >&6; }
3985 if test "${ac_cv_objext+set}" = set; then :
3986   $as_echo_n "(cached) " >&6
3987 else
3988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h.  */
3990
3991 int
3992 main ()
3993 {
3994
3995   ;
3996   return 0;
3997 }
3998 _ACEOF
3999 rm -f conftest.o conftest.obj
4000 if { { ac_try="$ac_compile"
4001 case "(($ac_try" in
4002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003   *) ac_try_echo=$ac_try;;
4004 esac
4005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4006 $as_echo "$ac_try_echo"; } >&5
4007   (eval "$ac_compile") 2>&5
4008   ac_status=$?
4009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010   test $ac_status = 0; }; then :
4011   for ac_file in conftest.o conftest.obj conftest.*; do
4012   test -f "$ac_file" || continue;
4013   case $ac_file in
4014     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4015     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4016        break;;
4017   esac
4018 done
4019 else
4020   $as_echo "$as_me: failed program was:" >&5
4021 sed 's/^/| /' conftest.$ac_ext >&5
4022
4023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4025 as_fn_error "cannot compute suffix of object files: cannot compile
4026 See \`config.log' for more details." "$LINENO" 5; }
4027 fi
4028 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4029 fi
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4031 $as_echo "$ac_cv_objext" >&6; }
4032 OBJEXT=$ac_cv_objext
4033 ac_objext=$OBJEXT
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4035 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4036 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4037   $as_echo_n "(cached) " >&6
4038 else
4039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h.  */
4041
4042 int
4043 main ()
4044 {
4045 #ifndef __GNUC__
4046        choke me
4047 #endif
4048
4049   ;
4050   return 0;
4051 }
4052 _ACEOF
4053 if ac_fn_c_try_compile "$LINENO"; then :
4054   ac_compiler_gnu=yes
4055 else
4056   ac_compiler_gnu=no
4057 fi
4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4060
4061 fi
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4063 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4064 if test $ac_compiler_gnu = yes; then
4065   GCC=yes
4066 else
4067   GCC=
4068 fi
4069 ac_test_CFLAGS=${CFLAGS+set}
4070 ac_save_CFLAGS=$CFLAGS
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4072 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4073 if test "${ac_cv_prog_cc_g+set}" = set; then :
4074   $as_echo_n "(cached) " >&6
4075 else
4076   ac_save_c_werror_flag=$ac_c_werror_flag
4077    ac_c_werror_flag=yes
4078    ac_cv_prog_cc_g=no
4079    CFLAGS="-g"
4080    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h.  */
4082
4083 int
4084 main ()
4085 {
4086
4087   ;
4088   return 0;
4089 }
4090 _ACEOF
4091 if ac_fn_c_try_compile "$LINENO"; then :
4092   ac_cv_prog_cc_g=yes
4093 else
4094   CFLAGS=""
4095       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h.  */
4097
4098 int
4099 main ()
4100 {
4101
4102   ;
4103   return 0;
4104 }
4105 _ACEOF
4106 if ac_fn_c_try_compile "$LINENO"; then :
4107
4108 else
4109   ac_c_werror_flag=$ac_save_c_werror_flag
4110          CFLAGS="-g"
4111          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h.  */
4113
4114 int
4115 main ()
4116 {
4117
4118   ;
4119   return 0;
4120 }
4121 _ACEOF
4122 if ac_fn_c_try_compile "$LINENO"; then :
4123   ac_cv_prog_cc_g=yes
4124 fi
4125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_c_werror_flag=$ac_save_c_werror_flag
4131 fi
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4133 $as_echo "$ac_cv_prog_cc_g" >&6; }
4134 if test "$ac_test_CFLAGS" = set; then
4135   CFLAGS=$ac_save_CFLAGS
4136 elif test $ac_cv_prog_cc_g = yes; then
4137   if test "$GCC" = yes; then
4138     CFLAGS="-g -O2"
4139   else
4140     CFLAGS="-g"
4141   fi
4142 else
4143   if test "$GCC" = yes; then
4144     CFLAGS="-O2"
4145   else
4146     CFLAGS=
4147   fi
4148 fi
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4150 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4151 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4152   $as_echo_n "(cached) " >&6
4153 else
4154   ac_cv_prog_cc_c89=no
4155 ac_save_CC=$CC
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h.  */
4158 #include <stdarg.h>
4159 #include <stdio.h>
4160 #include <sys/types.h>
4161 #include <sys/stat.h>
4162 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4163 struct buf { int x; };
4164 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4165 static char *e (p, i)
4166      char **p;
4167      int i;
4168 {
4169   return p[i];
4170 }
4171 static char *f (char * (*g) (char **, int), char **p, ...)
4172 {
4173   char *s;
4174   va_list v;
4175   va_start (v,p);
4176   s = g (p, va_arg (v,int));
4177   va_end (v);
4178   return s;
4179 }
4180
4181 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4182    function prototypes and stuff, but not '\xHH' hex character constants.
4183    These don't provoke an error unfortunately, instead are silently treated
4184    as 'x'.  The following induces an error, until -std is added to get
4185    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4186    array size at least.  It's necessary to write '\x00'==0 to get something
4187    that's true only with -std.  */
4188 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4189
4190 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4191    inside strings and character constants.  */
4192 #define FOO(x) 'x'
4193 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4194
4195 int test (int i, double x);
4196 struct s1 {int (*f) (int a);};
4197 struct s2 {int (*f) (double a);};
4198 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4199 int argc;
4200 char **argv;
4201 int
4202 main ()
4203 {
4204 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4205   ;
4206   return 0;
4207 }
4208 _ACEOF
4209 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4210         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4211 do
4212   CC="$ac_save_CC $ac_arg"
4213   if ac_fn_c_try_compile "$LINENO"; then :
4214   ac_cv_prog_cc_c89=$ac_arg
4215 fi
4216 rm -f core conftest.err conftest.$ac_objext
4217   test "x$ac_cv_prog_cc_c89" != "xno" && break
4218 done
4219 rm -f conftest.$ac_ext
4220 CC=$ac_save_CC
4221
4222 fi
4223 # AC_CACHE_VAL
4224 case "x$ac_cv_prog_cc_c89" in
4225   x)
4226     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4227 $as_echo "none needed" >&6; } ;;
4228   xno)
4229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4230 $as_echo "unsupported" >&6; } ;;
4231   *)
4232     CC="$CC $ac_cv_prog_cc_c89"
4233     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4234 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4235 esac
4236 if test "x$ac_cv_prog_cc_c89" != xno; then :
4237
4238 fi
4239
4240 ac_ext=c
4241 ac_cpp='$CPP $CPPFLAGS'
4242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4245
4246 if test "x$CC" != xcc; then
4247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4248 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4249 else
4250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4251 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4252 fi
4253 set dummy $CC; ac_cc=`$as_echo "$2" |
4254                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4255 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4256   $as_echo_n "(cached) " >&6
4257 else
4258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h.  */
4260
4261 int
4262 main ()
4263 {
4264
4265   ;
4266   return 0;
4267 }
4268 _ACEOF
4269 # Make sure it works both with $CC and with simple cc.
4270 # We do the test twice because some compilers refuse to overwrite an
4271 # existing .o file with -o, though they will create one.
4272 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4273 rm -f conftest2.*
4274 if { { case "(($ac_try" in
4275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276   *) ac_try_echo=$ac_try;;
4277 esac
4278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4279 $as_echo "$ac_try_echo"; } >&5
4280   (eval "$ac_try") 2>&5
4281   ac_status=$?
4282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4283   test $ac_status = 0; } &&
4284    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286   *) ac_try_echo=$ac_try;;
4287 esac
4288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4289 $as_echo "$ac_try_echo"; } >&5
4290   (eval "$ac_try") 2>&5
4291   ac_status=$?
4292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293   test $ac_status = 0; };
4294 then
4295   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4296   if test "x$CC" != xcc; then
4297     # Test first that cc exists at all.
4298     if { ac_try='cc -c conftest.$ac_ext >&5'
4299   { { case "(($ac_try" in
4300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301   *) ac_try_echo=$ac_try;;
4302 esac
4303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304 $as_echo "$ac_try_echo"; } >&5
4305   (eval "$ac_try") 2>&5
4306   ac_status=$?
4307   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4308   test $ac_status = 0; }; }; then
4309       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4310       rm -f conftest2.*
4311       if { { case "(($ac_try" in
4312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313   *) ac_try_echo=$ac_try;;
4314 esac
4315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4316 $as_echo "$ac_try_echo"; } >&5
4317   (eval "$ac_try") 2>&5
4318   ac_status=$?
4319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4320   test $ac_status = 0; } &&
4321          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323   *) ac_try_echo=$ac_try;;
4324 esac
4325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4326 $as_echo "$ac_try_echo"; } >&5
4327   (eval "$ac_try") 2>&5
4328   ac_status=$?
4329   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4330   test $ac_status = 0; };
4331       then
4332         # cc works too.
4333         :
4334       else
4335         # cc exists but doesn't like -o.
4336         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4337       fi
4338     fi
4339   fi
4340 else
4341   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4342 fi
4343 rm -f core conftest*
4344
4345 fi
4346 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4348 $as_echo "yes" >&6; }
4349 else
4350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4352
4353 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4354
4355 fi
4356
4357 # expand $ac_aux_dir to an absolute path
4358 am_aux_dir=`cd $ac_aux_dir && pwd`
4359
4360 # FIXME: we rely on the cache variable name because
4361 # there is no other way.
4362 set dummy $CC
4363 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4364 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4365 if test "$am_t" != yes; then
4366    # Losing compiler, so override with the script.
4367    # FIXME: It is wrong to rewrite CC.
4368    # But if we don't then we get into trouble of one sort or another.
4369    # A longer-term fix would be to have automake use am__CC in this case,
4370    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4371    CC="$am_aux_dir/compile $CC"
4372 fi
4373
4374
4375 ac_ext=cpp
4376 ac_cpp='$CXXCPP $CPPFLAGS'
4377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4380 if test -z "$CXX"; then
4381   if test -n "$CCC"; then
4382     CXX=$CCC
4383   else
4384     if test -n "$ac_tool_prefix"; then
4385   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4386   do
4387     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4390 $as_echo_n "checking for $ac_word... " >&6; }
4391 if test "${ac_cv_prog_CXX+set}" = set; then :
4392   $as_echo_n "(cached) " >&6
4393 else
4394   if test -n "$CXX"; then
4395   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4396 else
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4399 do
4400   IFS=$as_save_IFS
4401   test -z "$as_dir" && as_dir=.
4402     for ac_exec_ext in '' $ac_executable_extensions; do
4403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406     break 2
4407   fi
4408 done
4409   done
4410 IFS=$as_save_IFS
4411
4412 fi
4413 fi
4414 CXX=$ac_cv_prog_CXX
4415 if test -n "$CXX"; then
4416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4417 $as_echo "$CXX" >&6; }
4418 else
4419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4421 fi
4422
4423
4424     test -n "$CXX" && break
4425   done
4426 fi
4427 if test -z "$CXX"; then
4428   ac_ct_CXX=$CXX
4429   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4430 do
4431   # Extract the first word of "$ac_prog", so it can be a program name with args.
4432 set dummy $ac_prog; ac_word=$2
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434 $as_echo_n "checking for $ac_word... " >&6; }
4435 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4436   $as_echo_n "(cached) " >&6
4437 else
4438   if test -n "$ac_ct_CXX"; then
4439   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4440 else
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH
4443 do
4444   IFS=$as_save_IFS
4445   test -z "$as_dir" && as_dir=.
4446     for ac_exec_ext in '' $ac_executable_extensions; do
4447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4448     ac_cv_prog_ac_ct_CXX="$ac_prog"
4449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4450     break 2
4451   fi
4452 done
4453   done
4454 IFS=$as_save_IFS
4455
4456 fi
4457 fi
4458 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4459 if test -n "$ac_ct_CXX"; then
4460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4461 $as_echo "$ac_ct_CXX" >&6; }
4462 else
4463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464 $as_echo "no" >&6; }
4465 fi
4466
4467
4468   test -n "$ac_ct_CXX" && break
4469 done
4470
4471   if test "x$ac_ct_CXX" = x; then
4472     CXX="g++"
4473   else
4474     case $cross_compiling:$ac_tool_warned in
4475 yes:)
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4478 ac_tool_warned=yes ;;
4479 esac
4480     CXX=$ac_ct_CXX
4481   fi
4482 fi
4483
4484   fi
4485 fi
4486 # Provide some information about the compiler.
4487 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4488 set X $ac_compile
4489 ac_compiler=$2
4490 for ac_option in --version -v -V -qversion; do
4491   { { ac_try="$ac_compiler $ac_option >&5"
4492 case "(($ac_try" in
4493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494   *) ac_try_echo=$ac_try;;
4495 esac
4496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4497 $as_echo "$ac_try_echo"; } >&5
4498   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4499   ac_status=$?
4500   if test -s conftest.err; then
4501     sed '10a\
4502 ... rest of stderr output deleted ...
4503          10q' conftest.err >conftest.er1
4504     cat conftest.er1 >&5
4505     rm -f conftest.er1 conftest.err
4506   fi
4507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4508   test $ac_status = 0; }
4509 done
4510
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4512 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4513 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4514   $as_echo_n "(cached) " >&6
4515 else
4516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h.  */
4518
4519 int
4520 main ()
4521 {
4522 #ifndef __GNUC__
4523        choke me
4524 #endif
4525
4526   ;
4527   return 0;
4528 }
4529 _ACEOF
4530 if ac_fn_cxx_try_compile "$LINENO"; then :
4531   ac_compiler_gnu=yes
4532 else
4533   ac_compiler_gnu=no
4534 fi
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4537
4538 fi
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4540 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4541 if test $ac_compiler_gnu = yes; then
4542   GXX=yes
4543 else
4544   GXX=
4545 fi
4546 ac_test_CXXFLAGS=${CXXFLAGS+set}
4547 ac_save_CXXFLAGS=$CXXFLAGS
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4549 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4550 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4551   $as_echo_n "(cached) " >&6
4552 else
4553   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4554    ac_cxx_werror_flag=yes
4555    ac_cv_prog_cxx_g=no
4556    CXXFLAGS="-g"
4557    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h.  */
4559
4560 int
4561 main ()
4562 {
4563
4564   ;
4565   return 0;
4566 }
4567 _ACEOF
4568 if ac_fn_cxx_try_compile "$LINENO"; then :
4569   ac_cv_prog_cxx_g=yes
4570 else
4571   CXXFLAGS=""
4572       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h.  */
4574
4575 int
4576 main ()
4577 {
4578
4579   ;
4580   return 0;
4581 }
4582 _ACEOF
4583 if ac_fn_cxx_try_compile "$LINENO"; then :
4584
4585 else
4586   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4587          CXXFLAGS="-g"
4588          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h.  */
4590
4591 int
4592 main ()
4593 {
4594
4595   ;
4596   return 0;
4597 }
4598 _ACEOF
4599 if ac_fn_cxx_try_compile "$LINENO"; then :
4600   ac_cv_prog_cxx_g=yes
4601 fi
4602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4608 fi
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4610 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4611 if test "$ac_test_CXXFLAGS" = set; then
4612   CXXFLAGS=$ac_save_CXXFLAGS
4613 elif test $ac_cv_prog_cxx_g = yes; then
4614   if test "$GXX" = yes; then
4615     CXXFLAGS="-g -O2"
4616   else
4617     CXXFLAGS="-g"
4618   fi
4619 else
4620   if test "$GXX" = yes; then
4621     CXXFLAGS="-O2"
4622   else
4623     CXXFLAGS=
4624   fi
4625 fi
4626 ac_ext=c
4627 ac_cpp='$CPP $CPPFLAGS'
4628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4631
4632
4633
4634
4635 if test -n "$ac_tool_prefix"; then
4636   # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4637 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4641   $as_echo_n "(cached) " >&6
4642 else
4643   if test -n "$GNATBIND"; then
4644   ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4648 do
4649   IFS=$as_save_IFS
4650   test -z "$as_dir" && as_dir=.
4651     for ac_exec_ext in '' $ac_executable_extensions; do
4652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4653     ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655     break 2
4656   fi
4657 done
4658   done
4659 IFS=$as_save_IFS
4660
4661 fi
4662 fi
4663 GNATBIND=$ac_cv_prog_GNATBIND
4664 if test -n "$GNATBIND"; then
4665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4666 $as_echo "$GNATBIND" >&6; }
4667 else
4668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4670 fi
4671
4672
4673 fi
4674 if test -z "$ac_cv_prog_GNATBIND"; then
4675   ac_ct_GNATBIND=$GNATBIND
4676   # Extract the first word of "gnatbind", so it can be a program name with args.
4677 set dummy gnatbind; ac_word=$2
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679 $as_echo_n "checking for $ac_word... " >&6; }
4680 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4681   $as_echo_n "(cached) " >&6
4682 else
4683   if test -n "$ac_ct_GNATBIND"; then
4684   ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4685 else
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689   IFS=$as_save_IFS
4690   test -z "$as_dir" && as_dir=.
4691     for ac_exec_ext in '' $ac_executable_extensions; do
4692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693     ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695     break 2
4696   fi
4697 done
4698   done
4699 IFS=$as_save_IFS
4700
4701 fi
4702 fi
4703 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4704 if test -n "$ac_ct_GNATBIND"; then
4705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4706 $as_echo "$ac_ct_GNATBIND" >&6; }
4707 else
4708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709 $as_echo "no" >&6; }
4710 fi
4711
4712   if test "x$ac_ct_GNATBIND" = x; then
4713     GNATBIND="no"
4714   else
4715     case $cross_compiling:$ac_tool_warned in
4716 yes:)
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4719 ac_tool_warned=yes ;;
4720 esac
4721     GNATBIND=$ac_ct_GNATBIND
4722   fi
4723 else
4724   GNATBIND="$ac_cv_prog_GNATBIND"
4725 fi
4726
4727 if test -n "$ac_tool_prefix"; then
4728   # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4729 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4731 $as_echo_n "checking for $ac_word... " >&6; }
4732 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4733   $as_echo_n "(cached) " >&6
4734 else
4735   if test -n "$GNATMAKE"; then
4736   ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4737 else
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 for as_dir in $PATH
4740 do
4741   IFS=$as_save_IFS
4742   test -z "$as_dir" && as_dir=.
4743     for ac_exec_ext in '' $ac_executable_extensions; do
4744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4745     ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4747     break 2
4748   fi
4749 done
4750   done
4751 IFS=$as_save_IFS
4752
4753 fi
4754 fi
4755 GNATMAKE=$ac_cv_prog_GNATMAKE
4756 if test -n "$GNATMAKE"; then
4757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4758 $as_echo "$GNATMAKE" >&6; }
4759 else
4760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761 $as_echo "no" >&6; }
4762 fi
4763
4764
4765 fi
4766 if test -z "$ac_cv_prog_GNATMAKE"; then
4767   ac_ct_GNATMAKE=$GNATMAKE
4768   # Extract the first word of "gnatmake", so it can be a program name with args.
4769 set dummy gnatmake; ac_word=$2
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 $as_echo_n "checking for $ac_word... " >&6; }
4772 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4773   $as_echo_n "(cached) " >&6
4774 else
4775   if test -n "$ac_ct_GNATMAKE"; then
4776   ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4777 else
4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 for as_dir in $PATH
4780 do
4781   IFS=$as_save_IFS
4782   test -z "$as_dir" && as_dir=.
4783     for ac_exec_ext in '' $ac_executable_extensions; do
4784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4785     ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4787     break 2
4788   fi
4789 done
4790   done
4791 IFS=$as_save_IFS
4792
4793 fi
4794 fi
4795 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4796 if test -n "$ac_ct_GNATMAKE"; then
4797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4798 $as_echo "$ac_ct_GNATMAKE" >&6; }
4799 else
4800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801 $as_echo "no" >&6; }
4802 fi
4803
4804   if test "x$ac_ct_GNATMAKE" = x; then
4805     GNATMAKE="no"
4806   else
4807     case $cross_compiling:$ac_tool_warned in
4808 yes:)
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4811 ac_tool_warned=yes ;;
4812 esac
4813     GNATMAKE=$ac_ct_GNATMAKE
4814   fi
4815 else
4816   GNATMAKE="$ac_cv_prog_GNATMAKE"
4817 fi
4818
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4820 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4821 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4822   $as_echo_n "(cached) " >&6
4823 else
4824   cat >conftest.adb <<EOF
4825 procedure conftest is begin null; end conftest;
4826 EOF
4827 acx_cv_cc_gcc_supports_ada=no
4828 # There is a bug in old released versions of GCC which causes the
4829 # driver to exit successfully when the appropriate language module
4830 # has not been installed.  This is fixed in 2.95.4, 3.0.2, and 3.1.
4831 # Therefore we must check for the error message as well as an
4832 # unsuccessful exit.
4833 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4834 # given a .adb file, but produce no object file.  So we must check
4835 # if an object file was really produced to guard against this.
4836 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4837 if test x"$errors" = x && test -f conftest.$ac_objext; then
4838   acx_cv_cc_gcc_supports_ada=yes
4839 fi
4840 rm -f conftest.*
4841 fi
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4843 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4844
4845 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4846   have_gnat=yes
4847 else
4848   have_gnat=no
4849 fi
4850
4851
4852 # autoconf is lame and doesn't give us any substitution variable for this.
4853 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4854   NO_MINUS_C_MINUS_O=yes
4855 else
4856   OUTPUT_OPTION='-o $@'
4857 fi
4858
4859
4860
4861 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4862 # optimizations to be activated explicitly by the toplevel.
4863 case "$CC" in
4864   */prev-gcc/xgcc*) ;;
4865   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4866 esac
4867
4868
4869 # -------------------------
4870 # Check C compiler features
4871 # -------------------------
4872
4873
4874 ac_ext=c
4875 ac_cpp='$CPP $CPPFLAGS'
4876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4880 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4881 # On Suns, sometimes $CPP names a directory.
4882 if test -n "$CPP" && test -d "$CPP"; then
4883   CPP=
4884 fi
4885 if test -z "$CPP"; then
4886   if test "${ac_cv_prog_CPP+set}" = set; then :
4887   $as_echo_n "(cached) " >&6
4888 else
4889       # Double quotes because CPP needs to be expanded
4890     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4891     do
4892       ac_preproc_ok=false
4893 for ac_c_preproc_warn_flag in '' yes
4894 do
4895   # Use a header file that comes with gcc, so configuring glibc
4896   # with a fresh cross-compiler works.
4897   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4898   # <limits.h> exists even on freestanding compilers.
4899   # On the NeXT, cc -E runs the code through the compiler's parser,
4900   # not just through cpp. "Syntax error" is here to catch this case.
4901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h.  */
4903 #ifdef __STDC__
4904 # include <limits.h>
4905 #else
4906 # include <assert.h>
4907 #endif
4908                      Syntax error
4909 _ACEOF
4910 if ac_fn_c_try_cpp "$LINENO"; then :
4911
4912 else
4913   # Broken: fails on valid input.
4914 continue
4915 fi
4916 rm -f conftest.err conftest.$ac_ext
4917
4918   # OK, works on sane cases.  Now check whether nonexistent headers
4919   # can be detected and how.
4920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921 /* end confdefs.h.  */
4922 #include <ac_nonexistent.h>
4923 _ACEOF
4924 if ac_fn_c_try_cpp "$LINENO"; then :
4925   # Broken: success on invalid input.
4926 continue
4927 else
4928   # Passes both tests.
4929 ac_preproc_ok=:
4930 break
4931 fi
4932 rm -f conftest.err conftest.$ac_ext
4933
4934 done
4935 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4936 rm -f conftest.err conftest.$ac_ext
4937 if $ac_preproc_ok; then :
4938   break
4939 fi
4940
4941     done
4942     ac_cv_prog_CPP=$CPP
4943
4944 fi
4945   CPP=$ac_cv_prog_CPP
4946 else
4947   ac_cv_prog_CPP=$CPP
4948 fi
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4950 $as_echo "$CPP" >&6; }
4951 ac_preproc_ok=false
4952 for ac_c_preproc_warn_flag in '' yes
4953 do
4954   # Use a header file that comes with gcc, so configuring glibc
4955   # with a fresh cross-compiler works.
4956   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4957   # <limits.h> exists even on freestanding compilers.
4958   # On the NeXT, cc -E runs the code through the compiler's parser,
4959   # not just through cpp. "Syntax error" is here to catch this case.
4960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h.  */
4962 #ifdef __STDC__
4963 # include <limits.h>
4964 #else
4965 # include <assert.h>
4966 #endif
4967                      Syntax error
4968 _ACEOF
4969 if ac_fn_c_try_cpp "$LINENO"; then :
4970
4971 else
4972   # Broken: fails on valid input.
4973 continue
4974 fi
4975 rm -f conftest.err conftest.$ac_ext
4976
4977   # OK, works on sane cases.  Now check whether nonexistent headers
4978   # can be detected and how.
4979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980 /* end confdefs.h.  */
4981 #include <ac_nonexistent.h>
4982 _ACEOF
4983 if ac_fn_c_try_cpp "$LINENO"; then :
4984   # Broken: success on invalid input.
4985 continue
4986 else
4987   # Passes both tests.
4988 ac_preproc_ok=:
4989 break
4990 fi
4991 rm -f conftest.err conftest.$ac_ext
4992
4993 done
4994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4995 rm -f conftest.err conftest.$ac_ext
4996 if $ac_preproc_ok; then :
4997
4998 else
4999   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5001 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5002 See \`config.log' for more details." "$LINENO" 5; }
5003 fi
5004
5005 ac_ext=c
5006 ac_cpp='$CPP $CPPFLAGS'
5007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5010
5011
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5013 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5014 if test "${ac_cv_path_GREP+set}" = set; then :
5015   $as_echo_n "(cached) " >&6
5016 else
5017   if test -z "$GREP"; then
5018   ac_path_GREP_found=false
5019   # Loop through the user's path and test for each of PROGNAME-LIST
5020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5022 do
5023   IFS=$as_save_IFS
5024   test -z "$as_dir" && as_dir=.
5025     for ac_prog in grep ggrep; do
5026     for ac_exec_ext in '' $ac_executable_extensions; do
5027       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5028       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5029 # Check for GNU ac_path_GREP and select it if it is found.
5030   # Check for GNU $ac_path_GREP
5031 case `"$ac_path_GREP" --version 2>&1` in
5032 *GNU*)
5033   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5034 *)
5035   ac_count=0
5036   $as_echo_n 0123456789 >"conftest.in"
5037   while :
5038   do
5039     cat "conftest.in" "conftest.in" >"conftest.tmp"
5040     mv "conftest.tmp" "conftest.in"
5041     cp "conftest.in" "conftest.nl"
5042     $as_echo 'GREP' >> "conftest.nl"
5043     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5044     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5045     as_fn_arith $ac_count + 1 && ac_count=$as_val
5046     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5047       # Best one so far, save it but keep looking for a better one
5048       ac_cv_path_GREP="$ac_path_GREP"
5049       ac_path_GREP_max=$ac_count
5050     fi
5051     # 10*(2^10) chars as input seems more than enough
5052     test $ac_count -gt 10 && break
5053   done
5054   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5055 esac
5056
5057       $ac_path_GREP_found && break 3
5058     done
5059   done
5060   done
5061 IFS=$as_save_IFS
5062   if test -z "$ac_cv_path_GREP"; then
5063     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5064   fi
5065 else
5066   ac_cv_path_GREP=$GREP
5067 fi
5068
5069 fi
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5071 $as_echo "$ac_cv_path_GREP" >&6; }
5072  GREP="$ac_cv_path_GREP"
5073
5074
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5076 $as_echo_n "checking for egrep... " >&6; }
5077 if test "${ac_cv_path_EGREP+set}" = set; then :
5078   $as_echo_n "(cached) " >&6
5079 else
5080   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5081    then ac_cv_path_EGREP="$GREP -E"
5082    else
5083      if test -z "$EGREP"; then
5084   ac_path_EGREP_found=false
5085   # Loop through the user's path and test for each of PROGNAME-LIST
5086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5088 do
5089   IFS=$as_save_IFS
5090   test -z "$as_dir" && as_dir=.
5091     for ac_prog in egrep; do
5092     for ac_exec_ext in '' $ac_executable_extensions; do
5093       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5094       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5095 # Check for GNU ac_path_EGREP and select it if it is found.
5096   # Check for GNU $ac_path_EGREP
5097 case `"$ac_path_EGREP" --version 2>&1` in
5098 *GNU*)
5099   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5100 *)
5101   ac_count=0
5102   $as_echo_n 0123456789 >"conftest.in"
5103   while :
5104   do
5105     cat "conftest.in" "conftest.in" >"conftest.tmp"
5106     mv "conftest.tmp" "conftest.in"
5107     cp "conftest.in" "conftest.nl"
5108     $as_echo 'EGREP' >> "conftest.nl"
5109     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5110     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5111     as_fn_arith $ac_count + 1 && ac_count=$as_val
5112     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5113       # Best one so far, save it but keep looking for a better one
5114       ac_cv_path_EGREP="$ac_path_EGREP"
5115       ac_path_EGREP_max=$ac_count
5116     fi
5117     # 10*(2^10) chars as input seems more than enough
5118     test $ac_count -gt 10 && break
5119   done
5120   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5121 esac
5122
5123       $ac_path_EGREP_found && break 3
5124     done
5125   done
5126   done
5127 IFS=$as_save_IFS
5128   if test -z "$ac_cv_path_EGREP"; then
5129     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5130   fi
5131 else
5132   ac_cv_path_EGREP=$EGREP
5133 fi
5134
5135    fi
5136 fi
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5138 $as_echo "$ac_cv_path_EGREP" >&6; }
5139  EGREP="$ac_cv_path_EGREP"
5140
5141
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5143 $as_echo_n "checking for ANSI C header files... " >&6; }
5144 if test "${ac_cv_header_stdc+set}" = set; then :
5145   $as_echo_n "(cached) " >&6
5146 else
5147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5148 /* end confdefs.h.  */
5149 #include <stdlib.h>
5150 #include <stdarg.h>
5151 #include <string.h>
5152 #include <float.h>
5153
5154 int
5155 main ()
5156 {
5157
5158   ;
5159   return 0;
5160 }
5161 _ACEOF
5162 if ac_fn_c_try_compile "$LINENO"; then :
5163   ac_cv_header_stdc=yes
5164 else
5165   ac_cv_header_stdc=no
5166 fi
5167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168
5169 if test $ac_cv_header_stdc = yes; then
5170   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h.  */
5173 #include <string.h>
5174
5175 _ACEOF
5176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5177   $EGREP "memchr" >/dev/null 2>&1; then :
5178
5179 else
5180   ac_cv_header_stdc=no
5181 fi
5182 rm -f conftest*
5183
5184 fi
5185
5186 if test $ac_cv_header_stdc = yes; then
5187   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189 /* end confdefs.h.  */
5190 #include <stdlib.h>
5191
5192 _ACEOF
5193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5194   $EGREP "free" >/dev/null 2>&1; then :
5195
5196 else
5197   ac_cv_header_stdc=no
5198 fi
5199 rm -f conftest*
5200
5201 fi
5202
5203 if test $ac_cv_header_stdc = yes; then
5204   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5205   if test "$cross_compiling" = yes; then :
5206   :
5207 else
5208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5209 /* end confdefs.h.  */
5210 #include <ctype.h>
5211 #include <stdlib.h>
5212 #if ((' ' & 0x0FF) == 0x020)
5213 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5214 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5215 #else
5216 # define ISLOWER(c) \
5217                    (('a' <= (c) && (c) <= 'i') \
5218                      || ('j' <= (c) && (c) <= 'r') \
5219                      || ('s' <= (c) && (c) <= 'z'))
5220 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5221 #endif
5222
5223 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5224 int
5225 main ()
5226 {
5227   int i;
5228   for (i = 0; i < 256; i++)
5229     if (XOR (islower (i), ISLOWER (i))
5230         || toupper (i) != TOUPPER (i))
5231       return 2;
5232   return 0;
5233 }
5234 _ACEOF
5235 if ac_fn_c_try_run "$LINENO"; then :
5236
5237 else
5238   ac_cv_header_stdc=no
5239 fi
5240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5241   conftest.$ac_objext conftest.beam conftest.$ac_ext
5242 fi
5243
5244 fi
5245 fi
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5247 $as_echo "$ac_cv_header_stdc" >&6; }
5248 if test $ac_cv_header_stdc = yes; then
5249
5250 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5251
5252 fi
5253
5254 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5255 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5256                   inttypes.h stdint.h unistd.h
5257 do :
5258   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5259 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5260 "
5261 eval as_val=\$$as_ac_Header
5262    if test "x$as_val" = x""yes; then :
5263   cat >>confdefs.h <<_ACEOF
5264 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5265 _ACEOF
5266
5267 fi
5268
5269 done
5270
5271
5272
5273   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5274 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5275   MINIX=yes
5276 else
5277   MINIX=
5278 fi
5279
5280
5281   if test "$MINIX" = yes; then
5282
5283 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5284
5285
5286 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5287
5288
5289 $as_echo "#define _MINIX 1" >>confdefs.h
5290
5291   fi
5292
5293
5294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5295 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5296 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5297   $as_echo_n "(cached) " >&6
5298 else
5299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h.  */
5301
5302 #         define __EXTENSIONS__ 1
5303           $ac_includes_default
5304 int
5305 main ()
5306 {
5307
5308   ;
5309   return 0;
5310 }
5311 _ACEOF
5312 if ac_fn_c_try_compile "$LINENO"; then :
5313   ac_cv_safe_to_define___extensions__=yes
5314 else
5315   ac_cv_safe_to_define___extensions__=no
5316 fi
5317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318 fi
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5320 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5321   test $ac_cv_safe_to_define___extensions__ = yes &&
5322     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5323
5324   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5325
5326   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5327
5328   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5329
5330   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5331
5332
5333 ac_ext=c
5334 ac_cpp='$CPP $CPPFLAGS'
5335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5339 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5340 # On Suns, sometimes $CPP names a directory.
5341 if test -n "$CPP" && test -d "$CPP"; then
5342   CPP=
5343 fi
5344 if test -z "$CPP"; then
5345   if test "${ac_cv_prog_CPP+set}" = set; then :
5346   $as_echo_n "(cached) " >&6
5347 else
5348       # Double quotes because CPP needs to be expanded
5349     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5350     do
5351       ac_preproc_ok=false
5352 for ac_c_preproc_warn_flag in '' yes
5353 do
5354   # Use a header file that comes with gcc, so configuring glibc
5355   # with a fresh cross-compiler works.
5356   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5357   # <limits.h> exists even on freestanding compilers.
5358   # On the NeXT, cc -E runs the code through the compiler's parser,
5359   # not just through cpp. "Syntax error" is here to catch this case.
5360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h.  */
5362 #ifdef __STDC__
5363 # include <limits.h>
5364 #else
5365 # include <assert.h>
5366 #endif
5367                      Syntax error
5368 _ACEOF
5369 if ac_fn_c_try_cpp "$LINENO"; then :
5370
5371 else
5372   # Broken: fails on valid input.
5373 continue
5374 fi
5375 rm -f conftest.err conftest.$ac_ext
5376
5377   # OK, works on sane cases.  Now check whether nonexistent headers
5378   # can be detected and how.
5379   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h.  */
5381 #include <ac_nonexistent.h>
5382 _ACEOF
5383 if ac_fn_c_try_cpp "$LINENO"; then :
5384   # Broken: success on invalid input.
5385 continue
5386 else
5387   # Passes both tests.
5388 ac_preproc_ok=:
5389 break
5390 fi
5391 rm -f conftest.err conftest.$ac_ext
5392
5393 done
5394 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5395 rm -f conftest.err conftest.$ac_ext
5396 if $ac_preproc_ok; then :
5397   break
5398 fi
5399
5400     done
5401     ac_cv_prog_CPP=$CPP
5402
5403 fi
5404   CPP=$ac_cv_prog_CPP
5405 else
5406   ac_cv_prog_CPP=$CPP
5407 fi
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5409 $as_echo "$CPP" >&6; }
5410 ac_preproc_ok=false
5411 for ac_c_preproc_warn_flag in '' yes
5412 do
5413   # Use a header file that comes with gcc, so configuring glibc
5414   # with a fresh cross-compiler works.
5415   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5416   # <limits.h> exists even on freestanding compilers.
5417   # On the NeXT, cc -E runs the code through the compiler's parser,
5418   # not just through cpp. "Syntax error" is here to catch this case.
5419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h.  */
5421 #ifdef __STDC__
5422 # include <limits.h>
5423 #else
5424 # include <assert.h>
5425 #endif
5426                      Syntax error
5427 _ACEOF
5428 if ac_fn_c_try_cpp "$LINENO"; then :
5429
5430 else
5431   # Broken: fails on valid input.
5432 continue
5433 fi
5434 rm -f conftest.err conftest.$ac_ext
5435
5436   # OK, works on sane cases.  Now check whether nonexistent headers
5437   # can be detected and how.
5438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h.  */
5440 #include <ac_nonexistent.h>
5441 _ACEOF
5442 if ac_fn_c_try_cpp "$LINENO"; then :
5443   # Broken: success on invalid input.
5444 continue
5445 else
5446   # Passes both tests.
5447 ac_preproc_ok=:
5448 break
5449 fi
5450 rm -f conftest.err conftest.$ac_ext
5451
5452 done
5453 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5454 rm -f conftest.err conftest.$ac_ext
5455 if $ac_preproc_ok; then :
5456
5457 else
5458   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5460 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5461 See \`config.log' for more details." "$LINENO" 5; }
5462 fi
5463
5464 ac_ext=c
5465 ac_cpp='$CPP $CPPFLAGS'
5466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5469
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5471 $as_echo_n "checking for inline... " >&6; }
5472 if test "${ac_cv_c_inline+set}" = set; then :
5473   $as_echo_n "(cached) " >&6
5474 else
5475   ac_cv_c_inline=no
5476 for ac_kw in inline __inline__ __inline; do
5477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h.  */
5479 #ifndef __cplusplus
5480 typedef int foo_t;
5481 static $ac_kw foo_t static_foo () {return 0; }
5482 $ac_kw foo_t foo () {return 0; }
5483 #endif
5484
5485 _ACEOF
5486 if ac_fn_c_try_compile "$LINENO"; then :
5487   ac_cv_c_inline=$ac_kw
5488 fi
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490   test "$ac_cv_c_inline" != no && break
5491 done
5492
5493 fi
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5495 $as_echo "$ac_cv_c_inline" >&6; }
5496
5497 case $ac_cv_c_inline in
5498   inline | yes) ;;
5499   *)
5500     case $ac_cv_c_inline in
5501       no) ac_val=;;
5502       *) ac_val=$ac_cv_c_inline;;
5503     esac
5504     cat >>confdefs.h <<_ACEOF
5505 #ifndef __cplusplus
5506 #define inline $ac_val
5507 #endif
5508 _ACEOF
5509     ;;
5510 esac
5511
5512
5513 # Check whether --enable-largefile was given.
5514 if test "${enable_largefile+set}" = set; then :
5515   enableval=$enable_largefile;
5516 fi
5517
5518 if test "$enable_largefile" != no; then
5519
5520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5521 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5522 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5523   $as_echo_n "(cached) " >&6
5524 else
5525   ac_cv_sys_largefile_CC=no
5526      if test "$GCC" != yes; then
5527        ac_save_CC=$CC
5528        while :; do
5529          # IRIX 6.2 and later do not support large files by default,
5530          # so use the C compiler's -n32 option if that helps.
5531          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h.  */
5533 #include <sys/types.h>
5534  /* Check that off_t can represent 2**63 - 1 correctly.
5535     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5536     since some C++ compilers masquerading as C compilers
5537     incorrectly reject 9223372036854775807.  */
5538 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5539   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5540                        && LARGE_OFF_T % 2147483647 == 1)
5541                       ? 1 : -1];
5542 int
5543 main ()
5544 {
5545
5546   ;
5547   return 0;
5548 }
5549 _ACEOF
5550          if ac_fn_c_try_compile "$LINENO"; then :
5551   break
5552 fi
5553 rm -f core conftest.err conftest.$ac_objext
5554          CC="$CC -n32"
5555          if ac_fn_c_try_compile "$LINENO"; then :
5556   ac_cv_sys_largefile_CC=' -n32'; break
5557 fi
5558 rm -f core conftest.err conftest.$ac_objext
5559          break
5560        done
5561        CC=$ac_save_CC
5562        rm -f conftest.$ac_ext
5563     fi
5564 fi
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5566 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5567   if test "$ac_cv_sys_largefile_CC" != no; then
5568     CC=$CC$ac_cv_sys_largefile_CC
5569   fi
5570
5571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5572 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5573 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5574   $as_echo_n "(cached) " >&6
5575 else
5576   while :; do
5577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h.  */
5579 #include <sys/types.h>
5580  /* Check that off_t can represent 2**63 - 1 correctly.
5581     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5582     since some C++ compilers masquerading as C compilers
5583     incorrectly reject 9223372036854775807.  */
5584 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5585   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5586                        && LARGE_OFF_T % 2147483647 == 1)
5587                       ? 1 : -1];
5588 int
5589 main ()
5590 {
5591
5592   ;
5593   return 0;
5594 }
5595 _ACEOF
5596 if ac_fn_c_try_compile "$LINENO"; then :
5597   ac_cv_sys_file_offset_bits=no; break
5598 fi
5599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h.  */
5602 #define _FILE_OFFSET_BITS 64
5603 #include <sys/types.h>
5604  /* Check that off_t can represent 2**63 - 1 correctly.
5605     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5606     since some C++ compilers masquerading as C compilers
5607     incorrectly reject 9223372036854775807.  */
5608 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5609   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5610                        && LARGE_OFF_T % 2147483647 == 1)
5611                       ? 1 : -1];
5612 int
5613 main ()
5614 {
5615
5616   ;
5617   return 0;
5618 }
5619 _ACEOF
5620 if ac_fn_c_try_compile "$LINENO"; then :
5621   ac_cv_sys_file_offset_bits=64; break
5622 fi
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624   ac_cv_sys_file_offset_bits=unknown
5625   break
5626 done
5627 fi
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5629 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5630 case $ac_cv_sys_file_offset_bits in #(
5631   no | unknown) ;;
5632   *)
5633 cat >>confdefs.h <<_ACEOF
5634 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5635 _ACEOF
5636 ;;
5637 esac
5638 rm -rf conftest*
5639   if test $ac_cv_sys_file_offset_bits = unknown; then
5640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5641 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5642 if test "${ac_cv_sys_large_files+set}" = set; then :
5643   $as_echo_n "(cached) " >&6
5644 else
5645   while :; do
5646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h.  */
5648 #include <sys/types.h>
5649  /* Check that off_t can represent 2**63 - 1 correctly.
5650     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5651     since some C++ compilers masquerading as C compilers
5652     incorrectly reject 9223372036854775807.  */
5653 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5654   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5655                        && LARGE_OFF_T % 2147483647 == 1)
5656                       ? 1 : -1];
5657 int
5658 main ()
5659 {
5660
5661   ;
5662   return 0;
5663 }
5664 _ACEOF
5665 if ac_fn_c_try_compile "$LINENO"; then :
5666   ac_cv_sys_large_files=no; break
5667 fi
5668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h.  */
5671 #define _LARGE_FILES 1
5672 #include <sys/types.h>
5673  /* Check that off_t can represent 2**63 - 1 correctly.
5674     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5675     since some C++ compilers masquerading as C compilers
5676     incorrectly reject 9223372036854775807.  */
5677 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5678   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5679                        && LARGE_OFF_T % 2147483647 == 1)
5680                       ? 1 : -1];
5681 int
5682 main ()
5683 {
5684
5685   ;
5686   return 0;
5687 }
5688 _ACEOF
5689 if ac_fn_c_try_compile "$LINENO"; then :
5690   ac_cv_sys_large_files=1; break
5691 fi
5692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5693   ac_cv_sys_large_files=unknown
5694   break
5695 done
5696 fi
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5698 $as_echo "$ac_cv_sys_large_files" >&6; }
5699 case $ac_cv_sys_large_files in #(
5700   no | unknown) ;;
5701   *)
5702 cat >>confdefs.h <<_ACEOF
5703 #define _LARGE_FILES $ac_cv_sys_large_files
5704 _ACEOF
5705 ;;
5706 esac
5707 rm -rf conftest*
5708   fi
5709 fi
5710
5711
5712 # sizeof(char) is 1 by definition.
5713 # The cast to long int works around a bug in the HP C Compiler
5714 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5715 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5716 # This bug is HP SR number 8606223364.
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5718 $as_echo_n "checking size of void *... " >&6; }
5719 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5720   $as_echo_n "(cached) " >&6
5721 else
5722   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
5723
5724 else
5725   if test "$ac_cv_type_void_p" = yes; then
5726      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5728 { as_fn_set_status 77
5729 as_fn_error "cannot compute sizeof (void *)
5730 See \`config.log' for more details." "$LINENO" 5; }; }
5731    else
5732      ac_cv_sizeof_void_p=0
5733    fi
5734 fi
5735
5736 fi
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5738 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5739
5740
5741
5742 cat >>confdefs.h <<_ACEOF
5743 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5744 _ACEOF
5745
5746
5747 # The cast to long int works around a bug in the HP C Compiler
5748 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5749 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5750 # This bug is HP SR number 8606223364.
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5752 $as_echo_n "checking size of short... " >&6; }
5753 if test "${ac_cv_sizeof_short+set}" = set; then :
5754   $as_echo_n "(cached) " >&6
5755 else
5756   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
5757
5758 else
5759   if test "$ac_cv_type_short" = yes; then
5760      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5762 { as_fn_set_status 77
5763 as_fn_error "cannot compute sizeof (short)
5764 See \`config.log' for more details." "$LINENO" 5; }; }
5765    else
5766      ac_cv_sizeof_short=0
5767    fi
5768 fi
5769
5770 fi
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5772 $as_echo "$ac_cv_sizeof_short" >&6; }
5773
5774
5775
5776 cat >>confdefs.h <<_ACEOF
5777 #define SIZEOF_SHORT $ac_cv_sizeof_short
5778 _ACEOF
5779
5780
5781 # The cast to long int works around a bug in the HP C Compiler
5782 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5783 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5784 # This bug is HP SR number 8606223364.
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5786 $as_echo_n "checking size of int... " >&6; }
5787 if test "${ac_cv_sizeof_int+set}" = set; then :
5788   $as_echo_n "(cached) " >&6
5789 else
5790   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
5791
5792 else
5793   if test "$ac_cv_type_int" = yes; then
5794      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5796 { as_fn_set_status 77
5797 as_fn_error "cannot compute sizeof (int)
5798 See \`config.log' for more details." "$LINENO" 5; }; }
5799    else
5800      ac_cv_sizeof_int=0
5801    fi
5802 fi
5803
5804 fi
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5806 $as_echo "$ac_cv_sizeof_int" >&6; }
5807
5808
5809
5810 cat >>confdefs.h <<_ACEOF
5811 #define SIZEOF_INT $ac_cv_sizeof_int
5812 _ACEOF
5813
5814
5815 # The cast to long int works around a bug in the HP C Compiler
5816 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5817 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5818 # This bug is HP SR number 8606223364.
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5820 $as_echo_n "checking size of long... " >&6; }
5821 if test "${ac_cv_sizeof_long+set}" = set; then :
5822   $as_echo_n "(cached) " >&6
5823 else
5824   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5825
5826 else
5827   if test "$ac_cv_type_long" = yes; then
5828      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5830 { as_fn_set_status 77
5831 as_fn_error "cannot compute sizeof (long)
5832 See \`config.log' for more details." "$LINENO" 5; }; }
5833    else
5834      ac_cv_sizeof_long=0
5835    fi
5836 fi
5837
5838 fi
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5840 $as_echo "$ac_cv_sizeof_long" >&6; }
5841
5842
5843
5844 cat >>confdefs.h <<_ACEOF
5845 #define SIZEOF_LONG $ac_cv_sizeof_long
5846 _ACEOF
5847
5848
5849 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5850 if test "x$ac_cv_type_long_long" = x""yes; then :
5851
5852 cat >>confdefs.h <<_ACEOF
5853 #define HAVE_LONG_LONG 1
5854 _ACEOF
5855
5856 # The cast to long int works around a bug in the HP C Compiler
5857 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5858 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5859 # This bug is HP SR number 8606223364.
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5861 $as_echo_n "checking size of long long... " >&6; }
5862 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5863   $as_echo_n "(cached) " >&6
5864 else
5865   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
5866
5867 else
5868   if test "$ac_cv_type_long_long" = yes; then
5869      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5871 { as_fn_set_status 77
5872 as_fn_error "cannot compute sizeof (long long)
5873 See \`config.log' for more details." "$LINENO" 5; }; }
5874    else
5875      ac_cv_sizeof_long_long=0
5876    fi
5877 fi
5878
5879 fi
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5881 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5882
5883
5884
5885 cat >>confdefs.h <<_ACEOF
5886 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5887 _ACEOF
5888
5889
5890 fi
5891
5892 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5893 if test "x$ac_cv_type___int64" = x""yes; then :
5894
5895 cat >>confdefs.h <<_ACEOF
5896 #define HAVE___INT64 1
5897 _ACEOF
5898
5899 # The cast to long int works around a bug in the HP C Compiler
5900 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5901 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5902 # This bug is HP SR number 8606223364.
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5904 $as_echo_n "checking size of __int64... " >&6; }
5905 if test "${ac_cv_sizeof___int64+set}" = set; then :
5906   $as_echo_n "(cached) " >&6
5907 else
5908   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
5909
5910 else
5911   if test "$ac_cv_type___int64" = yes; then
5912      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5914 { as_fn_set_status 77
5915 as_fn_error "cannot compute sizeof (__int64)
5916 See \`config.log' for more details." "$LINENO" 5; }; }
5917    else
5918      ac_cv_sizeof___int64=0
5919    fi
5920 fi
5921
5922 fi
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5924 $as_echo "$ac_cv_sizeof___int64" >&6; }
5925
5926
5927
5928 cat >>confdefs.h <<_ACEOF
5929 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5930 _ACEOF
5931
5932
5933 fi
5934
5935 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5936 case $ac_cv_c_int8_t in #(
5937   no|yes) ;; #(
5938   *)
5939
5940 cat >>confdefs.h <<_ACEOF
5941 #define int8_t $ac_cv_c_int8_t
5942 _ACEOF
5943 ;;
5944 esac
5945
5946 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5947 case $ac_cv_c_int16_t in #(
5948   no|yes) ;; #(
5949   *)
5950
5951 cat >>confdefs.h <<_ACEOF
5952 #define int16_t $ac_cv_c_int16_t
5953 _ACEOF
5954 ;;
5955 esac
5956
5957 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5958 case $ac_cv_c_int32_t in #(
5959   no|yes) ;; #(
5960   *)
5961
5962 cat >>confdefs.h <<_ACEOF
5963 #define int32_t $ac_cv_c_int32_t
5964 _ACEOF
5965 ;;
5966 esac
5967
5968 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5969 case $ac_cv_c_int64_t in #(
5970   no|yes) ;; #(
5971   *)
5972
5973 cat >>confdefs.h <<_ACEOF
5974 #define int64_t $ac_cv_c_int64_t
5975 _ACEOF
5976 ;;
5977 esac
5978
5979
5980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5981 $as_echo_n "checking for long long int... " >&6; }
5982 if test "${ac_cv_type_long_long_int+set}" = set; then :
5983   $as_echo_n "(cached) " >&6
5984 else
5985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h.  */
5987
5988   /* For now, do not test the preprocessor; as of 2007 there are too many
5989          implementations with broken preprocessors.  Perhaps this can
5990          be revisited in 2012.  In the meantime, code should not expect
5991          #if to work with literals wider than 32 bits.  */
5992       /* Test literals.  */
5993       long long int ll = 9223372036854775807ll;
5994       long long int nll = -9223372036854775807LL;
5995       unsigned long long int ull = 18446744073709551615ULL;
5996       /* Test constant expressions.   */
5997       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5998                      ? 1 : -1)];
5999       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6000                      ? 1 : -1)];
6001       int i = 63;
6002 int
6003 main ()
6004 {
6005 /* Test availability of runtime routines for shift and division.  */
6006       long long int llmax = 9223372036854775807ll;
6007       unsigned long long int ullmax = 18446744073709551615ull;
6008       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6009               | (llmax / ll) | (llmax % ll)
6010               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6011               | (ullmax / ull) | (ullmax % ull));
6012   ;
6013   return 0;
6014 }
6015
6016 _ACEOF
6017 if ac_fn_c_try_link "$LINENO"; then :
6018                         if test "$cross_compiling" = yes; then :
6019   ac_cv_type_long_long_int=yes
6020 else
6021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h.  */
6023 #include <limits.h>
6024                #ifndef LLONG_MAX
6025                # define HALF \
6026                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6027                # define LLONG_MAX (HALF - 1 + HALF)
6028                #endif
6029 int
6030 main ()
6031 {
6032 long long int n = 1;
6033                int i;
6034                for (i = 0; ; i++)
6035                  {
6036                    long long int m = n << i;
6037                    if (m >> i != n)
6038                      return 1;
6039                    if (LLONG_MAX / 2 < m)
6040                      break;
6041                  }
6042                return 0;
6043   ;
6044   return 0;
6045 }
6046 _ACEOF
6047 if ac_fn_c_try_run "$LINENO"; then :
6048   ac_cv_type_long_long_int=yes
6049 else
6050   ac_cv_type_long_long_int=no
6051 fi
6052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6053   conftest.$ac_objext conftest.beam conftest.$ac_ext
6054 fi
6055
6056 else
6057   ac_cv_type_long_long_int=no
6058 fi
6059 rm -f core conftest.err conftest.$ac_objext \
6060     conftest$ac_exeext conftest.$ac_ext
6061 fi
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6063 $as_echo "$ac_cv_type_long_long_int" >&6; }
6064   if test $ac_cv_type_long_long_int = yes; then
6065
6066 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6067
6068   fi
6069
6070
6071
6072   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6073 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6074
6075 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6076
6077 else
6078   test $ac_cv_type_long_long_int = yes \
6079        && ac_type='long long int' \
6080        || ac_type='long int'
6081
6082 cat >>confdefs.h <<_ACEOF
6083 #define intmax_t $ac_type
6084 _ACEOF
6085
6086 fi
6087
6088
6089
6090   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6091 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6092
6093 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6094
6095 else
6096   for ac_type in 'int' 'long int' 'long long int'; do
6097        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098 /* end confdefs.h.  */
6099 $ac_includes_default
6100 int
6101 main ()
6102 {
6103 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6104 test_array [0] = 0
6105
6106   ;
6107   return 0;
6108 }
6109 _ACEOF
6110 if ac_fn_c_try_compile "$LINENO"; then :
6111
6112 cat >>confdefs.h <<_ACEOF
6113 #define intptr_t $ac_type
6114 _ACEOF
6115
6116           ac_type=
6117 fi
6118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6119        test -z "$ac_type" && break
6120      done
6121 fi
6122
6123
6124 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6125 case $ac_cv_c_uint8_t in #(
6126   no|yes) ;; #(
6127   *)
6128
6129 $as_echo "#define _UINT8_T 1" >>confdefs.h
6130
6131
6132 cat >>confdefs.h <<_ACEOF
6133 #define uint8_t $ac_cv_c_uint8_t
6134 _ACEOF
6135 ;;
6136   esac
6137
6138 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6139 case $ac_cv_c_uint16_t in #(
6140   no|yes) ;; #(
6141   *)
6142
6143
6144 cat >>confdefs.h <<_ACEOF
6145 #define uint16_t $ac_cv_c_uint16_t
6146 _ACEOF
6147 ;;
6148   esac
6149
6150 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6151 case $ac_cv_c_uint32_t in #(
6152   no|yes) ;; #(
6153   *)
6154
6155 $as_echo "#define _UINT32_T 1" >>confdefs.h
6156
6157
6158 cat >>confdefs.h <<_ACEOF
6159 #define uint32_t $ac_cv_c_uint32_t
6160 _ACEOF
6161 ;;
6162   esac
6163
6164 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6165 case $ac_cv_c_uint64_t in #(
6166   no|yes) ;; #(
6167   *)
6168
6169 $as_echo "#define _UINT64_T 1" >>confdefs.h
6170
6171
6172 cat >>confdefs.h <<_ACEOF
6173 #define uint64_t $ac_cv_c_uint64_t
6174 _ACEOF
6175 ;;
6176   esac
6177
6178
6179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6180 $as_echo_n "checking for unsigned long long int... " >&6; }
6181 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6182   $as_echo_n "(cached) " >&6
6183 else
6184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h.  */
6186
6187   /* For now, do not test the preprocessor; as of 2007 there are too many
6188          implementations with broken preprocessors.  Perhaps this can
6189          be revisited in 2012.  In the meantime, code should not expect
6190          #if to work with literals wider than 32 bits.  */
6191       /* Test literals.  */
6192       long long int ll = 9223372036854775807ll;
6193       long long int nll = -9223372036854775807LL;
6194       unsigned long long int ull = 18446744073709551615ULL;
6195       /* Test constant expressions.   */
6196       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6197                      ? 1 : -1)];
6198       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6199                      ? 1 : -1)];
6200       int i = 63;
6201 int
6202 main ()
6203 {
6204 /* Test availability of runtime routines for shift and division.  */
6205       long long int llmax = 9223372036854775807ll;
6206       unsigned long long int ullmax = 18446744073709551615ull;
6207       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6208               | (llmax / ll) | (llmax % ll)
6209               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6210               | (ullmax / ull) | (ullmax % ull));
6211   ;
6212   return 0;
6213 }
6214
6215 _ACEOF
6216 if ac_fn_c_try_link "$LINENO"; then :
6217   ac_cv_type_unsigned_long_long_int=yes
6218 else
6219   ac_cv_type_unsigned_long_long_int=no
6220 fi
6221 rm -f core conftest.err conftest.$ac_objext \
6222     conftest$ac_exeext conftest.$ac_ext
6223 fi
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6225 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6226   if test $ac_cv_type_unsigned_long_long_int = yes; then
6227
6228 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6229
6230   fi
6231
6232
6233
6234   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6235 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6236
6237 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6238
6239 else
6240   test $ac_cv_type_unsigned_long_long_int = yes \
6241        && ac_type='unsigned long long int' \
6242        || ac_type='unsigned long int'
6243
6244 cat >>confdefs.h <<_ACEOF
6245 #define uintmax_t $ac_type
6246 _ACEOF
6247
6248 fi
6249
6250
6251
6252   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6253 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6254
6255 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6256
6257 else
6258   for ac_type in 'unsigned int' 'unsigned long int' \
6259         'unsigned long long int'; do
6260        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h.  */
6262 $ac_includes_default
6263 int
6264 main ()
6265 {
6266 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6267 test_array [0] = 0
6268
6269   ;
6270   return 0;
6271 }
6272 _ACEOF
6273 if ac_fn_c_try_compile "$LINENO"; then :
6274
6275 cat >>confdefs.h <<_ACEOF
6276 #define uintptr_t $ac_type
6277 _ACEOF
6278
6279           ac_type=
6280 fi
6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282        test -z "$ac_type" && break
6283      done
6284 fi
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300 # ---------------------
6301 # Warnings and checking
6302 # ---------------------
6303
6304 # Check $CC warning features (if it's GCC).
6305 # We want to use -pedantic, but we don't want warnings about
6306 # * 'long long'
6307 # * variadic macros
6308 # * overlong strings
6309 # So, we only use -pedantic if we can disable those warnings.
6310
6311 loose_warn=
6312 save_CFLAGS="$CFLAGS"
6313 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6314   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6315
6316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6317 $as_echo_n "checking whether $CC supports $option... " >&6; }
6318 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6319   $as_echo_n "(cached) " >&6
6320 else
6321   CFLAGS="$option"
6322     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h.  */
6324
6325 int
6326 main ()
6327 {
6328
6329   ;
6330   return 0;
6331 }
6332 _ACEOF
6333 if ac_fn_c_try_compile "$LINENO"; then :
6334   eval "$as_acx_Woption=yes"
6335 else
6336   eval "$as_acx_Woption=no"
6337 fi
6338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6339
6340 fi
6341 eval ac_res=\$$as_acx_Woption
6342                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6343 $as_echo "$ac_res" >&6; }
6344   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6345   loose_warn="$loose_warn${loose_warn:+ }$option"
6346 fi
6347   done
6348 CFLAGS="$save_CFLAGS"
6349
6350 c_loose_warn=
6351 save_CFLAGS="$CFLAGS"
6352 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6353   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6354
6355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6356 $as_echo_n "checking whether $CC supports $option... " >&6; }
6357 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6358   $as_echo_n "(cached) " >&6
6359 else
6360   CFLAGS="$option"
6361     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h.  */
6363
6364 int
6365 main ()
6366 {
6367
6368   ;
6369   return 0;
6370 }
6371 _ACEOF
6372 if ac_fn_c_try_compile "$LINENO"; then :
6373   eval "$as_acx_Woption=yes"
6374 else
6375   eval "$as_acx_Woption=no"
6376 fi
6377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6378
6379 fi
6380 eval ac_res=\$$as_acx_Woption
6381                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6382 $as_echo "$ac_res" >&6; }
6383   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6384   c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6385 fi
6386   done
6387 CFLAGS="$save_CFLAGS"
6388
6389 strict_warn=
6390 save_CFLAGS="$CFLAGS"
6391 for option in -Wmissing-format-attribute; do
6392   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6393
6394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6395 $as_echo_n "checking whether $CC supports $option... " >&6; }
6396 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6397   $as_echo_n "(cached) " >&6
6398 else
6399   CFLAGS="$option"
6400     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h.  */
6402
6403 int
6404 main ()
6405 {
6406
6407   ;
6408   return 0;
6409 }
6410 _ACEOF
6411 if ac_fn_c_try_compile "$LINENO"; then :
6412   eval "$as_acx_Woption=yes"
6413 else
6414   eval "$as_acx_Woption=no"
6415 fi
6416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6417
6418 fi
6419 eval ac_res=\$$as_acx_Woption
6420                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6421 $as_echo "$ac_res" >&6; }
6422   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6423   strict_warn="$strict_warn${strict_warn:+ }$option"
6424 fi
6425   done
6426 CFLAGS="$save_CFLAGS"
6427
6428 c_strict_warn=
6429 save_CFLAGS="$CFLAGS"
6430 for option in -Wold-style-definition -Wc++-compat; do
6431   as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6432
6433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6434 $as_echo_n "checking whether $CC supports $option... " >&6; }
6435 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6436   $as_echo_n "(cached) " >&6
6437 else
6438   CFLAGS="$option"
6439     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h.  */
6441
6442 int
6443 main ()
6444 {
6445
6446   ;
6447   return 0;
6448 }
6449 _ACEOF
6450 if ac_fn_c_try_compile "$LINENO"; then :
6451   eval "$as_acx_Woption=yes"
6452 else
6453   eval "$as_acx_Woption=no"
6454 fi
6455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456
6457 fi
6458 eval ac_res=\$$as_acx_Woption
6459                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6460 $as_echo "$ac_res" >&6; }
6461   if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6462   c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6463 fi
6464   done
6465 CFLAGS="$save_CFLAGS"
6466
6467 if test "$GCC" = yes; then :
6468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6469 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6470 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6471   $as_echo_n "(cached) " >&6
6472 else
6473   save_CFLAGS="$CFLAGS"
6474 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h.  */
6477
6478 int
6479 main ()
6480 {
6481
6482   ;
6483   return 0;
6484 }
6485 _ACEOF
6486 if ac_fn_c_try_compile "$LINENO"; then :
6487   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6488 else
6489   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6490 fi
6491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6492 CFLAGS="$save_CFLAGS"
6493 fi
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6495 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6496 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6497   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6498 fi
6499
6500 fi
6501
6502 # Check whether --enable-werror-always was given.
6503 if test "${enable_werror_always+set}" = set; then :
6504   enableval=$enable_werror_always;
6505 else
6506   enable_werror_always=no
6507 fi
6508
6509 if test $enable_werror_always = yes; then :
6510   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6511 fi
6512
6513
6514
6515 # The above macros do nothing if the compiler is not GCC.  However, the
6516 # Makefile has more goo to add other flags, so these variables are used
6517 # to enable warnings only for GCC.
6518 warn_cflags=
6519 warn_cxxflags=
6520 if test "x$GCC" = "xyes"; then
6521   warn_cflags='$(GCC_WARN_CFLAGS)'
6522   warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6523 fi
6524
6525
6526
6527 # Enable expensive internal checks
6528 is_release=
6529 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6530   is_release=yes
6531 fi
6532
6533 # Check whether --enable-checking was given.
6534 if test "${enable_checking+set}" = set; then :
6535   enableval=$enable_checking; ac_checking_flags="${enableval}"
6536 else
6537
6538 # Determine the default checks.
6539 if test x$is_release = x ; then
6540   ac_checking_flags=yes
6541 else
6542   ac_checking_flags=release
6543 fi
6544 fi
6545
6546 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6547 for check in release $ac_checking_flags
6548 do
6549         case $check in
6550         # these set all the flags to specific states
6551         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6552                         ac_fold_checking= ; ac_gc_checking=1 ;
6553                         ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6554                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6555                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6556                         ac_types_checking=1 ;;
6557         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6558                         ac_fold_checking= ; ac_gc_checking= ;
6559                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6560                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6561                         ac_tree_checking= ; ac_valgrind_checking= ;
6562                         ac_types_checking= ;;
6563         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6564                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6565                         ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6566                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6567                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6568                         ac_types_checking=1 ;;
6569         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6570                         ac_fold_checking= ; ac_gc_checking= ;
6571                         ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6572                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6573                         ac_tree_checking= ; ac_valgrind_checking= ;
6574                         ac_types_checking= ;;
6575         # these enable particular checks
6576         assert)         ac_assert_checking=1 ;;
6577         df)             ac_df_checking=1 ;;
6578         fold)           ac_fold_checking=1 ;;
6579         gc)             ac_gc_checking=1 ;;
6580         gcac)           ac_gc_always_collect=1 ;;
6581         gimple)         ac_gimple_checking=1 ;;
6582         misc)           ac_checking=1 ;;
6583         rtl)            ac_rtl_checking=1 ;;
6584         rtlflag)        ac_rtlflag_checking=1 ;;
6585         runtime)        ac_runtime_checking=1 ;;
6586         tree)           ac_tree_checking=1 ;;
6587         types)          ac_types_checking=1 ;;
6588         valgrind)       ac_valgrind_checking=1 ;;
6589         *)      as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6590         esac
6591 done
6592 IFS="$ac_save_IFS"
6593
6594 nocommon_flag=""
6595 if test x$ac_checking != x ; then
6596
6597 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6598
6599   nocommon_flag=-fno-common
6600 fi
6601
6602 if test x$ac_df_checking != x ; then
6603
6604 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6605
6606 fi
6607 if test x$ac_assert_checking != x ; then
6608
6609 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6610
6611 fi
6612 if test x$ac_gimple_checking != x ; then
6613
6614 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6615
6616 fi
6617
6618 if test x$ac_runtime_checking != x ; then
6619
6620 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6621
6622 fi
6623 if test x$ac_tree_checking != x ; then
6624
6625 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6626
6627   TREEBROWSER=tree-browser.o
6628 fi
6629 if test x$ac_types_checking != x ; then
6630
6631 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6632
6633 fi
6634
6635 if test x$ac_rtl_checking != x ; then
6636
6637 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6638
6639 fi
6640 if test x$ac_rtlflag_checking != x ; then
6641
6642 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6643
6644 fi
6645 if test x$ac_gc_checking != x ; then
6646
6647 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6648
6649 fi
6650 if test x$ac_gc_always_collect != x ; then
6651
6652 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6653
6654 fi
6655 if test x$ac_fold_checking != x ; then
6656
6657 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6658
6659 fi
6660 valgrind_path_defines=
6661 valgrind_command=
6662
6663 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6664 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6665   have_valgrind_h=yes
6666 else
6667   have_valgrind_h=no
6668 fi
6669
6670
6671
6672 if test x$ac_valgrind_checking != x ; then
6673   # It is certainly possible that there's valgrind but no valgrind.h.
6674   # GCC relies on making annotations so we must have both.
6675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6676 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h.  */
6679 #include <valgrind/memcheck.h>
6680 #ifndef VALGRIND_DISCARD
6681 #error VALGRIND_DISCARD not defined
6682 #endif
6683 _ACEOF
6684 if ac_fn_c_try_cpp "$LINENO"; then :
6685   gcc_cv_header_valgrind_memcheck_h=yes
6686 else
6687   gcc_cv_header_valgrind_memcheck_h=no
6688 fi
6689 rm -f conftest.err conftest.$ac_ext
6690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6691 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6693 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695 /* end confdefs.h.  */
6696 #include <memcheck.h>
6697 #ifndef VALGRIND_DISCARD
6698 #error VALGRIND_DISCARD not defined
6699 #endif
6700 _ACEOF
6701 if ac_fn_c_try_cpp "$LINENO"; then :
6702   gcc_cv_header_memcheck_h=yes
6703 else
6704   gcc_cv_header_memcheck_h=no
6705 fi
6706 rm -f conftest.err conftest.$ac_ext
6707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6708 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6709
6710 # Prepare PATH_SEPARATOR.
6711 # The user is always right.
6712 if test "${PATH_SEPARATOR+set}" != set; then
6713   echo "#! /bin/sh" >conf$$.sh
6714   echo  "exit 0"   >>conf$$.sh
6715   chmod +x conf$$.sh
6716   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6717     PATH_SEPARATOR=';'
6718   else
6719     PATH_SEPARATOR=:
6720   fi
6721   rm -f conf$$.sh
6722 fi
6723
6724 # Find out how to test for executable files. Don't use a zero-byte file,
6725 # as systems may use methods other than mode bits to determine executability.
6726 cat >conf$$.file <<_ASEOF
6727 #! /bin/sh
6728 exit 0
6729 _ASEOF
6730 chmod +x conf$$.file
6731 if test -x conf$$.file >/dev/null 2>&1; then
6732   ac_executable_p="test -x"
6733 else
6734   ac_executable_p="test -f"
6735 fi
6736 rm -f conf$$.file
6737
6738 # Extract the first word of "valgrind", so it can be a program name with args.
6739 set dummy valgrind; ac_word=$2
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6741 $as_echo_n "checking for $ac_word... " >&6; }
6742 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6743   $as_echo_n "(cached) " >&6
6744 else
6745   case "$valgrind_path" in
6746   [\\/]* | ?:[\\/]*)
6747     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6748     ;;
6749   *)
6750     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6751     for ac_dir in $PATH; do
6752       IFS="$ac_save_IFS"
6753       test -z "$ac_dir" && ac_dir=.
6754       for ac_exec_ext in '' $ac_executable_extensions; do
6755         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6756           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6757             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6758             break 2
6759           fi
6760         fi
6761       done
6762     done
6763     IFS="$ac_save_IFS"
6764     ;;
6765 esac
6766 fi
6767 valgrind_path="$ac_cv_path_valgrind_path"
6768 if test -n "$valgrind_path"; then
6769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6770 $as_echo "$valgrind_path" >&6; }
6771 else
6772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 $as_echo "no" >&6; }
6774 fi
6775
6776   if test "x$valgrind_path" = "x" \
6777     || (test $have_valgrind_h = no \
6778         && test $gcc_cv_header_memcheck_h = no \
6779         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6780         as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6781   fi
6782   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6783   valgrind_command="$valgrind_path -q"
6784
6785 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6786
6787   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6788
6789 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6790
6791   fi
6792   if test $gcc_cv_header_memcheck_h = yes; then
6793
6794 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6795
6796   fi
6797 fi
6798
6799
6800
6801 # Enable code coverage collection
6802 # Check whether --enable-coverage was given.
6803 if test "${enable_coverage+set}" = set; then :
6804   enableval=$enable_coverage; case "${enableval}" in
6805   yes|noopt)
6806     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6807     ;;
6808   opt)
6809     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6810     ;;
6811   no)
6812     # a.k.a. --disable-coverage
6813     coverage_flags=""
6814     ;;
6815   *)
6816     as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6817     ;;
6818 esac
6819 else
6820   coverage_flags=""
6821 fi
6822
6823
6824
6825 # Check whether --enable-gather-detailed-mem-stats was given.
6826 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6827   enableval=$enable_gather_detailed_mem_stats;
6828 else
6829   enable_gather_detailed_mem_stats=no
6830 fi
6831
6832 if test x$enable_gather_detailed_mem_stats = xyes ; then
6833
6834 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6835
6836 fi
6837
6838 # -------------------------------
6839 # Miscenalleous configure options
6840 # -------------------------------
6841
6842 # See if we are building gcc with C++.
6843 # Check whether --enable-build-with-cxx was given.
6844 if test "${enable_build_with_cxx+set}" = set; then :
6845   enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6846 else
6847   ENABLE_BUILD_WITH_CXX=no
6848 fi
6849
6850
6851 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6852
6853 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6854
6855 fi
6856
6857 # With stabs
6858
6859 # Check whether --with-stabs was given.
6860 if test "${with_stabs+set}" = set; then :
6861   withval=$with_stabs; stabs="$with_stabs"
6862 else
6863   stabs=no
6864 fi
6865
6866
6867 # Determine whether or not multilibs are enabled.
6868 # Check whether --enable-multilib was given.
6869 if test "${enable_multilib+set}" = set; then :
6870   enableval=$enable_multilib;
6871 else
6872   enable_multilib=yes
6873 fi
6874
6875
6876
6877 # Enable __cxa_atexit for C++.
6878 # Check whether --enable-__cxa_atexit was given.
6879 if test "${enable___cxa_atexit+set}" = set; then :
6880   enableval=$enable___cxa_atexit;
6881 fi
6882
6883
6884 # Enable C extension for decimal float if target supports it.
6885
6886 # Check whether --enable-decimal-float was given.
6887 if test "${enable_decimal_float+set}" = set; then :
6888   enableval=$enable_decimal_float;
6889   case $enable_decimal_float in
6890     yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6891     *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6892 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6893   esac
6894
6895 else
6896
6897   case $target in
6898     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6899     i?86*-*-mingw* | x86_64*-*-mingw* | \
6900     i?86*-*-cygwin*)
6901       enable_decimal_float=yes
6902       ;;
6903     *)
6904       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6905 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6906       enable_decimal_float=no
6907       ;;
6908   esac
6909
6910 fi
6911
6912
6913 # x86's use BID format instead of DPD
6914 case x$enable_decimal_float in
6915   xyes)
6916     case $target in
6917       i?86*-*-* | x86_64*-*-*)
6918         enable_decimal_float=bid
6919         ;;
6920       *)
6921         enable_decimal_float=dpd
6922         ;;
6923     esac
6924     default_decimal_float=$enable_decimal_float
6925     ;;
6926   xno)
6927     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6928     # dependency on libdecnumber.
6929     default_decimal_float=dpd
6930     ;;
6931 esac
6932
6933
6934
6935
6936 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6937
6938 cat >>confdefs.h <<_ACEOF
6939 #define ENABLE_DECIMAL_FLOAT $dfp
6940 _ACEOF
6941
6942
6943 # Use default_decimal_float for dependency.
6944 enable_decimal_float=$default_decimal_float
6945
6946 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6947
6948 cat >>confdefs.h <<_ACEOF
6949 #define ENABLE_DECIMAL_BID_FORMAT $bid
6950 _ACEOF
6951
6952
6953 # Enable C extension for fixed-point arithmetic.
6954 # Check whether --enable-fixed-point was given.
6955 if test "${enable_fixed_point+set}" = set; then :
6956   enableval=$enable_fixed_point;
6957
6958 else
6959
6960   case $target in
6961     mips*-*-*)
6962       case $host in
6963         mips*-sgi-irix*)
6964           { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6965 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6966           enable_fixed_point=no
6967           ;;
6968         *)
6969           enable_fixed_point=yes
6970           ;;
6971       esac
6972       ;;
6973     *)
6974       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6975 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6976       enable_fixed_point=no
6977       ;;
6978   esac
6979
6980 fi
6981
6982
6983
6984 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6985
6986 cat >>confdefs.h <<_ACEOF
6987 #define ENABLE_FIXED_POINT $fixedpoint
6988 _ACEOF
6989
6990
6991 # Enable threads
6992 # Pass with no value to take the default
6993 # Pass with a value to specify a thread package
6994 # Check whether --enable-threads was given.
6995 if test "${enable_threads+set}" = set; then :
6996   enableval=$enable_threads;
6997 else
6998   enable_threads=''
6999 fi
7000
7001
7002 # Check whether --enable-tls was given.
7003 if test "${enable_tls+set}" = set; then :
7004   enableval=$enable_tls;
7005   case $enable_tls in
7006     yes | no) ;;
7007     *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7008 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7009   esac
7010
7011 else
7012   enable_tls=''
7013 fi
7014
7015
7016 # Check whether --enable-objc-gc was given.
7017 if test "${enable_objc_gc+set}" = set; then :
7018   enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7019         objc_boehm_gc=''
7020 else
7021         objc_boehm_gc=1
7022 fi
7023 else
7024   objc_boehm_gc=''
7025 fi
7026
7027
7028
7029 # Check whether --with-dwarf2 was given.
7030 if test "${with_dwarf2+set}" = set; then :
7031   withval=$with_dwarf2; dwarf2="$with_dwarf2"
7032 else
7033   dwarf2=no
7034 fi
7035
7036
7037 # Check whether --enable-shared was given.
7038 if test "${enable_shared+set}" = set; then :
7039   enableval=$enable_shared;
7040   case $enable_shared in
7041   yes | no) ;;
7042   *)
7043     enable_shared=no
7044     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7045     for pkg in $enableval; do
7046       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7047         enable_shared=yes
7048       fi
7049     done
7050     IFS="$ac_save_ifs"
7051     ;;
7052   esac
7053
7054 else
7055   enable_shared=yes
7056 fi
7057
7058
7059
7060
7061 # Check whether --with-build-sysroot was given.
7062 if test "${with_build_sysroot+set}" = set; then :
7063   withval=$with_build_sysroot;
7064 fi
7065
7066
7067
7068 # Check whether --with-sysroot was given.
7069 if test "${with_sysroot+set}" = set; then :
7070   withval=$with_sysroot;
7071  case ${with_sysroot} in
7072  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7073  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7074  esac
7075
7076  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7077  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7078
7079  if test "x$prefix" = xNONE; then
7080   test_prefix=/usr/local
7081  else
7082   test_prefix=$prefix
7083  fi
7084  if test "x$exec_prefix" = xNONE; then
7085   test_exec_prefix=$test_prefix
7086  else
7087   test_exec_prefix=$exec_prefix
7088  fi
7089  case ${TARGET_SYSTEM_ROOT} in
7090  "${test_prefix}"|"${test_prefix}/"*|\
7091  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7092  '${prefix}'|'${prefix}/'*|\
7093  '${exec_prefix}'|'${exec_prefix}/'*)
7094    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7095    TARGET_SYSTEM_ROOT_DEFINE="$t"
7096    ;;
7097  esac
7098
7099 else
7100
7101  TARGET_SYSTEM_ROOT=
7102  TARGET_SYSTEM_ROOT_DEFINE=
7103  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7104
7105 fi
7106
7107
7108
7109
7110
7111
7112 # Check whether --with-specs was given.
7113 if test "${with_specs+set}" = set; then :
7114   withval=$with_specs; CONFIGURE_SPECS=$withval
7115 else
7116   CONFIGURE_SPECS=
7117
7118 fi
7119
7120
7121
7122
7123
7124 # Check whether --with-pkgversion was given.
7125 if test "${with_pkgversion+set}" = set; then :
7126   withval=$with_pkgversion; case "$withval" in
7127       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7128       no)  PKGVERSION= ;;
7129       *)   PKGVERSION="($withval) " ;;
7130      esac
7131 else
7132   PKGVERSION="(GCC) "
7133
7134 fi
7135
7136
7137
7138
7139
7140 # Check whether --with-bugurl was given.
7141 if test "${with_bugurl+set}" = set; then :
7142   withval=$with_bugurl; case "$withval" in
7143       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7144       no)  BUGURL=
7145            ;;
7146       *)   BUGURL="$withval"
7147            ;;
7148      esac
7149 else
7150   BUGURL="http://gcc.gnu.org/bugs.html"
7151
7152 fi
7153
7154   case ${BUGURL} in
7155   "")
7156     REPORT_BUGS_TO=
7157     REPORT_BUGS_TEXI=
7158     ;;
7159   *)
7160     REPORT_BUGS_TO="<$BUGURL>"
7161     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7162     ;;
7163   esac;
7164
7165
7166
7167
7168 # Sanity check enable_languages in case someone does not run the toplevel
7169 # configure # script.
7170 # Check whether --enable-languages was given.
7171 if test "${enable_languages+set}" = set; then :
7172   enableval=$enable_languages; case ,${enable_languages}, in
7173        ,,|,yes,)
7174                 # go safe -- we cannot be much sure without the toplevel
7175                 # configure's
7176                 # analysis of which target libs are present and usable
7177                 enable_languages=c
7178                 ;;
7179          *,all,*)
7180                 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7181                 ;;
7182         *,c,*)
7183                 ;;
7184         *)
7185                 enable_languages=c,${enable_languages}
7186                 ;;
7187 esac
7188 else
7189   enable_languages=c
7190 fi
7191
7192
7193
7194 # Check whether --with-multilib-list was given.
7195 if test "${with_multilib_list+set}" = set; then :
7196   withval=$with_multilib_list; :
7197 else
7198   with_multilib_list=default
7199 fi
7200
7201
7202 # -------------------------
7203 # Checks for other programs
7204 # -------------------------
7205
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7207 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7208 set x ${MAKE-make}
7209 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7210 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7211   $as_echo_n "(cached) " >&6
7212 else
7213   cat >conftest.make <<\_ACEOF
7214 SHELL = /bin/sh
7215 all:
7216         @echo '@@@%%%=$(MAKE)=@@@%%%'
7217 _ACEOF
7218 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7219 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7220   *@@@%%%=?*=@@@%%%*)
7221     eval ac_cv_prog_make_${ac_make}_set=yes;;
7222   *)
7223     eval ac_cv_prog_make_${ac_make}_set=no;;
7224 esac
7225 rm -f conftest.make
7226 fi
7227 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7229 $as_echo "yes" >&6; }
7230   SET_MAKE=
7231 else
7232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233 $as_echo "no" >&6; }
7234   SET_MAKE="MAKE=${MAKE-make}"
7235 fi
7236
7237
7238 # Find some useful tools
7239 for ac_prog in gawk mawk nawk awk
7240 do
7241   # Extract the first word of "$ac_prog", so it can be a program name with args.
7242 set dummy $ac_prog; ac_word=$2
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244 $as_echo_n "checking for $ac_word... " >&6; }
7245 if test "${ac_cv_prog_AWK+set}" = set; then :
7246   $as_echo_n "(cached) " >&6
7247 else
7248   if test -n "$AWK"; then
7249   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7250 else
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 for as_dir in $PATH
7253 do
7254   IFS=$as_save_IFS
7255   test -z "$as_dir" && as_dir=.
7256     for ac_exec_ext in '' $ac_executable_extensions; do
7257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7258     ac_cv_prog_AWK="$ac_prog"
7259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7260     break 2
7261   fi
7262 done
7263   done
7264 IFS=$as_save_IFS
7265
7266 fi
7267 fi
7268 AWK=$ac_cv_prog_AWK
7269 if test -n "$AWK"; then
7270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7271 $as_echo "$AWK" >&6; }
7272 else
7273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274 $as_echo "no" >&6; }
7275 fi
7276
7277
7278   test -n "$AWK" && break
7279 done
7280
7281 # We need awk to create options.c and options.h.
7282 # Bail out if it's missing.
7283 case ${AWK} in
7284   "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7285 esac
7286
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7288 $as_echo_n "checking whether ln -s works... " >&6; }
7289 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7290   $as_echo_n "(cached) " >&6
7291 else
7292   rm -f conftestdata_t
7293 echo >conftestdata_f
7294 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7295 then
7296   gcc_cv_prog_LN_S="ln -s"
7297 else
7298   if ln conftestdata_f conftestdata_t 2>/dev/null
7299   then
7300     gcc_cv_prog_LN_S=ln
7301   else
7302     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7303     then
7304       gcc_cv_prog_LN_S="cp -p"
7305     else
7306       gcc_cv_prog_LN_S=cp
7307     fi
7308   fi
7309 fi
7310 rm -f conftestdata_f conftestdata_t
7311
7312 fi
7313 LN_S="$gcc_cv_prog_LN_S"
7314 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7316 $as_echo "yes" >&6; }
7317 else
7318   if test "$gcc_cv_prog_LN_S" = "ln"; then
7319     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7320 $as_echo "no, using ln" >&6; }
7321   else
7322     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7323 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7324   fi
7325 fi
7326
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7328 $as_echo_n "checking whether ln works... " >&6; }
7329 if test "${acx_cv_prog_LN+set}" = set; then :
7330   $as_echo_n "(cached) " >&6
7331 else
7332   rm -f conftestdata_t
7333 echo >conftestdata_f
7334 if ln conftestdata_f conftestdata_t 2>/dev/null
7335 then
7336   acx_cv_prog_LN=ln
7337 else
7338   acx_cv_prog_LN=no
7339 fi
7340 rm -f conftestdata_f conftestdata_t
7341
7342 fi
7343 if test $acx_cv_prog_LN = no; then
7344   LN="$LN_S"
7345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7346 $as_echo "no, using $LN" >&6; }
7347 else
7348   LN="$acx_cv_prog_LN"
7349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7350 $as_echo "yes" >&6; }
7351 fi
7352
7353 if test -n "$ac_tool_prefix"; then
7354   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7355 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7357 $as_echo_n "checking for $ac_word... " >&6; }
7358 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7359   $as_echo_n "(cached) " >&6
7360 else
7361   if test -n "$RANLIB"; then
7362   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7363 else
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH
7366 do
7367   IFS=$as_save_IFS
7368   test -z "$as_dir" && as_dir=.
7369     for ac_exec_ext in '' $ac_executable_extensions; do
7370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7371     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7373     break 2
7374   fi
7375 done
7376   done
7377 IFS=$as_save_IFS
7378
7379 fi
7380 fi
7381 RANLIB=$ac_cv_prog_RANLIB
7382 if test -n "$RANLIB"; then
7383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7384 $as_echo "$RANLIB" >&6; }
7385 else
7386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387 $as_echo "no" >&6; }
7388 fi
7389
7390
7391 fi
7392 if test -z "$ac_cv_prog_RANLIB"; then
7393   ac_ct_RANLIB=$RANLIB
7394   # Extract the first word of "ranlib", so it can be a program name with args.
7395 set dummy ranlib; ac_word=$2
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397 $as_echo_n "checking for $ac_word... " >&6; }
7398 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7399   $as_echo_n "(cached) " >&6
7400 else
7401   if test -n "$ac_ct_RANLIB"; then
7402   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7403 else
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7406 do
7407   IFS=$as_save_IFS
7408   test -z "$as_dir" && as_dir=.
7409     for ac_exec_ext in '' $ac_executable_extensions; do
7410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7411     ac_cv_prog_ac_ct_RANLIB="ranlib"
7412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413     break 2
7414   fi
7415 done
7416   done
7417 IFS=$as_save_IFS
7418
7419 fi
7420 fi
7421 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7422 if test -n "$ac_ct_RANLIB"; then
7423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7424 $as_echo "$ac_ct_RANLIB" >&6; }
7425 else
7426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7428 fi
7429
7430   if test "x$ac_ct_RANLIB" = x; then
7431     RANLIB=":"
7432   else
7433     case $cross_compiling:$ac_tool_warned in
7434 yes:)
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7437 ac_tool_warned=yes ;;
7438 esac
7439     RANLIB=$ac_ct_RANLIB
7440   fi
7441 else
7442   RANLIB="$ac_cv_prog_RANLIB"
7443 fi
7444
7445 case "${host}" in
7446 *-*-darwin*)
7447   # By default, the Darwin ranlib will not treat common symbols as
7448   # definitions when  building the archive table of contents.  Other
7449   # ranlibs do that; pass an option to the Darwin ranlib that makes
7450   # it behave similarly.
7451   ranlib_flags="-c"
7452   ;;
7453 *)
7454   ranlib_flags=""
7455 esac
7456
7457
7458 # Find a good install program.  We prefer a C program (faster),
7459 # so one script is as good as another.  But avoid the broken or
7460 # incompatible versions:
7461 # SysV /etc/install, /usr/sbin/install
7462 # SunOS /usr/etc/install
7463 # IRIX /sbin/install
7464 # AIX /bin/install
7465 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7466 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7467 # ./install, which can be erroneously created by make from ./install.sh.
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7469 $as_echo_n "checking for a BSD compatible install... " >&6; }
7470 if test -z "$INSTALL"; then
7471 if test "${ac_cv_path_install+set}" = set; then :
7472   $as_echo_n "(cached) " >&6
7473 else
7474     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7475   for ac_dir in $PATH; do
7476     # Account for people who put trailing slashes in PATH elements.
7477     case "$ac_dir/" in
7478     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7479     *)
7480       # OSF1 and SCO ODT 3.0 have their own names for install.
7481       for ac_prog in ginstall scoinst install; do
7482         if test -f $ac_dir/$ac_prog; then
7483           if test $ac_prog = install &&
7484             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7485             # AIX install.  It has an incompatible calling convention.
7486             # OSF/1 installbsd also uses dspmsg, but is usable.
7487             :
7488           else
7489             ac_cv_path_install="$ac_dir/$ac_prog -c"
7490             break 2
7491           fi
7492         fi
7493       done
7494       ;;
7495     esac
7496   done
7497   IFS="$ac_save_IFS"
7498
7499 fi
7500   if test "${ac_cv_path_install+set}" = set; then
7501     INSTALL="$ac_cv_path_install"
7502   else
7503     # As a last resort, use the slow shell script.  We don't cache a
7504     # path for INSTALL within a source directory, because that will
7505     # break other packages using the cache if that directory is
7506     # removed, or if the path is relative.
7507     INSTALL="$ac_install_sh"
7508   fi
7509 fi
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7511 $as_echo "$INSTALL" >&6; }
7512
7513 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7514 # It thinks the first close brace ends the variable substitution.
7515 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7516
7517 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7518
7519
7520 # See if cmp has --ignore-initial.
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7522 $as_echo_n "checking for cmp's capabilities... " >&6; }
7523 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7524   $as_echo_n "(cached) " >&6
7525 else
7526    echo abfoo >t1
7527   echo cdfoo >t2
7528   gcc_cv_prog_cmp_skip=slowcompare
7529   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7530     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7531       :
7532     else
7533       gcc_cv_prog_cmp_skip=gnucompare
7534     fi
7535   fi
7536   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7537     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7538       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7539         :
7540       else
7541         gcc_cv_prog_cmp_skip=fastcompare
7542       fi
7543     fi
7544   fi
7545   rm t1 t2
7546
7547 fi
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7549 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7550 make_compare_target=$gcc_cv_prog_cmp_skip
7551
7552
7553
7554 # See if we have the mktemp command.
7555 # Extract the first word of "mktemp", so it can be a program name with args.
7556 set dummy mktemp; ac_word=$2
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7558 $as_echo_n "checking for $ac_word... " >&6; }
7559 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7560   $as_echo_n "(cached) " >&6
7561 else
7562   if test -n "$have_mktemp_command"; then
7563   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7564 else
7565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 for as_dir in $PATH
7567 do
7568   IFS=$as_save_IFS
7569   test -z "$as_dir" && as_dir=.
7570     for ac_exec_ext in '' $ac_executable_extensions; do
7571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7572     ac_cv_prog_have_mktemp_command="yes"
7573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7574     break 2
7575   fi
7576 done
7577   done
7578 IFS=$as_save_IFS
7579
7580   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7581 fi
7582 fi
7583 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7584 if test -n "$have_mktemp_command"; then
7585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7586 $as_echo "$have_mktemp_command" >&6; }
7587 else
7588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7590 fi
7591
7592
7593
7594 # See if makeinfo has been installed and is modern enough
7595 # that we can use it.
7596
7597   # Extract the first word of "makeinfo", so it can be a program name with args.
7598 set dummy makeinfo; ac_word=$2
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7600 $as_echo_n "checking for $ac_word... " >&6; }
7601 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7602   $as_echo_n "(cached) " >&6
7603 else
7604   if test -n "$MAKEINFO"; then
7605   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7606 else
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 for as_dir in $PATH
7609 do
7610   IFS=$as_save_IFS
7611   test -z "$as_dir" && as_dir=.
7612     for ac_exec_ext in '' $ac_executable_extensions; do
7613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7614     ac_cv_prog_MAKEINFO="makeinfo"
7615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7616     break 2
7617   fi
7618 done
7619   done
7620 IFS=$as_save_IFS
7621
7622 fi
7623 fi
7624 MAKEINFO=$ac_cv_prog_MAKEINFO
7625 if test -n "$MAKEINFO"; then
7626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7627 $as_echo "$MAKEINFO" >&6; }
7628 else
7629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630 $as_echo "no" >&6; }
7631 fi
7632
7633
7634   if test -n "$MAKEINFO"; then
7635     # Found it, now check the version.
7636     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7637 $as_echo_n "checking for modern makeinfo... " >&6; }
7638 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7639   $as_echo_n "(cached) " >&6
7640 else
7641   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7642                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7643
7644                     case $ac_prog_version in
7645                       '')  gcc_cv_prog_makeinfo_modern=no;;
7646                       4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7647                       *)   gcc_cv_prog_makeinfo_modern=no;;
7648                     esac
7649
7650 fi
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7652 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7653   else
7654     gcc_cv_prog_makeinfo_modern=no
7655   fi
7656   if test $gcc_cv_prog_makeinfo_modern = no; then
7657     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7658   fi
7659
7660 if test $gcc_cv_prog_makeinfo_modern = no; then
7661   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7662 *** Makeinfo is missing or too old.
7663 *** Info documentation will not be built." >&5
7664 $as_echo "$as_me: WARNING:
7665 *** Makeinfo is missing or too old.
7666 *** Info documentation will not be built." >&2;}
7667   BUILD_INFO=
7668 else
7669   BUILD_INFO=info
7670 fi
7671
7672
7673 # Is pod2man recent enough to regenerate manpages?
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7675 $as_echo_n "checking for recent Pod::Man... " >&6; }
7676 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7678 $as_echo "yes" >&6; }
7679   GENERATED_MANPAGES=generated-manpages
7680 else
7681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682 $as_echo "no" >&6; }
7683   GENERATED_MANPAGES=
7684 fi
7685
7686
7687 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7688
7689 # How about lex?
7690 for ac_prog in flex
7691 do
7692   # Extract the first word of "$ac_prog", so it can be a program name with args.
7693 set dummy $ac_prog; ac_word=$2
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695 $as_echo_n "checking for $ac_word... " >&6; }
7696 if test "${ac_cv_prog_FLEX+set}" = set; then :
7697   $as_echo_n "(cached) " >&6
7698 else
7699   if test -n "$FLEX"; then
7700   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7701 else
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7704 do
7705   IFS=$as_save_IFS
7706   test -z "$as_dir" && as_dir=.
7707     for ac_exec_ext in '' $ac_executable_extensions; do
7708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7709     ac_cv_prog_FLEX="$ac_prog"
7710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7711     break 2
7712   fi
7713 done
7714   done
7715 IFS=$as_save_IFS
7716
7717 fi
7718 fi
7719 FLEX=$ac_cv_prog_FLEX
7720 if test -n "$FLEX"; then
7721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7722 $as_echo "$FLEX" >&6; }
7723 else
7724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 $as_echo "no" >&6; }
7726 fi
7727
7728
7729   test -n "$FLEX" && break
7730 done
7731 test -n "$FLEX" || FLEX="$MISSING flex"
7732
7733
7734 # Bison?
7735 for ac_prog in bison
7736 do
7737   # Extract the first word of "$ac_prog", so it can be a program name with args.
7738 set dummy $ac_prog; ac_word=$2
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740 $as_echo_n "checking for $ac_word... " >&6; }
7741 if test "${ac_cv_prog_BISON+set}" = set; then :
7742   $as_echo_n "(cached) " >&6
7743 else
7744   if test -n "$BISON"; then
7745   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7746 else
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 for as_dir in $PATH
7749 do
7750   IFS=$as_save_IFS
7751   test -z "$as_dir" && as_dir=.
7752     for ac_exec_ext in '' $ac_executable_extensions; do
7753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7754     ac_cv_prog_BISON="$ac_prog"
7755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7756     break 2
7757   fi
7758 done
7759   done
7760 IFS=$as_save_IFS
7761
7762 fi
7763 fi
7764 BISON=$ac_cv_prog_BISON
7765 if test -n "$BISON"; then
7766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7767 $as_echo "$BISON" >&6; }
7768 else
7769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770 $as_echo "no" >&6; }
7771 fi
7772
7773
7774   test -n "$BISON" && break
7775 done
7776 test -n "$BISON" || BISON="$MISSING bison"
7777
7778
7779 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7780 # check for build == host before using them.
7781
7782 # NM
7783 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7784   && test -d ../binutils ; then
7785   NM='${objdir}/../binutils/nm-new'
7786 else
7787   # Extract the first word of "nm", so it can be a program name with args.
7788 set dummy nm; ac_word=$2
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7790 $as_echo_n "checking for $ac_word... " >&6; }
7791 if test "${ac_cv_prog_NM+set}" = set; then :
7792   $as_echo_n "(cached) " >&6
7793 else
7794   if test -n "$NM"; then
7795   ac_cv_prog_NM="$NM" # Let the user override the test.
7796 else
7797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 for as_dir in $PATH
7799 do
7800   IFS=$as_save_IFS
7801   test -z "$as_dir" && as_dir=.
7802     for ac_exec_ext in '' $ac_executable_extensions; do
7803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7804     ac_cv_prog_NM="nm"
7805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7806     break 2
7807   fi
7808 done
7809   done
7810 IFS=$as_save_IFS
7811
7812   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7813 fi
7814 fi
7815 NM=$ac_cv_prog_NM
7816 if test -n "$NM"; then
7817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7818 $as_echo "$NM" >&6; }
7819 else
7820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821 $as_echo "no" >&6; }
7822 fi
7823
7824
7825 fi
7826
7827 # AR
7828 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7829   && test -d ../binutils ; then
7830   AR='${objdir}/../binutils/ar'
7831 else
7832   # Extract the first word of "ar", so it can be a program name with args.
7833 set dummy ar; ac_word=$2
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7835 $as_echo_n "checking for $ac_word... " >&6; }
7836 if test "${ac_cv_prog_AR+set}" = set; then :
7837   $as_echo_n "(cached) " >&6
7838 else
7839   if test -n "$AR"; then
7840   ac_cv_prog_AR="$AR" # Let the user override the test.
7841 else
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 for as_dir in $PATH
7844 do
7845   IFS=$as_save_IFS
7846   test -z "$as_dir" && as_dir=.
7847     for ac_exec_ext in '' $ac_executable_extensions; do
7848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7849     ac_cv_prog_AR="ar"
7850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7851     break 2
7852   fi
7853 done
7854   done
7855 IFS=$as_save_IFS
7856
7857   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7858 fi
7859 fi
7860 AR=$ac_cv_prog_AR
7861 if test -n "$AR"; then
7862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7863 $as_echo "$AR" >&6; }
7864 else
7865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7866 $as_echo "no" >&6; }
7867 fi
7868
7869
7870 fi
7871
7872
7873 # --------------------
7874 # Checks for C headers
7875 # --------------------
7876
7877 # Need to reject headers which give warnings, so that the -Werror bootstrap
7878 # works later. *sigh*  This needs to come before all header checks.
7879
7880 ac_c_preproc_warn_flag=yes
7881
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7883 $as_echo_n "checking for ANSI C header files... " >&6; }
7884 if test "${ac_cv_header_stdc+set}" = set; then :
7885   $as_echo_n "(cached) " >&6
7886 else
7887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888 /* end confdefs.h.  */
7889 #include <stdlib.h>
7890 #include <stdarg.h>
7891 #include <string.h>
7892 #include <float.h>
7893
7894 int
7895 main ()
7896 {
7897
7898   ;
7899   return 0;
7900 }
7901 _ACEOF
7902 if ac_fn_c_try_compile "$LINENO"; then :
7903   ac_cv_header_stdc=yes
7904 else
7905   ac_cv_header_stdc=no
7906 fi
7907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908
7909 if test $ac_cv_header_stdc = yes; then
7910   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912 /* end confdefs.h.  */
7913 #include <string.h>
7914
7915 _ACEOF
7916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7917   $EGREP "memchr" >/dev/null 2>&1; then :
7918
7919 else
7920   ac_cv_header_stdc=no
7921 fi
7922 rm -f conftest*
7923
7924 fi
7925
7926 if test $ac_cv_header_stdc = yes; then
7927   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h.  */
7930 #include <stdlib.h>
7931
7932 _ACEOF
7933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7934   $EGREP "free" >/dev/null 2>&1; then :
7935
7936 else
7937   ac_cv_header_stdc=no
7938 fi
7939 rm -f conftest*
7940
7941 fi
7942
7943 if test $ac_cv_header_stdc = yes; then
7944   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7945   if test "$cross_compiling" = yes; then :
7946   :
7947 else
7948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h.  */
7950 #include <ctype.h>
7951 #include <stdlib.h>
7952 #if ((' ' & 0x0FF) == 0x020)
7953 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7954 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7955 #else
7956 # define ISLOWER(c) \
7957                    (('a' <= (c) && (c) <= 'i') \
7958                      || ('j' <= (c) && (c) <= 'r') \
7959                      || ('s' <= (c) && (c) <= 'z'))
7960 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7961 #endif
7962
7963 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7964 int
7965 main ()
7966 {
7967   int i;
7968   for (i = 0; i < 256; i++)
7969     if (XOR (islower (i), ISLOWER (i))
7970         || toupper (i) != TOUPPER (i))
7971       return 2;
7972   return 0;
7973 }
7974 _ACEOF
7975 if ac_fn_c_try_run "$LINENO"; then :
7976
7977 else
7978   ac_cv_header_stdc=no
7979 fi
7980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7981   conftest.$ac_objext conftest.beam conftest.$ac_ext
7982 fi
7983
7984 fi
7985 fi
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7987 $as_echo "$ac_cv_header_stdc" >&6; }
7988 if test $ac_cv_header_stdc = yes; then
7989
7990 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7991
7992 fi
7993
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7995 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7996 if test "${ac_cv_header_time+set}" = set; then :
7997   $as_echo_n "(cached) " >&6
7998 else
7999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h.  */
8001 #include <sys/types.h>
8002 #include <sys/time.h>
8003 #include <time.h>
8004
8005 int
8006 main ()
8007 {
8008 if ((struct tm *) 0)
8009 return 0;
8010   ;
8011   return 0;
8012 }
8013 _ACEOF
8014 if ac_fn_c_try_compile "$LINENO"; then :
8015   ac_cv_header_time=yes
8016 else
8017   ac_cv_header_time=no
8018 fi
8019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8020 fi
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8022 $as_echo "$ac_cv_header_time" >&6; }
8023 if test $ac_cv_header_time = yes; then
8024
8025 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8026
8027 fi
8028
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8030 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8031 if test "${gcc_cv_header_string+set}" = set; then :
8032   $as_echo_n "(cached) " >&6
8033 else
8034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h.  */
8036 #include <string.h>
8037 #include <strings.h>
8038 int
8039 main ()
8040 {
8041
8042   ;
8043   return 0;
8044 }
8045 _ACEOF
8046 if ac_fn_c_try_compile "$LINENO"; then :
8047   gcc_cv_header_string=yes
8048 else
8049   gcc_cv_header_string=no
8050 fi
8051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8052 fi
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8054 $as_echo "$gcc_cv_header_string" >&6; }
8055 if test $gcc_cv_header_string = yes; then
8056
8057 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8058
8059 fi
8060
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8062 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8063 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8064   $as_echo_n "(cached) " >&6
8065 else
8066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h.  */
8068 #include <sys/types.h>
8069 #include <sys/wait.h>
8070 #ifndef WEXITSTATUS
8071 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8072 #endif
8073 #ifndef WIFEXITED
8074 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8075 #endif
8076
8077 int
8078 main ()
8079 {
8080   int s;
8081   wait (&s);
8082   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8083   ;
8084   return 0;
8085 }
8086 _ACEOF
8087 if ac_fn_c_try_compile "$LINENO"; then :
8088   ac_cv_header_sys_wait_h=yes
8089 else
8090   ac_cv_header_sys_wait_h=no
8091 fi
8092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8093 fi
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8095 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8096 if test $ac_cv_header_sys_wait_h = yes; then
8097
8098 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8099
8100 fi
8101
8102 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8103                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8104                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8105                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8106 do :
8107   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8108 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8109 eval as_val=\$$as_ac_Header
8110    if test "x$as_val" = x""yes; then :
8111   cat >>confdefs.h <<_ACEOF
8112 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8113 _ACEOF
8114
8115 fi
8116 done
8117
8118
8119 # Check for thread headers.
8120 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8121 if test "x$ac_cv_header_thread_h" = x""yes; then :
8122   have_thread_h=yes
8123 else
8124   have_thread_h=
8125 fi
8126
8127 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8128 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8129   have_pthread_h=yes
8130 else
8131   have_pthread_h=
8132 fi
8133
8134
8135 # These tests can't be done till we know if we have limits.h.
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8137 $as_echo_n "checking for CHAR_BIT... " >&6; }
8138 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8139   $as_echo_n "(cached) " >&6
8140 else
8141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142 /* end confdefs.h.  */
8143 #ifdef HAVE_LIMITS_H
8144 #include <limits.h>
8145 #endif
8146 #ifdef CHAR_BIT
8147 found
8148 #endif
8149 _ACEOF
8150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8151   $EGREP "found" >/dev/null 2>&1; then :
8152   gcc_cv_decl_char_bit=yes
8153 else
8154   gcc_cv_decl_char_bit=no
8155 fi
8156 rm -f conftest*
8157
8158
8159 fi
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8161 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8162 if test $gcc_cv_decl_char_bit = no; then
8163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8164 $as_echo_n "checking number of bits in a byte... " >&6; }
8165 if test "${gcc_cv_c_nbby+set}" = set; then :
8166   $as_echo_n "(cached) " >&6
8167 else
8168   i=8
8169  gcc_cv_c_nbby=
8170  while test $i -lt 65; do
8171    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172 /* end confdefs.h.  */
8173
8174 int
8175 main ()
8176 {
8177 switch(0) {
8178   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8179   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8180   ; }
8181   ;
8182   return 0;
8183 }
8184 _ACEOF
8185 if ac_fn_c_try_compile "$LINENO"; then :
8186   gcc_cv_c_nbby=$i; break
8187 fi
8188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189    i=`expr $i + 1`
8190  done
8191  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8192
8193 fi
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8195 $as_echo "$gcc_cv_c_nbby" >&6; }
8196 if test $gcc_cv_c_nbby = failed; then
8197   as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8198 else
8199
8200 cat >>confdefs.h <<_ACEOF
8201 #define CHAR_BIT $gcc_cv_c_nbby
8202 _ACEOF
8203
8204 fi
8205 fi
8206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8207 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8208 if test "${ac_cv_c_bigendian+set}" = set; then :
8209   $as_echo_n "(cached) " >&6
8210 else
8211   ac_cv_c_bigendian=unknown
8212     # See if we're dealing with a universal compiler.
8213     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214 /* end confdefs.h.  */
8215 #ifndef __APPLE_CC__
8216                not a universal capable compiler
8217              #endif
8218              typedef int dummy;
8219
8220 _ACEOF
8221 if ac_fn_c_try_compile "$LINENO"; then :
8222
8223         # Check for potential -arch flags.  It is not universal unless
8224         # there are at least two -arch flags with different values.
8225         ac_arch=
8226         ac_prev=
8227         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8228          if test -n "$ac_prev"; then
8229            case $ac_word in
8230              i?86 | x86_64 | ppc | ppc64)
8231                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8232                  ac_arch=$ac_word
8233                else
8234                  ac_cv_c_bigendian=universal
8235                  break
8236                fi
8237                ;;
8238            esac
8239            ac_prev=
8240          elif test "x$ac_word" = "x-arch"; then
8241            ac_prev=arch
8242          fi
8243        done
8244 fi
8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246     if test $ac_cv_c_bigendian = unknown; then
8247       # See if sys/param.h defines the BYTE_ORDER macro.
8248       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8249 /* end confdefs.h.  */
8250 #include <sys/types.h>
8251              #include <sys/param.h>
8252
8253 int
8254 main ()
8255 {
8256 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8257                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8258                      && LITTLE_ENDIAN)
8259               bogus endian macros
8260              #endif
8261
8262   ;
8263   return 0;
8264 }
8265 _ACEOF
8266 if ac_fn_c_try_compile "$LINENO"; then :
8267   # It does; now see whether it defined to BIG_ENDIAN or not.
8268          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269 /* end confdefs.h.  */
8270 #include <sys/types.h>
8271                 #include <sys/param.h>
8272
8273 int
8274 main ()
8275 {
8276 #if BYTE_ORDER != BIG_ENDIAN
8277                  not big endian
8278                 #endif
8279
8280   ;
8281   return 0;
8282 }
8283 _ACEOF
8284 if ac_fn_c_try_compile "$LINENO"; then :
8285   ac_cv_c_bigendian=yes
8286 else
8287   ac_cv_c_bigendian=no
8288 fi
8289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8290 fi
8291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8292     fi
8293     if test $ac_cv_c_bigendian = unknown; then
8294       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8295       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8296 /* end confdefs.h.  */
8297 #include <limits.h>
8298
8299 int
8300 main ()
8301 {
8302 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8303               bogus endian macros
8304              #endif
8305
8306   ;
8307   return 0;
8308 }
8309 _ACEOF
8310 if ac_fn_c_try_compile "$LINENO"; then :
8311   # It does; now see whether it defined to _BIG_ENDIAN or not.
8312          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313 /* end confdefs.h.  */
8314 #include <limits.h>
8315
8316 int
8317 main ()
8318 {
8319 #ifndef _BIG_ENDIAN
8320                  not big endian
8321                 #endif
8322
8323   ;
8324   return 0;
8325 }
8326 _ACEOF
8327 if ac_fn_c_try_compile "$LINENO"; then :
8328   ac_cv_c_bigendian=yes
8329 else
8330   ac_cv_c_bigendian=no
8331 fi
8332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8333 fi
8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335     fi
8336     if test $ac_cv_c_bigendian = unknown; then
8337       # Compile a test program.
8338       if test "$cross_compiling" = yes; then :
8339   # Try to guess by grepping values from an object file.
8340          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341 /* end confdefs.h.  */
8342 short int ascii_mm[] =
8343                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8344                 short int ascii_ii[] =
8345                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8346                 int use_ascii (int i) {
8347                   return ascii_mm[i] + ascii_ii[i];
8348                 }
8349                 short int ebcdic_ii[] =
8350                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8351                 short int ebcdic_mm[] =
8352                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8353                 int use_ebcdic (int i) {
8354                   return ebcdic_mm[i] + ebcdic_ii[i];
8355                 }
8356                 extern int foo;
8357
8358 int
8359 main ()
8360 {
8361 return use_ascii (foo) == use_ebcdic (foo);
8362   ;
8363   return 0;
8364 }
8365 _ACEOF
8366 if ac_fn_c_try_compile "$LINENO"; then :
8367   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8368               ac_cv_c_bigendian=yes
8369             fi
8370             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8371               if test "$ac_cv_c_bigendian" = unknown; then
8372                 ac_cv_c_bigendian=no
8373               else
8374                 # finding both strings is unlikely to happen, but who knows?
8375                 ac_cv_c_bigendian=unknown
8376               fi
8377             fi
8378 fi
8379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8380 else
8381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h.  */
8383 $ac_includes_default
8384 int
8385 main ()
8386 {
8387
8388              /* Are we little or big endian?  From Harbison&Steele.  */
8389              union
8390              {
8391                long int l;
8392                char c[sizeof (long int)];
8393              } u;
8394              u.l = 1;
8395              return u.c[sizeof (long int) - 1] == 1;
8396
8397   ;
8398   return 0;
8399 }
8400 _ACEOF
8401 if ac_fn_c_try_run "$LINENO"; then :
8402   ac_cv_c_bigendian=no
8403 else
8404   ac_cv_c_bigendian=yes
8405 fi
8406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8407   conftest.$ac_objext conftest.beam conftest.$ac_ext
8408 fi
8409
8410     fi
8411 fi
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8413 $as_echo "$ac_cv_c_bigendian" >&6; }
8414  case $ac_cv_c_bigendian in #(
8415    yes)
8416      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8417 ;; #(
8418    no)
8419       ;; #(
8420    universal)
8421
8422 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8423
8424      ;; #(
8425    *)
8426      as_fn_error "unknown endianness
8427  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8428  esac
8429
8430
8431 # ----------------------
8432 # Checks for C++ headers
8433 # ----------------------
8434
8435 ac_ext=cpp
8436 ac_cpp='$CXXCPP $CPPFLAGS'
8437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8441 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8442 if test -z "$CXXCPP"; then
8443   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8444   $as_echo_n "(cached) " >&6
8445 else
8446       # Double quotes because CXXCPP needs to be expanded
8447     for CXXCPP in "$CXX -E" "/lib/cpp"
8448     do
8449       ac_preproc_ok=false
8450 for ac_cxx_preproc_warn_flag in '' yes
8451 do
8452   # Use a header file that comes with gcc, so configuring glibc
8453   # with a fresh cross-compiler works.
8454   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8455   # <limits.h> exists even on freestanding compilers.
8456   # On the NeXT, cc -E runs the code through the compiler's parser,
8457   # not just through cpp. "Syntax error" is here to catch this case.
8458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h.  */
8460 #ifdef __STDC__
8461 # include <limits.h>
8462 #else
8463 # include <assert.h>
8464 #endif
8465                      Syntax error
8466 _ACEOF
8467 if ac_fn_cxx_try_cpp "$LINENO"; then :
8468
8469 else
8470   # Broken: fails on valid input.
8471 continue
8472 fi
8473 rm -f conftest.err conftest.$ac_ext
8474
8475   # OK, works on sane cases.  Now check whether nonexistent headers
8476   # can be detected and how.
8477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8478 /* end confdefs.h.  */
8479 #include <ac_nonexistent.h>
8480 _ACEOF
8481 if ac_fn_cxx_try_cpp "$LINENO"; then :
8482   # Broken: success on invalid input.
8483 continue
8484 else
8485   # Passes both tests.
8486 ac_preproc_ok=:
8487 break
8488 fi
8489 rm -f conftest.err conftest.$ac_ext
8490
8491 done
8492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8493 rm -f conftest.err conftest.$ac_ext
8494 if $ac_preproc_ok; then :
8495   break
8496 fi
8497
8498     done
8499     ac_cv_prog_CXXCPP=$CXXCPP
8500
8501 fi
8502   CXXCPP=$ac_cv_prog_CXXCPP
8503 else
8504   ac_cv_prog_CXXCPP=$CXXCPP
8505 fi
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8507 $as_echo "$CXXCPP" >&6; }
8508 ac_preproc_ok=false
8509 for ac_cxx_preproc_warn_flag in '' yes
8510 do
8511   # Use a header file that comes with gcc, so configuring glibc
8512   # with a fresh cross-compiler works.
8513   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8514   # <limits.h> exists even on freestanding compilers.
8515   # On the NeXT, cc -E runs the code through the compiler's parser,
8516   # not just through cpp. "Syntax error" is here to catch this case.
8517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h.  */
8519 #ifdef __STDC__
8520 # include <limits.h>
8521 #else
8522 # include <assert.h>
8523 #endif
8524                      Syntax error
8525 _ACEOF
8526 if ac_fn_cxx_try_cpp "$LINENO"; then :
8527
8528 else
8529   # Broken: fails on valid input.
8530 continue
8531 fi
8532 rm -f conftest.err conftest.$ac_ext
8533
8534   # OK, works on sane cases.  Now check whether nonexistent headers
8535   # can be detected and how.
8536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537 /* end confdefs.h.  */
8538 #include <ac_nonexistent.h>
8539 _ACEOF
8540 if ac_fn_cxx_try_cpp "$LINENO"; then :
8541   # Broken: success on invalid input.
8542 continue
8543 else
8544   # Passes both tests.
8545 ac_preproc_ok=:
8546 break
8547 fi
8548 rm -f conftest.err conftest.$ac_ext
8549
8550 done
8551 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8552 rm -f conftest.err conftest.$ac_ext
8553 if $ac_preproc_ok; then :
8554
8555 else
8556   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8559 See \`config.log' for more details." >&5
8560 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8561 See \`config.log' for more details." >&2;}; }
8562 fi
8563
8564 ac_ext=c
8565 ac_cpp='$CPP $CPPFLAGS'
8566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8569
8570
8571 ac_ext=cpp
8572 ac_cpp='$CXXCPP $CPPFLAGS'
8573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8576
8577
8578
8579
8580 for ac_header in unordered_map
8581 do :
8582   ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8583 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8584   cat >>confdefs.h <<_ACEOF
8585 #define HAVE_UNORDERED_MAP 1
8586 _ACEOF
8587
8588 fi
8589 done
8590
8591 for ac_header in tr1/unordered_map
8592 do :
8593   ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8594 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8595   cat >>confdefs.h <<_ACEOF
8596 #define HAVE_TR1_UNORDERED_MAP 1
8597 _ACEOF
8598
8599 fi
8600 done
8601
8602 for ac_header in ext/hash_map
8603 do :
8604   ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8605 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8606   cat >>confdefs.h <<_ACEOF
8607 #define HAVE_EXT_HASH_MAP 1
8608 _ACEOF
8609
8610 fi
8611 done
8612
8613
8614 ac_ext=c
8615 ac_cpp='$CPP $CPPFLAGS'
8616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8619
8620
8621 # --------
8622 # UNSORTED
8623 # --------
8624
8625
8626 # These libraries may be used by collect2.
8627 # We may need a special search path to get them linked.
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8629 $as_echo_n "checking for collect2 libraries... " >&6; }
8630 if test "${gcc_cv_collect2_libs+set}" = set; then :
8631   $as_echo_n "(cached) " >&6
8632 else
8633   save_LIBS="$LIBS"
8634 for libs in '' -lld -lmld \
8635                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8636                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8637 do
8638         LIBS="$libs"
8639         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640 /* end confdefs.h.  */
8641
8642 /* Override any GCC internal prototype to avoid an error.
8643    Use char because int might match the return type of a GCC
8644    builtin and then its argument prototype would still apply.  */
8645 #ifdef __cplusplus
8646 extern "C"
8647 #endif
8648 char ldopen ();
8649 int
8650 main ()
8651 {
8652 return ldopen ();
8653   ;
8654   return 0;
8655 }
8656 _ACEOF
8657 if ac_fn_c_try_link "$LINENO"; then :
8658   gcc_cv_collect2_libs="$libs"; break
8659 fi
8660 rm -f core conftest.err conftest.$ac_objext \
8661     conftest$ac_exeext conftest.$ac_ext
8662 done
8663 LIBS="$save_LIBS"
8664 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8665 fi
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8667 $as_echo "$gcc_cv_collect2_libs" >&6; }
8668 case $gcc_cv_collect2_libs in
8669         "none required")        ;;
8670         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8671 esac
8672
8673
8674 # When building Ada code on Alpha, we need exc_resume which is usually in
8675 # -lexc.  So test for it.
8676 save_LIBS="$LIBS"
8677 LIBS=
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8679 $as_echo_n "checking for library containing exc_resume... " >&6; }
8680 if test "${ac_cv_search_exc_resume+set}" = set; then :
8681   $as_echo_n "(cached) " >&6
8682 else
8683   ac_func_search_save_LIBS=$LIBS
8684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685 /* end confdefs.h.  */
8686
8687 /* Override any GCC internal prototype to avoid an error.
8688    Use char because int might match the return type of a GCC
8689    builtin and then its argument prototype would still apply.  */
8690 #ifdef __cplusplus
8691 extern "C"
8692 #endif
8693 char exc_resume ();
8694 int
8695 main ()
8696 {
8697 return exc_resume ();
8698   ;
8699   return 0;
8700 }
8701 _ACEOF
8702 for ac_lib in '' exc; do
8703   if test -z "$ac_lib"; then
8704     ac_res="none required"
8705   else
8706     ac_res=-l$ac_lib
8707     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8708   fi
8709   if ac_fn_c_try_link "$LINENO"; then :
8710   ac_cv_search_exc_resume=$ac_res
8711 fi
8712 rm -f core conftest.err conftest.$ac_objext \
8713     conftest$ac_exeext
8714   if test "${ac_cv_search_exc_resume+set}" = set; then :
8715   break
8716 fi
8717 done
8718 if test "${ac_cv_search_exc_resume+set}" = set; then :
8719
8720 else
8721   ac_cv_search_exc_resume=no
8722 fi
8723 rm conftest.$ac_ext
8724 LIBS=$ac_func_search_save_LIBS
8725 fi
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8727 $as_echo "$ac_cv_search_exc_resume" >&6; }
8728 ac_res=$ac_cv_search_exc_resume
8729 if test "$ac_res" != no; then :
8730   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8731
8732 fi
8733
8734 GNAT_LIBEXC="$LIBS"
8735 LIBS="$save_LIBS"
8736
8737
8738 # Some systems put ldexp and frexp in libm instead of libc; assume
8739 # they're both in the same place.  jcf-dump needs them.
8740 save_LIBS="$LIBS"
8741 LIBS=
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8743 $as_echo_n "checking for library containing ldexp... " >&6; }
8744 if test "${ac_cv_search_ldexp+set}" = set; then :
8745   $as_echo_n "(cached) " >&6
8746 else
8747   ac_func_search_save_LIBS=$LIBS
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h.  */
8750
8751 /* Override any GCC internal prototype to avoid an error.
8752    Use char because int might match the return type of a GCC
8753    builtin and then its argument prototype would still apply.  */
8754 #ifdef __cplusplus
8755 extern "C"
8756 #endif
8757 char ldexp ();
8758 int
8759 main ()
8760 {
8761 return ldexp ();
8762   ;
8763   return 0;
8764 }
8765 _ACEOF
8766 for ac_lib in '' m; do
8767   if test -z "$ac_lib"; then
8768     ac_res="none required"
8769   else
8770     ac_res=-l$ac_lib
8771     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8772   fi
8773   if ac_fn_c_try_link "$LINENO"; then :
8774   ac_cv_search_ldexp=$ac_res
8775 fi
8776 rm -f core conftest.err conftest.$ac_objext \
8777     conftest$ac_exeext
8778   if test "${ac_cv_search_ldexp+set}" = set; then :
8779   break
8780 fi
8781 done
8782 if test "${ac_cv_search_ldexp+set}" = set; then :
8783
8784 else
8785   ac_cv_search_ldexp=no
8786 fi
8787 rm conftest.$ac_ext
8788 LIBS=$ac_func_search_save_LIBS
8789 fi
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8791 $as_echo "$ac_cv_search_ldexp" >&6; }
8792 ac_res=$ac_cv_search_ldexp
8793 if test "$ac_res" != no; then :
8794   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8795
8796 fi
8797
8798 LDEXP_LIB="$LIBS"
8799 LIBS="$save_LIBS"
8800
8801
8802 # Use <inttypes.h> only if it exists,
8803 # doesn't clash with <sys/types.h>, and declares intmax_t.
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8805 $as_echo_n "checking for inttypes.h... " >&6; }
8806 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8807   $as_echo_n "(cached) " >&6
8808 else
8809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810 /* end confdefs.h.  */
8811 #include <sys/types.h>
8812 #include <inttypes.h>
8813 int
8814 main ()
8815 {
8816 intmax_t i = -1;
8817   ;
8818   return 0;
8819 }
8820 _ACEOF
8821 if ac_fn_c_try_compile "$LINENO"; then :
8822   gcc_cv_header_inttypes_h=yes
8823 else
8824   gcc_cv_header_inttypes_h=no
8825 fi
8826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8827 fi
8828
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8830 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8831 if test $gcc_cv_header_inttypes_h = yes; then
8832
8833 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8834
8835 fi
8836
8837
8838
8839 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8840         sysconf strsignal getrusage nl_langinfo \
8841         gettimeofday mbstowcs wcswidth mmap setlocale \
8842         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
8843 do :
8844   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8845 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8846 eval as_val=\$$as_ac_var
8847    if test "x$as_val" = x""yes; then :
8848   cat >>confdefs.h <<_ACEOF
8849 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8850 _ACEOF
8851
8852 fi
8853 done
8854
8855
8856 if test x$ac_cv_func_mbstowcs = xyes; then
8857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8858 $as_echo_n "checking whether mbstowcs works... " >&6; }
8859 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8860   $as_echo_n "(cached) " >&6
8861 else
8862       if test "$cross_compiling" = yes; then :
8863   gcc_cv_func_mbstowcs_works=yes
8864 else
8865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8866 /* end confdefs.h.  */
8867 #include <stdlib.h>
8868 int main()
8869 {
8870   mbstowcs(0, "", 0);
8871   return 0;
8872 }
8873 _ACEOF
8874 if ac_fn_c_try_run "$LINENO"; then :
8875   gcc_cv_func_mbstowcs_works=yes
8876 else
8877   gcc_cv_func_mbstowcs_works=no
8878 fi
8879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8880   conftest.$ac_objext conftest.beam conftest.$ac_ext
8881 fi
8882
8883 fi
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8885 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8886   if test x$gcc_cv_func_mbstowcs_works = xyes; then
8887
8888 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8889
8890   fi
8891 fi
8892
8893 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8894 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8895
8896 else
8897
8898 cat >>confdefs.h <<_ACEOF
8899 #define ssize_t int
8900 _ACEOF
8901
8902 fi
8903
8904 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8905 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8906
8907 else
8908
8909 cat >>confdefs.h <<_ACEOF
8910 #define caddr_t char *
8911 _ACEOF
8912
8913 fi
8914
8915
8916
8917 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8918 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8919   gcc_header_sys_mman_h=yes
8920 else
8921   gcc_header_sys_mman_h=no
8922 fi
8923
8924 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8925 if test "x$ac_cv_func_mmap" = x""yes; then :
8926   gcc_func_mmap=yes
8927 else
8928   gcc_func_mmap=no
8929 fi
8930
8931 if test "$gcc_header_sys_mman_h" != yes \
8932  || test "$gcc_func_mmap" != yes; then
8933    gcc_cv_func_mmap_file=no
8934    gcc_cv_func_mmap_dev_zero=no
8935    gcc_cv_func_mmap_anon=no
8936 else
8937    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8938 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8939 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8940   $as_echo_n "(cached) " >&6
8941 else
8942   # Add a system to this blacklist if
8943    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8944    # memory area containing the same data that you'd get if you applied
8945    # read() to the same fd.  The only system known to have a problem here
8946    # is VMS, where text files have record structure.
8947    case "$host_os" in
8948      vms* | ultrix*)
8949         gcc_cv_func_mmap_file=no ;;
8950      *)
8951         gcc_cv_func_mmap_file=yes;;
8952    esac
8953 fi
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8955 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8956    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8957 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8958 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8959   $as_echo_n "(cached) " >&6
8960 else
8961   # Add a system to this blacklist if it has mmap() but /dev/zero
8962    # does not exist, or if mmapping /dev/zero does not give anonymous
8963    # zeroed pages with both the following properties:
8964    # 1. If you map N consecutive pages in with one call, and then
8965    #    unmap any subset of those pages, the pages that were not
8966    #    explicitly unmapped remain accessible.
8967    # 2. If you map two adjacent blocks of memory and then unmap them
8968    #    both at once, they must both go away.
8969    # Systems known to be in this category are Windows (all variants),
8970    # VMS, and Darwin.
8971    case "$host_os" in
8972      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8973         gcc_cv_func_mmap_dev_zero=no ;;
8974      *)
8975         gcc_cv_func_mmap_dev_zero=yes;;
8976    esac
8977 fi
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8979 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8980
8981    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8982    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8983 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8984 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8985   $as_echo_n "(cached) " >&6
8986 else
8987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988 /* end confdefs.h.  */
8989 #include <sys/types.h>
8990 #include <sys/mman.h>
8991 #include <unistd.h>
8992
8993 #ifndef MAP_ANONYMOUS
8994 #define MAP_ANONYMOUS MAP_ANON
8995 #endif
8996
8997 int
8998 main ()
8999 {
9000 int n = MAP_ANONYMOUS;
9001   ;
9002   return 0;
9003 }
9004 _ACEOF
9005 if ac_fn_c_try_compile "$LINENO"; then :
9006   gcc_cv_decl_map_anon=yes
9007 else
9008   gcc_cv_decl_map_anon=no
9009 fi
9010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9011 fi
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9013 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9014
9015    if test $gcc_cv_decl_map_anon = no; then
9016      gcc_cv_func_mmap_anon=no
9017    else
9018      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9019 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9020 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9021   $as_echo_n "(cached) " >&6
9022 else
9023   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9024    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9025    # doesn't give anonymous zeroed pages with the same properties listed
9026    # above for use of /dev/zero.
9027    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9028    case "$host_os" in
9029      vms* | cygwin* | pe | mingw* | sco* | udk* )
9030         gcc_cv_func_mmap_anon=no ;;
9031      *)
9032         gcc_cv_func_mmap_anon=yes;;
9033    esac
9034 fi
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9036 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9037    fi
9038 fi
9039
9040 if test $gcc_cv_func_mmap_file = yes; then
9041
9042 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9043
9044 fi
9045 if test $gcc_cv_func_mmap_dev_zero = yes; then
9046
9047 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9048
9049 fi
9050 if test $gcc_cv_func_mmap_anon = yes; then
9051
9052 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9053
9054 fi
9055
9056
9057 case "${host}" in
9058 *-*-*vms*)
9059   # Under VMS, vfork works very differently than on Unix. The standard test
9060   # won't work, and it isn't easily adaptable. It makes more sense to
9061   # just force it.
9062   ac_cv_func_vfork_works=yes
9063   ;;
9064 esac
9065 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9066 if test "x$ac_cv_type_pid_t" = x""yes; then :
9067
9068 else
9069
9070 cat >>confdefs.h <<_ACEOF
9071 #define pid_t int
9072 _ACEOF
9073
9074 fi
9075
9076 for ac_header in vfork.h
9077 do :
9078   ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9079 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9080   cat >>confdefs.h <<_ACEOF
9081 #define HAVE_VFORK_H 1
9082 _ACEOF
9083
9084 fi
9085 done
9086
9087 for ac_func in fork vfork
9088 do :
9089   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9090 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9091 eval as_val=\$$as_ac_var
9092    if test "x$as_val" = x""yes; then :
9093   cat >>confdefs.h <<_ACEOF
9094 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9095 _ACEOF
9096
9097 fi
9098 done
9099
9100 if test "x$ac_cv_func_fork" = xyes; then
9101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9102 $as_echo_n "checking for working fork... " >&6; }
9103 if test "${ac_cv_func_fork_works+set}" = set; then :
9104   $as_echo_n "(cached) " >&6
9105 else
9106   if test "$cross_compiling" = yes; then :
9107   ac_cv_func_fork_works=cross
9108 else
9109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h.  */
9111 $ac_includes_default
9112 int
9113 main ()
9114 {
9115
9116           /* By Ruediger Kuhlmann. */
9117           return fork () < 0;
9118
9119   ;
9120   return 0;
9121 }
9122 _ACEOF
9123 if ac_fn_c_try_run "$LINENO"; then :
9124   ac_cv_func_fork_works=yes
9125 else
9126   ac_cv_func_fork_works=no
9127 fi
9128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9129   conftest.$ac_objext conftest.beam conftest.$ac_ext
9130 fi
9131
9132 fi
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9134 $as_echo "$ac_cv_func_fork_works" >&6; }
9135
9136 else
9137   ac_cv_func_fork_works=$ac_cv_func_fork
9138 fi
9139 if test "x$ac_cv_func_fork_works" = xcross; then
9140   case $host in
9141     *-*-amigaos* | *-*-msdosdjgpp*)
9142       # Override, as these systems have only a dummy fork() stub
9143       ac_cv_func_fork_works=no
9144       ;;
9145     *)
9146       ac_cv_func_fork_works=yes
9147       ;;
9148   esac
9149   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9150 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9151 fi
9152 ac_cv_func_vfork_works=$ac_cv_func_vfork
9153 if test "x$ac_cv_func_vfork" = xyes; then
9154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9155 $as_echo_n "checking for working vfork... " >&6; }
9156 if test "${ac_cv_func_vfork_works+set}" = set; then :
9157   $as_echo_n "(cached) " >&6
9158 else
9159   if test "$cross_compiling" = yes; then :
9160   ac_cv_func_vfork_works=cross
9161 else
9162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h.  */
9164 /* Thanks to Paul Eggert for this test.  */
9165 $ac_includes_default
9166 #include <sys/wait.h>
9167 #ifdef HAVE_VFORK_H
9168 # include <vfork.h>
9169 #endif
9170 /* On some sparc systems, changes by the child to local and incoming
9171    argument registers are propagated back to the parent.  The compiler
9172    is told about this with #include <vfork.h>, but some compilers
9173    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
9174    static variable whose address is put into a register that is
9175    clobbered by the vfork.  */
9176 static void
9177 #ifdef __cplusplus
9178 sparc_address_test (int arg)
9179 # else
9180 sparc_address_test (arg) int arg;
9181 #endif
9182 {
9183   static pid_t child;
9184   if (!child) {
9185     child = vfork ();
9186     if (child < 0) {
9187       perror ("vfork");
9188       _exit(2);
9189     }
9190     if (!child) {
9191       arg = getpid();
9192       write(-1, "", 0);
9193       _exit (arg);
9194     }
9195   }
9196 }
9197
9198 int
9199 main ()
9200 {
9201   pid_t parent = getpid ();
9202   pid_t child;
9203
9204   sparc_address_test (0);
9205
9206   child = vfork ();
9207
9208   if (child == 0) {
9209     /* Here is another test for sparc vfork register problems.  This
9210        test uses lots of local variables, at least as many local
9211        variables as main has allocated so far including compiler
9212        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
9213        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
9214        reuse the register of parent for one of the local variables,
9215        since it will think that parent can't possibly be used any more
9216        in this routine.  Assigning to the local variable will thus
9217        munge parent in the parent process.  */
9218     pid_t
9219       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9220       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9221     /* Convince the compiler that p..p7 are live; otherwise, it might
9222        use the same hardware register for all 8 local variables.  */
9223     if (p != p1 || p != p2 || p != p3 || p != p4
9224         || p != p5 || p != p6 || p != p7)
9225       _exit(1);
9226
9227     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9228        from child file descriptors.  If the child closes a descriptor
9229        before it execs or exits, this munges the parent's descriptor
9230        as well.  Test for this by closing stdout in the child.  */
9231     _exit(close(fileno(stdout)) != 0);
9232   } else {
9233     int status;
9234     struct stat st;
9235
9236     while (wait(&status) != child)
9237       ;
9238     return (
9239          /* Was there some problem with vforking?  */
9240          child < 0
9241
9242          /* Did the child fail?  (This shouldn't happen.)  */
9243          || status
9244
9245          /* Did the vfork/compiler bug occur?  */
9246          || parent != getpid()
9247
9248          /* Did the file descriptor bug occur?  */
9249          || fstat(fileno(stdout), &st) != 0
9250          );
9251   }
9252 }
9253 _ACEOF
9254 if ac_fn_c_try_run "$LINENO"; then :
9255   ac_cv_func_vfork_works=yes
9256 else
9257   ac_cv_func_vfork_works=no
9258 fi
9259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9260   conftest.$ac_objext conftest.beam conftest.$ac_ext
9261 fi
9262
9263 fi
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9265 $as_echo "$ac_cv_func_vfork_works" >&6; }
9266
9267 fi;
9268 if test "x$ac_cv_func_fork_works" = xcross; then
9269   ac_cv_func_vfork_works=$ac_cv_func_vfork
9270   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9271 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9272 fi
9273
9274 if test "x$ac_cv_func_vfork_works" = xyes; then
9275
9276 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9277
9278 else
9279
9280 $as_echo "#define vfork fork" >>confdefs.h
9281
9282 fi
9283 if test "x$ac_cv_func_fork_works" = xyes; then
9284
9285 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9286
9287 fi
9288
9289
9290
9291       if test "X$prefix" = "XNONE"; then
9292     acl_final_prefix="$ac_default_prefix"
9293   else
9294     acl_final_prefix="$prefix"
9295   fi
9296   if test "X$exec_prefix" = "XNONE"; then
9297     acl_final_exec_prefix='${prefix}'
9298   else
9299     acl_final_exec_prefix="$exec_prefix"
9300   fi
9301   acl_save_prefix="$prefix"
9302   prefix="$acl_final_prefix"
9303   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9304   prefix="$acl_save_prefix"
9305
9306
9307 # Check whether --with-gnu-ld was given.
9308 if test "${with_gnu_ld+set}" = set; then :
9309   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9310 else
9311   with_gnu_ld=no
9312 fi
9313
9314 # Prepare PATH_SEPARATOR.
9315 # The user is always right.
9316 if test "${PATH_SEPARATOR+set}" != set; then
9317   echo "#! /bin/sh" >conf$$.sh
9318   echo  "exit 0"   >>conf$$.sh
9319   chmod +x conf$$.sh
9320   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9321     PATH_SEPARATOR=';'
9322   else
9323     PATH_SEPARATOR=:
9324   fi
9325   rm -f conf$$.sh
9326 fi
9327 ac_prog=ld
9328 if test "$GCC" = yes; then
9329   # Check if gcc -print-prog-name=ld gives a path.
9330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9331 $as_echo_n "checking for ld used by GCC... " >&6; }
9332   case $host in
9333   *-*-mingw*)
9334     # gcc leaves a trailing carriage return which upsets mingw
9335     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9336   *)
9337     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9338   esac
9339   case $ac_prog in
9340     # Accept absolute paths.
9341     [\\/]* | [A-Za-z]:[\\/]*)
9342       re_direlt='/[^/][^/]*/\.\./'
9343       # Canonicalize the path of ld
9344       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9345       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9346         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9347       done
9348       test -z "$LD" && LD="$ac_prog"
9349       ;;
9350   "")
9351     # If it fails, then pretend we aren't using GCC.
9352     ac_prog=ld
9353     ;;
9354   *)
9355     # If it is relative, then search for the first ld in PATH.
9356     with_gnu_ld=unknown
9357     ;;
9358   esac
9359 elif test "$with_gnu_ld" = yes; then
9360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9361 $as_echo_n "checking for GNU ld... " >&6; }
9362 else
9363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9364 $as_echo_n "checking for non-GNU ld... " >&6; }
9365 fi
9366 if test "${acl_cv_path_LD+set}" = set; then :
9367   $as_echo_n "(cached) " >&6
9368 else
9369   if test -z "$LD"; then
9370   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9371   for ac_dir in $PATH; do
9372     test -z "$ac_dir" && ac_dir=.
9373     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9374       acl_cv_path_LD="$ac_dir/$ac_prog"
9375       # Check to see if the program is GNU ld.  I'd rather use --version,
9376       # but apparently some GNU ld's only accept -v.
9377       # Break only if it was the GNU/non-GNU ld that we prefer.
9378       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9379         test "$with_gnu_ld" != no && break
9380       else
9381         test "$with_gnu_ld" != yes && break
9382       fi
9383     fi
9384   done
9385   IFS="$ac_save_ifs"
9386 else
9387   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9388 fi
9389 fi
9390
9391 LD="$acl_cv_path_LD"
9392 if test -n "$LD"; then
9393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9394 $as_echo "$LD" >&6; }
9395 else
9396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9397 $as_echo "no" >&6; }
9398 fi
9399 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9401 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9402 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9403   $as_echo_n "(cached) " >&6
9404 else
9405   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9406 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9407   acl_cv_prog_gnu_ld=yes
9408 else
9409   acl_cv_prog_gnu_ld=no
9410 fi
9411 fi
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9413 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9414 with_gnu_ld=$acl_cv_prog_gnu_ld
9415
9416
9417
9418                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9419 $as_echo_n "checking for shared library run path origin... " >&6; }
9420 if test "${acl_cv_rpath+set}" = set; then :
9421   $as_echo_n "(cached) " >&6
9422 else
9423
9424     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9425     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9426     . ./conftest.sh
9427     rm -f ./conftest.sh
9428     acl_cv_rpath=done
9429
9430 fi
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9432 $as_echo "$acl_cv_rpath" >&6; }
9433   wl="$acl_cv_wl"
9434   libext="$acl_cv_libext"
9435   shlibext="$acl_cv_shlibext"
9436   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9437   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9438   hardcode_direct="$acl_cv_hardcode_direct"
9439   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9440     # Check whether --enable-rpath was given.
9441 if test "${enable_rpath+set}" = set; then :
9442   enableval=$enable_rpath; :
9443 else
9444   enable_rpath=yes
9445 fi
9446
9447
9448
9449
9450
9451
9452
9453
9454     use_additional=yes
9455
9456   acl_save_prefix="$prefix"
9457   prefix="$acl_final_prefix"
9458   acl_save_exec_prefix="$exec_prefix"
9459   exec_prefix="$acl_final_exec_prefix"
9460
9461     eval additional_includedir=\"$includedir\"
9462     eval additional_libdir=\"$libdir\"
9463
9464   exec_prefix="$acl_save_exec_prefix"
9465   prefix="$acl_save_prefix"
9466
9467
9468 # Check whether --with-libiconv-prefix was given.
9469 if test "${with_libiconv_prefix+set}" = set; then :
9470   withval=$with_libiconv_prefix;
9471     if test "X$withval" = "Xno"; then
9472       use_additional=no
9473     else
9474       if test "X$withval" = "X"; then
9475
9476   acl_save_prefix="$prefix"
9477   prefix="$acl_final_prefix"
9478   acl_save_exec_prefix="$exec_prefix"
9479   exec_prefix="$acl_final_exec_prefix"
9480
9481           eval additional_includedir=\"$includedir\"
9482           eval additional_libdir=\"$libdir\"
9483
9484   exec_prefix="$acl_save_exec_prefix"
9485   prefix="$acl_save_prefix"
9486
9487       else
9488         additional_includedir="$withval/include"
9489         additional_libdir="$withval/lib"
9490       fi
9491     fi
9492
9493 fi
9494
9495       LIBICONV=
9496   LTLIBICONV=
9497   INCICONV=
9498   rpathdirs=
9499   ltrpathdirs=
9500   names_already_handled=
9501   names_next_round='iconv '
9502   while test -n "$names_next_round"; do
9503     names_this_round="$names_next_round"
9504     names_next_round=
9505     for name in $names_this_round; do
9506       already_handled=
9507       for n in $names_already_handled; do
9508         if test "$n" = "$name"; then
9509           already_handled=yes
9510           break
9511         fi
9512       done
9513       if test -z "$already_handled"; then
9514         names_already_handled="$names_already_handled $name"
9515                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9516         eval value=\"\$HAVE_LIB$uppername\"
9517         if test -n "$value"; then
9518           if test "$value" = yes; then
9519             eval value=\"\$LIB$uppername\"
9520             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9521             eval value=\"\$LTLIB$uppername\"
9522             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9523           else
9524                                     :
9525           fi
9526         else
9527                               found_dir=
9528           found_la=
9529           found_so=
9530           found_a=
9531           if test $use_additional = yes; then
9532             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9533               found_dir="$additional_libdir"
9534               found_so="$additional_libdir/lib$name.$shlibext"
9535               if test -f "$additional_libdir/lib$name.la"; then
9536                 found_la="$additional_libdir/lib$name.la"
9537               fi
9538             else
9539               if test -f "$additional_libdir/lib$name.$libext"; then
9540                 found_dir="$additional_libdir"
9541                 found_a="$additional_libdir/lib$name.$libext"
9542                 if test -f "$additional_libdir/lib$name.la"; then
9543                   found_la="$additional_libdir/lib$name.la"
9544                 fi
9545               fi
9546             fi
9547           fi
9548           if test "X$found_dir" = "X"; then
9549             for x in $LDFLAGS $LTLIBICONV; do
9550
9551   acl_save_prefix="$prefix"
9552   prefix="$acl_final_prefix"
9553   acl_save_exec_prefix="$exec_prefix"
9554   exec_prefix="$acl_final_exec_prefix"
9555   eval x=\"$x\"
9556   exec_prefix="$acl_save_exec_prefix"
9557   prefix="$acl_save_prefix"
9558
9559               case "$x" in
9560                 -L*)
9561                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9562                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9563                     found_dir="$dir"
9564                     found_so="$dir/lib$name.$shlibext"
9565                     if test -f "$dir/lib$name.la"; then
9566                       found_la="$dir/lib$name.la"
9567                     fi
9568                   else
9569                     if test -f "$dir/lib$name.$libext"; then
9570                       found_dir="$dir"
9571                       found_a="$dir/lib$name.$libext"
9572                       if test -f "$dir/lib$name.la"; then
9573                         found_la="$dir/lib$name.la"
9574                       fi
9575                     fi
9576                   fi
9577                   ;;
9578               esac
9579               if test "X$found_dir" != "X"; then
9580                 break
9581               fi
9582             done
9583           fi
9584           if test "X$found_dir" != "X"; then
9585                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9586             if test "X$found_so" != "X"; then
9587                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9588                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9589               else
9590                                                                                 haveit=
9591                 for x in $ltrpathdirs; do
9592                   if test "X$x" = "X$found_dir"; then
9593                     haveit=yes
9594                     break
9595                   fi
9596                 done
9597                 if test -z "$haveit"; then
9598                   ltrpathdirs="$ltrpathdirs $found_dir"
9599                 fi
9600                                 if test "$hardcode_direct" = yes; then
9601                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9602                 else
9603                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9604                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9605                                                             haveit=
9606                     for x in $rpathdirs; do
9607                       if test "X$x" = "X$found_dir"; then
9608                         haveit=yes
9609                         break
9610                       fi
9611                     done
9612                     if test -z "$haveit"; then
9613                       rpathdirs="$rpathdirs $found_dir"
9614                     fi
9615                   else
9616                                                                                 haveit=
9617                     for x in $LDFLAGS $LIBICONV; do
9618
9619   acl_save_prefix="$prefix"
9620   prefix="$acl_final_prefix"
9621   acl_save_exec_prefix="$exec_prefix"
9622   exec_prefix="$acl_final_exec_prefix"
9623   eval x=\"$x\"
9624   exec_prefix="$acl_save_exec_prefix"
9625   prefix="$acl_save_prefix"
9626
9627                       if test "X$x" = "X-L$found_dir"; then
9628                         haveit=yes
9629                         break
9630                       fi
9631                     done
9632                     if test -z "$haveit"; then
9633                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9634                     fi
9635                     if test "$hardcode_minus_L" != no; then
9636                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9637                     else
9638                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9639                     fi
9640                   fi
9641                 fi
9642               fi
9643             else
9644               if test "X$found_a" != "X"; then
9645                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9646               else
9647                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9648               fi
9649             fi
9650                         additional_includedir=
9651             case "$found_dir" in
9652               */lib | */lib/)
9653                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9654                 additional_includedir="$basedir/include"
9655                 ;;
9656             esac
9657             if test "X$additional_includedir" != "X"; then
9658                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9659                 haveit=
9660                 if test "X$additional_includedir" = "X/usr/local/include"; then
9661                   if test -n "$GCC"; then
9662                     case $host_os in
9663                       linux*) haveit=yes;;
9664                     esac
9665                   fi
9666                 fi
9667                 if test -z "$haveit"; then
9668                   for x in $CPPFLAGS $INCICONV; do
9669
9670   acl_save_prefix="$prefix"
9671   prefix="$acl_final_prefix"
9672   acl_save_exec_prefix="$exec_prefix"
9673   exec_prefix="$acl_final_exec_prefix"
9674   eval x=\"$x\"
9675   exec_prefix="$acl_save_exec_prefix"
9676   prefix="$acl_save_prefix"
9677
9678                     if test "X$x" = "X-I$additional_includedir"; then
9679                       haveit=yes
9680                       break
9681                     fi
9682                   done
9683                   if test -z "$haveit"; then
9684                     if test -d "$additional_includedir"; then
9685                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9686                     fi
9687                   fi
9688                 fi
9689               fi
9690             fi
9691                         if test -n "$found_la"; then
9692                                                         save_libdir="$libdir"
9693               case "$found_la" in
9694                 */* | *\\*) . "$found_la" ;;
9695                 *) . "./$found_la" ;;
9696               esac
9697               libdir="$save_libdir"
9698                             for dep in $dependency_libs; do
9699                 case "$dep" in
9700                   -L*)
9701                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9702                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9703                       haveit=
9704                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9705                         if test -n "$GCC"; then
9706                           case $host_os in
9707                             linux*) haveit=yes;;
9708                           esac
9709                         fi
9710                       fi
9711                       if test -z "$haveit"; then
9712                         haveit=
9713                         for x in $LDFLAGS $LIBICONV; do
9714
9715   acl_save_prefix="$prefix"
9716   prefix="$acl_final_prefix"
9717   acl_save_exec_prefix="$exec_prefix"
9718   exec_prefix="$acl_final_exec_prefix"
9719   eval x=\"$x\"
9720   exec_prefix="$acl_save_exec_prefix"
9721   prefix="$acl_save_prefix"
9722
9723                           if test "X$x" = "X-L$additional_libdir"; then
9724                             haveit=yes
9725                             break
9726                           fi
9727                         done
9728                         if test -z "$haveit"; then
9729                           if test -d "$additional_libdir"; then
9730                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9731                           fi
9732                         fi
9733                         haveit=
9734                         for x in $LDFLAGS $LTLIBICONV; do
9735
9736   acl_save_prefix="$prefix"
9737   prefix="$acl_final_prefix"
9738   acl_save_exec_prefix="$exec_prefix"
9739   exec_prefix="$acl_final_exec_prefix"
9740   eval x=\"$x\"
9741   exec_prefix="$acl_save_exec_prefix"
9742   prefix="$acl_save_prefix"
9743
9744                           if test "X$x" = "X-L$additional_libdir"; then
9745                             haveit=yes
9746                             break
9747                           fi
9748                         done
9749                         if test -z "$haveit"; then
9750                           if test -d "$additional_libdir"; then
9751                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9752                           fi
9753                         fi
9754                       fi
9755                     fi
9756                     ;;
9757                   -R*)
9758                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9759                     if test "$enable_rpath" != no; then
9760                                                                   haveit=
9761                       for x in $rpathdirs; do
9762                         if test "X$x" = "X$dir"; then
9763                           haveit=yes
9764                           break
9765                         fi
9766                       done
9767                       if test -z "$haveit"; then
9768                         rpathdirs="$rpathdirs $dir"
9769                       fi
9770                                                                   haveit=
9771                       for x in $ltrpathdirs; do
9772                         if test "X$x" = "X$dir"; then
9773                           haveit=yes
9774                           break
9775                         fi
9776                       done
9777                       if test -z "$haveit"; then
9778                         ltrpathdirs="$ltrpathdirs $dir"
9779                       fi
9780                     fi
9781                     ;;
9782                   -l*)
9783                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9784                     ;;
9785                   *.la)
9786                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9787                     ;;
9788                   *)
9789                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9790                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9791                     ;;
9792                 esac
9793               done
9794             fi
9795           else
9796                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9797             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9798           fi
9799         fi
9800       fi
9801     done
9802   done
9803   if test "X$rpathdirs" != "X"; then
9804     if test -n "$hardcode_libdir_separator"; then
9805                         alldirs=
9806       for found_dir in $rpathdirs; do
9807         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9808       done
9809             acl_save_libdir="$libdir"
9810       libdir="$alldirs"
9811       eval flag=\"$hardcode_libdir_flag_spec\"
9812       libdir="$acl_save_libdir"
9813       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9814     else
9815             for found_dir in $rpathdirs; do
9816         acl_save_libdir="$libdir"
9817         libdir="$found_dir"
9818         eval flag=\"$hardcode_libdir_flag_spec\"
9819         libdir="$acl_save_libdir"
9820         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9821       done
9822     fi
9823   fi
9824   if test "X$ltrpathdirs" != "X"; then
9825             for found_dir in $ltrpathdirs; do
9826       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9827     done
9828   fi
9829
9830
9831
9832
9833
9834
9835
9836           am_save_CPPFLAGS="$CPPFLAGS"
9837
9838   for element in $INCICONV; do
9839     haveit=
9840     for x in $CPPFLAGS; do
9841
9842   acl_save_prefix="$prefix"
9843   prefix="$acl_final_prefix"
9844   acl_save_exec_prefix="$exec_prefix"
9845   exec_prefix="$acl_final_exec_prefix"
9846   eval x=\"$x\"
9847   exec_prefix="$acl_save_exec_prefix"
9848   prefix="$acl_save_prefix"
9849
9850       if test "X$x" = "X$element"; then
9851         haveit=yes
9852         break
9853       fi
9854     done
9855     if test -z "$haveit"; then
9856       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9857     fi
9858   done
9859
9860
9861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9862 $as_echo_n "checking for iconv... " >&6; }
9863 if test "${am_cv_func_iconv+set}" = set; then :
9864   $as_echo_n "(cached) " >&6
9865 else
9866
9867     am_cv_func_iconv="no, consider installing GNU libiconv"
9868     am_cv_lib_iconv=no
9869     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h.  */
9871 #include <stdlib.h>
9872 #include <iconv.h>
9873 int
9874 main ()
9875 {
9876 iconv_t cd = iconv_open("","");
9877        iconv(cd,NULL,NULL,NULL,NULL);
9878        iconv_close(cd);
9879   ;
9880   return 0;
9881 }
9882 _ACEOF
9883 if ac_fn_c_try_link "$LINENO"; then :
9884   am_cv_func_iconv=yes
9885 fi
9886 rm -f core conftest.err conftest.$ac_objext \
9887     conftest$ac_exeext conftest.$ac_ext
9888     if test "$am_cv_func_iconv" != yes; then
9889       am_save_LIBS="$LIBS"
9890       LIBS="$LIBS $LIBICONV"
9891       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9892 /* end confdefs.h.  */
9893 #include <stdlib.h>
9894 #include <iconv.h>
9895 int
9896 main ()
9897 {
9898 iconv_t cd = iconv_open("","");
9899          iconv(cd,NULL,NULL,NULL,NULL);
9900          iconv_close(cd);
9901   ;
9902   return 0;
9903 }
9904 _ACEOF
9905 if ac_fn_c_try_link "$LINENO"; then :
9906   am_cv_lib_iconv=yes
9907         am_cv_func_iconv=yes
9908 fi
9909 rm -f core conftest.err conftest.$ac_objext \
9910     conftest$ac_exeext conftest.$ac_ext
9911       LIBS="$am_save_LIBS"
9912     fi
9913
9914 fi
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9916 $as_echo "$am_cv_func_iconv" >&6; }
9917   if test "$am_cv_func_iconv" = yes; then
9918
9919 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9920
9921   fi
9922   if test "$am_cv_lib_iconv" = yes; then
9923     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9924 $as_echo_n "checking how to link with libiconv... " >&6; }
9925     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9926 $as_echo "$LIBICONV" >&6; }
9927   else
9928             CPPFLAGS="$am_save_CPPFLAGS"
9929     LIBICONV=
9930     LTLIBICONV=
9931   fi
9932
9933
9934
9935   if test "$am_cv_func_iconv" = yes; then
9936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9937 $as_echo_n "checking for iconv declaration... " >&6; }
9938     if test "${am_cv_proto_iconv+set}" = set; then :
9939   $as_echo_n "(cached) " >&6
9940 else
9941
9942       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9943 /* end confdefs.h.  */
9944
9945 #include <stdlib.h>
9946 #include <iconv.h>
9947 extern
9948 #ifdef __cplusplus
9949 "C"
9950 #endif
9951 #if defined(__STDC__) || defined(__cplusplus)
9952 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9953 #else
9954 size_t iconv();
9955 #endif
9956
9957 int
9958 main ()
9959 {
9960
9961   ;
9962   return 0;
9963 }
9964 _ACEOF
9965 if ac_fn_c_try_compile "$LINENO"; then :
9966   am_cv_proto_iconv_arg1=""
9967 else
9968   am_cv_proto_iconv_arg1="const"
9969 fi
9970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9971       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);"
9972 fi
9973
9974     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9975     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9976          }$am_cv_proto_iconv" >&5
9977 $as_echo "${ac_t:-
9978          }$am_cv_proto_iconv" >&6; }
9979
9980 cat >>confdefs.h <<_ACEOF
9981 #define ICONV_CONST $am_cv_proto_iconv_arg1
9982 _ACEOF
9983
9984   fi
9985
9986 # Until we have in-tree GNU iconv:
9987 LIBICONV_DEP=
9988
9989
9990
9991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9992 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9993 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9994   $as_echo_n "(cached) " >&6
9995 else
9996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9997 /* end confdefs.h.  */
9998 #include <locale.h>
9999 int
10000 main ()
10001 {
10002 return LC_MESSAGES
10003   ;
10004   return 0;
10005 }
10006 _ACEOF
10007 if ac_fn_c_try_link "$LINENO"; then :
10008   am_cv_val_LC_MESSAGES=yes
10009 else
10010   am_cv_val_LC_MESSAGES=no
10011 fi
10012 rm -f core conftest.err conftest.$ac_objext \
10013     conftest$ac_exeext conftest.$ac_ext
10014 fi
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10016 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10017   if test $am_cv_val_LC_MESSAGES = yes; then
10018
10019 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10020
10021   fi
10022
10023
10024
10025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10026 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10027 if test "${am_cv_langinfo_codeset+set}" = set; then :
10028   $as_echo_n "(cached) " >&6
10029 else
10030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031 /* end confdefs.h.  */
10032 #include <langinfo.h>
10033 int
10034 main ()
10035 {
10036 char* cs = nl_langinfo(CODESET);
10037   ;
10038   return 0;
10039 }
10040 _ACEOF
10041 if ac_fn_c_try_link "$LINENO"; then :
10042   am_cv_langinfo_codeset=yes
10043 else
10044   am_cv_langinfo_codeset=no
10045 fi
10046 rm -f core conftest.err conftest.$ac_objext \
10047     conftest$ac_exeext conftest.$ac_ext
10048
10049 fi
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10051 $as_echo "$am_cv_langinfo_codeset" >&6; }
10052   if test $am_cv_langinfo_codeset = yes; then
10053
10054 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10055
10056   fi
10057
10058
10059 # We will need to find libiberty.h and ansidecl.h
10060 saved_CFLAGS="$CFLAGS"
10061 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10062 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10063         strsignal strstr strverscmp \
10064         errno snprintf vsnprintf vasprintf malloc realloc calloc \
10065         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
10066 do
10067   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10069 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10070 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10071   $as_echo_n "(cached) " >&6
10072 else
10073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074 /* end confdefs.h.  */
10075 #undef $ac_tr_decl
10076 #define $ac_tr_decl 1
10077
10078 #include "ansidecl.h"
10079 #include "system.h"
10080
10081 int
10082 main ()
10083 {
10084 #ifndef $ac_func
10085 char *(*pfn) = (char *(*)) $ac_func ;
10086 #endif
10087   ;
10088   return 0;
10089 }
10090 _ACEOF
10091 if ac_fn_c_try_compile "$LINENO"; then :
10092   eval "gcc_cv_have_decl_$ac_func=yes"
10093 else
10094   eval "gcc_cv_have_decl_$ac_func=no"
10095 fi
10096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10097 fi
10098
10099 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10101 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10102 #define $ac_tr_decl 1
10103 _ACEOF
10104
10105 else
10106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10107 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10108 #define $ac_tr_decl 0
10109 _ACEOF
10110
10111 fi
10112
10113 done
10114
10115
10116 for ac_func in getrlimit setrlimit getrusage
10117 do
10118   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10120 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10121 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10122   $as_echo_n "(cached) " >&6
10123 else
10124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10125 /* end confdefs.h.  */
10126 #undef $ac_tr_decl
10127 #define $ac_tr_decl 1
10128
10129 #include "ansidecl.h"
10130 #include "system.h"
10131 #ifdef HAVE_SYS_RESOURCE_H
10132 #include <sys/resource.h>
10133 #endif
10134
10135
10136 int
10137 main ()
10138 {
10139 #ifndef $ac_func
10140 char *(*pfn) = (char *(*)) $ac_func ;
10141 #endif
10142   ;
10143   return 0;
10144 }
10145 _ACEOF
10146 if ac_fn_c_try_compile "$LINENO"; then :
10147   eval "gcc_cv_have_decl_$ac_func=yes"
10148 else
10149   eval "gcc_cv_have_decl_$ac_func=no"
10150 fi
10151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10152 fi
10153
10154 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10156 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10157 #define $ac_tr_decl 1
10158 _ACEOF
10159
10160 else
10161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10162 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10163 #define $ac_tr_decl 0
10164 _ACEOF
10165
10166 fi
10167
10168 done
10169
10170
10171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10172 /* end confdefs.h.  */
10173
10174 #include "ansidecl.h"
10175 #include "system.h"
10176 #ifdef HAVE_SYS_RESOURCE_H
10177 #include <sys/resource.h>
10178 #endif
10179
10180 int
10181 main ()
10182 {
10183 rlim_t l = 0;
10184   ;
10185   return 0;
10186 }
10187 _ACEOF
10188 if ac_fn_c_try_compile "$LINENO"; then :
10189
10190 else
10191
10192 $as_echo "#define rlim_t long" >>confdefs.h
10193
10194 fi
10195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10196
10197 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10198 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
10199 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10200 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10201 for ac_func in ldgetname
10202 do
10203   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10205 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10206 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10207   $as_echo_n "(cached) " >&6
10208 else
10209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10210 /* end confdefs.h.  */
10211 #undef $ac_tr_decl
10212 #define $ac_tr_decl 1
10213
10214 #include "ansidecl.h"
10215 #include "system.h"
10216 #ifdef HAVE_LDFCN_H
10217 #undef FREAD
10218 #undef FWRITE
10219 #include <ldfcn.h>
10220 #endif
10221
10222
10223 int
10224 main ()
10225 {
10226 #ifndef $ac_func
10227 char *(*pfn) = (char *(*)) $ac_func ;
10228 #endif
10229   ;
10230   return 0;
10231 }
10232 _ACEOF
10233 if ac_fn_c_try_compile "$LINENO"; then :
10234   eval "gcc_cv_have_decl_$ac_func=yes"
10235 else
10236   eval "gcc_cv_have_decl_$ac_func=no"
10237 fi
10238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10239 fi
10240
10241 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10243 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10244 #define $ac_tr_decl 1
10245 _ACEOF
10246
10247 else
10248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10249 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10250 #define $ac_tr_decl 0
10251 _ACEOF
10252
10253 fi
10254
10255 done
10256
10257
10258 for ac_func in times
10259 do
10260   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10262 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10263 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10264   $as_echo_n "(cached) " >&6
10265 else
10266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10267 /* end confdefs.h.  */
10268 #undef $ac_tr_decl
10269 #define $ac_tr_decl 1
10270
10271 #include "ansidecl.h"
10272 #include "system.h"
10273 #ifdef HAVE_SYS_TIMES_H
10274 #include <sys/times.h>
10275 #endif
10276
10277
10278 int
10279 main ()
10280 {
10281 #ifndef $ac_func
10282 char *(*pfn) = (char *(*)) $ac_func ;
10283 #endif
10284   ;
10285   return 0;
10286 }
10287 _ACEOF
10288 if ac_fn_c_try_compile "$LINENO"; then :
10289   eval "gcc_cv_have_decl_$ac_func=yes"
10290 else
10291   eval "gcc_cv_have_decl_$ac_func=no"
10292 fi
10293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10294 fi
10295
10296 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10298 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10299 #define $ac_tr_decl 1
10300 _ACEOF
10301
10302 else
10303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10304 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10305 #define $ac_tr_decl 0
10306 _ACEOF
10307
10308 fi
10309
10310 done
10311
10312
10313 for ac_func in sigaltstack
10314 do
10315   ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10317 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10318 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10319   $as_echo_n "(cached) " >&6
10320 else
10321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322 /* end confdefs.h.  */
10323 #undef $ac_tr_decl
10324 #define $ac_tr_decl 1
10325
10326 #include "ansidecl.h"
10327 #include "system.h"
10328 #include <signal.h>
10329
10330
10331 int
10332 main ()
10333 {
10334 #ifndef $ac_func
10335 char *(*pfn) = (char *(*)) $ac_func ;
10336 #endif
10337   ;
10338   return 0;
10339 }
10340 _ACEOF
10341 if ac_fn_c_try_compile "$LINENO"; then :
10342   eval "gcc_cv_have_decl_$ac_func=yes"
10343 else
10344   eval "gcc_cv_have_decl_$ac_func=no"
10345 fi
10346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10347 fi
10348
10349 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10351 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10352 #define $ac_tr_decl 1
10353 _ACEOF
10354
10355 else
10356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10357 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10358 #define $ac_tr_decl 0
10359 _ACEOF
10360
10361 fi
10362
10363 done
10364
10365
10366 # More time-related stuff.
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10368 $as_echo_n "checking for struct tms... " >&6; }
10369 if test "${ac_cv_struct_tms+set}" = set; then :
10370   $as_echo_n "(cached) " >&6
10371 else
10372
10373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10374 /* end confdefs.h.  */
10375
10376 #include "ansidecl.h"
10377 #include "system.h"
10378 #ifdef HAVE_SYS_TIMES_H
10379 #include <sys/times.h>
10380 #endif
10381
10382 int
10383 main ()
10384 {
10385 struct tms tms;
10386   ;
10387   return 0;
10388 }
10389 _ACEOF
10390 if ac_fn_c_try_compile "$LINENO"; then :
10391   ac_cv_struct_tms=yes
10392 else
10393   ac_cv_struct_tms=no
10394 fi
10395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396 fi
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10398 $as_echo "$ac_cv_struct_tms" >&6; }
10399 if test $ac_cv_struct_tms = yes; then
10400
10401 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10402
10403 fi
10404
10405 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10406 # revisit after autoconf 2.50.
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10408 $as_echo_n "checking for clock_t... " >&6; }
10409 if test "${gcc_cv_type_clock_t+set}" = set; then :
10410   $as_echo_n "(cached) " >&6
10411 else
10412
10413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414 /* end confdefs.h.  */
10415
10416 #include "ansidecl.h"
10417 #include "system.h"
10418
10419 int
10420 main ()
10421 {
10422 clock_t x;
10423   ;
10424   return 0;
10425 }
10426 _ACEOF
10427 if ac_fn_c_try_compile "$LINENO"; then :
10428   gcc_cv_type_clock_t=yes
10429 else
10430   gcc_cv_type_clock_t=no
10431 fi
10432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10433 fi
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10435 $as_echo "$gcc_cv_type_clock_t" >&6; }
10436 if test $gcc_cv_type_clock_t = yes; then
10437
10438 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10439
10440 fi
10441
10442 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10443 CFLAGS="$saved_CFLAGS"
10444
10445 # Check whether --enable-initfini-array was given.
10446 if test "${enable_initfini_array+set}" = set; then :
10447   enableval=$enable_initfini_array;
10448 else
10449
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10451 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10452 if test "${gcc_cv_initfini_array+set}" = set; then :
10453   $as_echo_n "(cached) " >&6
10454 else
10455     if test "$cross_compiling" = yes; then :
10456   gcc_cv_initfini_array=no
10457 else
10458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10459 /* end confdefs.h.  */
10460
10461 static int x = -1;
10462 int main (void) { return x; }
10463 int foo (void) { x = 0; }
10464 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10465 _ACEOF
10466 if ac_fn_c_try_run "$LINENO"; then :
10467   gcc_cv_initfini_array=yes
10468 else
10469   gcc_cv_initfini_array=no
10470 fi
10471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10472   conftest.$ac_objext conftest.beam conftest.$ac_ext
10473 fi
10474
10475 fi
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10477 $as_echo "$gcc_cv_initfini_array" >&6; }
10478   enable_initfini_array=$gcc_cv_initfini_array
10479
10480 fi
10481
10482 if test $enable_initfini_array = yes; then
10483
10484 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10485
10486 fi
10487
10488 # mkdir takes a single argument on some systems.
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10490 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10491 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10492   $as_echo_n "(cached) " >&6
10493 else
10494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10495 /* end confdefs.h.  */
10496
10497 #include <sys/types.h>
10498 #ifdef HAVE_SYS_STAT_H
10499 # include <sys/stat.h>
10500 #endif
10501 #ifdef HAVE_UNISTD_H
10502 # include <unistd.h>
10503 #endif
10504 #ifdef HAVE_DIRECT_H
10505 # include <direct.h>
10506 #endif
10507 int
10508 main ()
10509 {
10510 mkdir ("foo", 0);
10511   ;
10512   return 0;
10513 }
10514 _ACEOF
10515 if ac_fn_c_try_compile "$LINENO"; then :
10516   gcc_cv_mkdir_takes_one_arg=no
10517 else
10518   gcc_cv_mkdir_takes_one_arg=yes
10519 fi
10520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10521 fi
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10523 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10524 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10525
10526 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10527
10528 fi
10529
10530
10531 # File extensions
10532 manext='.1'
10533 objext='.o'
10534
10535
10536
10537 # With Setjmp/Longjmp based exception handling.
10538 # Check whether --enable-sjlj-exceptions was given.
10539 if test "${enable_sjlj_exceptions+set}" = set; then :
10540   enableval=$enable_sjlj_exceptions; case $target in
10541   *-*-hpux10*)
10542     if test $enableval != yes; then
10543       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10544 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10545       enableval=yes
10546     fi
10547     ;;
10548 esac
10549 force_sjlj_exceptions=yes
10550 else
10551   case $target in
10552   *-*-hpux10*)
10553     force_sjlj_exceptions=yes
10554     enableval=yes
10555     ;;
10556   *)
10557     force_sjlj_exceptions=no
10558     ;;
10559 esac
10560 fi
10561
10562 if test $force_sjlj_exceptions = yes; then
10563   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10564
10565 cat >>confdefs.h <<_ACEOF
10566 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10567 _ACEOF
10568
10569 fi
10570
10571 # For platforms with the unwind ABI which includes an unwind library,
10572 # libunwind, we can choose to use the system libunwind.
10573 # config.gcc also contains tests of with_system_libunwind.
10574
10575
10576 # Check whether --with-system-libunwind was given.
10577 if test "${with_system_libunwind+set}" = set; then :
10578   withval=$with_system_libunwind;
10579 fi
10580
10581   # If system-libunwind was not specifically set, pick a default setting.
10582   if test x$with_system_libunwind = x; then
10583     case ${target} in
10584       ia64-*-hpux*) with_system_libunwind=yes ;;
10585       *) with_system_libunwind=no ;;
10586     esac
10587   fi
10588   # Based on system-libunwind and target, do we have ipinfo?
10589   if  test x$with_system_libunwind = xyes; then
10590     case ${target} in
10591       ia64-*-*) have_unwind_getipinfo=no ;;
10592       *) have_unwind_getipinfo=yes ;;
10593     esac
10594   else
10595     # Darwin before version 9 does not have _Unwind_GetIPInfo.
10596
10597     case ${target} in
10598       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10599       *) have_unwind_getipinfo=yes ;;
10600     esac
10601
10602   fi
10603
10604   if test x$have_unwind_getipinfo = xyes; then
10605
10606 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10607
10608   fi
10609
10610
10611 # --------------------------------------------------------
10612 # Build, host, and target specific configuration fragments
10613 # --------------------------------------------------------
10614
10615 # Collect build-machine-specific information.
10616 . ${srcdir}/config.build
10617
10618 # Collect host-machine-specific information.
10619 . ${srcdir}/config.host
10620
10621 target_gtfiles=
10622
10623 # Collect target-machine-specific information.
10624 . ${srcdir}/config.gcc
10625
10626 extra_objs="${host_extra_objs} ${extra_objs}"
10627 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10628
10629 # Default the target-machine variables that were not explicitly set.
10630 if test x"$tm_file" = x
10631 then tm_file=$cpu_type/$cpu_type.h; fi
10632
10633 if test x"$extra_headers" = x
10634 then extra_headers=; fi
10635
10636 if test x$md_file = x
10637 then md_file=$cpu_type/$cpu_type.md; fi
10638
10639 if test x$out_file = x
10640 then out_file=$cpu_type/$cpu_type.c; fi
10641
10642 if test x"$tmake_file" = x
10643 then tmake_file=$cpu_type/t-$cpu_type
10644 fi
10645
10646 if test x"$dwarf2" = xyes
10647 then tm_file="$tm_file tm-dwarf2.h"
10648 fi
10649
10650 # Say what files are being used for the output code and MD file.
10651 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10652 echo "Using \`$srcdir/config/$md_file' as machine description file."
10653
10654 # If any of the xm_file variables contain nonexistent files, warn
10655 # about them and drop them.
10656
10657 bx=
10658 for x in $build_xm_file; do
10659   if    test -f $srcdir/config/$x
10660   then      bx="$bx $x"
10661   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10662 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10663   fi
10664 done
10665 build_xm_file="$bx"
10666
10667 hx=
10668 for x in $host_xm_file; do
10669   if    test -f $srcdir/config/$x
10670   then      hx="$hx $x"
10671   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10672 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10673   fi
10674 done
10675 host_xm_file="$hx"
10676
10677 tx=
10678 for x in $xm_file; do
10679   if    test -f $srcdir/config/$x
10680   then      tx="$tx $x"
10681   else      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10682 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10683   fi
10684 done
10685 xm_file="$tx"
10686
10687 count=a
10688 for f in $tm_file; do
10689         count=${count}x
10690 done
10691 if test $count = ax; then
10692         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10693 else
10694         echo "Using the following target machine macro files:"
10695         for f in $tm_file; do
10696                 echo "  $srcdir/config/$f"
10697         done
10698 fi
10699
10700 if test x$need_64bit_hwint = xyes; then
10701
10702 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10703
10704 fi
10705
10706 if test x$use_long_long_for_widest_fast_int = xyes; then
10707
10708 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10709
10710 fi
10711
10712 count=a
10713 for f in $host_xm_file; do
10714         count=${count}x
10715 done
10716 if test $count = a; then
10717         :
10718 elif test $count = ax; then
10719         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10720 else
10721         echo "Using the following host machine macro files:"
10722         for f in $host_xm_file; do
10723                 echo "  $srcdir/config/$f"
10724         done
10725 fi
10726 echo "Using ${out_host_hook_obj} for host machine hooks."
10727
10728 if test "$host_xm_file" != "$build_xm_file"; then
10729         count=a
10730         for f in $build_xm_file; do
10731                 count=${count}x
10732         done
10733         if test $count = a; then
10734                 :
10735         elif test $count = ax; then
10736                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10737         else
10738                 echo "Using the following build machine macro files:"
10739                 for f in $build_xm_file; do
10740                         echo "  $srcdir/config/$f"
10741                 done
10742         fi
10743 fi
10744
10745 case ${host} in
10746   powerpc*-*-darwin*)
10747     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10748 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10749 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10750   $as_echo_n "(cached) " >&6
10751 else
10752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10753 /* end confdefs.h.  */
10754
10755 #include <sys/cdefs.h>
10756 #include <sys/signal.h>
10757 #include <ucontext.h>
10758 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10759
10760 _ACEOF
10761 if ac_fn_c_try_compile "$LINENO"; then :
10762   gcc_cv_mcontext_underscores=no
10763 else
10764   gcc_cv_mcontext_underscores=yes
10765 fi
10766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10767 fi
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10769 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10770       if test $gcc_cv_mcontext_underscores = yes; then
10771
10772 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10773
10774       fi
10775     ;;
10776 esac
10777
10778 # ---------
10779 # Threading
10780 # ---------
10781
10782 # Check if a valid thread package
10783 case ${enable_threads} in
10784   "" | no)
10785     # No threads
10786     target_thread_file='single'
10787     ;;
10788   yes)
10789     # default
10790     target_thread_file='single'
10791     ;;
10792   aix | dce | gnat | irix | posix | posix95 | rtems | \
10793   single | solaris | vxworks | win32 | mipssde)
10794     target_thread_file=${enable_threads}
10795     ;;
10796   *)
10797     echo "${enable_threads} is an unknown thread package" 1>&2
10798     exit 1
10799     ;;
10800 esac
10801
10802 if test x${thread_file} = x; then
10803   # No thread file set by target-specific clauses in config.gcc,
10804   # so use file chosen by default logic above
10805   thread_file=${target_thread_file}
10806 fi
10807
10808 # Make gthr-default.h if we have a thread file.
10809 gthread_flags=
10810 if test $thread_file != single; then
10811   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10812   if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10813     rm -f gthr-default.h-t
10814   else
10815     mv -f gthr-default.h-t gthr-default.h
10816   fi
10817   gthread_flags=-DHAVE_GTHR_DEFAULT
10818 fi
10819
10820
10821 # --------
10822 # UNSORTED
10823 # --------
10824
10825 use_cxa_atexit=no
10826 if test x$enable___cxa_atexit = xyes || \
10827    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10828   if test x$host = x$target; then
10829     case $host in
10830       # mingw32 doesn't have __cxa_atexit but uses atexit registration
10831       # keyed to flag_use_cxa_atexit
10832       *-*-mingw32*)
10833         use_cxa_atexit=yes
10834         ;;
10835       *)
10836         ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10837 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10838   use_cxa_atexit=yes
10839 else
10840   echo "__cxa_atexit can't be enabled on this target"
10841 fi
10842
10843         ;;
10844     esac
10845   else
10846     # We can't check for __cxa_atexit when building a cross, so assume
10847     # it is available
10848     use_cxa_atexit=yes
10849   fi
10850   if test x$use_cxa_atexit = xyes; then
10851
10852 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10853
10854   fi
10855 fi
10856
10857 # Look for a file containing extra machine modes.
10858 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10859   extra_modes_file='$(srcdir)'/config/${extra_modes}
10860
10861
10862 cat >>confdefs.h <<_ACEOF
10863 #define EXTRA_MODES_FILE "config/$extra_modes"
10864 _ACEOF
10865
10866 fi
10867
10868 # Convert extra_options into a form suitable for Makefile use.
10869 extra_opt_files=
10870 all_opt_files=
10871 for f in $extra_options; do
10872   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10873   all_opt_files="$all_opt_files $srcdir/config/$f"
10874 done
10875
10876
10877 # auto-host.h is the file containing items generated by autoconf and is
10878 # the first file included by config.h.
10879 # If host=build, it is correct to have bconfig include auto-host.h
10880 # as well.  If host!=build, we are in error and need to do more
10881 # work to find out the build config parameters.
10882 if test x$host = x$build
10883 then
10884         build_auto=auto-host.h
10885 else
10886         # We create a subdir, then run autoconf in the subdir.
10887         # To prevent recursion we set host and build for the new
10888         # invocation of configure to the build for this invocation
10889         # of configure.
10890         tempdir=build.$$
10891         rm -rf $tempdir
10892         mkdir $tempdir
10893         cd $tempdir
10894         case ${srcdir} in
10895         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10896         *) realsrcdir=../${srcdir};;
10897         esac
10898         saved_CFLAGS="${CFLAGS}"
10899         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10900         LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10901         ${realsrcdir}/configure \
10902                 --enable-languages=${enable_languages-all} \
10903                 --target=$target_alias --host=$build_alias --build=$build_alias
10904         CFLAGS="${saved_CFLAGS}"
10905
10906         # We just finished tests for the build machine, so rename
10907         # the file auto-build.h in the gcc directory.
10908         mv auto-host.h ../auto-build.h
10909         cd ..
10910         rm -rf $tempdir
10911         build_auto=auto-build.h
10912 fi
10913
10914
10915 tm_file="${tm_file} defaults.h"
10916 tm_p_file="${tm_p_file} tm-preds.h"
10917 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10918 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10919 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10920 # put this back in temporarily.
10921 xm_file="auto-host.h ansidecl.h ${xm_file}"
10922
10923 # --------
10924 # UNSORTED
10925 # --------
10926
10927 # Compile in configure arguments.
10928 if test -f configargs.h ; then
10929         # Being re-configured.
10930         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10931         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10932 else
10933         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10934 fi
10935
10936 # Double all backslashes and backslash all quotes to turn
10937 # gcc_config_arguments into a C string.
10938 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10939 $gcc_config_arguments
10940 EOF
10941 gcc_config_arguments_str=`cat conftest.out`
10942 rm -f conftest.out
10943
10944 cat > configargs.h <<EOF
10945 /* Generated automatically. */
10946 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10947 static const char thread_model[] = "$thread_file";
10948
10949 static const struct {
10950   const char *name, *value;
10951 } configure_default_options[] = $configure_default_options;
10952 EOF
10953
10954 gcc_BASEVER=`cat $srcdir/BASE-VER`
10955 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10956 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10957 if test -f $srcdir/REVISION ; then
10958         gcc_REVISION=`cat $srcdir/REVISION`
10959 else
10960         gcc_REVISION=""
10961 fi
10962 cat > plugin-version.h <<EOF
10963 #include "configargs.h"
10964
10965 static char basever[] = "$gcc_BASEVER";
10966 static char datestamp[] = "$gcc_DATESTAMP";
10967 static char devphase[] = "$gcc_DEVPHASE";
10968 static char revision[] = "$gcc_REVISION";
10969
10970 /* FIXME plugins: We should make the version information more precise.
10971    One way to do is to add a checksum. */
10972
10973 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10974                                                 devphase, revision,
10975                                                 configuration_arguments};
10976 EOF
10977
10978 # Internationalization
10979 # If we haven't got the data from the intl directory,
10980 # assume NLS is disabled.
10981 USE_NLS=no
10982 LIBINTL=
10983 LIBINTL_DEP=
10984 INCINTL=
10985 XGETTEXT=
10986 GMSGFMT=
10987 POSUB=
10988
10989 if test -f  ../intl/config.intl; then
10990   .  ../intl/config.intl
10991 fi
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10993 $as_echo_n "checking whether NLS is requested... " >&6; }
10994 if test x"$USE_NLS" != xyes; then
10995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10996 $as_echo "no" >&6; }
10997 else
10998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10999 $as_echo "yes" >&6; }
11000
11001 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11002
11003
11004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11005 $as_echo_n "checking for catalogs to be installed... " >&6; }
11006   # Look for .po and .gmo files in the source directory.
11007   CATALOGS=
11008   XLINGUAS=
11009   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11010     # If there aren't any .gmo files the shell will give us the
11011     # literal string "../path/to/srcdir/po/*.gmo" which has to be
11012     # weeded out.
11013     case "$cat" in *\**)
11014       continue;;
11015     esac
11016     # The quadruple backslash is collapsed to a double backslash
11017     # by the backticks, then collapsed again by the double quotes,
11018     # leaving us with one backslash in the sed expression (right
11019     # before the dot that mustn't act as a wildcard).
11020     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11021     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11022     # The user is allowed to set LINGUAS to a list of languages to
11023     # install catalogs for.  If it's empty that means "all of them."
11024     if test "x$LINGUAS" = x; then
11025       CATALOGS="$CATALOGS $cat"
11026       XLINGUAS="$XLINGUAS $lang"
11027     else
11028       case "$LINGUAS" in *$lang*)
11029         CATALOGS="$CATALOGS $cat"
11030         XLINGUAS="$XLINGUAS $lang"
11031         ;;
11032       esac
11033     fi
11034   done
11035   LINGUAS="$XLINGUAS"
11036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11037 $as_echo "$LINGUAS" >&6; }
11038
11039
11040     DATADIRNAME=share
11041
11042   INSTOBJEXT=.mo
11043
11044   GENCAT=gencat
11045
11046   CATOBJEXT=.gmo
11047
11048 fi
11049
11050 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11051 # -liconv on the link line twice.
11052 case "$LIBINTL" in *$LIBICONV*)
11053         LIBICONV= ;;
11054 esac
11055
11056 # Check whether --enable-secureplt was given.
11057 if test "${enable_secureplt+set}" = set; then :
11058   enableval=$enable_secureplt;
11059 fi
11060
11061
11062 # Check whether --enable-leading-mingw64-underscores was given.
11063 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11064   enableval=$enable_leading_mingw64_underscores;
11065 fi
11066
11067 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
11068
11069 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11070
11071 fi
11072
11073 # Check whether --enable-cld was given.
11074 if test "${enable_cld+set}" = set; then :
11075   enableval=$enable_cld;
11076 else
11077   enable_cld=no
11078 fi
11079
11080
11081 # Check whether --enable-frame-pointer was given.
11082 if test "${enable_frame_pointer+set}" = set; then :
11083   enableval=$enable_frame_pointer;
11084 else
11085
11086 case $target_os in
11087 linux* | darwin[8912]*)
11088   # Enable -fomit-frame-pointer by default for Linux and Darwin with
11089   # DWARF2.
11090   enable_frame_pointer=no
11091   ;;
11092 *)
11093   enable_frame_pointer=yes
11094   ;;
11095 esac
11096
11097 fi
11098
11099
11100 # Windows32 Registry support for specifying GCC installation paths.
11101 # Check whether --enable-win32-registry was given.
11102 if test "${enable_win32_registry+set}" = set; then :
11103   enableval=$enable_win32_registry;
11104 fi
11105
11106
11107 case $host_os in
11108   win32 | pe | cygwin* | mingw32* | uwin*)
11109     if test "x$enable_win32_registry" != xno; then
11110       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11111 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11112 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11113   $as_echo_n "(cached) " >&6
11114 else
11115   ac_func_search_save_LIBS=$LIBS
11116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11117 /* end confdefs.h.  */
11118
11119 /* Override any GCC internal prototype to avoid an error.
11120    Use char because int might match the return type of a GCC
11121    builtin and then its argument prototype would still apply.  */
11122 #ifdef __cplusplus
11123 extern "C"
11124 #endif
11125 char RegOpenKeyExA ();
11126 int
11127 main ()
11128 {
11129 return RegOpenKeyExA ();
11130   ;
11131   return 0;
11132 }
11133 _ACEOF
11134 for ac_lib in '' advapi32; do
11135   if test -z "$ac_lib"; then
11136     ac_res="none required"
11137   else
11138     ac_res=-l$ac_lib
11139     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11140   fi
11141   if ac_fn_c_try_link "$LINENO"; then :
11142   ac_cv_search_RegOpenKeyExA=$ac_res
11143 fi
11144 rm -f core conftest.err conftest.$ac_objext \
11145     conftest$ac_exeext
11146   if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11147   break
11148 fi
11149 done
11150 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11151
11152 else
11153   ac_cv_search_RegOpenKeyExA=no
11154 fi
11155 rm conftest.$ac_ext
11156 LIBS=$ac_func_search_save_LIBS
11157 fi
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11159 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11160 ac_res=$ac_cv_search_RegOpenKeyExA
11161 if test "$ac_res" != no; then :
11162   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11163
11164 else
11165   enable_win32_registry=no
11166 fi
11167
11168     fi
11169
11170     if test "x$enable_win32_registry" != xno; then
11171
11172 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11173
11174
11175       if test "x$enable_win32_registry" != xyes \
11176          && test "x$enable_win32_registry" != x; then
11177
11178 cat >>confdefs.h <<_ACEOF
11179 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11180 _ACEOF
11181
11182       fi
11183     fi
11184   ;;
11185 esac
11186
11187 # Get an absolute path to the GCC top-level source directory
11188 holddir=`${PWDCMD-pwd}`
11189 cd $srcdir
11190 topdir=`${PWDCMD-pwd}`
11191 cd $holddir
11192
11193 # Conditionalize the makefile for this host machine.
11194 xmake_file=
11195 for f in ${host_xmake_file}
11196 do
11197         if test -f ${srcdir}/config/$f
11198         then
11199                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11200         fi
11201 done
11202
11203 # Conditionalize the makefile for this target machine.
11204 tmake_file_=
11205 for f in ${tmake_file}
11206 do
11207         if test -f ${srcdir}/config/$f
11208         then
11209                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11210         fi
11211 done
11212 tmake_file="${tmake_file_}"
11213
11214 out_object_file=`basename $out_file .c`.o
11215
11216 tm_file_list="options.h"
11217 tm_include_list="options.h insn-constants.h"
11218 for f in $tm_file; do
11219   case $f in
11220     ./* )
11221        f=`echo $f | sed 's/^..//'`
11222        tm_file_list="${tm_file_list} $f"
11223        tm_include_list="${tm_include_list} $f"
11224        ;;
11225     defaults.h )
11226        tm_file_list="${tm_file_list} \$(srcdir)/$f"
11227        tm_include_list="${tm_include_list} $f"
11228        ;;
11229     * )
11230        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11231        tm_include_list="${tm_include_list} config/$f"
11232        ;;
11233   esac
11234 done
11235
11236 tm_p_file_list=
11237 tm_p_include_list=
11238 for f in $tm_p_file; do
11239   case $f in
11240     tm-preds.h )
11241        tm_p_file_list="${tm_p_file_list} $f"
11242        tm_p_include_list="${tm_p_include_list} $f"
11243        ;;
11244     * )
11245        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11246        tm_p_include_list="${tm_p_include_list} config/$f"
11247   esac
11248 done
11249
11250 xm_file_list=
11251 xm_include_list=
11252 for f in $xm_file; do
11253   case $f in
11254     ansidecl.h )
11255        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11256        xm_include_list="${xm_include_list} $f"
11257        ;;
11258     auto-host.h )
11259        xm_file_list="${xm_file_list} $f"
11260        xm_include_list="${xm_include_list} $f"
11261        ;;
11262     * )
11263        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11264        xm_include_list="${xm_include_list} config/$f"
11265        ;;
11266   esac
11267 done
11268
11269 host_xm_file_list=
11270 host_xm_include_list=
11271 for f in $host_xm_file; do
11272   case $f in
11273     ansidecl.h )
11274        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11275        host_xm_include_list="${host_xm_include_list} $f"
11276        ;;
11277     auto-host.h )
11278        host_xm_file_list="${host_xm_file_list} $f"
11279        host_xm_include_list="${host_xm_include_list} $f"
11280        ;;
11281     * )
11282        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11283        host_xm_include_list="${host_xm_include_list} config/$f"
11284        ;;
11285   esac
11286 done
11287
11288 build_xm_file_list=
11289 for f in $build_xm_file; do
11290   case $f in
11291     ansidecl.h )
11292        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11293        build_xm_include_list="${build_xm_include_list} $f"
11294        ;;
11295     auto-build.h | auto-host.h )
11296        build_xm_file_list="${build_xm_file_list} $f"
11297        build_xm_include_list="${build_xm_include_list} $f"
11298        ;;
11299     * )
11300        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11301        build_xm_include_list="${build_xm_include_list} config/$f"
11302        ;;
11303   esac
11304 done
11305
11306 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11307 # cross-compiler which does not use the native headers and libraries.
11308 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11309 CROSS=
11310 ALL=all.internal
11311 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11312
11313 if test "x$with_build_sysroot" != x; then
11314   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11315 else
11316   # This value is used, even on a native system, because
11317   # CROSS_SYSTEM_HEADER_DIR is just
11318   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11319   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11320 fi
11321
11322 if test x$host != x$target
11323 then
11324         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11325         ALL=all.cross
11326         SYSTEM_HEADER_DIR=$build_system_header_dir
11327         case "$host","$target" in
11328         # Darwin crosses can use the host system's libraries and headers,
11329         # because of the fat library support.  Of course, it must be the
11330         # same version of Darwin on both sides.  Allow the user to
11331         # just say --target=foo-darwin without a version number to mean
11332         # "the version on this system".
11333             *-*-darwin*,*-*-darwin*)
11334                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11335                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11336                 if test $hostos = $targetos -o $targetos = darwin ; then
11337                     CROSS=
11338                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11339                     with_headers=yes
11340                 fi
11341                 ;;
11342
11343             i?86-*-*,x86_64-*-* \
11344             | powerpc*-*-*,powerpc64*-*-*)
11345                 CROSS="$CROSS -DNATIVE_CROSS" ;;
11346         esac
11347
11348         case $target in
11349                 *-*-mingw*)
11350                         if test "x$with_headers" = x; then
11351                                 with_headers=yes
11352                         fi
11353                         ;;
11354                 *)
11355                         ;;
11356         esac
11357 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11358         SYSTEM_HEADER_DIR=$build_system_header_dir
11359 fi
11360
11361 # If this is a cross-compiler that does not
11362 # have its own set of headers then define
11363 # inhibit_libc
11364
11365 # If this is using newlib, without having the headers available now,
11366 # then define inhibit_libc in LIBGCC2_CFLAGS.
11367 # This prevents libgcc2 from containing any code which requires libc
11368 # support.
11369 : ${inhibit_libc=false}
11370 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11371        test x$with_newlib = xyes ; } &&
11372      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11373        inhibit_libc=true
11374 fi
11375
11376
11377 # When building gcc with a cross-compiler, we need to adjust things so
11378 # that the generator programs are still built with the native compiler.
11379 # Also, we cannot run fixincludes.
11380
11381 # These are the normal (build=host) settings:
11382 CC_FOR_BUILD='$(CC)'
11383 BUILD_CFLAGS='$(ALL_CFLAGS)'
11384 BUILD_LDFLAGS='$(LDFLAGS)'
11385 STMP_FIXINC=stmp-fixinc
11386
11387 # And these apply if build != host, or we are generating coverage data
11388 if test x$build != x$host || test "x$coverage_flags" != x
11389 then
11390     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11391     BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11392 fi
11393
11394 # Expand extra_headers to include complete path.
11395 # This substitutes for lots of t-* files.
11396 extra_headers_list=
11397 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11398 for file in ${extra_headers} ; do
11399   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11400 done
11401
11402 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11403 if test x"$use_gcc_tgmath" = xyes
11404 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11405 fi
11406
11407 # Define collect2 in Makefile.
11408 case $host_can_use_collect2 in
11409   no) collect2= ;;
11410   *) collect2='collect2$(exeext)' ;;
11411 esac
11412
11413
11414 # Add a definition of USE_COLLECT2 if system wants one.
11415 case $use_collect2 in
11416   no) use_collect2= ;;
11417   "") ;;
11418   *)
11419     host_xm_defines="${host_xm_defines} USE_COLLECT2"
11420     xm_defines="${xm_defines} USE_COLLECT2"
11421     case $host_can_use_collect2 in
11422       no)
11423         as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11424         ;;
11425     esac
11426     ;;
11427 esac
11428
11429
11430 cat >>confdefs.h <<_ACEOF
11431 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11432 _ACEOF
11433
11434
11435 # ---------------------------
11436 # Assembler & linker features
11437 # ---------------------------
11438
11439 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11440 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11441 # However when ld-new is first executed from the build tree, libtool will
11442 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11443 # to the build tree.  While doing this we need to use the previous-stage
11444 # linker, or we have an infinite loop.  The presence of a shell script as
11445 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11446 # the gcc/collect-ld script.  So we need to know how libtool works, or
11447 # exec-tool will fail.
11448
11449
11450 case `pwd` in
11451   *\ * | *\     *)
11452     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11453 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11454 esac
11455
11456
11457
11458 macro_version='2.2.7a'
11459 macro_revision='1.3134'
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473 ltmain="$ac_aux_dir/ltmain.sh"
11474
11475 # Backslashify metacharacters that are still active within
11476 # double-quoted strings.
11477 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11478
11479 # Same as above, but do not quote variable references.
11480 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11481
11482 # Sed substitution to delay expansion of an escaped shell variable in a
11483 # double_quote_subst'ed string.
11484 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11485
11486 # Sed substitution to delay expansion of an escaped single quote.
11487 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11488
11489 # Sed substitution to avoid accidental globbing in evaled expressions
11490 no_glob_subst='s/\*/\\\*/g'
11491
11492 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11493 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11494 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11495
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11497 $as_echo_n "checking how to print strings... " >&6; }
11498 # Test print first, because it will be a builtin if present.
11499 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11500    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11501   ECHO='print -r --'
11502 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11503   ECHO='printf %s\n'
11504 else
11505   # Use this function as a fallback that always works.
11506   func_fallback_echo ()
11507   {
11508     eval 'cat <<_LTECHO_EOF
11509 $1
11510 _LTECHO_EOF'
11511   }
11512   ECHO='func_fallback_echo'
11513 fi
11514
11515 # func_echo_all arg...
11516 # Invoke $ECHO with all args, space-separated.
11517 func_echo_all ()
11518 {
11519     $ECHO ""
11520 }
11521
11522 case "$ECHO" in
11523   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11524 $as_echo "printf" >&6; } ;;
11525   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11526 $as_echo "print -r" >&6; } ;;
11527   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11528 $as_echo "cat" >&6; } ;;
11529 esac
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11545 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11546 if test "${ac_cv_path_SED+set}" = set; then :
11547   $as_echo_n "(cached) " >&6
11548 else
11549             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11550      for ac_i in 1 2 3 4 5 6 7; do
11551        ac_script="$ac_script$as_nl$ac_script"
11552      done
11553      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11554      { ac_script=; unset ac_script;}
11555      if test -z "$SED"; then
11556   ac_path_SED_found=false
11557   # Loop through the user's path and test for each of PROGNAME-LIST
11558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559 for as_dir in $PATH
11560 do
11561   IFS=$as_save_IFS
11562   test -z "$as_dir" && as_dir=.
11563     for ac_prog in sed gsed; do
11564     for ac_exec_ext in '' $ac_executable_extensions; do
11565       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11566       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11567 # Check for GNU ac_path_SED and select it if it is found.
11568   # Check for GNU $ac_path_SED
11569 case `"$ac_path_SED" --version 2>&1` in
11570 *GNU*)
11571   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11572 *)
11573   ac_count=0
11574   $as_echo_n 0123456789 >"conftest.in"
11575   while :
11576   do
11577     cat "conftest.in" "conftest.in" >"conftest.tmp"
11578     mv "conftest.tmp" "conftest.in"
11579     cp "conftest.in" "conftest.nl"
11580     $as_echo '' >> "conftest.nl"
11581     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11582     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11583     as_fn_arith $ac_count + 1 && ac_count=$as_val
11584     if test $ac_count -gt ${ac_path_SED_max-0}; then
11585       # Best one so far, save it but keep looking for a better one
11586       ac_cv_path_SED="$ac_path_SED"
11587       ac_path_SED_max=$ac_count
11588     fi
11589     # 10*(2^10) chars as input seems more than enough
11590     test $ac_count -gt 10 && break
11591   done
11592   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11593 esac
11594
11595       $ac_path_SED_found && break 3
11596     done
11597   done
11598   done
11599 IFS=$as_save_IFS
11600   if test -z "$ac_cv_path_SED"; then
11601     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11602   fi
11603 else
11604   ac_cv_path_SED=$SED
11605 fi
11606
11607 fi
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11609 $as_echo "$ac_cv_path_SED" >&6; }
11610  SED="$ac_cv_path_SED"
11611   rm -f conftest.sed
11612
11613 test -z "$SED" && SED=sed
11614 Xsed="$SED -e 1s/^X//"
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11627 $as_echo_n "checking for fgrep... " >&6; }
11628 if test "${ac_cv_path_FGREP+set}" = set; then :
11629   $as_echo_n "(cached) " >&6
11630 else
11631   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11632    then ac_cv_path_FGREP="$GREP -F"
11633    else
11634      if test -z "$FGREP"; then
11635   ac_path_FGREP_found=false
11636   # Loop through the user's path and test for each of PROGNAME-LIST
11637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11639 do
11640   IFS=$as_save_IFS
11641   test -z "$as_dir" && as_dir=.
11642     for ac_prog in fgrep; do
11643     for ac_exec_ext in '' $ac_executable_extensions; do
11644       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11645       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11646 # Check for GNU ac_path_FGREP and select it if it is found.
11647   # Check for GNU $ac_path_FGREP
11648 case `"$ac_path_FGREP" --version 2>&1` in
11649 *GNU*)
11650   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11651 *)
11652   ac_count=0
11653   $as_echo_n 0123456789 >"conftest.in"
11654   while :
11655   do
11656     cat "conftest.in" "conftest.in" >"conftest.tmp"
11657     mv "conftest.tmp" "conftest.in"
11658     cp "conftest.in" "conftest.nl"
11659     $as_echo 'FGREP' >> "conftest.nl"
11660     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11661     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11662     as_fn_arith $ac_count + 1 && ac_count=$as_val
11663     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11664       # Best one so far, save it but keep looking for a better one
11665       ac_cv_path_FGREP="$ac_path_FGREP"
11666       ac_path_FGREP_max=$ac_count
11667     fi
11668     # 10*(2^10) chars as input seems more than enough
11669     test $ac_count -gt 10 && break
11670   done
11671   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11672 esac
11673
11674       $ac_path_FGREP_found && break 3
11675     done
11676   done
11677   done
11678 IFS=$as_save_IFS
11679   if test -z "$ac_cv_path_FGREP"; then
11680     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11681   fi
11682 else
11683   ac_cv_path_FGREP=$FGREP
11684 fi
11685
11686    fi
11687 fi
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11689 $as_echo "$ac_cv_path_FGREP" >&6; }
11690  FGREP="$ac_cv_path_FGREP"
11691
11692
11693 test -z "$GREP" && GREP=grep
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713 # Check whether --with-gnu-ld was given.
11714 if test "${with_gnu_ld+set}" = set; then :
11715   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11716 else
11717   with_gnu_ld=no
11718 fi
11719
11720 ac_prog=ld
11721 if test "$GCC" = yes; then
11722   # Check if gcc -print-prog-name=ld gives a path.
11723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11724 $as_echo_n "checking for ld used by $CC... " >&6; }
11725   case $host in
11726   *-*-mingw*)
11727     # gcc leaves a trailing carriage return which upsets mingw
11728     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11729   *)
11730     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11731   esac
11732   case $ac_prog in
11733     # Accept absolute paths.
11734     [\\/]* | ?:[\\/]*)
11735       re_direlt='/[^/][^/]*/\.\./'
11736       # Canonicalize the pathname of ld
11737       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11738       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11739         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11740       done
11741       test -z "$LD" && LD="$ac_prog"
11742       ;;
11743   "")
11744     # If it fails, then pretend we aren't using GCC.
11745     ac_prog=ld
11746     ;;
11747   *)
11748     # If it is relative, then search for the first ld in PATH.
11749     with_gnu_ld=unknown
11750     ;;
11751   esac
11752 elif test "$with_gnu_ld" = yes; then
11753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11754 $as_echo_n "checking for GNU ld... " >&6; }
11755 else
11756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11757 $as_echo_n "checking for non-GNU ld... " >&6; }
11758 fi
11759 if test "${lt_cv_path_LD+set}" = set; then :
11760   $as_echo_n "(cached) " >&6
11761 else
11762   if test -z "$LD"; then
11763   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11764   for ac_dir in $PATH; do
11765     IFS="$lt_save_ifs"
11766     test -z "$ac_dir" && ac_dir=.
11767     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11768       lt_cv_path_LD="$ac_dir/$ac_prog"
11769       # Check to see if the program is GNU ld.  I'd rather use --version,
11770       # but apparently some variants of GNU ld only accept -v.
11771       # Break only if it was the GNU/non-GNU ld that we prefer.
11772       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11773       *GNU* | *'with BFD'*)
11774         test "$with_gnu_ld" != no && break
11775         ;;
11776       *)
11777         test "$with_gnu_ld" != yes && break
11778         ;;
11779       esac
11780     fi
11781   done
11782   IFS="$lt_save_ifs"
11783 else
11784   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11785 fi
11786 fi
11787
11788 LD="$lt_cv_path_LD"
11789 if test -n "$LD"; then
11790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11791 $as_echo "$LD" >&6; }
11792 else
11793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794 $as_echo "no" >&6; }
11795 fi
11796 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11798 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11799 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11800   $as_echo_n "(cached) " >&6
11801 else
11802   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11803 case `$LD -v 2>&1 </dev/null` in
11804 *GNU* | *'with BFD'*)
11805   lt_cv_prog_gnu_ld=yes
11806   ;;
11807 *)
11808   lt_cv_prog_gnu_ld=no
11809   ;;
11810 esac
11811 fi
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11813 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11814 with_gnu_ld=$lt_cv_prog_gnu_ld
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11825 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11826 if test "${lt_cv_path_NM+set}" = set; then :
11827   $as_echo_n "(cached) " >&6
11828 else
11829   if test -n "$NM"; then
11830   # Let the user override the test.
11831   lt_cv_path_NM="$NM"
11832 else
11833   lt_nm_to_check="${ac_tool_prefix}nm"
11834   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11835     lt_nm_to_check="$lt_nm_to_check nm"
11836   fi
11837   for lt_tmp_nm in $lt_nm_to_check; do
11838     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11839     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11840       IFS="$lt_save_ifs"
11841       test -z "$ac_dir" && ac_dir=.
11842       tmp_nm="$ac_dir/$lt_tmp_nm"
11843       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11844         # Check to see if the nm accepts a BSD-compat flag.
11845         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11846         #   nm: unknown option "B" ignored
11847         # Tru64's nm complains that /dev/null is an invalid object file
11848         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11849         */dev/null* | *'Invalid file or object type'*)
11850           lt_cv_path_NM="$tmp_nm -B"
11851           break
11852           ;;
11853         *)
11854           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11855           */dev/null*)
11856             lt_cv_path_NM="$tmp_nm -p"
11857             break
11858             ;;
11859           *)
11860             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11861             continue # so that we can try to find one that supports BSD flags
11862             ;;
11863           esac
11864           ;;
11865         esac
11866       fi
11867     done
11868     IFS="$lt_save_ifs"
11869   done
11870   : ${lt_cv_path_NM=no}
11871 fi
11872 fi
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11874 $as_echo "$lt_cv_path_NM" >&6; }
11875 if test "$lt_cv_path_NM" != "no"; then
11876   NM="$lt_cv_path_NM"
11877 else
11878   # Didn't find any BSD compatible name lister, look for dumpbin.
11879   if test -n "$DUMPBIN"; then :
11880     # Let the user override the test.
11881   else
11882     if test -n "$ac_tool_prefix"; then
11883   for ac_prog in dumpbin "link -dump"
11884   do
11885     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11886 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11888 $as_echo_n "checking for $ac_word... " >&6; }
11889 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11890   $as_echo_n "(cached) " >&6
11891 else
11892   if test -n "$DUMPBIN"; then
11893   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11894 else
11895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11896 for as_dir in $PATH
11897 do
11898   IFS=$as_save_IFS
11899   test -z "$as_dir" && as_dir=.
11900     for ac_exec_ext in '' $ac_executable_extensions; do
11901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11902     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11904     break 2
11905   fi
11906 done
11907   done
11908 IFS=$as_save_IFS
11909
11910 fi
11911 fi
11912 DUMPBIN=$ac_cv_prog_DUMPBIN
11913 if test -n "$DUMPBIN"; then
11914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11915 $as_echo "$DUMPBIN" >&6; }
11916 else
11917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918 $as_echo "no" >&6; }
11919 fi
11920
11921
11922     test -n "$DUMPBIN" && break
11923   done
11924 fi
11925 if test -z "$DUMPBIN"; then
11926   ac_ct_DUMPBIN=$DUMPBIN
11927   for ac_prog in dumpbin "link -dump"
11928 do
11929   # Extract the first word of "$ac_prog", so it can be a program name with args.
11930 set dummy $ac_prog; ac_word=$2
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11932 $as_echo_n "checking for $ac_word... " >&6; }
11933 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11934   $as_echo_n "(cached) " >&6
11935 else
11936   if test -n "$ac_ct_DUMPBIN"; then
11937   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11938 else
11939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940 for as_dir in $PATH
11941 do
11942   IFS=$as_save_IFS
11943   test -z "$as_dir" && as_dir=.
11944     for ac_exec_ext in '' $ac_executable_extensions; do
11945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11946     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11948     break 2
11949   fi
11950 done
11951   done
11952 IFS=$as_save_IFS
11953
11954 fi
11955 fi
11956 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11957 if test -n "$ac_ct_DUMPBIN"; then
11958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11959 $as_echo "$ac_ct_DUMPBIN" >&6; }
11960 else
11961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11962 $as_echo "no" >&6; }
11963 fi
11964
11965
11966   test -n "$ac_ct_DUMPBIN" && break
11967 done
11968
11969   if test "x$ac_ct_DUMPBIN" = x; then
11970     DUMPBIN=":"
11971   else
11972     case $cross_compiling:$ac_tool_warned in
11973 yes:)
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11976 ac_tool_warned=yes ;;
11977 esac
11978     DUMPBIN=$ac_ct_DUMPBIN
11979   fi
11980 fi
11981
11982     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11983     *COFF*)
11984       DUMPBIN="$DUMPBIN -symbols"
11985       ;;
11986     *)
11987       DUMPBIN=:
11988       ;;
11989     esac
11990   fi
11991
11992   if test "$DUMPBIN" != ":"; then
11993     NM="$DUMPBIN"
11994   fi
11995 fi
11996 test -z "$NM" && NM=nm
11997
11998
11999
12000
12001
12002
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12004 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12005 if test "${lt_cv_nm_interface+set}" = set; then :
12006   $as_echo_n "(cached) " >&6
12007 else
12008   lt_cv_nm_interface="BSD nm"
12009   echo "int some_variable = 0;" > conftest.$ac_ext
12010   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12011   (eval "$ac_compile" 2>conftest.err)
12012   cat conftest.err >&5
12013   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12014   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12015   cat conftest.err >&5
12016   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12017   cat conftest.out >&5
12018   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12019     lt_cv_nm_interface="MS dumpbin"
12020   fi
12021   rm -f conftest*
12022 fi
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12024 $as_echo "$lt_cv_nm_interface" >&6; }
12025
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12027 $as_echo_n "checking whether ln -s works... " >&6; }
12028 LN_S=$as_ln_s
12029 if test "$LN_S" = "ln -s"; then
12030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12031 $as_echo "yes" >&6; }
12032 else
12033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12034 $as_echo "no, using $LN_S" >&6; }
12035 fi
12036
12037 # find the maximum length of command line arguments
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12039 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12040 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12041   $as_echo_n "(cached) " >&6
12042 else
12043     i=0
12044   teststring="ABCD"
12045
12046   case $build_os in
12047   msdosdjgpp*)
12048     # On DJGPP, this test can blow up pretty badly due to problems in libc
12049     # (any single argument exceeding 2000 bytes causes a buffer overrun
12050     # during glob expansion).  Even if it were fixed, the result of this
12051     # check would be larger than it should be.
12052     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12053     ;;
12054
12055   gnu*)
12056     # Under GNU Hurd, this test is not required because there is
12057     # no limit to the length of command line arguments.
12058     # Libtool will interpret -1 as no limit whatsoever
12059     lt_cv_sys_max_cmd_len=-1;
12060     ;;
12061
12062   cygwin* | mingw* | cegcc*)
12063     # On Win9x/ME, this test blows up -- it succeeds, but takes
12064     # about 5 minutes as the teststring grows exponentially.
12065     # Worse, since 9x/ME are not pre-emptively multitasking,
12066     # you end up with a "frozen" computer, even though with patience
12067     # the test eventually succeeds (with a max line length of 256k).
12068     # Instead, let's just punt: use the minimum linelength reported by
12069     # all of the supported platforms: 8192 (on NT/2K/XP).
12070     lt_cv_sys_max_cmd_len=8192;
12071     ;;
12072
12073   mint*)
12074     # On MiNT this can take a long time and run out of memory.
12075     lt_cv_sys_max_cmd_len=8192;
12076     ;;
12077
12078   amigaos*)
12079     # On AmigaOS with pdksh, this test takes hours, literally.
12080     # So we just punt and use a minimum line length of 8192.
12081     lt_cv_sys_max_cmd_len=8192;
12082     ;;
12083
12084   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12085     # This has been around since 386BSD, at least.  Likely further.
12086     if test -x /sbin/sysctl; then
12087       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12088     elif test -x /usr/sbin/sysctl; then
12089       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12090     else
12091       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12092     fi
12093     # And add a safety zone
12094     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12095     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12096     ;;
12097
12098   interix*)
12099     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12100     lt_cv_sys_max_cmd_len=196608
12101     ;;
12102
12103   osf*)
12104     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12105     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12106     # nice to cause kernel panics so lets avoid the loop below.
12107     # First set a reasonable default.
12108     lt_cv_sys_max_cmd_len=16384
12109     #
12110     if test -x /sbin/sysconfig; then
12111       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12112         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12113       esac
12114     fi
12115     ;;
12116   sco3.2v5*)
12117     lt_cv_sys_max_cmd_len=102400
12118     ;;
12119   sysv5* | sco5v6* | sysv4.2uw2*)
12120     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12121     if test -n "$kargmax"; then
12122       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
12123     else
12124       lt_cv_sys_max_cmd_len=32768
12125     fi
12126     ;;
12127   *)
12128     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12129     if test -n "$lt_cv_sys_max_cmd_len"; then
12130       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12131       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12132     else
12133       # Make teststring a little bigger before we do anything with it.
12134       # a 1K string should be a reasonable start.
12135       for i in 1 2 3 4 5 6 7 8 ; do
12136         teststring=$teststring$teststring
12137       done
12138       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12139       # If test is not a shell built-in, we'll probably end up computing a
12140       # maximum length that is only half of the actual maximum length, but
12141       # we can't tell.
12142       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12143                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12144               test $i != 17 # 1/2 MB should be enough
12145       do
12146         i=`expr $i + 1`
12147         teststring=$teststring$teststring
12148       done
12149       # Only check the string length outside the loop.
12150       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12151       teststring=
12152       # Add a significant safety factor because C++ compilers can tack on
12153       # massive amounts of additional arguments before passing them to the
12154       # linker.  It appears as though 1/2 is a usable value.
12155       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12156     fi
12157     ;;
12158   esac
12159
12160 fi
12161
12162 if test -n $lt_cv_sys_max_cmd_len ; then
12163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12164 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12165 else
12166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12167 $as_echo "none" >&6; }
12168 fi
12169 max_cmd_len=$lt_cv_sys_max_cmd_len
12170
12171
12172
12173
12174
12175
12176 : ${CP="cp -f"}
12177 : ${MV="mv -f"}
12178 : ${RM="rm -f"}
12179
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12181 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12182 # Try some XSI features
12183 xsi_shell=no
12184 ( _lt_dummy="a/b/c"
12185   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12186       = c,a/b,, \
12187     && eval 'test $(( 1 + 1 )) -eq 2 \
12188     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12189   && xsi_shell=yes
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12191 $as_echo "$xsi_shell" >&6; }
12192
12193
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12195 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12196 lt_shell_append=no
12197 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12198     >/dev/null 2>&1 \
12199   && lt_shell_append=yes
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12201 $as_echo "$lt_shell_append" >&6; }
12202
12203
12204 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12205   lt_unset=unset
12206 else
12207   lt_unset=false
12208 fi
12209
12210
12211
12212
12213
12214 # test EBCDIC or ASCII
12215 case `echo X|tr X '\101'` in
12216  A) # ASCII based system
12217     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12218   lt_SP2NL='tr \040 \012'
12219   lt_NL2SP='tr \015\012 \040\040'
12220   ;;
12221  *) # EBCDIC based system
12222   lt_SP2NL='tr \100 \n'
12223   lt_NL2SP='tr \r\n \100\100'
12224   ;;
12225 esac
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12236 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12237 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12238   $as_echo_n "(cached) " >&6
12239 else
12240   lt_cv_ld_reload_flag='-r'
12241 fi
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12243 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12244 reload_flag=$lt_cv_ld_reload_flag
12245 case $reload_flag in
12246 "" | " "*) ;;
12247 *) reload_flag=" $reload_flag" ;;
12248 esac
12249 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12250 case $host_os in
12251   darwin*)
12252     if test "$GCC" = yes; then
12253       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12254     else
12255       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12256     fi
12257     ;;
12258 esac
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268 if test -n "$ac_tool_prefix"; then
12269   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12270 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12272 $as_echo_n "checking for $ac_word... " >&6; }
12273 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12274   $as_echo_n "(cached) " >&6
12275 else
12276   if test -n "$OBJDUMP"; then
12277   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12278 else
12279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280 for as_dir in $PATH
12281 do
12282   IFS=$as_save_IFS
12283   test -z "$as_dir" && as_dir=.
12284     for ac_exec_ext in '' $ac_executable_extensions; do
12285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12286     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12288     break 2
12289   fi
12290 done
12291   done
12292 IFS=$as_save_IFS
12293
12294 fi
12295 fi
12296 OBJDUMP=$ac_cv_prog_OBJDUMP
12297 if test -n "$OBJDUMP"; then
12298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12299 $as_echo "$OBJDUMP" >&6; }
12300 else
12301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302 $as_echo "no" >&6; }
12303 fi
12304
12305
12306 fi
12307 if test -z "$ac_cv_prog_OBJDUMP"; then
12308   ac_ct_OBJDUMP=$OBJDUMP
12309   # Extract the first word of "objdump", so it can be a program name with args.
12310 set dummy objdump; ac_word=$2
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12312 $as_echo_n "checking for $ac_word... " >&6; }
12313 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12314   $as_echo_n "(cached) " >&6
12315 else
12316   if test -n "$ac_ct_OBJDUMP"; then
12317   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12318 else
12319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12320 for as_dir in $PATH
12321 do
12322   IFS=$as_save_IFS
12323   test -z "$as_dir" && as_dir=.
12324     for ac_exec_ext in '' $ac_executable_extensions; do
12325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12326     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12328     break 2
12329   fi
12330 done
12331   done
12332 IFS=$as_save_IFS
12333
12334 fi
12335 fi
12336 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12337 if test -n "$ac_ct_OBJDUMP"; then
12338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12339 $as_echo "$ac_ct_OBJDUMP" >&6; }
12340 else
12341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12342 $as_echo "no" >&6; }
12343 fi
12344
12345   if test "x$ac_ct_OBJDUMP" = x; then
12346     OBJDUMP="false"
12347   else
12348     case $cross_compiling:$ac_tool_warned in
12349 yes:)
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12352 ac_tool_warned=yes ;;
12353 esac
12354     OBJDUMP=$ac_ct_OBJDUMP
12355   fi
12356 else
12357   OBJDUMP="$ac_cv_prog_OBJDUMP"
12358 fi
12359
12360 test -z "$OBJDUMP" && OBJDUMP=objdump
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12371 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12372 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12373   $as_echo_n "(cached) " >&6
12374 else
12375   lt_cv_file_magic_cmd='$MAGIC_CMD'
12376 lt_cv_file_magic_test_file=
12377 lt_cv_deplibs_check_method='unknown'
12378 # Need to set the preceding variable on all platforms that support
12379 # interlibrary dependencies.
12380 # 'none' -- dependencies not supported.
12381 # `unknown' -- same as none, but documents that we really don't know.
12382 # 'pass_all' -- all dependencies passed with no checks.
12383 # 'test_compile' -- check by making test program.
12384 # 'file_magic [[regex]]' -- check by looking for files in library path
12385 # which responds to the $file_magic_cmd with a given extended regex.
12386 # If you have `file' or equivalent on your system and you're not sure
12387 # whether `pass_all' will *always* work, you probably want this one.
12388
12389 case $host_os in
12390 aix[4-9]*)
12391   lt_cv_deplibs_check_method=pass_all
12392   ;;
12393
12394 beos*)
12395   lt_cv_deplibs_check_method=pass_all
12396   ;;
12397
12398 bsdi[45]*)
12399   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12400   lt_cv_file_magic_cmd='/usr/bin/file -L'
12401   lt_cv_file_magic_test_file=/shlib/libc.so
12402   ;;
12403
12404 cygwin*)
12405   # func_win32_libid is a shell function defined in ltmain.sh
12406   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12407   lt_cv_file_magic_cmd='func_win32_libid'
12408   ;;
12409
12410 mingw* | pw32*)
12411   # Base MSYS/MinGW do not provide the 'file' command needed by
12412   # func_win32_libid shell function, so use a weaker test based on 'objdump',
12413   # unless we find 'file', for example because we are cross-compiling.
12414   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12415   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12416     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12417     lt_cv_file_magic_cmd='func_win32_libid'
12418   else
12419     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12420     lt_cv_file_magic_cmd='$OBJDUMP -f'
12421   fi
12422   ;;
12423
12424 cegcc*)
12425   # use the weaker test based on 'objdump'. See mingw*.
12426   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12427   lt_cv_file_magic_cmd='$OBJDUMP -f'
12428   ;;
12429
12430 darwin* | rhapsody*)
12431   lt_cv_deplibs_check_method=pass_all
12432   ;;
12433
12434 freebsd* | dragonfly*)
12435   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12436     case $host_cpu in
12437     i*86 )
12438       # Not sure whether the presence of OpenBSD here was a mistake.
12439       # Let's accept both of them until this is cleared up.
12440       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12441       lt_cv_file_magic_cmd=/usr/bin/file
12442       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12443       ;;
12444     esac
12445   else
12446     lt_cv_deplibs_check_method=pass_all
12447   fi
12448   ;;
12449
12450 gnu*)
12451   lt_cv_deplibs_check_method=pass_all
12452   ;;
12453
12454 haiku*)
12455   lt_cv_deplibs_check_method=pass_all
12456   ;;
12457
12458 hpux10.20* | hpux11*)
12459   lt_cv_file_magic_cmd=/usr/bin/file
12460   case $host_cpu in
12461   ia64*)
12462     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12463     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12464     ;;
12465   hppa*64*)
12466     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]'
12467     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12468     ;;
12469   *)
12470     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12471     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12472     ;;
12473   esac
12474   ;;
12475
12476 interix[3-9]*)
12477   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12478   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12479   ;;
12480
12481 irix5* | irix6* | nonstopux*)
12482   case $LD in
12483   *-32|*"-32 ") libmagic=32-bit;;
12484   *-n32|*"-n32 ") libmagic=N32;;
12485   *-64|*"-64 ") libmagic=64-bit;;
12486   *) libmagic=never-match;;
12487   esac
12488   lt_cv_deplibs_check_method=pass_all
12489   ;;
12490
12491 # This must be Linux ELF.
12492 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12493   lt_cv_deplibs_check_method=pass_all
12494   ;;
12495
12496 netbsd*)
12497   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12498     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12499   else
12500     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12501   fi
12502   ;;
12503
12504 newos6*)
12505   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12506   lt_cv_file_magic_cmd=/usr/bin/file
12507   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12508   ;;
12509
12510 *nto* | *qnx*)
12511   lt_cv_deplibs_check_method=pass_all
12512   ;;
12513
12514 openbsd*)
12515   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12516     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12517   else
12518     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12519   fi
12520   ;;
12521
12522 osf3* | osf4* | osf5*)
12523   lt_cv_deplibs_check_method=pass_all
12524   ;;
12525
12526 rdos*)
12527   lt_cv_deplibs_check_method=pass_all
12528   ;;
12529
12530 solaris*)
12531   lt_cv_deplibs_check_method=pass_all
12532   ;;
12533
12534 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12535   lt_cv_deplibs_check_method=pass_all
12536   ;;
12537
12538 sysv4 | sysv4.3*)
12539   case $host_vendor in
12540   motorola)
12541     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]'
12542     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12543     ;;
12544   ncr)
12545     lt_cv_deplibs_check_method=pass_all
12546     ;;
12547   sequent)
12548     lt_cv_file_magic_cmd='/bin/file'
12549     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12550     ;;
12551   sni)
12552     lt_cv_file_magic_cmd='/bin/file'
12553     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12554     lt_cv_file_magic_test_file=/lib/libc.so
12555     ;;
12556   siemens)
12557     lt_cv_deplibs_check_method=pass_all
12558     ;;
12559   pc)
12560     lt_cv_deplibs_check_method=pass_all
12561     ;;
12562   esac
12563   ;;
12564
12565 tpf*)
12566   lt_cv_deplibs_check_method=pass_all
12567   ;;
12568 esac
12569
12570 fi
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12572 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12573 file_magic_cmd=$lt_cv_file_magic_cmd
12574 deplibs_check_method=$lt_cv_deplibs_check_method
12575 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588 if test -n "$ac_tool_prefix"; then
12589   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12590 set dummy ${ac_tool_prefix}ar; ac_word=$2
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12592 $as_echo_n "checking for $ac_word... " >&6; }
12593 if test "${ac_cv_prog_AR+set}" = set; then :
12594   $as_echo_n "(cached) " >&6
12595 else
12596   if test -n "$AR"; then
12597   ac_cv_prog_AR="$AR" # Let the user override the test.
12598 else
12599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12600 for as_dir in $PATH
12601 do
12602   IFS=$as_save_IFS
12603   test -z "$as_dir" && as_dir=.
12604     for ac_exec_ext in '' $ac_executable_extensions; do
12605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12606     ac_cv_prog_AR="${ac_tool_prefix}ar"
12607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12608     break 2
12609   fi
12610 done
12611   done
12612 IFS=$as_save_IFS
12613
12614 fi
12615 fi
12616 AR=$ac_cv_prog_AR
12617 if test -n "$AR"; then
12618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12619 $as_echo "$AR" >&6; }
12620 else
12621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622 $as_echo "no" >&6; }
12623 fi
12624
12625
12626 fi
12627 if test -z "$ac_cv_prog_AR"; then
12628   ac_ct_AR=$AR
12629   # Extract the first word of "ar", so it can be a program name with args.
12630 set dummy ar; ac_word=$2
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12632 $as_echo_n "checking for $ac_word... " >&6; }
12633 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12634   $as_echo_n "(cached) " >&6
12635 else
12636   if test -n "$ac_ct_AR"; then
12637   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12638 else
12639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12640 for as_dir in $PATH
12641 do
12642   IFS=$as_save_IFS
12643   test -z "$as_dir" && as_dir=.
12644     for ac_exec_ext in '' $ac_executable_extensions; do
12645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12646     ac_cv_prog_ac_ct_AR="ar"
12647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12648     break 2
12649   fi
12650 done
12651   done
12652 IFS=$as_save_IFS
12653
12654 fi
12655 fi
12656 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12657 if test -n "$ac_ct_AR"; then
12658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12659 $as_echo "$ac_ct_AR" >&6; }
12660 else
12661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12662 $as_echo "no" >&6; }
12663 fi
12664
12665   if test "x$ac_ct_AR" = x; then
12666     AR="false"
12667   else
12668     case $cross_compiling:$ac_tool_warned in
12669 yes:)
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12672 ac_tool_warned=yes ;;
12673 esac
12674     AR=$ac_ct_AR
12675   fi
12676 else
12677   AR="$ac_cv_prog_AR"
12678 fi
12679
12680 test -z "$AR" && AR=ar
12681 test -z "$AR_FLAGS" && AR_FLAGS=cru
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693 if test -n "$ac_tool_prefix"; then
12694   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12695 set dummy ${ac_tool_prefix}strip; ac_word=$2
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12697 $as_echo_n "checking for $ac_word... " >&6; }
12698 if test "${ac_cv_prog_STRIP+set}" = set; then :
12699   $as_echo_n "(cached) " >&6
12700 else
12701   if test -n "$STRIP"; then
12702   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12703 else
12704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12705 for as_dir in $PATH
12706 do
12707   IFS=$as_save_IFS
12708   test -z "$as_dir" && as_dir=.
12709     for ac_exec_ext in '' $ac_executable_extensions; do
12710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12711     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12713     break 2
12714   fi
12715 done
12716   done
12717 IFS=$as_save_IFS
12718
12719 fi
12720 fi
12721 STRIP=$ac_cv_prog_STRIP
12722 if test -n "$STRIP"; then
12723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12724 $as_echo "$STRIP" >&6; }
12725 else
12726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12727 $as_echo "no" >&6; }
12728 fi
12729
12730
12731 fi
12732 if test -z "$ac_cv_prog_STRIP"; then
12733   ac_ct_STRIP=$STRIP
12734   # Extract the first word of "strip", so it can be a program name with args.
12735 set dummy strip; ac_word=$2
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12737 $as_echo_n "checking for $ac_word... " >&6; }
12738 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12739   $as_echo_n "(cached) " >&6
12740 else
12741   if test -n "$ac_ct_STRIP"; then
12742   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12743 else
12744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12745 for as_dir in $PATH
12746 do
12747   IFS=$as_save_IFS
12748   test -z "$as_dir" && as_dir=.
12749     for ac_exec_ext in '' $ac_executable_extensions; do
12750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12751     ac_cv_prog_ac_ct_STRIP="strip"
12752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12753     break 2
12754   fi
12755 done
12756   done
12757 IFS=$as_save_IFS
12758
12759 fi
12760 fi
12761 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12762 if test -n "$ac_ct_STRIP"; then
12763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12764 $as_echo "$ac_ct_STRIP" >&6; }
12765 else
12766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12767 $as_echo "no" >&6; }
12768 fi
12769
12770   if test "x$ac_ct_STRIP" = x; then
12771     STRIP=":"
12772   else
12773     case $cross_compiling:$ac_tool_warned in
12774 yes:)
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12777 ac_tool_warned=yes ;;
12778 esac
12779     STRIP=$ac_ct_STRIP
12780   fi
12781 else
12782   STRIP="$ac_cv_prog_STRIP"
12783 fi
12784
12785 test -z "$STRIP" && STRIP=:
12786
12787
12788
12789
12790
12791
12792 if test -n "$ac_tool_prefix"; then
12793   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12794 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12796 $as_echo_n "checking for $ac_word... " >&6; }
12797 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12798   $as_echo_n "(cached) " >&6
12799 else
12800   if test -n "$RANLIB"; then
12801   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12802 else
12803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12804 for as_dir in $PATH
12805 do
12806   IFS=$as_save_IFS
12807   test -z "$as_dir" && as_dir=.
12808     for ac_exec_ext in '' $ac_executable_extensions; do
12809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12810     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12812     break 2
12813   fi
12814 done
12815   done
12816 IFS=$as_save_IFS
12817
12818 fi
12819 fi
12820 RANLIB=$ac_cv_prog_RANLIB
12821 if test -n "$RANLIB"; then
12822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12823 $as_echo "$RANLIB" >&6; }
12824 else
12825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12826 $as_echo "no" >&6; }
12827 fi
12828
12829
12830 fi
12831 if test -z "$ac_cv_prog_RANLIB"; then
12832   ac_ct_RANLIB=$RANLIB
12833   # Extract the first word of "ranlib", so it can be a program name with args.
12834 set dummy ranlib; ac_word=$2
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12836 $as_echo_n "checking for $ac_word... " >&6; }
12837 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12838   $as_echo_n "(cached) " >&6
12839 else
12840   if test -n "$ac_ct_RANLIB"; then
12841   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12842 else
12843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12844 for as_dir in $PATH
12845 do
12846   IFS=$as_save_IFS
12847   test -z "$as_dir" && as_dir=.
12848     for ac_exec_ext in '' $ac_executable_extensions; do
12849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12850     ac_cv_prog_ac_ct_RANLIB="ranlib"
12851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12852     break 2
12853   fi
12854 done
12855   done
12856 IFS=$as_save_IFS
12857
12858 fi
12859 fi
12860 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12861 if test -n "$ac_ct_RANLIB"; then
12862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12863 $as_echo "$ac_ct_RANLIB" >&6; }
12864 else
12865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12866 $as_echo "no" >&6; }
12867 fi
12868
12869   if test "x$ac_ct_RANLIB" = x; then
12870     RANLIB=":"
12871   else
12872     case $cross_compiling:$ac_tool_warned in
12873 yes:)
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12876 ac_tool_warned=yes ;;
12877 esac
12878     RANLIB=$ac_ct_RANLIB
12879   fi
12880 else
12881   RANLIB="$ac_cv_prog_RANLIB"
12882 fi
12883
12884 test -z "$RANLIB" && RANLIB=:
12885
12886
12887
12888
12889
12890
12891 # Determine commands to create old-style static archives.
12892 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12893 old_postinstall_cmds='chmod 644 $oldlib'
12894 old_postuninstall_cmds=
12895
12896 if test -n "$RANLIB"; then
12897   case $host_os in
12898   openbsd*)
12899     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12900     ;;
12901   *)
12902     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12903     ;;
12904   esac
12905   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12906 fi
12907
12908 case $host_os in
12909   darwin*)
12910     lock_old_archive_extraction=yes ;;
12911   *)
12912     lock_old_archive_extraction=no ;;
12913 esac
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953 # If no C compiler was specified, use CC.
12954 LTCC=${LTCC-"$CC"}
12955
12956 # If no C compiler flags were specified, use CFLAGS.
12957 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12958
12959 # Allow CC to be a program name with arguments.
12960 compiler=$CC
12961
12962
12963 # Check for command to grab the raw symbol name followed by C symbol from nm.
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12965 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12966 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12967   $as_echo_n "(cached) " >&6
12968 else
12969
12970 # These are sane defaults that work on at least a few old systems.
12971 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12972
12973 # Character class describing NM global symbol codes.
12974 symcode='[BCDEGRST]'
12975
12976 # Regexp to match symbols that can be accessed directly from C.
12977 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12978
12979 # Define system-specific variables.
12980 case $host_os in
12981 aix*)
12982   symcode='[BCDT]'
12983   ;;
12984 cygwin* | mingw* | pw32* | cegcc*)
12985   symcode='[ABCDGISTW]'
12986   ;;
12987 hpux*)
12988   if test "$host_cpu" = ia64; then
12989     symcode='[ABCDEGRST]'
12990   fi
12991   ;;
12992 irix* | nonstopux*)
12993   symcode='[BCDEGRST]'
12994   ;;
12995 osf*)
12996   symcode='[BCDEGQRST]'
12997   ;;
12998 solaris*)
12999   symcode='[BDRT]'
13000   ;;
13001 sco3.2v5*)
13002   symcode='[DT]'
13003   ;;
13004 sysv4.2uw2*)
13005   symcode='[DT]'
13006   ;;
13007 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13008   symcode='[ABDT]'
13009   ;;
13010 sysv4)
13011   symcode='[DFNSTU]'
13012   ;;
13013 esac
13014
13015 # If we're using GNU nm, then use its standard symbol codes.
13016 case `$NM -V 2>&1` in
13017 *GNU* | *'with BFD'*)
13018   symcode='[ABCDGIRSTW]' ;;
13019 esac
13020
13021 # Transform an extracted symbol line into a proper C declaration.
13022 # Some systems (esp. on ia64) link data and code symbols differently,
13023 # so use this general approach.
13024 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13025
13026 # Transform an extracted symbol line into symbol name and symbol address
13027 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13028 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'"
13029
13030 # Handle CRLF in mingw tool chain
13031 opt_cr=
13032 case $build_os in
13033 mingw*)
13034   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13035   ;;
13036 esac
13037
13038 # Try without a prefix underscore, then with it.
13039 for ac_symprfx in "" "_"; do
13040
13041   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13042   symxfrm="\\1 $ac_symprfx\\2 \\2"
13043
13044   # Write the raw and C identifiers.
13045   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13046     # Fake it for dumpbin and say T for any non-static function
13047     # and D for any global variable.
13048     # Also find C++ and __fastcall symbols from MSVC++,
13049     # which start with @ or ?.
13050     lt_cv_sys_global_symbol_pipe="$AWK '"\
13051 "     {last_section=section; section=\$ 3};"\
13052 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13053 "     \$ 0!~/External *\|/{next};"\
13054 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13055 "     {if(hide[section]) next};"\
13056 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13057 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13058 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13059 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13060 "     ' prfx=^$ac_symprfx"
13061   else
13062     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13063   fi
13064
13065   # Check to see that the pipe works correctly.
13066   pipe_works=no
13067
13068   rm -f conftest*
13069   cat > conftest.$ac_ext <<_LT_EOF
13070 #ifdef __cplusplus
13071 extern "C" {
13072 #endif
13073 char nm_test_var;
13074 void nm_test_func(void);
13075 void nm_test_func(void){}
13076 #ifdef __cplusplus
13077 }
13078 #endif
13079 int main(){nm_test_var='a';nm_test_func();return(0);}
13080 _LT_EOF
13081
13082   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13083   (eval $ac_compile) 2>&5
13084   ac_status=$?
13085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13086   test $ac_status = 0; }; then
13087     # Now try to grab the symbols.
13088     nlist=conftest.nm
13089     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13090   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13091   ac_status=$?
13092   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13093   test $ac_status = 0; } && test -s "$nlist"; then
13094       # Try sorting and uniquifying the output.
13095       if sort "$nlist" | uniq > "$nlist"T; then
13096         mv -f "$nlist"T "$nlist"
13097       else
13098         rm -f "$nlist"T
13099       fi
13100
13101       # Make sure that we snagged all the symbols we need.
13102       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13103         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13104           cat <<_LT_EOF > conftest.$ac_ext
13105 #ifdef __cplusplus
13106 extern "C" {
13107 #endif
13108
13109 _LT_EOF
13110           # Now generate the symbol file.
13111           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13112
13113           cat <<_LT_EOF >> conftest.$ac_ext
13114
13115 /* The mapping between symbol names and symbols.  */
13116 const struct {
13117   const char *name;
13118   void       *address;
13119 }
13120 lt__PROGRAM__LTX_preloaded_symbols[] =
13121 {
13122   { "@PROGRAM@", (void *) 0 },
13123 _LT_EOF
13124           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13125           cat <<\_LT_EOF >> conftest.$ac_ext
13126   {0, (void *) 0}
13127 };
13128
13129 /* This works around a problem in FreeBSD linker */
13130 #ifdef FREEBSD_WORKAROUND
13131 static const void *lt_preloaded_setup() {
13132   return lt__PROGRAM__LTX_preloaded_symbols;
13133 }
13134 #endif
13135
13136 #ifdef __cplusplus
13137 }
13138 #endif
13139 _LT_EOF
13140           # Now try linking the two files.
13141           mv conftest.$ac_objext conftstm.$ac_objext
13142           lt_save_LIBS="$LIBS"
13143           lt_save_CFLAGS="$CFLAGS"
13144           LIBS="conftstm.$ac_objext"
13145           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13146           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13147   (eval $ac_link) 2>&5
13148   ac_status=$?
13149   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13150   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13151             pipe_works=yes
13152           fi
13153           LIBS="$lt_save_LIBS"
13154           CFLAGS="$lt_save_CFLAGS"
13155         else
13156           echo "cannot find nm_test_func in $nlist" >&5
13157         fi
13158       else
13159         echo "cannot find nm_test_var in $nlist" >&5
13160       fi
13161     else
13162       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13163     fi
13164   else
13165     echo "$progname: failed program was:" >&5
13166     cat conftest.$ac_ext >&5
13167   fi
13168   rm -rf conftest* conftst*
13169
13170   # Do not use the global_symbol_pipe unless it works.
13171   if test "$pipe_works" = yes; then
13172     break
13173   else
13174     lt_cv_sys_global_symbol_pipe=
13175   fi
13176 done
13177
13178 fi
13179
13180 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13181   lt_cv_sys_global_symbol_to_cdecl=
13182 fi
13183 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13185 $as_echo "failed" >&6; }
13186 else
13187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13188 $as_echo "ok" >&6; }
13189 fi
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212 # Check whether --enable-libtool-lock was given.
13213 if test "${enable_libtool_lock+set}" = set; then :
13214   enableval=$enable_libtool_lock;
13215 fi
13216
13217 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13218
13219 # Some flags need to be propagated to the compiler or linker for good
13220 # libtool support.
13221 case $host in
13222 ia64-*-hpux*)
13223   # Find out which ABI we are using.
13224   echo 'int i;' > conftest.$ac_ext
13225   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13226   (eval $ac_compile) 2>&5
13227   ac_status=$?
13228   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13229   test $ac_status = 0; }; then
13230     case `/usr/bin/file conftest.$ac_objext` in
13231       *ELF-32*)
13232         HPUX_IA64_MODE="32"
13233         ;;
13234       *ELF-64*)
13235         HPUX_IA64_MODE="64"
13236         ;;
13237     esac
13238   fi
13239   rm -rf conftest*
13240   ;;
13241 *-*-irix6*)
13242   # Find out which ABI we are using.
13243   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13244   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13245   (eval $ac_compile) 2>&5
13246   ac_status=$?
13247   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13248   test $ac_status = 0; }; then
13249     if test "$lt_cv_prog_gnu_ld" = yes; then
13250       case `/usr/bin/file conftest.$ac_objext` in
13251         *32-bit*)
13252           LD="${LD-ld} -melf32bsmip"
13253           ;;
13254         *N32*)
13255           LD="${LD-ld} -melf32bmipn32"
13256           ;;
13257         *64-bit*)
13258           LD="${LD-ld} -melf64bmip"
13259         ;;
13260       esac
13261     else
13262       case `/usr/bin/file conftest.$ac_objext` in
13263         *32-bit*)
13264           LD="${LD-ld} -32"
13265           ;;
13266         *N32*)
13267           LD="${LD-ld} -n32"
13268           ;;
13269         *64-bit*)
13270           LD="${LD-ld} -64"
13271           ;;
13272       esac
13273     fi
13274   fi
13275   rm -rf conftest*
13276   ;;
13277
13278 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13279 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13280   # Find out which ABI we are using.
13281   echo 'int i;' > conftest.$ac_ext
13282   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13283   (eval $ac_compile) 2>&5
13284   ac_status=$?
13285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13286   test $ac_status = 0; }; then
13287     case `/usr/bin/file conftest.o` in
13288       *32-bit*)
13289         case $host in
13290           x86_64-*kfreebsd*-gnu)
13291             LD="${LD-ld} -m elf_i386_fbsd"
13292             ;;
13293           x86_64-*linux*)
13294             LD="${LD-ld} -m elf_i386"
13295             ;;
13296           ppc64-*linux*|powerpc64-*linux*)
13297             LD="${LD-ld} -m elf32ppclinux"
13298             ;;
13299           s390x-*linux*)
13300             LD="${LD-ld} -m elf_s390"
13301             ;;
13302           sparc64-*linux*)
13303             LD="${LD-ld} -m elf32_sparc"
13304             ;;
13305         esac
13306         ;;
13307       *64-bit*)
13308         case $host in
13309           x86_64-*kfreebsd*-gnu)
13310             LD="${LD-ld} -m elf_x86_64_fbsd"
13311             ;;
13312           x86_64-*linux*)
13313             LD="${LD-ld} -m elf_x86_64"
13314             ;;
13315           ppc*-*linux*|powerpc*-*linux*)
13316             LD="${LD-ld} -m elf64ppc"
13317             ;;
13318           s390*-*linux*|s390*-*tpf*)
13319             LD="${LD-ld} -m elf64_s390"
13320             ;;
13321           sparc*-*linux*)
13322             LD="${LD-ld} -m elf64_sparc"
13323             ;;
13324         esac
13325         ;;
13326     esac
13327   fi
13328   rm -rf conftest*
13329   ;;
13330
13331 *-*-sco3.2v5*)
13332   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13333   SAVE_CFLAGS="$CFLAGS"
13334   CFLAGS="$CFLAGS -belf"
13335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13336 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13337 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13338   $as_echo_n "(cached) " >&6
13339 else
13340   ac_ext=c
13341 ac_cpp='$CPP $CPPFLAGS'
13342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13345
13346      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h.  */
13348
13349 int
13350 main ()
13351 {
13352
13353   ;
13354   return 0;
13355 }
13356 _ACEOF
13357 if ac_fn_c_try_link "$LINENO"; then :
13358   lt_cv_cc_needs_belf=yes
13359 else
13360   lt_cv_cc_needs_belf=no
13361 fi
13362 rm -f core conftest.err conftest.$ac_objext \
13363     conftest$ac_exeext conftest.$ac_ext
13364      ac_ext=c
13365 ac_cpp='$CPP $CPPFLAGS'
13366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13369
13370 fi
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13372 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13373   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13374     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13375     CFLAGS="$SAVE_CFLAGS"
13376   fi
13377   ;;
13378 sparc*-*solaris*)
13379   # Find out which ABI we are using.
13380   echo 'int i;' > conftest.$ac_ext
13381   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13382   (eval $ac_compile) 2>&5
13383   ac_status=$?
13384   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13385   test $ac_status = 0; }; then
13386     case `/usr/bin/file conftest.o` in
13387     *64-bit*)
13388       case $lt_cv_prog_gnu_ld in
13389       yes*) LD="${LD-ld} -m elf64_sparc" ;;
13390       *)
13391         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13392           LD="${LD-ld} -64"
13393         fi
13394         ;;
13395       esac
13396       ;;
13397     esac
13398   fi
13399   rm -rf conftest*
13400   ;;
13401 esac
13402
13403 need_locks="$enable_libtool_lock"
13404
13405
13406   case $host_os in
13407     rhapsody* | darwin*)
13408     if test -n "$ac_tool_prefix"; then
13409   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13410 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13412 $as_echo_n "checking for $ac_word... " >&6; }
13413 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13414   $as_echo_n "(cached) " >&6
13415 else
13416   if test -n "$DSYMUTIL"; then
13417   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13418 else
13419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13420 for as_dir in $PATH
13421 do
13422   IFS=$as_save_IFS
13423   test -z "$as_dir" && as_dir=.
13424     for ac_exec_ext in '' $ac_executable_extensions; do
13425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13426     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13428     break 2
13429   fi
13430 done
13431   done
13432 IFS=$as_save_IFS
13433
13434 fi
13435 fi
13436 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13437 if test -n "$DSYMUTIL"; then
13438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13439 $as_echo "$DSYMUTIL" >&6; }
13440 else
13441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13442 $as_echo "no" >&6; }
13443 fi
13444
13445
13446 fi
13447 if test -z "$ac_cv_prog_DSYMUTIL"; then
13448   ac_ct_DSYMUTIL=$DSYMUTIL
13449   # Extract the first word of "dsymutil", so it can be a program name with args.
13450 set dummy dsymutil; ac_word=$2
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13452 $as_echo_n "checking for $ac_word... " >&6; }
13453 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13454   $as_echo_n "(cached) " >&6
13455 else
13456   if test -n "$ac_ct_DSYMUTIL"; then
13457   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13458 else
13459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13460 for as_dir in $PATH
13461 do
13462   IFS=$as_save_IFS
13463   test -z "$as_dir" && as_dir=.
13464     for ac_exec_ext in '' $ac_executable_extensions; do
13465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13466     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13468     break 2
13469   fi
13470 done
13471   done
13472 IFS=$as_save_IFS
13473
13474 fi
13475 fi
13476 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13477 if test -n "$ac_ct_DSYMUTIL"; then
13478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13479 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13480 else
13481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13482 $as_echo "no" >&6; }
13483 fi
13484
13485   if test "x$ac_ct_DSYMUTIL" = x; then
13486     DSYMUTIL=":"
13487   else
13488     case $cross_compiling:$ac_tool_warned in
13489 yes:)
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13492 ac_tool_warned=yes ;;
13493 esac
13494     DSYMUTIL=$ac_ct_DSYMUTIL
13495   fi
13496 else
13497   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13498 fi
13499
13500     if test -n "$ac_tool_prefix"; then
13501   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13502 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13504 $as_echo_n "checking for $ac_word... " >&6; }
13505 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13506   $as_echo_n "(cached) " >&6
13507 else
13508   if test -n "$NMEDIT"; then
13509   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13510 else
13511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13512 for as_dir in $PATH
13513 do
13514   IFS=$as_save_IFS
13515   test -z "$as_dir" && as_dir=.
13516     for ac_exec_ext in '' $ac_executable_extensions; do
13517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13518     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13520     break 2
13521   fi
13522 done
13523   done
13524 IFS=$as_save_IFS
13525
13526 fi
13527 fi
13528 NMEDIT=$ac_cv_prog_NMEDIT
13529 if test -n "$NMEDIT"; then
13530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13531 $as_echo "$NMEDIT" >&6; }
13532 else
13533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13534 $as_echo "no" >&6; }
13535 fi
13536
13537
13538 fi
13539 if test -z "$ac_cv_prog_NMEDIT"; then
13540   ac_ct_NMEDIT=$NMEDIT
13541   # Extract the first word of "nmedit", so it can be a program name with args.
13542 set dummy nmedit; ac_word=$2
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13544 $as_echo_n "checking for $ac_word... " >&6; }
13545 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13546   $as_echo_n "(cached) " >&6
13547 else
13548   if test -n "$ac_ct_NMEDIT"; then
13549   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13550 else
13551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13552 for as_dir in $PATH
13553 do
13554   IFS=$as_save_IFS
13555   test -z "$as_dir" && as_dir=.
13556     for ac_exec_ext in '' $ac_executable_extensions; do
13557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13558     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13560     break 2
13561   fi
13562 done
13563   done
13564 IFS=$as_save_IFS
13565
13566 fi
13567 fi
13568 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13569 if test -n "$ac_ct_NMEDIT"; then
13570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13571 $as_echo "$ac_ct_NMEDIT" >&6; }
13572 else
13573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13574 $as_echo "no" >&6; }
13575 fi
13576
13577   if test "x$ac_ct_NMEDIT" = x; then
13578     NMEDIT=":"
13579   else
13580     case $cross_compiling:$ac_tool_warned in
13581 yes:)
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13584 ac_tool_warned=yes ;;
13585 esac
13586     NMEDIT=$ac_ct_NMEDIT
13587   fi
13588 else
13589   NMEDIT="$ac_cv_prog_NMEDIT"
13590 fi
13591
13592     if test -n "$ac_tool_prefix"; then
13593   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13594 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13596 $as_echo_n "checking for $ac_word... " >&6; }
13597 if test "${ac_cv_prog_LIPO+set}" = set; then :
13598   $as_echo_n "(cached) " >&6
13599 else
13600   if test -n "$LIPO"; then
13601   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13602 else
13603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13604 for as_dir in $PATH
13605 do
13606   IFS=$as_save_IFS
13607   test -z "$as_dir" && as_dir=.
13608     for ac_exec_ext in '' $ac_executable_extensions; do
13609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13610     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13612     break 2
13613   fi
13614 done
13615   done
13616 IFS=$as_save_IFS
13617
13618 fi
13619 fi
13620 LIPO=$ac_cv_prog_LIPO
13621 if test -n "$LIPO"; then
13622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13623 $as_echo "$LIPO" >&6; }
13624 else
13625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13626 $as_echo "no" >&6; }
13627 fi
13628
13629
13630 fi
13631 if test -z "$ac_cv_prog_LIPO"; then
13632   ac_ct_LIPO=$LIPO
13633   # Extract the first word of "lipo", so it can be a program name with args.
13634 set dummy lipo; ac_word=$2
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13636 $as_echo_n "checking for $ac_word... " >&6; }
13637 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13638   $as_echo_n "(cached) " >&6
13639 else
13640   if test -n "$ac_ct_LIPO"; then
13641   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13642 else
13643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13644 for as_dir in $PATH
13645 do
13646   IFS=$as_save_IFS
13647   test -z "$as_dir" && as_dir=.
13648     for ac_exec_ext in '' $ac_executable_extensions; do
13649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13650     ac_cv_prog_ac_ct_LIPO="lipo"
13651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13652     break 2
13653   fi
13654 done
13655   done
13656 IFS=$as_save_IFS
13657
13658 fi
13659 fi
13660 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13661 if test -n "$ac_ct_LIPO"; then
13662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13663 $as_echo "$ac_ct_LIPO" >&6; }
13664 else
13665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13666 $as_echo "no" >&6; }
13667 fi
13668
13669   if test "x$ac_ct_LIPO" = x; then
13670     LIPO=":"
13671   else
13672     case $cross_compiling:$ac_tool_warned in
13673 yes:)
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13676 ac_tool_warned=yes ;;
13677 esac
13678     LIPO=$ac_ct_LIPO
13679   fi
13680 else
13681   LIPO="$ac_cv_prog_LIPO"
13682 fi
13683
13684     if test -n "$ac_tool_prefix"; then
13685   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13686 set dummy ${ac_tool_prefix}otool; ac_word=$2
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13688 $as_echo_n "checking for $ac_word... " >&6; }
13689 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13690   $as_echo_n "(cached) " >&6
13691 else
13692   if test -n "$OTOOL"; then
13693   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13694 else
13695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13696 for as_dir in $PATH
13697 do
13698   IFS=$as_save_IFS
13699   test -z "$as_dir" && as_dir=.
13700     for ac_exec_ext in '' $ac_executable_extensions; do
13701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13702     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13704     break 2
13705   fi
13706 done
13707   done
13708 IFS=$as_save_IFS
13709
13710 fi
13711 fi
13712 OTOOL=$ac_cv_prog_OTOOL
13713 if test -n "$OTOOL"; then
13714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13715 $as_echo "$OTOOL" >&6; }
13716 else
13717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13718 $as_echo "no" >&6; }
13719 fi
13720
13721
13722 fi
13723 if test -z "$ac_cv_prog_OTOOL"; then
13724   ac_ct_OTOOL=$OTOOL
13725   # Extract the first word of "otool", so it can be a program name with args.
13726 set dummy otool; ac_word=$2
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13728 $as_echo_n "checking for $ac_word... " >&6; }
13729 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13730   $as_echo_n "(cached) " >&6
13731 else
13732   if test -n "$ac_ct_OTOOL"; then
13733   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13734 else
13735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13736 for as_dir in $PATH
13737 do
13738   IFS=$as_save_IFS
13739   test -z "$as_dir" && as_dir=.
13740     for ac_exec_ext in '' $ac_executable_extensions; do
13741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13742     ac_cv_prog_ac_ct_OTOOL="otool"
13743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13744     break 2
13745   fi
13746 done
13747   done
13748 IFS=$as_save_IFS
13749
13750 fi
13751 fi
13752 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13753 if test -n "$ac_ct_OTOOL"; then
13754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13755 $as_echo "$ac_ct_OTOOL" >&6; }
13756 else
13757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13758 $as_echo "no" >&6; }
13759 fi
13760
13761   if test "x$ac_ct_OTOOL" = x; then
13762     OTOOL=":"
13763   else
13764     case $cross_compiling:$ac_tool_warned in
13765 yes:)
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13767 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13768 ac_tool_warned=yes ;;
13769 esac
13770     OTOOL=$ac_ct_OTOOL
13771   fi
13772 else
13773   OTOOL="$ac_cv_prog_OTOOL"
13774 fi
13775
13776     if test -n "$ac_tool_prefix"; then
13777   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13778 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13780 $as_echo_n "checking for $ac_word... " >&6; }
13781 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13782   $as_echo_n "(cached) " >&6
13783 else
13784   if test -n "$OTOOL64"; then
13785   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13786 else
13787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13788 for as_dir in $PATH
13789 do
13790   IFS=$as_save_IFS
13791   test -z "$as_dir" && as_dir=.
13792     for ac_exec_ext in '' $ac_executable_extensions; do
13793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13794     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13796     break 2
13797   fi
13798 done
13799   done
13800 IFS=$as_save_IFS
13801
13802 fi
13803 fi
13804 OTOOL64=$ac_cv_prog_OTOOL64
13805 if test -n "$OTOOL64"; then
13806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13807 $as_echo "$OTOOL64" >&6; }
13808 else
13809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13810 $as_echo "no" >&6; }
13811 fi
13812
13813
13814 fi
13815 if test -z "$ac_cv_prog_OTOOL64"; then
13816   ac_ct_OTOOL64=$OTOOL64
13817   # Extract the first word of "otool64", so it can be a program name with args.
13818 set dummy otool64; ac_word=$2
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13820 $as_echo_n "checking for $ac_word... " >&6; }
13821 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13822   $as_echo_n "(cached) " >&6
13823 else
13824   if test -n "$ac_ct_OTOOL64"; then
13825   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13826 else
13827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13828 for as_dir in $PATH
13829 do
13830   IFS=$as_save_IFS
13831   test -z "$as_dir" && as_dir=.
13832     for ac_exec_ext in '' $ac_executable_extensions; do
13833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13834     ac_cv_prog_ac_ct_OTOOL64="otool64"
13835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13836     break 2
13837   fi
13838 done
13839   done
13840 IFS=$as_save_IFS
13841
13842 fi
13843 fi
13844 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13845 if test -n "$ac_ct_OTOOL64"; then
13846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13847 $as_echo "$ac_ct_OTOOL64" >&6; }
13848 else
13849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13850 $as_echo "no" >&6; }
13851 fi
13852
13853   if test "x$ac_ct_OTOOL64" = x; then
13854     OTOOL64=":"
13855   else
13856     case $cross_compiling:$ac_tool_warned in
13857 yes:)
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13860 ac_tool_warned=yes ;;
13861 esac
13862     OTOOL64=$ac_ct_OTOOL64
13863   fi
13864 else
13865   OTOOL64="$ac_cv_prog_OTOOL64"
13866 fi
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13895 $as_echo_n "checking for -single_module linker flag... " >&6; }
13896 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13897   $as_echo_n "(cached) " >&6
13898 else
13899   lt_cv_apple_cc_single_mod=no
13900       if test -z "${LT_MULTI_MODULE}"; then
13901         # By default we will add the -single_module flag. You can override
13902         # by either setting the environment variable LT_MULTI_MODULE
13903         # non-empty at configure time, or by adding -multi_module to the
13904         # link flags.
13905         rm -rf libconftest.dylib*
13906         echo "int foo(void){return 1;}" > conftest.c
13907         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13908 -dynamiclib -Wl,-single_module conftest.c" >&5
13909         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13910           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13911         _lt_result=$?
13912         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13913           lt_cv_apple_cc_single_mod=yes
13914         else
13915           cat conftest.err >&5
13916         fi
13917         rm -rf libconftest.dylib*
13918         rm -f conftest.*
13919       fi
13920 fi
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13922 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13923     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13924 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13925 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13926   $as_echo_n "(cached) " >&6
13927 else
13928   lt_cv_ld_exported_symbols_list=no
13929       save_LDFLAGS=$LDFLAGS
13930       echo "_main" > conftest.sym
13931       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13932       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h.  */
13934
13935 int
13936 main ()
13937 {
13938
13939   ;
13940   return 0;
13941 }
13942 _ACEOF
13943 if ac_fn_c_try_link "$LINENO"; then :
13944   lt_cv_ld_exported_symbols_list=yes
13945 else
13946   lt_cv_ld_exported_symbols_list=no
13947 fi
13948 rm -f core conftest.err conftest.$ac_objext \
13949     conftest$ac_exeext conftest.$ac_ext
13950         LDFLAGS="$save_LDFLAGS"
13951
13952 fi
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13954 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13955     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13956 $as_echo_n "checking for -force_load linker flag... " >&6; }
13957 if test "${lt_cv_ld_force_load+set}" = set; then :
13958   $as_echo_n "(cached) " >&6
13959 else
13960   lt_cv_ld_force_load=no
13961       cat > conftest.c << _LT_EOF
13962 int forced_loaded() { return 2;}
13963 _LT_EOF
13964       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13965       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13966       echo "$AR cru libconftest.a conftest.o" >&5
13967       $AR cru libconftest.a conftest.o 2>&5
13968       cat > conftest.c << _LT_EOF
13969 int main() { return 0;}
13970 _LT_EOF
13971       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13972       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13973       _lt_result=$?
13974       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13975         lt_cv_ld_force_load=yes
13976       else
13977         cat conftest.err >&5
13978       fi
13979         rm -f conftest.err libconftest.a conftest conftest.c
13980         rm -rf conftest.dSYM
13981
13982 fi
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13984 $as_echo "$lt_cv_ld_force_load" >&6; }
13985     case $host_os in
13986     rhapsody* | darwin1.[012])
13987       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13988     darwin1.*)
13989       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13990     darwin*) # darwin 5.x on
13991       # if running on 10.5 or later, the deployment target defaults
13992       # to the OS version, if on x86, and 10.4, the deployment
13993       # target defaults to 10.4. Don't you love it?
13994       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13995         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13996           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13997         10.[012]*)
13998           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13999         10.*)
14000           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14001       esac
14002     ;;
14003   esac
14004     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14005       _lt_dar_single_mod='$single_module'
14006     fi
14007     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14008       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14009     else
14010       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14011     fi
14012     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14013       _lt_dsymutil='~$DSYMUTIL $lib || :'
14014     else
14015       _lt_dsymutil=
14016     fi
14017     ;;
14018   esac
14019
14020 for ac_header in dlfcn.h
14021 do :
14022   ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14023 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14024   cat >>confdefs.h <<_ACEOF
14025 #define HAVE_DLFCN_H 1
14026 _ACEOF
14027
14028 fi
14029 done
14030
14031
14032
14033
14034
14035 # Set options
14036
14037
14038
14039         enable_dlopen=no
14040
14041
14042   enable_win32_dll=no
14043
14044
14045             # Check whether --enable-shared was given.
14046 if test "${enable_shared+set}" = set; then :
14047   enableval=$enable_shared; p=${PACKAGE-default}
14048     case $enableval in
14049     yes) enable_shared=yes ;;
14050     no) enable_shared=no ;;
14051     *)
14052       enable_shared=no
14053       # Look at the argument we got.  We use all the common list separators.
14054       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14055       for pkg in $enableval; do
14056         IFS="$lt_save_ifs"
14057         if test "X$pkg" = "X$p"; then
14058           enable_shared=yes
14059         fi
14060       done
14061       IFS="$lt_save_ifs"
14062       ;;
14063     esac
14064 else
14065   enable_shared=yes
14066 fi
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076   # Check whether --enable-static was given.
14077 if test "${enable_static+set}" = set; then :
14078   enableval=$enable_static; p=${PACKAGE-default}
14079     case $enableval in
14080     yes) enable_static=yes ;;
14081     no) enable_static=no ;;
14082     *)
14083      enable_static=no
14084       # Look at the argument we got.  We use all the common list separators.
14085       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14086       for pkg in $enableval; do
14087         IFS="$lt_save_ifs"
14088         if test "X$pkg" = "X$p"; then
14089           enable_static=yes
14090         fi
14091       done
14092       IFS="$lt_save_ifs"
14093       ;;
14094     esac
14095 else
14096   enable_static=yes
14097 fi
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108 # Check whether --with-pic was given.
14109 if test "${with_pic+set}" = set; then :
14110   withval=$with_pic; pic_mode="$withval"
14111 else
14112   pic_mode=default
14113 fi
14114
14115
14116 test -z "$pic_mode" && pic_mode=default
14117
14118
14119
14120
14121
14122
14123
14124   # Check whether --enable-fast-install was given.
14125 if test "${enable_fast_install+set}" = set; then :
14126   enableval=$enable_fast_install; p=${PACKAGE-default}
14127     case $enableval in
14128     yes) enable_fast_install=yes ;;
14129     no) enable_fast_install=no ;;
14130     *)
14131       enable_fast_install=no
14132       # Look at the argument we got.  We use all the common list separators.
14133       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14134       for pkg in $enableval; do
14135         IFS="$lt_save_ifs"
14136         if test "X$pkg" = "X$p"; then
14137           enable_fast_install=yes
14138         fi
14139       done
14140       IFS="$lt_save_ifs"
14141       ;;
14142     esac
14143 else
14144   enable_fast_install=yes
14145 fi
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157 # This can be used to rebuild libtool when needed
14158 LIBTOOL_DEPS="$ltmain"
14159
14160 # Always use our own libtool.
14161 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188 test -z "$LN_S" && LN_S="ln -s"
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203 if test -n "${ZSH_VERSION+set}" ; then
14204    setopt NO_GLOB_SUBST
14205 fi
14206
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14208 $as_echo_n "checking for objdir... " >&6; }
14209 if test "${lt_cv_objdir+set}" = set; then :
14210   $as_echo_n "(cached) " >&6
14211 else
14212   rm -f .libs 2>/dev/null
14213 mkdir .libs 2>/dev/null
14214 if test -d .libs; then
14215   lt_cv_objdir=.libs
14216 else
14217   # MS-DOS does not allow filenames that begin with a dot.
14218   lt_cv_objdir=_libs
14219 fi
14220 rmdir .libs 2>/dev/null
14221 fi
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14223 $as_echo "$lt_cv_objdir" >&6; }
14224 objdir=$lt_cv_objdir
14225
14226
14227
14228
14229
14230 cat >>confdefs.h <<_ACEOF
14231 #define LT_OBJDIR "$lt_cv_objdir/"
14232 _ACEOF
14233
14234
14235
14236
14237 case $host_os in
14238 aix3*)
14239   # AIX sometimes has problems with the GCC collect2 program.  For some
14240   # reason, if we set the COLLECT_NAMES environment variable, the problems
14241   # vanish in a puff of smoke.
14242   if test "X${COLLECT_NAMES+set}" != Xset; then
14243     COLLECT_NAMES=
14244     export COLLECT_NAMES
14245   fi
14246   ;;
14247 esac
14248
14249 # Global variables:
14250 ofile=libtool
14251 can_build_shared=yes
14252
14253 # All known linkers require a `.a' archive for static linking (except MSVC,
14254 # which needs '.lib').
14255 libext=a
14256
14257 with_gnu_ld="$lt_cv_prog_gnu_ld"
14258
14259 old_CC="$CC"
14260 old_CFLAGS="$CFLAGS"
14261
14262 # Set sane defaults for various variables
14263 test -z "$CC" && CC=cc
14264 test -z "$LTCC" && LTCC=$CC
14265 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14266 test -z "$LD" && LD=ld
14267 test -z "$ac_objext" && ac_objext=o
14268
14269 for cc_temp in $compiler""; do
14270   case $cc_temp in
14271     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14272     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14273     \-*) ;;
14274     *) break;;
14275   esac
14276 done
14277 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14278
14279
14280 # Only perform the check for file, if the check method requires it
14281 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14282 case $deplibs_check_method in
14283 file_magic*)
14284   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14285     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14286 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14287 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14288   $as_echo_n "(cached) " >&6
14289 else
14290   case $MAGIC_CMD in
14291 [\\/*] |  ?:[\\/]*)
14292   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14293   ;;
14294 *)
14295   lt_save_MAGIC_CMD="$MAGIC_CMD"
14296   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14297   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14298   for ac_dir in $ac_dummy; do
14299     IFS="$lt_save_ifs"
14300     test -z "$ac_dir" && ac_dir=.
14301     if test -f $ac_dir/${ac_tool_prefix}file; then
14302       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14303       if test -n "$file_magic_test_file"; then
14304         case $deplibs_check_method in
14305         "file_magic "*)
14306           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14307           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14308           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14309             $EGREP "$file_magic_regex" > /dev/null; then
14310             :
14311           else
14312             cat <<_LT_EOF 1>&2
14313
14314 *** Warning: the command libtool uses to detect shared libraries,
14315 *** $file_magic_cmd, produces output that libtool cannot recognize.
14316 *** The result is that libtool may fail to recognize shared libraries
14317 *** as such.  This will affect the creation of libtool libraries that
14318 *** depend on shared libraries, but programs linked with such libtool
14319 *** libraries will work regardless of this problem.  Nevertheless, you
14320 *** may want to report the problem to your system manager and/or to
14321 *** bug-libtool@gnu.org
14322
14323 _LT_EOF
14324           fi ;;
14325         esac
14326       fi
14327       break
14328     fi
14329   done
14330   IFS="$lt_save_ifs"
14331   MAGIC_CMD="$lt_save_MAGIC_CMD"
14332   ;;
14333 esac
14334 fi
14335
14336 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14337 if test -n "$MAGIC_CMD"; then
14338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14339 $as_echo "$MAGIC_CMD" >&6; }
14340 else
14341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14342 $as_echo "no" >&6; }
14343 fi
14344
14345
14346
14347
14348
14349 if test -z "$lt_cv_path_MAGIC_CMD"; then
14350   if test -n "$ac_tool_prefix"; then
14351     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14352 $as_echo_n "checking for file... " >&6; }
14353 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14354   $as_echo_n "(cached) " >&6
14355 else
14356   case $MAGIC_CMD in
14357 [\\/*] |  ?:[\\/]*)
14358   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14359   ;;
14360 *)
14361   lt_save_MAGIC_CMD="$MAGIC_CMD"
14362   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14363   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14364   for ac_dir in $ac_dummy; do
14365     IFS="$lt_save_ifs"
14366     test -z "$ac_dir" && ac_dir=.
14367     if test -f $ac_dir/file; then
14368       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14369       if test -n "$file_magic_test_file"; then
14370         case $deplibs_check_method in
14371         "file_magic "*)
14372           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14373           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14374           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14375             $EGREP "$file_magic_regex" > /dev/null; then
14376             :
14377           else
14378             cat <<_LT_EOF 1>&2
14379
14380 *** Warning: the command libtool uses to detect shared libraries,
14381 *** $file_magic_cmd, produces output that libtool cannot recognize.
14382 *** The result is that libtool may fail to recognize shared libraries
14383 *** as such.  This will affect the creation of libtool libraries that
14384 *** depend on shared libraries, but programs linked with such libtool
14385 *** libraries will work regardless of this problem.  Nevertheless, you
14386 *** may want to report the problem to your system manager and/or to
14387 *** bug-libtool@gnu.org
14388
14389 _LT_EOF
14390           fi ;;
14391         esac
14392       fi
14393       break
14394     fi
14395   done
14396   IFS="$lt_save_ifs"
14397   MAGIC_CMD="$lt_save_MAGIC_CMD"
14398   ;;
14399 esac
14400 fi
14401
14402 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14403 if test -n "$MAGIC_CMD"; then
14404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14405 $as_echo "$MAGIC_CMD" >&6; }
14406 else
14407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14408 $as_echo "no" >&6; }
14409 fi
14410
14411
14412   else
14413     MAGIC_CMD=:
14414   fi
14415 fi
14416
14417   fi
14418   ;;
14419 esac
14420
14421 # Use C for the default configuration in the libtool script
14422
14423 lt_save_CC="$CC"
14424 ac_ext=c
14425 ac_cpp='$CPP $CPPFLAGS'
14426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14429
14430
14431 # Source file extension for C test sources.
14432 ac_ext=c
14433
14434 # Object file extension for compiled C test sources.
14435 objext=o
14436 objext=$objext
14437
14438 # Code to be used in simple compile tests
14439 lt_simple_compile_test_code="int some_variable = 0;"
14440
14441 # Code to be used in simple link tests
14442 lt_simple_link_test_code='int main(){return(0);}'
14443
14444
14445
14446
14447
14448
14449
14450 # If no C compiler was specified, use CC.
14451 LTCC=${LTCC-"$CC"}
14452
14453 # If no C compiler flags were specified, use CFLAGS.
14454 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14455
14456 # Allow CC to be a program name with arguments.
14457 compiler=$CC
14458
14459 # Save the default compiler, since it gets overwritten when the other
14460 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14461 compiler_DEFAULT=$CC
14462
14463 # save warnings/boilerplate of simple test code
14464 ac_outfile=conftest.$ac_objext
14465 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14466 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14467 _lt_compiler_boilerplate=`cat conftest.err`
14468 $RM conftest*
14469
14470 ac_outfile=conftest.$ac_objext
14471 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14472 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14473 _lt_linker_boilerplate=`cat conftest.err`
14474 $RM -r conftest*
14475
14476
14477 ## CAVEAT EMPTOR:
14478 ## There is no encapsulation within the following macros, do not change
14479 ## the running order or otherwise move them around unless you know exactly
14480 ## what you are doing...
14481 if test -n "$compiler"; then
14482
14483 lt_prog_compiler_no_builtin_flag=
14484
14485 if test "$GCC" = yes; then
14486   case $cc_basename in
14487   nvcc*)
14488     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14489   *)
14490     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14491   esac
14492
14493   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14494 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14495 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14496   $as_echo_n "(cached) " >&6
14497 else
14498   lt_cv_prog_compiler_rtti_exceptions=no
14499    ac_outfile=conftest.$ac_objext
14500    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14501    lt_compiler_flag="-fno-rtti -fno-exceptions"
14502    # Insert the option either (1) after the last *FLAGS variable, or
14503    # (2) before a word containing "conftest.", or (3) at the end.
14504    # Note that $ac_compile itself does not contain backslashes and begins
14505    # with a dollar sign (not a hyphen), so the echo should work correctly.
14506    # The option is referenced via a variable to avoid confusing sed.
14507    lt_compile=`echo "$ac_compile" | $SED \
14508    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14509    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14510    -e 's:$: $lt_compiler_flag:'`
14511    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14512    (eval "$lt_compile" 2>conftest.err)
14513    ac_status=$?
14514    cat conftest.err >&5
14515    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516    if (exit $ac_status) && test -s "$ac_outfile"; then
14517      # The compiler can only warn and ignore the option if not recognized
14518      # So say no if there are warnings other than the usual output.
14519      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14520      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14521      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14522        lt_cv_prog_compiler_rtti_exceptions=yes
14523      fi
14524    fi
14525    $RM conftest*
14526
14527 fi
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14529 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14530
14531 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14532     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14533 else
14534     :
14535 fi
14536
14537 fi
14538
14539
14540
14541
14542
14543
14544   lt_prog_compiler_wl=
14545 lt_prog_compiler_pic=
14546 lt_prog_compiler_static=
14547
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14549 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14550
14551   if test "$GCC" = yes; then
14552     lt_prog_compiler_wl='-Wl,'
14553     lt_prog_compiler_static='-static'
14554
14555     case $host_os in
14556       aix*)
14557       # All AIX code is PIC.
14558       if test "$host_cpu" = ia64; then
14559         # AIX 5 now supports IA64 processor
14560         lt_prog_compiler_static='-Bstatic'
14561       fi
14562       ;;
14563
14564     amigaos*)
14565       case $host_cpu in
14566       powerpc)
14567             # see comment about AmigaOS4 .so support
14568             lt_prog_compiler_pic='-fPIC'
14569         ;;
14570       m68k)
14571             # FIXME: we need at least 68020 code to build shared libraries, but
14572             # adding the `-m68020' flag to GCC prevents building anything better,
14573             # like `-m68040'.
14574             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14575         ;;
14576       esac
14577       ;;
14578
14579     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14580       # PIC is the default for these OSes.
14581       ;;
14582
14583     mingw* | cygwin* | pw32* | os2* | cegcc*)
14584       # This hack is so that the source file can tell whether it is being
14585       # built for inclusion in a dll (and should export symbols for example).
14586       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14587       # (--disable-auto-import) libraries
14588       lt_prog_compiler_pic='-DDLL_EXPORT'
14589       ;;
14590
14591     darwin* | rhapsody*)
14592       # PIC is the default on this platform
14593       # Common symbols not allowed in MH_DYLIB files
14594       lt_prog_compiler_pic='-fno-common'
14595       ;;
14596
14597     haiku*)
14598       # PIC is the default for Haiku.
14599       # The "-static" flag exists, but is broken.
14600       lt_prog_compiler_static=
14601       ;;
14602
14603     hpux*)
14604       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14605       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14606       # sets the default TLS model and affects inlining.
14607       case $host_cpu in
14608       hppa*64*)
14609         # +Z the default
14610         ;;
14611       *)
14612         lt_prog_compiler_pic='-fPIC'
14613         ;;
14614       esac
14615       ;;
14616
14617     interix[3-9]*)
14618       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14619       # Instead, we relocate shared libraries at runtime.
14620       ;;
14621
14622     msdosdjgpp*)
14623       # Just because we use GCC doesn't mean we suddenly get shared libraries
14624       # on systems that don't support them.
14625       lt_prog_compiler_can_build_shared=no
14626       enable_shared=no
14627       ;;
14628
14629     *nto* | *qnx*)
14630       # QNX uses GNU C++, but need to define -shared option too, otherwise
14631       # it will coredump.
14632       lt_prog_compiler_pic='-fPIC -shared'
14633       ;;
14634
14635     sysv4*MP*)
14636       if test -d /usr/nec; then
14637         lt_prog_compiler_pic=-Kconform_pic
14638       fi
14639       ;;
14640
14641     *)
14642       lt_prog_compiler_pic='-fPIC'
14643       ;;
14644     esac
14645
14646     case $cc_basename in
14647     nvcc*) # Cuda Compiler Driver 2.2
14648       lt_prog_compiler_wl='-Xlinker '
14649       lt_prog_compiler_pic='-Xcompiler -fPIC'
14650       ;;
14651     esac
14652   else
14653     # PORTME Check for flag to pass linker flags through the system compiler.
14654     case $host_os in
14655     aix*)
14656       lt_prog_compiler_wl='-Wl,'
14657       if test "$host_cpu" = ia64; then
14658         # AIX 5 now supports IA64 processor
14659         lt_prog_compiler_static='-Bstatic'
14660       else
14661         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14662       fi
14663       ;;
14664
14665     mingw* | cygwin* | pw32* | os2* | cegcc*)
14666       # This hack is so that the source file can tell whether it is being
14667       # built for inclusion in a dll (and should export symbols for example).
14668       lt_prog_compiler_pic='-DDLL_EXPORT'
14669       ;;
14670
14671     hpux9* | hpux10* | hpux11*)
14672       lt_prog_compiler_wl='-Wl,'
14673       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14674       # not for PA HP-UX.
14675       case $host_cpu in
14676       hppa*64*|ia64*)
14677         # +Z the default
14678         ;;
14679       *)
14680         lt_prog_compiler_pic='+Z'
14681         ;;
14682       esac
14683       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14684       lt_prog_compiler_static='${wl}-a ${wl}archive'
14685       ;;
14686
14687     irix5* | irix6* | nonstopux*)
14688       lt_prog_compiler_wl='-Wl,'
14689       # PIC (with -KPIC) is the default.
14690       lt_prog_compiler_static='-non_shared'
14691       ;;
14692
14693     linux* | k*bsd*-gnu | kopensolaris*-gnu)
14694       case $cc_basename in
14695       # old Intel for x86_64 which still supported -KPIC.
14696       ecc*)
14697         lt_prog_compiler_wl='-Wl,'
14698         lt_prog_compiler_pic='-KPIC'
14699         lt_prog_compiler_static='-static'
14700         ;;
14701       # icc used to be incompatible with GCC.
14702       # ICC 10 doesn't accept -KPIC any more.
14703       icc* | ifort*)
14704         lt_prog_compiler_wl='-Wl,'
14705         lt_prog_compiler_pic='-fPIC'
14706         lt_prog_compiler_static='-static'
14707         ;;
14708       # Lahey Fortran 8.1.
14709       lf95*)
14710         lt_prog_compiler_wl='-Wl,'
14711         lt_prog_compiler_pic='--shared'
14712         lt_prog_compiler_static='--static'
14713         ;;
14714       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14715         # Portland Group compilers (*not* the Pentium gcc compiler,
14716         # which looks to be a dead project)
14717         lt_prog_compiler_wl='-Wl,'
14718         lt_prog_compiler_pic='-fpic'
14719         lt_prog_compiler_static='-Bstatic'
14720         ;;
14721       ccc*)
14722         lt_prog_compiler_wl='-Wl,'
14723         # All Alpha code is PIC.
14724         lt_prog_compiler_static='-non_shared'
14725         ;;
14726       xl* | bgxl* | bgf* | mpixl*)
14727         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14728         lt_prog_compiler_wl='-Wl,'
14729         lt_prog_compiler_pic='-qpic'
14730         lt_prog_compiler_static='-qstaticlink'
14731         ;;
14732       *)
14733         case `$CC -V 2>&1 | sed 5q` in
14734         *Sun\ F* | *Sun*Fortran*)
14735           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14736           lt_prog_compiler_pic='-KPIC'
14737           lt_prog_compiler_static='-Bstatic'
14738           lt_prog_compiler_wl=''
14739           ;;
14740         *Sun\ C*)
14741           # Sun C 5.9
14742           lt_prog_compiler_pic='-KPIC'
14743           lt_prog_compiler_static='-Bstatic'
14744           lt_prog_compiler_wl='-Wl,'
14745           ;;
14746         esac
14747         ;;
14748       esac
14749       ;;
14750
14751     newsos6)
14752       lt_prog_compiler_pic='-KPIC'
14753       lt_prog_compiler_static='-Bstatic'
14754       ;;
14755
14756     *nto* | *qnx*)
14757       # QNX uses GNU C++, but need to define -shared option too, otherwise
14758       # it will coredump.
14759       lt_prog_compiler_pic='-fPIC -shared'
14760       ;;
14761
14762     osf3* | osf4* | osf5*)
14763       lt_prog_compiler_wl='-Wl,'
14764       # All OSF/1 code is PIC.
14765       lt_prog_compiler_static='-non_shared'
14766       ;;
14767
14768     rdos*)
14769       lt_prog_compiler_static='-non_shared'
14770       ;;
14771
14772     solaris*)
14773       lt_prog_compiler_pic='-KPIC'
14774       lt_prog_compiler_static='-Bstatic'
14775       case $cc_basename in
14776       f77* | f90* | f95*)
14777         lt_prog_compiler_wl='-Qoption ld ';;
14778       *)
14779         lt_prog_compiler_wl='-Wl,';;
14780       esac
14781       ;;
14782
14783     sunos4*)
14784       lt_prog_compiler_wl='-Qoption ld '
14785       lt_prog_compiler_pic='-PIC'
14786       lt_prog_compiler_static='-Bstatic'
14787       ;;
14788
14789     sysv4 | sysv4.2uw2* | sysv4.3*)
14790       lt_prog_compiler_wl='-Wl,'
14791       lt_prog_compiler_pic='-KPIC'
14792       lt_prog_compiler_static='-Bstatic'
14793       ;;
14794
14795     sysv4*MP*)
14796       if test -d /usr/nec ;then
14797         lt_prog_compiler_pic='-Kconform_pic'
14798         lt_prog_compiler_static='-Bstatic'
14799       fi
14800       ;;
14801
14802     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14803       lt_prog_compiler_wl='-Wl,'
14804       lt_prog_compiler_pic='-KPIC'
14805       lt_prog_compiler_static='-Bstatic'
14806       ;;
14807
14808     unicos*)
14809       lt_prog_compiler_wl='-Wl,'
14810       lt_prog_compiler_can_build_shared=no
14811       ;;
14812
14813     uts4*)
14814       lt_prog_compiler_pic='-pic'
14815       lt_prog_compiler_static='-Bstatic'
14816       ;;
14817
14818     *)
14819       lt_prog_compiler_can_build_shared=no
14820       ;;
14821     esac
14822   fi
14823
14824 case $host_os in
14825   # For platforms which do not support PIC, -DPIC is meaningless:
14826   *djgpp*)
14827     lt_prog_compiler_pic=
14828     ;;
14829   *)
14830     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14831     ;;
14832 esac
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14834 $as_echo "$lt_prog_compiler_pic" >&6; }
14835
14836
14837
14838
14839
14840
14841 #
14842 # Check to make sure the PIC flag actually works.
14843 #
14844 if test -n "$lt_prog_compiler_pic"; then
14845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14846 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14847 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14848   $as_echo_n "(cached) " >&6
14849 else
14850   lt_cv_prog_compiler_pic_works=no
14851    ac_outfile=conftest.$ac_objext
14852    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14853    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14854    # Insert the option either (1) after the last *FLAGS variable, or
14855    # (2) before a word containing "conftest.", or (3) at the end.
14856    # Note that $ac_compile itself does not contain backslashes and begins
14857    # with a dollar sign (not a hyphen), so the echo should work correctly.
14858    # The option is referenced via a variable to avoid confusing sed.
14859    lt_compile=`echo "$ac_compile" | $SED \
14860    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14861    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14862    -e 's:$: $lt_compiler_flag:'`
14863    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14864    (eval "$lt_compile" 2>conftest.err)
14865    ac_status=$?
14866    cat conftest.err >&5
14867    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868    if (exit $ac_status) && test -s "$ac_outfile"; then
14869      # The compiler can only warn and ignore the option if not recognized
14870      # So say no if there are warnings other than the usual output.
14871      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14872      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14873      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14874        lt_cv_prog_compiler_pic_works=yes
14875      fi
14876    fi
14877    $RM conftest*
14878
14879 fi
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14881 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14882
14883 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14884     case $lt_prog_compiler_pic in
14885      "" | " "*) ;;
14886      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14887      esac
14888 else
14889     lt_prog_compiler_pic=
14890      lt_prog_compiler_can_build_shared=no
14891 fi
14892
14893 fi
14894
14895
14896
14897
14898
14899
14900 #
14901 # Check to make sure the static flag actually works.
14902 #
14903 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14905 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14906 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14907   $as_echo_n "(cached) " >&6
14908 else
14909   lt_cv_prog_compiler_static_works=no
14910    save_LDFLAGS="$LDFLAGS"
14911    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14912    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14913    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14914      # The linker can only warn and ignore the option if not recognized
14915      # So say no if there are warnings
14916      if test -s conftest.err; then
14917        # Append any errors to the config.log.
14918        cat conftest.err 1>&5
14919        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14920        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14921        if diff conftest.exp conftest.er2 >/dev/null; then
14922          lt_cv_prog_compiler_static_works=yes
14923        fi
14924      else
14925        lt_cv_prog_compiler_static_works=yes
14926      fi
14927    fi
14928    $RM -r conftest*
14929    LDFLAGS="$save_LDFLAGS"
14930
14931 fi
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14933 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14934
14935 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14936     :
14937 else
14938     lt_prog_compiler_static=
14939 fi
14940
14941
14942
14943
14944
14945
14946
14947   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14948 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14949 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14950   $as_echo_n "(cached) " >&6
14951 else
14952   lt_cv_prog_compiler_c_o=no
14953    $RM -r conftest 2>/dev/null
14954    mkdir conftest
14955    cd conftest
14956    mkdir out
14957    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14958
14959    lt_compiler_flag="-o out/conftest2.$ac_objext"
14960    # Insert the option either (1) after the last *FLAGS variable, or
14961    # (2) before a word containing "conftest.", or (3) at the end.
14962    # Note that $ac_compile itself does not contain backslashes and begins
14963    # with a dollar sign (not a hyphen), so the echo should work correctly.
14964    lt_compile=`echo "$ac_compile" | $SED \
14965    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14966    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14967    -e 's:$: $lt_compiler_flag:'`
14968    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14969    (eval "$lt_compile" 2>out/conftest.err)
14970    ac_status=$?
14971    cat out/conftest.err >&5
14972    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14974    then
14975      # The compiler can only warn and ignore the option if not recognized
14976      # So say no if there are warnings
14977      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14978      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14979      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14980        lt_cv_prog_compiler_c_o=yes
14981      fi
14982    fi
14983    chmod u+w . 2>&5
14984    $RM conftest*
14985    # SGI C++ compiler will create directory out/ii_files/ for
14986    # template instantiation
14987    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14988    $RM out/* && rmdir out
14989    cd ..
14990    $RM -r conftest
14991    $RM conftest*
14992
14993 fi
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14995 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14996
14997
14998
14999
15000
15001
15002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15003 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15004 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15005   $as_echo_n "(cached) " >&6
15006 else
15007   lt_cv_prog_compiler_c_o=no
15008    $RM -r conftest 2>/dev/null
15009    mkdir conftest
15010    cd conftest
15011    mkdir out
15012    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15013
15014    lt_compiler_flag="-o out/conftest2.$ac_objext"
15015    # Insert the option either (1) after the last *FLAGS variable, or
15016    # (2) before a word containing "conftest.", or (3) at the end.
15017    # Note that $ac_compile itself does not contain backslashes and begins
15018    # with a dollar sign (not a hyphen), so the echo should work correctly.
15019    lt_compile=`echo "$ac_compile" | $SED \
15020    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15021    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15022    -e 's:$: $lt_compiler_flag:'`
15023    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15024    (eval "$lt_compile" 2>out/conftest.err)
15025    ac_status=$?
15026    cat out/conftest.err >&5
15027    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15029    then
15030      # The compiler can only warn and ignore the option if not recognized
15031      # So say no if there are warnings
15032      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15033      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15034      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15035        lt_cv_prog_compiler_c_o=yes
15036      fi
15037    fi
15038    chmod u+w . 2>&5
15039    $RM conftest*
15040    # SGI C++ compiler will create directory out/ii_files/ for
15041    # template instantiation
15042    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15043    $RM out/* && rmdir out
15044    cd ..
15045    $RM -r conftest
15046    $RM conftest*
15047
15048 fi
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15050 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15051
15052
15053
15054
15055 hard_links="nottested"
15056 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15057   # do not overwrite the value of need_locks provided by the user
15058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15059 $as_echo_n "checking if we can lock with hard links... " >&6; }
15060   hard_links=yes
15061   $RM conftest*
15062   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15063   touch conftest.a
15064   ln conftest.a conftest.b 2>&5 || hard_links=no
15065   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15067 $as_echo "$hard_links" >&6; }
15068   if test "$hard_links" = no; then
15069     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15070 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15071     need_locks=warn
15072   fi
15073 else
15074   need_locks=no
15075 fi
15076
15077
15078
15079
15080
15081
15082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15083 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15084
15085   runpath_var=
15086   allow_undefined_flag=
15087   always_export_symbols=no
15088   archive_cmds=
15089   archive_expsym_cmds=
15090   compiler_needs_object=no
15091   enable_shared_with_static_runtimes=no
15092   export_dynamic_flag_spec=
15093   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15094   hardcode_automatic=no
15095   hardcode_direct=no
15096   hardcode_direct_absolute=no
15097   hardcode_libdir_flag_spec=
15098   hardcode_libdir_flag_spec_ld=
15099   hardcode_libdir_separator=
15100   hardcode_minus_L=no
15101   hardcode_shlibpath_var=unsupported
15102   inherit_rpath=no
15103   link_all_deplibs=unknown
15104   module_cmds=
15105   module_expsym_cmds=
15106   old_archive_from_new_cmds=
15107   old_archive_from_expsyms_cmds=
15108   thread_safe_flag_spec=
15109   whole_archive_flag_spec=
15110   # include_expsyms should be a list of space-separated symbols to be *always*
15111   # included in the symbol list
15112   include_expsyms=
15113   # exclude_expsyms can be an extended regexp of symbols to exclude
15114   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15115   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15116   # as well as any symbol that contains `d'.
15117   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15118   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15119   # platforms (ab)use it in PIC code, but their linkers get confused if
15120   # the symbol is explicitly referenced.  Since portable code cannot
15121   # rely on this symbol name, it's probably fine to never include it in
15122   # preloaded symbol tables.
15123   # Exclude shared library initialization/finalization symbols.
15124   extract_expsyms_cmds=
15125
15126   case $host_os in
15127   cygwin* | mingw* | pw32* | cegcc*)
15128     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15129     # When not using gcc, we currently assume that we are using
15130     # Microsoft Visual C++.
15131     if test "$GCC" != yes; then
15132       with_gnu_ld=no
15133     fi
15134     ;;
15135   interix*)
15136     # we just hope/assume this is gcc and not c89 (= MSVC++)
15137     with_gnu_ld=yes
15138     ;;
15139   openbsd*)
15140     with_gnu_ld=no
15141     ;;
15142   esac
15143
15144   ld_shlibs=yes
15145
15146   # On some targets, GNU ld is compatible enough with the native linker
15147   # that we're better off using the native interface for both.
15148   lt_use_gnu_ld_interface=no
15149   if test "$with_gnu_ld" = yes; then
15150     case $host_os in
15151       aix*)
15152         # The AIX port of GNU ld has always aspired to compatibility
15153         # with the native linker.  However, as the warning in the GNU ld
15154         # block says, versions before 2.19.5* couldn't really create working
15155         # shared libraries, regardless of the interface used.
15156         case `$LD -v 2>&1` in
15157           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15158           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15159           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15160           *)
15161             lt_use_gnu_ld_interface=yes
15162             ;;
15163         esac
15164         ;;
15165       *)
15166         lt_use_gnu_ld_interface=yes
15167         ;;
15168     esac
15169   fi
15170
15171   if test "$lt_use_gnu_ld_interface" = yes; then
15172     # If archive_cmds runs LD, not CC, wlarc should be empty
15173     wlarc='${wl}'
15174
15175     # Set some defaults for GNU ld with shared library support. These
15176     # are reset later if shared libraries are not supported. Putting them
15177     # here allows them to be overridden if necessary.
15178     runpath_var=LD_RUN_PATH
15179     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15180     export_dynamic_flag_spec='${wl}--export-dynamic'
15181     # ancient GNU ld didn't support --whole-archive et. al.
15182     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15183       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15184     else
15185       whole_archive_flag_spec=
15186     fi
15187     supports_anon_versioning=no
15188     case `$LD -v 2>&1` in
15189       *GNU\ gold*) supports_anon_versioning=yes ;;
15190       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15191       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15192       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15193       *\ 2.11.*) ;; # other 2.11 versions
15194       *) supports_anon_versioning=yes ;;
15195     esac
15196
15197     # See if GNU ld supports shared libraries.
15198     case $host_os in
15199     aix[3-9]*)
15200       # On AIX/PPC, the GNU linker is very broken
15201       if test "$host_cpu" != ia64; then
15202         ld_shlibs=no
15203         cat <<_LT_EOF 1>&2
15204
15205 *** Warning: the GNU linker, at least up to release 2.19, is reported
15206 *** to be unable to reliably create shared libraries on AIX.
15207 *** Therefore, libtool is disabling shared libraries support.  If you
15208 *** really care for shared libraries, you may want to install binutils
15209 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15210 *** You will then need to restart the configuration process.
15211
15212 _LT_EOF
15213       fi
15214       ;;
15215
15216     amigaos*)
15217       case $host_cpu in
15218       powerpc)
15219             # see comment about AmigaOS4 .so support
15220             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15221             archive_expsym_cmds=''
15222         ;;
15223       m68k)
15224             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)'
15225             hardcode_libdir_flag_spec='-L$libdir'
15226             hardcode_minus_L=yes
15227         ;;
15228       esac
15229       ;;
15230
15231     beos*)
15232       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15233         allow_undefined_flag=unsupported
15234         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15235         # support --undefined.  This deserves some investigation.  FIXME
15236         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15237       else
15238         ld_shlibs=no
15239       fi
15240       ;;
15241
15242     cygwin* | mingw* | pw32* | cegcc*)
15243       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15244       # as there is no search path for DLLs.
15245       hardcode_libdir_flag_spec='-L$libdir'
15246       export_dynamic_flag_spec='${wl}--export-all-symbols'
15247       allow_undefined_flag=unsupported
15248       always_export_symbols=no
15249       enable_shared_with_static_runtimes=yes
15250       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15251
15252       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15253         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15254         # If the export-symbols file already is a .def file (1st line
15255         # is EXPORTS), use it as is; otherwise, prepend...
15256         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15257           cp $export_symbols $output_objdir/$soname.def;
15258         else
15259           echo EXPORTS > $output_objdir/$soname.def;
15260           cat $export_symbols >> $output_objdir/$soname.def;
15261         fi~
15262         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15263       else
15264         ld_shlibs=no
15265       fi
15266       ;;
15267
15268     haiku*)
15269       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15270       link_all_deplibs=yes
15271       ;;
15272
15273     interix[3-9]*)
15274       hardcode_direct=no
15275       hardcode_shlibpath_var=no
15276       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15277       export_dynamic_flag_spec='${wl}-E'
15278       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15279       # Instead, shared libraries are loaded at an image base (0x10000000 by
15280       # default) and relocated if they conflict, which is a slow very memory
15281       # consuming and fragmenting process.  To avoid this, we pick a random,
15282       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15283       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15284       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15285       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'
15286       ;;
15287
15288     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15289       tmp_diet=no
15290       if test "$host_os" = linux-dietlibc; then
15291         case $cc_basename in
15292           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
15293         esac
15294       fi
15295       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15296          && test "$tmp_diet" = no
15297       then
15298         tmp_addflag=
15299         tmp_sharedflag='-shared'
15300         case $cc_basename,$host_cpu in
15301         pgcc*)                          # Portland Group C compiler
15302           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'
15303           tmp_addflag=' $pic_flag'
15304           ;;
15305         pgf77* | pgf90* | pgf95* | pgfortran*)
15306                                         # Portland Group f77 and f90 compilers
15307           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'
15308           tmp_addflag=' $pic_flag -Mnomain' ;;
15309         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
15310           tmp_addflag=' -i_dynamic' ;;
15311         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15312           tmp_addflag=' -i_dynamic -nofor_main' ;;
15313         ifc* | ifort*)                  # Intel Fortran compiler
15314           tmp_addflag=' -nofor_main' ;;
15315         lf95*)                          # Lahey Fortran 8.1
15316           whole_archive_flag_spec=
15317           tmp_sharedflag='--shared' ;;
15318         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15319           tmp_sharedflag='-qmkshrobj'
15320           tmp_addflag= ;;
15321         nvcc*)  # Cuda Compiler Driver 2.2
15322           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'
15323           compiler_needs_object=yes
15324           ;;
15325         esac
15326         case `$CC -V 2>&1 | sed 5q` in
15327         *Sun\ C*)                       # Sun C 5.9
15328           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'
15329           compiler_needs_object=yes
15330           tmp_sharedflag='-G' ;;
15331         *Sun\ F*)                       # Sun Fortran 8.3
15332           tmp_sharedflag='-G' ;;
15333         esac
15334         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15335
15336         if test "x$supports_anon_versioning" = xyes; then
15337           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15338             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15339             echo "local: *; };" >> $output_objdir/$libname.ver~
15340             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15341         fi
15342
15343         case $cc_basename in
15344         xlf* | bgf* | bgxlf* | mpixlf*)
15345           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15346           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15347           hardcode_libdir_flag_spec=
15348           hardcode_libdir_flag_spec_ld='-rpath $libdir'
15349           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15350           if test "x$supports_anon_versioning" = xyes; then
15351             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15352               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15353               echo "local: *; };" >> $output_objdir/$libname.ver~
15354               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15355           fi
15356           ;;
15357         esac
15358       else
15359         ld_shlibs=no
15360       fi
15361       ;;
15362
15363     netbsd*)
15364       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15365         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15366         wlarc=
15367       else
15368         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15369         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15370       fi
15371       ;;
15372
15373     solaris*)
15374       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15375         ld_shlibs=no
15376         cat <<_LT_EOF 1>&2
15377
15378 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15379 *** create shared libraries on Solaris systems.  Therefore, libtool
15380 *** is disabling shared libraries support.  We urge you to upgrade GNU
15381 *** binutils to release 2.9.1 or newer.  Another option is to modify
15382 *** your PATH or compiler configuration so that the native linker is
15383 *** used, and then restart.
15384
15385 _LT_EOF
15386       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15387         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15388         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15389       else
15390         ld_shlibs=no
15391       fi
15392       ;;
15393
15394     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15395       case `$LD -v 2>&1` in
15396         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15397         ld_shlibs=no
15398         cat <<_LT_EOF 1>&2
15399
15400 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15401 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15402 *** is disabling shared libraries support.  We urge you to upgrade GNU
15403 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15404 *** your PATH or compiler configuration so that the native linker is
15405 *** used, and then restart.
15406
15407 _LT_EOF
15408         ;;
15409         *)
15410           # For security reasons, it is highly recommended that you always
15411           # use absolute paths for naming shared libraries, and exclude the
15412           # DT_RUNPATH tag from executables and libraries.  But doing so
15413           # requires that you compile everything twice, which is a pain.
15414           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15415             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15416             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15417             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15418           else
15419             ld_shlibs=no
15420           fi
15421         ;;
15422       esac
15423       ;;
15424
15425     sunos4*)
15426       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15427       wlarc=
15428       hardcode_direct=yes
15429       hardcode_shlibpath_var=no
15430       ;;
15431
15432     *)
15433       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15434         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15435         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15436       else
15437         ld_shlibs=no
15438       fi
15439       ;;
15440     esac
15441
15442     if test "$ld_shlibs" = no; then
15443       runpath_var=
15444       hardcode_libdir_flag_spec=
15445       export_dynamic_flag_spec=
15446       whole_archive_flag_spec=
15447     fi
15448   else
15449     # PORTME fill in a description of your system's linker (not GNU ld)
15450     case $host_os in
15451     aix3*)
15452       allow_undefined_flag=unsupported
15453       always_export_symbols=yes
15454       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'
15455       # Note: this linker hardcodes the directories in LIBPATH if there
15456       # are no directories specified by -L.
15457       hardcode_minus_L=yes
15458       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15459         # Neither direct hardcoding nor static linking is supported with a
15460         # broken collect2.
15461         hardcode_direct=unsupported
15462       fi
15463       ;;
15464
15465     aix[4-9]*)
15466       if test "$host_cpu" = ia64; then
15467         # On IA64, the linker does run time linking by default, so we don't
15468         # have to do anything special.
15469         aix_use_runtimelinking=no
15470         exp_sym_flag='-Bexport'
15471         no_entry_flag=""
15472       else
15473         # If we're using GNU nm, then we don't want the "-C" option.
15474         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15475         # Also, AIX nm treats weak defined symbols like other global
15476         # defined symbols, whereas GNU nm marks them as "W".
15477         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15478           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'
15479         else
15480           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'
15481         fi
15482         aix_use_runtimelinking=no
15483
15484         # Test if we are trying to use run time linking or normal
15485         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15486         # need to do runtime linking.
15487         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15488           for ld_flag in $LDFLAGS; do
15489           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15490             aix_use_runtimelinking=yes
15491             break
15492           fi
15493           done
15494           ;;
15495         esac
15496
15497         exp_sym_flag='-bexport'
15498         no_entry_flag='-bnoentry'
15499       fi
15500
15501       # When large executables or shared objects are built, AIX ld can
15502       # have problems creating the table of contents.  If linking a library
15503       # or program results in "error TOC overflow" add -mminimal-toc to
15504       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15505       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15506
15507       archive_cmds=''
15508       hardcode_direct=yes
15509       hardcode_direct_absolute=yes
15510       hardcode_libdir_separator=':'
15511       link_all_deplibs=yes
15512       file_list_spec='${wl}-f,'
15513
15514       if test "$GCC" = yes; then
15515         case $host_os in aix4.[012]|aix4.[012].*)
15516         # We only want to do this on AIX 4.2 and lower, the check
15517         # below for broken collect2 doesn't work under 4.3+
15518           collect2name=`${CC} -print-prog-name=collect2`
15519           if test -f "$collect2name" &&
15520            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15521           then
15522           # We have reworked collect2
15523           :
15524           else
15525           # We have old collect2
15526           hardcode_direct=unsupported
15527           # It fails to find uninstalled libraries when the uninstalled
15528           # path is not listed in the libpath.  Setting hardcode_minus_L
15529           # to unsupported forces relinking
15530           hardcode_minus_L=yes
15531           hardcode_libdir_flag_spec='-L$libdir'
15532           hardcode_libdir_separator=
15533           fi
15534           ;;
15535         esac
15536         shared_flag='-shared'
15537         if test "$aix_use_runtimelinking" = yes; then
15538           shared_flag="$shared_flag "'${wl}-G'
15539         fi
15540       else
15541         # not using gcc
15542         if test "$host_cpu" = ia64; then
15543         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15544         # chokes on -Wl,-G. The following line is correct:
15545           shared_flag='-G'
15546         else
15547           if test "$aix_use_runtimelinking" = yes; then
15548             shared_flag='${wl}-G'
15549           else
15550             shared_flag='${wl}-bM:SRE'
15551           fi
15552         fi
15553       fi
15554
15555       export_dynamic_flag_spec='${wl}-bexpall'
15556       # It seems that -bexpall does not export symbols beginning with
15557       # underscore (_), so it is better to generate a list of symbols to export.
15558       always_export_symbols=yes
15559       if test "$aix_use_runtimelinking" = yes; then
15560         # Warning - without using the other runtime loading flags (-brtl),
15561         # -berok will link without error, but may produce a broken library.
15562         allow_undefined_flag='-berok'
15563         # Determine the default libpath from the value encoded in an
15564         # empty executable.
15565         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15566 /* end confdefs.h.  */
15567
15568 int
15569 main ()
15570 {
15571
15572   ;
15573   return 0;
15574 }
15575 _ACEOF
15576 if ac_fn_c_try_link "$LINENO"; then :
15577
15578 lt_aix_libpath_sed='
15579     /Import File Strings/,/^$/ {
15580         /^0/ {
15581             s/^0  *\(.*\)$/\1/
15582             p
15583         }
15584     }'
15585 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15586 # Check for a 64-bit object if we didn't find anything.
15587 if test -z "$aix_libpath"; then
15588   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15589 fi
15590 fi
15591 rm -f core conftest.err conftest.$ac_objext \
15592     conftest$ac_exeext conftest.$ac_ext
15593 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15594
15595         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15596         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"
15597       else
15598         if test "$host_cpu" = ia64; then
15599           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15600           allow_undefined_flag="-z nodefs"
15601           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"
15602         else
15603          # Determine the default libpath from the value encoded in an
15604          # empty executable.
15605          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15606 /* end confdefs.h.  */
15607
15608 int
15609 main ()
15610 {
15611
15612   ;
15613   return 0;
15614 }
15615 _ACEOF
15616 if ac_fn_c_try_link "$LINENO"; then :
15617
15618 lt_aix_libpath_sed='
15619     /Import File Strings/,/^$/ {
15620         /^0/ {
15621             s/^0  *\(.*\)$/\1/
15622             p
15623         }
15624     }'
15625 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15626 # Check for a 64-bit object if we didn't find anything.
15627 if test -z "$aix_libpath"; then
15628   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15629 fi
15630 fi
15631 rm -f core conftest.err conftest.$ac_objext \
15632     conftest$ac_exeext conftest.$ac_ext
15633 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15634
15635          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15636           # Warning - without using the other run time loading flags,
15637           # -berok will link without error, but may produce a broken library.
15638           no_undefined_flag=' ${wl}-bernotok'
15639           allow_undefined_flag=' ${wl}-berok'
15640           if test "$with_gnu_ld" = yes; then
15641             # We only use this code for GNU lds that support --whole-archive.
15642             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15643           else
15644             # Exported symbols can be pulled into shared objects from archives
15645             whole_archive_flag_spec='$convenience'
15646           fi
15647           archive_cmds_need_lc=yes
15648           # This is similar to how AIX traditionally builds its shared libraries.
15649           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'
15650         fi
15651       fi
15652       ;;
15653
15654     amigaos*)
15655       case $host_cpu in
15656       powerpc)
15657             # see comment about AmigaOS4 .so support
15658             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15659             archive_expsym_cmds=''
15660         ;;
15661       m68k)
15662             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)'
15663             hardcode_libdir_flag_spec='-L$libdir'
15664             hardcode_minus_L=yes
15665         ;;
15666       esac
15667       ;;
15668
15669     bsdi[45]*)
15670       export_dynamic_flag_spec=-rdynamic
15671       ;;
15672
15673     cygwin* | mingw* | pw32* | cegcc*)
15674       # When not using gcc, we currently assume that we are using
15675       # Microsoft Visual C++.
15676       # hardcode_libdir_flag_spec is actually meaningless, as there is
15677       # no search path for DLLs.
15678       hardcode_libdir_flag_spec=' '
15679       allow_undefined_flag=unsupported
15680       # Tell ltmain to make .lib files, not .a files.
15681       libext=lib
15682       # Tell ltmain to make .dll files, not .so files.
15683       shrext_cmds=".dll"
15684       # FIXME: Setting linknames here is a bad hack.
15685       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15686       # The linker will automatically build a .lib file if we build a DLL.
15687       old_archive_from_new_cmds='true'
15688       # FIXME: Should let the user specify the lib program.
15689       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15690       fix_srcfile_path='`cygpath -w "$srcfile"`'
15691       enable_shared_with_static_runtimes=yes
15692       ;;
15693
15694     darwin* | rhapsody*)
15695
15696
15697   archive_cmds_need_lc=no
15698   hardcode_direct=no
15699   hardcode_automatic=yes
15700   hardcode_shlibpath_var=unsupported
15701   if test "$lt_cv_ld_force_load" = "yes"; then
15702     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\"`'
15703   else
15704     whole_archive_flag_spec=''
15705   fi
15706   link_all_deplibs=yes
15707   allow_undefined_flag="$_lt_dar_allow_undefined"
15708   case $cc_basename in
15709      ifort*) _lt_dar_can_shared=yes ;;
15710      *) _lt_dar_can_shared=$GCC ;;
15711   esac
15712   if test "$_lt_dar_can_shared" = "yes"; then
15713     output_verbose_link_cmd=func_echo_all
15714     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15715     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15716     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}"
15717     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}"
15718
15719   else
15720   ld_shlibs=no
15721   fi
15722
15723       ;;
15724
15725     dgux*)
15726       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15727       hardcode_libdir_flag_spec='-L$libdir'
15728       hardcode_shlibpath_var=no
15729       ;;
15730
15731     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15732     # support.  Future versions do this automatically, but an explicit c++rt0.o
15733     # does not break anything, and helps significantly (at the cost of a little
15734     # extra space).
15735     freebsd2.2*)
15736       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15737       hardcode_libdir_flag_spec='-R$libdir'
15738       hardcode_direct=yes
15739       hardcode_shlibpath_var=no
15740       ;;
15741
15742     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15743     freebsd2*)
15744       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15745       hardcode_direct=yes
15746       hardcode_minus_L=yes
15747       hardcode_shlibpath_var=no
15748       ;;
15749
15750     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15751     freebsd* | dragonfly*)
15752       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15753       hardcode_libdir_flag_spec='-R$libdir'
15754       hardcode_direct=yes
15755       hardcode_shlibpath_var=no
15756       ;;
15757
15758     hpux9*)
15759       if test "$GCC" = yes; then
15760         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15761       else
15762         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15763       fi
15764       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15765       hardcode_libdir_separator=:
15766       hardcode_direct=yes
15767
15768       # hardcode_minus_L: Not really in the search PATH,
15769       # but as the default location of the library.
15770       hardcode_minus_L=yes
15771       export_dynamic_flag_spec='${wl}-E'
15772       ;;
15773
15774     hpux10*)
15775       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15776         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15777       else
15778         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15779       fi
15780       if test "$with_gnu_ld" = no; then
15781         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15782         hardcode_libdir_flag_spec_ld='+b $libdir'
15783         hardcode_libdir_separator=:
15784         hardcode_direct=yes
15785         hardcode_direct_absolute=yes
15786         export_dynamic_flag_spec='${wl}-E'
15787         # hardcode_minus_L: Not really in the search PATH,
15788         # but as the default location of the library.
15789         hardcode_minus_L=yes
15790       fi
15791       ;;
15792
15793     hpux11*)
15794       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15795         case $host_cpu in
15796         hppa*64*)
15797           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15798           ;;
15799         ia64*)
15800           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15801           ;;
15802         *)
15803           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15804           ;;
15805         esac
15806       else
15807         case $host_cpu in
15808         hppa*64*)
15809           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15810           ;;
15811         ia64*)
15812           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15813           ;;
15814         *)
15815
15816           # Older versions of the 11.00 compiler do not understand -b yet
15817           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15818           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15819 $as_echo_n "checking if $CC understands -b... " >&6; }
15820 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15821   $as_echo_n "(cached) " >&6
15822 else
15823   lt_cv_prog_compiler__b=no
15824    save_LDFLAGS="$LDFLAGS"
15825    LDFLAGS="$LDFLAGS -b"
15826    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15827    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15828      # The linker can only warn and ignore the option if not recognized
15829      # So say no if there are warnings
15830      if test -s conftest.err; then
15831        # Append any errors to the config.log.
15832        cat conftest.err 1>&5
15833        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15834        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15835        if diff conftest.exp conftest.er2 >/dev/null; then
15836          lt_cv_prog_compiler__b=yes
15837        fi
15838      else
15839        lt_cv_prog_compiler__b=yes
15840      fi
15841    fi
15842    $RM -r conftest*
15843    LDFLAGS="$save_LDFLAGS"
15844
15845 fi
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15847 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15848
15849 if test x"$lt_cv_prog_compiler__b" = xyes; then
15850     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15851 else
15852     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15853 fi
15854
15855           ;;
15856         esac
15857       fi
15858       if test "$with_gnu_ld" = no; then
15859         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15860         hardcode_libdir_separator=:
15861
15862         case $host_cpu in
15863         hppa*64*|ia64*)
15864           hardcode_direct=no
15865           hardcode_shlibpath_var=no
15866           ;;
15867         *)
15868           hardcode_direct=yes
15869           hardcode_direct_absolute=yes
15870           export_dynamic_flag_spec='${wl}-E'
15871
15872           # hardcode_minus_L: Not really in the search PATH,
15873           # but as the default location of the library.
15874           hardcode_minus_L=yes
15875           ;;
15876         esac
15877       fi
15878       ;;
15879
15880     irix5* | irix6* | nonstopux*)
15881       if test "$GCC" = yes; then
15882         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15883         # Try to use the -exported_symbol ld option, if it does not
15884         # work, assume that -exports_file does not work either and
15885         # implicitly export all symbols.
15886         save_LDFLAGS="$LDFLAGS"
15887         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15888         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15889 /* end confdefs.h.  */
15890 int foo(void) {}
15891 _ACEOF
15892 if ac_fn_c_try_link "$LINENO"; then :
15893   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
15894
15895 fi
15896 rm -f core conftest.err conftest.$ac_objext \
15897     conftest$ac_exeext conftest.$ac_ext
15898         LDFLAGS="$save_LDFLAGS"
15899       else
15900         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15901         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
15902       fi
15903       archive_cmds_need_lc='no'
15904       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15905       hardcode_libdir_separator=:
15906       inherit_rpath=yes
15907       link_all_deplibs=yes
15908       ;;
15909
15910     netbsd*)
15911       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15912         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15913       else
15914         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15915       fi
15916       hardcode_libdir_flag_spec='-R$libdir'
15917       hardcode_direct=yes
15918       hardcode_shlibpath_var=no
15919       ;;
15920
15921     newsos6)
15922       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15923       hardcode_direct=yes
15924       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15925       hardcode_libdir_separator=:
15926       hardcode_shlibpath_var=no
15927       ;;
15928
15929     *nto* | *qnx*)
15930       ;;
15931
15932     openbsd*)
15933       if test -f /usr/libexec/ld.so; then
15934         hardcode_direct=yes
15935         hardcode_shlibpath_var=no
15936         hardcode_direct_absolute=yes
15937         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15938           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15939           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15940           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15941           export_dynamic_flag_spec='${wl}-E'
15942         else
15943           case $host_os in
15944            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15945              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15946              hardcode_libdir_flag_spec='-R$libdir'
15947              ;;
15948            *)
15949              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15950              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15951              ;;
15952           esac
15953         fi
15954       else
15955         ld_shlibs=no
15956       fi
15957       ;;
15958
15959     os2*)
15960       hardcode_libdir_flag_spec='-L$libdir'
15961       hardcode_minus_L=yes
15962       allow_undefined_flag=unsupported
15963       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15964       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15965       ;;
15966
15967     osf3*)
15968       if test "$GCC" = yes; then
15969         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15970         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15971       else
15972         allow_undefined_flag=' -expect_unresolved \*'
15973         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15974       fi
15975       archive_cmds_need_lc='no'
15976       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15977       hardcode_libdir_separator=:
15978       ;;
15979
15980     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15981       if test "$GCC" = yes; then
15982         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15983         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15984         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15985       else
15986         allow_undefined_flag=' -expect_unresolved \*'
15987         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15988         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
15989         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
15990
15991         # Both c and cxx compiler support -rpath directly
15992         hardcode_libdir_flag_spec='-rpath $libdir'
15993       fi
15994       archive_cmds_need_lc='no'
15995       hardcode_libdir_separator=:
15996       ;;
15997
15998     solaris*)
15999       no_undefined_flag=' -z defs'
16000       if test "$GCC" = yes; then
16001         wlarc='${wl}'
16002         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16003         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16004           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16005       else
16006         case `$CC -V 2>&1` in
16007         *"Compilers 5.0"*)
16008           wlarc=''
16009           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16010           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16011           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16012           ;;
16013         *)
16014           wlarc='${wl}'
16015           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16016           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16017           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16018           ;;
16019         esac
16020       fi
16021       hardcode_libdir_flag_spec='-R$libdir'
16022       hardcode_shlibpath_var=no
16023       case $host_os in
16024       solaris2.[0-5] | solaris2.[0-5].*) ;;
16025       *)
16026         # The compiler driver will combine and reorder linker options,
16027         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16028         # but is careful enough not to reorder.
16029         # Supported since Solaris 2.6 (maybe 2.5.1?)
16030         if test "$GCC" = yes; then
16031           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16032         else
16033           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16034         fi
16035         ;;
16036       esac
16037       link_all_deplibs=yes
16038       ;;
16039
16040     sunos4*)
16041       if test "x$host_vendor" = xsequent; then
16042         # Use $CC to link under sequent, because it throws in some extra .o
16043         # files that make .init and .fini sections work.
16044         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16045       else
16046         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16047       fi
16048       hardcode_libdir_flag_spec='-L$libdir'
16049       hardcode_direct=yes
16050       hardcode_minus_L=yes
16051       hardcode_shlibpath_var=no
16052       ;;
16053
16054     sysv4)
16055       case $host_vendor in
16056         sni)
16057           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16058           hardcode_direct=yes # is this really true???
16059         ;;
16060         siemens)
16061           ## LD is ld it makes a PLAMLIB
16062           ## CC just makes a GrossModule.
16063           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16064           reload_cmds='$CC -r -o $output$reload_objs'
16065           hardcode_direct=no
16066         ;;
16067         motorola)
16068           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16069           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16070         ;;
16071       esac
16072       runpath_var='LD_RUN_PATH'
16073       hardcode_shlibpath_var=no
16074       ;;
16075
16076     sysv4.3*)
16077       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16078       hardcode_shlibpath_var=no
16079       export_dynamic_flag_spec='-Bexport'
16080       ;;
16081
16082     sysv4*MP*)
16083       if test -d /usr/nec; then
16084         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16085         hardcode_shlibpath_var=no
16086         runpath_var=LD_RUN_PATH
16087         hardcode_runpath_var=yes
16088         ld_shlibs=yes
16089       fi
16090       ;;
16091
16092     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16093       no_undefined_flag='${wl}-z,text'
16094       archive_cmds_need_lc=no
16095       hardcode_shlibpath_var=no
16096       runpath_var='LD_RUN_PATH'
16097
16098       if test "$GCC" = yes; then
16099         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16100         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16101       else
16102         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16103         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16104       fi
16105       ;;
16106
16107     sysv5* | sco3.2v5* | sco5v6*)
16108       # Note: We can NOT use -z defs as we might desire, because we do not
16109       # link with -lc, and that would cause any symbols used from libc to
16110       # always be unresolved, which means just about no library would
16111       # ever link correctly.  If we're not using GNU ld we use -z text
16112       # though, which does catch some bad symbols but isn't as heavy-handed
16113       # as -z defs.
16114       no_undefined_flag='${wl}-z,text'
16115       allow_undefined_flag='${wl}-z,nodefs'
16116       archive_cmds_need_lc=no
16117       hardcode_shlibpath_var=no
16118       hardcode_libdir_flag_spec='${wl}-R,$libdir'
16119       hardcode_libdir_separator=':'
16120       link_all_deplibs=yes
16121       export_dynamic_flag_spec='${wl}-Bexport'
16122       runpath_var='LD_RUN_PATH'
16123
16124       if test "$GCC" = yes; then
16125         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16126         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16127       else
16128         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16129         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16130       fi
16131       ;;
16132
16133     uts4*)
16134       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16135       hardcode_libdir_flag_spec='-L$libdir'
16136       hardcode_shlibpath_var=no
16137       ;;
16138
16139     *)
16140       ld_shlibs=no
16141       ;;
16142     esac
16143
16144     if test x$host_vendor = xsni; then
16145       case $host in
16146       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16147         export_dynamic_flag_spec='${wl}-Blargedynsym'
16148         ;;
16149       esac
16150     fi
16151   fi
16152
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16154 $as_echo "$ld_shlibs" >&6; }
16155 test "$ld_shlibs" = no && can_build_shared=no
16156
16157 with_gnu_ld=$with_gnu_ld
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173 #
16174 # Do we need to explicitly link libc?
16175 #
16176 case "x$archive_cmds_need_lc" in
16177 x|xyes)
16178   # Assume -lc should be added
16179   archive_cmds_need_lc=yes
16180
16181   if test "$enable_shared" = yes && test "$GCC" = yes; then
16182     case $archive_cmds in
16183     *'~'*)
16184       # FIXME: we may have to deal with multi-command sequences.
16185       ;;
16186     '$CC '*)
16187       # Test whether the compiler implicitly links with -lc since on some
16188       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16189       # to ld, don't add -lc before -lgcc.
16190       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16191 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16192 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16193   $as_echo_n "(cached) " >&6
16194 else
16195   $RM conftest*
16196         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16197
16198         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16199   (eval $ac_compile) 2>&5
16200   ac_status=$?
16201   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16202   test $ac_status = 0; } 2>conftest.err; then
16203           soname=conftest
16204           lib=conftest
16205           libobjs=conftest.$ac_objext
16206           deplibs=
16207           wl=$lt_prog_compiler_wl
16208           pic_flag=$lt_prog_compiler_pic
16209           compiler_flags=-v
16210           linker_flags=-v
16211           verstring=
16212           output_objdir=.
16213           libname=conftest
16214           lt_save_allow_undefined_flag=$allow_undefined_flag
16215           allow_undefined_flag=
16216           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16217   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16218   ac_status=$?
16219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16220   test $ac_status = 0; }
16221           then
16222             lt_cv_archive_cmds_need_lc=no
16223           else
16224             lt_cv_archive_cmds_need_lc=yes
16225           fi
16226           allow_undefined_flag=$lt_save_allow_undefined_flag
16227         else
16228           cat conftest.err 1>&5
16229         fi
16230         $RM conftest*
16231
16232 fi
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16234 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16235       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16236       ;;
16237     esac
16238   fi
16239   ;;
16240 esac
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16399 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16400
16401 if test "$GCC" = yes; then
16402   case $host_os in
16403     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16404     *) lt_awk_arg="/^libraries:/" ;;
16405   esac
16406   case $host_os in
16407     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16408     *) lt_sed_strip_eq="s,=/,/,g" ;;
16409   esac
16410   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16411   case $lt_search_path_spec in
16412   *\;*)
16413     # if the path contains ";" then we assume it to be the separator
16414     # otherwise default to the standard path separator (i.e. ":") - it is
16415     # assumed that no part of a normal pathname contains ";" but that should
16416     # okay in the real world where ";" in dirpaths is itself problematic.
16417     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16418     ;;
16419   *)
16420     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16421     ;;
16422   esac
16423   # Ok, now we have the path, separated by spaces, we can step through it
16424   # and add multilib dir if necessary.
16425   lt_tmp_lt_search_path_spec=
16426   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16427   for lt_sys_path in $lt_search_path_spec; do
16428     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16429       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16430     else
16431       test -d "$lt_sys_path" && \
16432         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16433     fi
16434   done
16435   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16436 BEGIN {RS=" "; FS="/|\n";} {
16437   lt_foo="";
16438   lt_count=0;
16439   for (lt_i = NF; lt_i > 0; lt_i--) {
16440     if ($lt_i != "" && $lt_i != ".") {
16441       if ($lt_i == "..") {
16442         lt_count++;
16443       } else {
16444         if (lt_count == 0) {
16445           lt_foo="/" $lt_i lt_foo;
16446         } else {
16447           lt_count--;
16448         }
16449       }
16450     }
16451   }
16452   if (lt_foo != "") { lt_freq[lt_foo]++; }
16453   if (lt_freq[lt_foo] == 1) { print lt_foo; }
16454 }'`
16455   # AWK program above erroneously prepends '/' to C:/dos/paths
16456   # for these hosts.
16457   case $host_os in
16458     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16459       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16460   esac
16461   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16462 else
16463   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16464 fi
16465 library_names_spec=
16466 libname_spec='lib$name'
16467 soname_spec=
16468 shrext_cmds=".so"
16469 postinstall_cmds=
16470 postuninstall_cmds=
16471 finish_cmds=
16472 finish_eval=
16473 shlibpath_var=
16474 shlibpath_overrides_runpath=unknown
16475 version_type=none
16476 dynamic_linker="$host_os ld.so"
16477 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16478 need_lib_prefix=unknown
16479 hardcode_into_libs=no
16480
16481 # when you set need_version to no, make sure it does not cause -set_version
16482 # flags to be left without arguments
16483 need_version=unknown
16484
16485 case $host_os in
16486 aix3*)
16487   version_type=linux
16488   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16489   shlibpath_var=LIBPATH
16490
16491   # AIX 3 has no versioning support, so we append a major version to the name.
16492   soname_spec='${libname}${release}${shared_ext}$major'
16493   ;;
16494
16495 aix[4-9]*)
16496   version_type=linux
16497   need_lib_prefix=no
16498   need_version=no
16499   hardcode_into_libs=yes
16500   if test "$host_cpu" = ia64; then
16501     # AIX 5 supports IA64
16502     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16503     shlibpath_var=LD_LIBRARY_PATH
16504   else
16505     # With GCC up to 2.95.x, collect2 would create an import file
16506     # for dependence libraries.  The import file would start with
16507     # the line `#! .'.  This would cause the generated library to
16508     # depend on `.', always an invalid library.  This was fixed in
16509     # development snapshots of GCC prior to 3.0.
16510     case $host_os in
16511       aix4 | aix4.[01] | aix4.[01].*)
16512       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16513            echo ' yes '
16514            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16515         :
16516       else
16517         can_build_shared=no
16518       fi
16519       ;;
16520     esac
16521     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16522     # soname into executable. Probably we can add versioning support to
16523     # collect2, so additional links can be useful in future.
16524     if test "$aix_use_runtimelinking" = yes; then
16525       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16526       # instead of lib<name>.a to let people know that these are not
16527       # typical AIX shared libraries.
16528       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16529     else
16530       # We preserve .a as extension for shared libraries through AIX4.2
16531       # and later when we are not doing run time linking.
16532       library_names_spec='${libname}${release}.a $libname.a'
16533       soname_spec='${libname}${release}${shared_ext}$major'
16534     fi
16535     shlibpath_var=LIBPATH
16536   fi
16537   ;;
16538
16539 amigaos*)
16540   case $host_cpu in
16541   powerpc)
16542     # Since July 2007 AmigaOS4 officially supports .so libraries.
16543     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16544     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16545     ;;
16546   m68k)
16547     library_names_spec='$libname.ixlibrary $libname.a'
16548     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16549     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16550     ;;
16551   esac
16552   ;;
16553
16554 beos*)
16555   library_names_spec='${libname}${shared_ext}'
16556   dynamic_linker="$host_os ld.so"
16557   shlibpath_var=LIBRARY_PATH
16558   ;;
16559
16560 bsdi[45]*)
16561   version_type=linux
16562   need_version=no
16563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16564   soname_spec='${libname}${release}${shared_ext}$major'
16565   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16566   shlibpath_var=LD_LIBRARY_PATH
16567   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16568   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16569   # the default ld.so.conf also contains /usr/contrib/lib and
16570   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16571   # libtool to hard-code these into programs
16572   ;;
16573
16574 cygwin* | mingw* | pw32* | cegcc*)
16575   version_type=windows
16576   shrext_cmds=".dll"
16577   need_version=no
16578   need_lib_prefix=no
16579
16580   case $GCC,$host_os in
16581   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16582     library_names_spec='$libname.dll.a'
16583     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16584     postinstall_cmds='base_file=`basename \${file}`~
16585       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16586       dldir=$destdir/`dirname \$dlpath`~
16587       test -d \$dldir || mkdir -p \$dldir~
16588       $install_prog $dir/$dlname \$dldir/$dlname~
16589       chmod a+x \$dldir/$dlname~
16590       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16591         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16592       fi'
16593     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16594       dlpath=$dir/\$dldll~
16595        $RM \$dlpath'
16596     shlibpath_overrides_runpath=yes
16597
16598     case $host_os in
16599     cygwin*)
16600       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16601       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16602
16603       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16604       ;;
16605     mingw* | cegcc*)
16606       # MinGW DLLs use traditional 'lib' prefix
16607       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16608       ;;
16609     pw32*)
16610       # pw32 DLLs use 'pw' prefix rather than 'lib'
16611       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16612       ;;
16613     esac
16614     ;;
16615
16616   *)
16617     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16618     ;;
16619   esac
16620   dynamic_linker='Win32 ld.exe'
16621   # FIXME: first we should search . and the directory the executable is in
16622   shlibpath_var=PATH
16623   ;;
16624
16625 darwin* | rhapsody*)
16626   dynamic_linker="$host_os dyld"
16627   version_type=darwin
16628   need_lib_prefix=no
16629   need_version=no
16630   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16631   soname_spec='${libname}${release}${major}$shared_ext'
16632   shlibpath_overrides_runpath=yes
16633   shlibpath_var=DYLD_LIBRARY_PATH
16634   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16635
16636   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16637   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16638   ;;
16639
16640 dgux*)
16641   version_type=linux
16642   need_lib_prefix=no
16643   need_version=no
16644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16645   soname_spec='${libname}${release}${shared_ext}$major'
16646   shlibpath_var=LD_LIBRARY_PATH
16647   ;;
16648
16649 freebsd* | dragonfly*)
16650   # DragonFly does not have aout.  When/if they implement a new
16651   # versioning mechanism, adjust this.
16652   if test -x /usr/bin/objformat; then
16653     objformat=`/usr/bin/objformat`
16654   else
16655     case $host_os in
16656     freebsd[123]*) objformat=aout ;;
16657     *) objformat=elf ;;
16658     esac
16659   fi
16660   version_type=freebsd-$objformat
16661   case $version_type in
16662     freebsd-elf*)
16663       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16664       need_version=no
16665       need_lib_prefix=no
16666       ;;
16667     freebsd-*)
16668       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16669       need_version=yes
16670       ;;
16671   esac
16672   shlibpath_var=LD_LIBRARY_PATH
16673   case $host_os in
16674   freebsd2*)
16675     shlibpath_overrides_runpath=yes
16676     ;;
16677   freebsd3.[01]* | freebsdelf3.[01]*)
16678     shlibpath_overrides_runpath=yes
16679     hardcode_into_libs=yes
16680     ;;
16681   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16682   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16683     shlibpath_overrides_runpath=no
16684     hardcode_into_libs=yes
16685     ;;
16686   *) # from 4.6 on, and DragonFly
16687     shlibpath_overrides_runpath=yes
16688     hardcode_into_libs=yes
16689     ;;
16690   esac
16691   ;;
16692
16693 gnu*)
16694   version_type=linux
16695   need_lib_prefix=no
16696   need_version=no
16697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16698   soname_spec='${libname}${release}${shared_ext}$major'
16699   shlibpath_var=LD_LIBRARY_PATH
16700   hardcode_into_libs=yes
16701   ;;
16702
16703 haiku*)
16704   version_type=linux
16705   need_lib_prefix=no
16706   need_version=no
16707   dynamic_linker="$host_os runtime_loader"
16708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16709   soname_spec='${libname}${release}${shared_ext}$major'
16710   shlibpath_var=LIBRARY_PATH
16711   shlibpath_overrides_runpath=yes
16712   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16713   hardcode_into_libs=yes
16714   ;;
16715
16716 hpux9* | hpux10* | hpux11*)
16717   # Give a soname corresponding to the major version so that dld.sl refuses to
16718   # link against other versions.
16719   version_type=sunos
16720   need_lib_prefix=no
16721   need_version=no
16722   case $host_cpu in
16723   ia64*)
16724     shrext_cmds='.so'
16725     hardcode_into_libs=yes
16726     dynamic_linker="$host_os dld.so"
16727     shlibpath_var=LD_LIBRARY_PATH
16728     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16729     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16730     soname_spec='${libname}${release}${shared_ext}$major'
16731     if test "X$HPUX_IA64_MODE" = X32; then
16732       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16733     else
16734       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16735     fi
16736     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16737     ;;
16738   hppa*64*)
16739     shrext_cmds='.sl'
16740     hardcode_into_libs=yes
16741     dynamic_linker="$host_os dld.sl"
16742     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16743     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16744     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16745     soname_spec='${libname}${release}${shared_ext}$major'
16746     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16747     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16748     ;;
16749   *)
16750     shrext_cmds='.sl'
16751     dynamic_linker="$host_os dld.sl"
16752     shlibpath_var=SHLIB_PATH
16753     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16754     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16755     soname_spec='${libname}${release}${shared_ext}$major'
16756     ;;
16757   esac
16758   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16759   postinstall_cmds='chmod 555 $lib'
16760   # or fails outright, so override atomically:
16761   install_override_mode=555
16762   ;;
16763
16764 interix[3-9]*)
16765   version_type=linux
16766   need_lib_prefix=no
16767   need_version=no
16768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16769   soname_spec='${libname}${release}${shared_ext}$major'
16770   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16771   shlibpath_var=LD_LIBRARY_PATH
16772   shlibpath_overrides_runpath=no
16773   hardcode_into_libs=yes
16774   ;;
16775
16776 irix5* | irix6* | nonstopux*)
16777   case $host_os in
16778     nonstopux*) version_type=nonstopux ;;
16779     *)
16780         if test "$lt_cv_prog_gnu_ld" = yes; then
16781                 version_type=linux
16782         else
16783                 version_type=irix
16784         fi ;;
16785   esac
16786   need_lib_prefix=no
16787   need_version=no
16788   soname_spec='${libname}${release}${shared_ext}$major'
16789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16790   case $host_os in
16791   irix5* | nonstopux*)
16792     libsuff= shlibsuff=
16793     ;;
16794   *)
16795     case $LD in # libtool.m4 will add one of these switches to LD
16796     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16797       libsuff= shlibsuff= libmagic=32-bit;;
16798     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16799       libsuff=32 shlibsuff=N32 libmagic=N32;;
16800     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16801       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16802     *) libsuff= shlibsuff= libmagic=never-match;;
16803     esac
16804     ;;
16805   esac
16806   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16807   shlibpath_overrides_runpath=no
16808   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16809   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16810   hardcode_into_libs=yes
16811   ;;
16812
16813 # No shared lib support for Linux oldld, aout, or coff.
16814 linux*oldld* | linux*aout* | linux*coff*)
16815   dynamic_linker=no
16816   ;;
16817
16818 # This must be Linux ELF.
16819 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16820   version_type=linux
16821   need_lib_prefix=no
16822   need_version=no
16823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16824   soname_spec='${libname}${release}${shared_ext}$major'
16825   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16826   shlibpath_var=LD_LIBRARY_PATH
16827   shlibpath_overrides_runpath=no
16828
16829   # Some binutils ld are patched to set DT_RUNPATH
16830   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16831   $as_echo_n "(cached) " >&6
16832 else
16833   lt_cv_shlibpath_overrides_runpath=no
16834     save_LDFLAGS=$LDFLAGS
16835     save_libdir=$libdir
16836     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16837          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16838     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16839 /* end confdefs.h.  */
16840
16841 int
16842 main ()
16843 {
16844
16845   ;
16846   return 0;
16847 }
16848 _ACEOF
16849 if ac_fn_c_try_link "$LINENO"; then :
16850   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16851   lt_cv_shlibpath_overrides_runpath=yes
16852 fi
16853 fi
16854 rm -f core conftest.err conftest.$ac_objext \
16855     conftest$ac_exeext conftest.$ac_ext
16856     LDFLAGS=$save_LDFLAGS
16857     libdir=$save_libdir
16858
16859 fi
16860
16861   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16862
16863   # This implies no fast_install, which is unacceptable.
16864   # Some rework will be needed to allow for fast_install
16865   # before this can be enabled.
16866   hardcode_into_libs=yes
16867
16868   # Append ld.so.conf contents to the search path
16869   if test -f /etc/ld.so.conf; then
16870     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' ' '`
16871     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16872   fi
16873
16874   # We used to test for /lib/ld.so.1 and disable shared libraries on
16875   # powerpc, because MkLinux only supported shared libraries with the
16876   # GNU dynamic linker.  Since this was broken with cross compilers,
16877   # most powerpc-linux boxes support dynamic linking these days and
16878   # people can always --disable-shared, the test was removed, and we
16879   # assume the GNU/Linux dynamic linker is in use.
16880   dynamic_linker='GNU/Linux ld.so'
16881   ;;
16882
16883 netbsd*)
16884   version_type=sunos
16885   need_lib_prefix=no
16886   need_version=no
16887   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16888     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16889     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16890     dynamic_linker='NetBSD (a.out) ld.so'
16891   else
16892     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16893     soname_spec='${libname}${release}${shared_ext}$major'
16894     dynamic_linker='NetBSD ld.elf_so'
16895   fi
16896   shlibpath_var=LD_LIBRARY_PATH
16897   shlibpath_overrides_runpath=yes
16898   hardcode_into_libs=yes
16899   ;;
16900
16901 newsos6)
16902   version_type=linux
16903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16904   shlibpath_var=LD_LIBRARY_PATH
16905   shlibpath_overrides_runpath=yes
16906   ;;
16907
16908 *nto* | *qnx*)
16909   version_type=qnx
16910   need_lib_prefix=no
16911   need_version=no
16912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16913   soname_spec='${libname}${release}${shared_ext}$major'
16914   shlibpath_var=LD_LIBRARY_PATH
16915   shlibpath_overrides_runpath=no
16916   hardcode_into_libs=yes
16917   dynamic_linker='ldqnx.so'
16918   ;;
16919
16920 openbsd*)
16921   version_type=sunos
16922   sys_lib_dlsearch_path_spec="/usr/lib"
16923   need_lib_prefix=no
16924   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16925   case $host_os in
16926     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16927     *)                          need_version=no  ;;
16928   esac
16929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16930   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16931   shlibpath_var=LD_LIBRARY_PATH
16932   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16933     case $host_os in
16934       openbsd2.[89] | openbsd2.[89].*)
16935         shlibpath_overrides_runpath=no
16936         ;;
16937       *)
16938         shlibpath_overrides_runpath=yes
16939         ;;
16940       esac
16941   else
16942     shlibpath_overrides_runpath=yes
16943   fi
16944   ;;
16945
16946 os2*)
16947   libname_spec='$name'
16948   shrext_cmds=".dll"
16949   need_lib_prefix=no
16950   library_names_spec='$libname${shared_ext} $libname.a'
16951   dynamic_linker='OS/2 ld.exe'
16952   shlibpath_var=LIBPATH
16953   ;;
16954
16955 osf3* | osf4* | osf5*)
16956   version_type=osf
16957   need_lib_prefix=no
16958   need_version=no
16959   soname_spec='${libname}${release}${shared_ext}$major'
16960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16961   shlibpath_var=LD_LIBRARY_PATH
16962   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16963   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16964   ;;
16965
16966 rdos*)
16967   dynamic_linker=no
16968   ;;
16969
16970 solaris*)
16971   version_type=linux
16972   need_lib_prefix=no
16973   need_version=no
16974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16975   soname_spec='${libname}${release}${shared_ext}$major'
16976   shlibpath_var=LD_LIBRARY_PATH
16977   shlibpath_overrides_runpath=yes
16978   hardcode_into_libs=yes
16979   # ldd complains unless libraries are executable
16980   postinstall_cmds='chmod +x $lib'
16981   ;;
16982
16983 sunos4*)
16984   version_type=sunos
16985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16986   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16987   shlibpath_var=LD_LIBRARY_PATH
16988   shlibpath_overrides_runpath=yes
16989   if test "$with_gnu_ld" = yes; then
16990     need_lib_prefix=no
16991   fi
16992   need_version=yes
16993   ;;
16994
16995 sysv4 | sysv4.3*)
16996   version_type=linux
16997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16998   soname_spec='${libname}${release}${shared_ext}$major'
16999   shlibpath_var=LD_LIBRARY_PATH
17000   case $host_vendor in
17001     sni)
17002       shlibpath_overrides_runpath=no
17003       need_lib_prefix=no
17004       runpath_var=LD_RUN_PATH
17005       ;;
17006     siemens)
17007       need_lib_prefix=no
17008       ;;
17009     motorola)
17010       need_lib_prefix=no
17011       need_version=no
17012       shlibpath_overrides_runpath=no
17013       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17014       ;;
17015   esac
17016   ;;
17017
17018 sysv4*MP*)
17019   if test -d /usr/nec ;then
17020     version_type=linux
17021     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17022     soname_spec='$libname${shared_ext}.$major'
17023     shlibpath_var=LD_LIBRARY_PATH
17024   fi
17025   ;;
17026
17027 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17028   version_type=freebsd-elf
17029   need_lib_prefix=no
17030   need_version=no
17031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17032   soname_spec='${libname}${release}${shared_ext}$major'
17033   shlibpath_var=LD_LIBRARY_PATH
17034   shlibpath_overrides_runpath=yes
17035   hardcode_into_libs=yes
17036   if test "$with_gnu_ld" = yes; then
17037     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17038   else
17039     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17040     case $host_os in
17041       sco3.2v5*)
17042         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17043         ;;
17044     esac
17045   fi
17046   sys_lib_dlsearch_path_spec='/usr/lib'
17047   ;;
17048
17049 tpf*)
17050   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17051   version_type=linux
17052   need_lib_prefix=no
17053   need_version=no
17054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17055   shlibpath_var=LD_LIBRARY_PATH
17056   shlibpath_overrides_runpath=no
17057   hardcode_into_libs=yes
17058   ;;
17059
17060 uts4*)
17061   version_type=linux
17062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17063   soname_spec='${libname}${release}${shared_ext}$major'
17064   shlibpath_var=LD_LIBRARY_PATH
17065   ;;
17066
17067 *)
17068   dynamic_linker=no
17069   ;;
17070 esac
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17072 $as_echo "$dynamic_linker" >&6; }
17073 test "$dynamic_linker" = no && can_build_shared=no
17074
17075 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17076 if test "$GCC" = yes; then
17077   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17078 fi
17079
17080 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17081   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17082 fi
17083 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17084   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17085 fi
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17179 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17180 hardcode_action=
17181 if test -n "$hardcode_libdir_flag_spec" ||
17182    test -n "$runpath_var" ||
17183    test "X$hardcode_automatic" = "Xyes" ; then
17184
17185   # We can hardcode non-existent directories.
17186   if test "$hardcode_direct" != no &&
17187      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17188      # have to relink, otherwise we might link with an installed library
17189      # when we should be linking with a yet-to-be-installed one
17190      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17191      test "$hardcode_minus_L" != no; then
17192     # Linking always hardcodes the temporary library directory.
17193     hardcode_action=relink
17194   else
17195     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17196     hardcode_action=immediate
17197   fi
17198 else
17199   # We cannot hardcode anything, or else we can only hardcode existing
17200   # directories.
17201   hardcode_action=unsupported
17202 fi
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17204 $as_echo "$hardcode_action" >&6; }
17205
17206 if test "$hardcode_action" = relink ||
17207    test "$inherit_rpath" = yes; then
17208   # Fast installation is not supported
17209   enable_fast_install=no
17210 elif test "$shlibpath_overrides_runpath" = yes ||
17211      test "$enable_shared" = no; then
17212   # Fast installation is not necessary
17213   enable_fast_install=needless
17214 fi
17215
17216
17217
17218
17219
17220
17221   if test "x$enable_dlopen" != xyes; then
17222   enable_dlopen=unknown
17223   enable_dlopen_self=unknown
17224   enable_dlopen_self_static=unknown
17225 else
17226   lt_cv_dlopen=no
17227   lt_cv_dlopen_libs=
17228
17229   case $host_os in
17230   beos*)
17231     lt_cv_dlopen="load_add_on"
17232     lt_cv_dlopen_libs=
17233     lt_cv_dlopen_self=yes
17234     ;;
17235
17236   mingw* | pw32* | cegcc*)
17237     lt_cv_dlopen="LoadLibrary"
17238     lt_cv_dlopen_libs=
17239     ;;
17240
17241   cygwin*)
17242     lt_cv_dlopen="dlopen"
17243     lt_cv_dlopen_libs=
17244     ;;
17245
17246   darwin*)
17247   # if libdl is installed we need to link against it
17248     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17249 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17250 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17251   $as_echo_n "(cached) " >&6
17252 else
17253   ac_check_lib_save_LIBS=$LIBS
17254 LIBS="-ldl  $LIBS"
17255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256 /* end confdefs.h.  */
17257
17258 /* Override any GCC internal prototype to avoid an error.
17259    Use char because int might match the return type of a GCC
17260    builtin and then its argument prototype would still apply.  */
17261 #ifdef __cplusplus
17262 extern "C"
17263 #endif
17264 char dlopen ();
17265 int
17266 main ()
17267 {
17268 return dlopen ();
17269   ;
17270   return 0;
17271 }
17272 _ACEOF
17273 if ac_fn_c_try_link "$LINENO"; then :
17274   ac_cv_lib_dl_dlopen=yes
17275 else
17276   ac_cv_lib_dl_dlopen=no
17277 fi
17278 rm -f core conftest.err conftest.$ac_objext \
17279     conftest$ac_exeext conftest.$ac_ext
17280 LIBS=$ac_check_lib_save_LIBS
17281 fi
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17283 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17284 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17285   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17286 else
17287
17288     lt_cv_dlopen="dyld"
17289     lt_cv_dlopen_libs=
17290     lt_cv_dlopen_self=yes
17291
17292 fi
17293
17294     ;;
17295
17296   *)
17297     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17298 if test "x$ac_cv_func_shl_load" = x""yes; then :
17299   lt_cv_dlopen="shl_load"
17300 else
17301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17302 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17303 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17304   $as_echo_n "(cached) " >&6
17305 else
17306   ac_check_lib_save_LIBS=$LIBS
17307 LIBS="-ldld  $LIBS"
17308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17309 /* end confdefs.h.  */
17310
17311 /* Override any GCC internal prototype to avoid an error.
17312    Use char because int might match the return type of a GCC
17313    builtin and then its argument prototype would still apply.  */
17314 #ifdef __cplusplus
17315 extern "C"
17316 #endif
17317 char shl_load ();
17318 int
17319 main ()
17320 {
17321 return shl_load ();
17322   ;
17323   return 0;
17324 }
17325 _ACEOF
17326 if ac_fn_c_try_link "$LINENO"; then :
17327   ac_cv_lib_dld_shl_load=yes
17328 else
17329   ac_cv_lib_dld_shl_load=no
17330 fi
17331 rm -f core conftest.err conftest.$ac_objext \
17332     conftest$ac_exeext conftest.$ac_ext
17333 LIBS=$ac_check_lib_save_LIBS
17334 fi
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17336 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17337 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17338   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17339 else
17340   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17341 if test "x$ac_cv_func_dlopen" = x""yes; then :
17342   lt_cv_dlopen="dlopen"
17343 else
17344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17345 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17346 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17347   $as_echo_n "(cached) " >&6
17348 else
17349   ac_check_lib_save_LIBS=$LIBS
17350 LIBS="-ldl  $LIBS"
17351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17352 /* end confdefs.h.  */
17353
17354 /* Override any GCC internal prototype to avoid an error.
17355    Use char because int might match the return type of a GCC
17356    builtin and then its argument prototype would still apply.  */
17357 #ifdef __cplusplus
17358 extern "C"
17359 #endif
17360 char dlopen ();
17361 int
17362 main ()
17363 {
17364 return dlopen ();
17365   ;
17366   return 0;
17367 }
17368 _ACEOF
17369 if ac_fn_c_try_link "$LINENO"; then :
17370   ac_cv_lib_dl_dlopen=yes
17371 else
17372   ac_cv_lib_dl_dlopen=no
17373 fi
17374 rm -f core conftest.err conftest.$ac_objext \
17375     conftest$ac_exeext conftest.$ac_ext
17376 LIBS=$ac_check_lib_save_LIBS
17377 fi
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17379 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17380 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17381   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17382 else
17383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17384 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17385 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17386   $as_echo_n "(cached) " >&6
17387 else
17388   ac_check_lib_save_LIBS=$LIBS
17389 LIBS="-lsvld  $LIBS"
17390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17391 /* end confdefs.h.  */
17392
17393 /* Override any GCC internal prototype to avoid an error.
17394    Use char because int might match the return type of a GCC
17395    builtin and then its argument prototype would still apply.  */
17396 #ifdef __cplusplus
17397 extern "C"
17398 #endif
17399 char dlopen ();
17400 int
17401 main ()
17402 {
17403 return dlopen ();
17404   ;
17405   return 0;
17406 }
17407 _ACEOF
17408 if ac_fn_c_try_link "$LINENO"; then :
17409   ac_cv_lib_svld_dlopen=yes
17410 else
17411   ac_cv_lib_svld_dlopen=no
17412 fi
17413 rm -f core conftest.err conftest.$ac_objext \
17414     conftest$ac_exeext conftest.$ac_ext
17415 LIBS=$ac_check_lib_save_LIBS
17416 fi
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17418 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17419 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17420   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17421 else
17422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17423 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17424 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17425   $as_echo_n "(cached) " >&6
17426 else
17427   ac_check_lib_save_LIBS=$LIBS
17428 LIBS="-ldld  $LIBS"
17429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17430 /* end confdefs.h.  */
17431
17432 /* Override any GCC internal prototype to avoid an error.
17433    Use char because int might match the return type of a GCC
17434    builtin and then its argument prototype would still apply.  */
17435 #ifdef __cplusplus
17436 extern "C"
17437 #endif
17438 char dld_link ();
17439 int
17440 main ()
17441 {
17442 return dld_link ();
17443   ;
17444   return 0;
17445 }
17446 _ACEOF
17447 if ac_fn_c_try_link "$LINENO"; then :
17448   ac_cv_lib_dld_dld_link=yes
17449 else
17450   ac_cv_lib_dld_dld_link=no
17451 fi
17452 rm -f core conftest.err conftest.$ac_objext \
17453     conftest$ac_exeext conftest.$ac_ext
17454 LIBS=$ac_check_lib_save_LIBS
17455 fi
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17457 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17458 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17459   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17460 fi
17461
17462
17463 fi
17464
17465
17466 fi
17467
17468
17469 fi
17470
17471
17472 fi
17473
17474
17475 fi
17476
17477     ;;
17478   esac
17479
17480   if test "x$lt_cv_dlopen" != xno; then
17481     enable_dlopen=yes
17482   else
17483     enable_dlopen=no
17484   fi
17485
17486   case $lt_cv_dlopen in
17487   dlopen)
17488     save_CPPFLAGS="$CPPFLAGS"
17489     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17490
17491     save_LDFLAGS="$LDFLAGS"
17492     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17493
17494     save_LIBS="$LIBS"
17495     LIBS="$lt_cv_dlopen_libs $LIBS"
17496
17497     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17498 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17499 if test "${lt_cv_dlopen_self+set}" = set; then :
17500   $as_echo_n "(cached) " >&6
17501 else
17502           if test "$cross_compiling" = yes; then :
17503   lt_cv_dlopen_self=cross
17504 else
17505   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17506   lt_status=$lt_dlunknown
17507   cat > conftest.$ac_ext <<_LT_EOF
17508 #line 17508 "configure"
17509 #include "confdefs.h"
17510
17511 #if HAVE_DLFCN_H
17512 #include <dlfcn.h>
17513 #endif
17514
17515 #include <stdio.h>
17516
17517 #ifdef RTLD_GLOBAL
17518 #  define LT_DLGLOBAL           RTLD_GLOBAL
17519 #else
17520 #  ifdef DL_GLOBAL
17521 #    define LT_DLGLOBAL         DL_GLOBAL
17522 #  else
17523 #    define LT_DLGLOBAL         0
17524 #  endif
17525 #endif
17526
17527 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17528    find out it does not work in some platform. */
17529 #ifndef LT_DLLAZY_OR_NOW
17530 #  ifdef RTLD_LAZY
17531 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17532 #  else
17533 #    ifdef DL_LAZY
17534 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17535 #    else
17536 #      ifdef RTLD_NOW
17537 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17538 #      else
17539 #        ifdef DL_NOW
17540 #          define LT_DLLAZY_OR_NOW      DL_NOW
17541 #        else
17542 #          define LT_DLLAZY_OR_NOW      0
17543 #        endif
17544 #      endif
17545 #    endif
17546 #  endif
17547 #endif
17548
17549 /* When -fvisbility=hidden is used, assume the code has been annotated
17550    correspondingly for the symbols needed.  */
17551 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17552 void fnord () __attribute__((visibility("default")));
17553 #endif
17554
17555 void fnord () { int i=42; }
17556 int main ()
17557 {
17558   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17559   int status = $lt_dlunknown;
17560
17561   if (self)
17562     {
17563       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17564       else
17565         {
17566           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17567           else puts (dlerror ());
17568         }
17569       /* dlclose (self); */
17570     }
17571   else
17572     puts (dlerror ());
17573
17574   return status;
17575 }
17576 _LT_EOF
17577   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17578   (eval $ac_link) 2>&5
17579   ac_status=$?
17580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17581   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17582     (./conftest; exit; ) >&5 2>/dev/null
17583     lt_status=$?
17584     case x$lt_status in
17585       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17586       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17587       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17588     esac
17589   else :
17590     # compilation failed
17591     lt_cv_dlopen_self=no
17592   fi
17593 fi
17594 rm -fr conftest*
17595
17596
17597 fi
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17599 $as_echo "$lt_cv_dlopen_self" >&6; }
17600
17601     if test "x$lt_cv_dlopen_self" = xyes; then
17602       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17603       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17604 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17605 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17606   $as_echo_n "(cached) " >&6
17607 else
17608           if test "$cross_compiling" = yes; then :
17609   lt_cv_dlopen_self_static=cross
17610 else
17611   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17612   lt_status=$lt_dlunknown
17613   cat > conftest.$ac_ext <<_LT_EOF
17614 #line 17614 "configure"
17615 #include "confdefs.h"
17616
17617 #if HAVE_DLFCN_H
17618 #include <dlfcn.h>
17619 #endif
17620
17621 #include <stdio.h>
17622
17623 #ifdef RTLD_GLOBAL
17624 #  define LT_DLGLOBAL           RTLD_GLOBAL
17625 #else
17626 #  ifdef DL_GLOBAL
17627 #    define LT_DLGLOBAL         DL_GLOBAL
17628 #  else
17629 #    define LT_DLGLOBAL         0
17630 #  endif
17631 #endif
17632
17633 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17634    find out it does not work in some platform. */
17635 #ifndef LT_DLLAZY_OR_NOW
17636 #  ifdef RTLD_LAZY
17637 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17638 #  else
17639 #    ifdef DL_LAZY
17640 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17641 #    else
17642 #      ifdef RTLD_NOW
17643 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17644 #      else
17645 #        ifdef DL_NOW
17646 #          define LT_DLLAZY_OR_NOW      DL_NOW
17647 #        else
17648 #          define LT_DLLAZY_OR_NOW      0
17649 #        endif
17650 #      endif
17651 #    endif
17652 #  endif
17653 #endif
17654
17655 /* When -fvisbility=hidden is used, assume the code has been annotated
17656    correspondingly for the symbols needed.  */
17657 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17658 void fnord () __attribute__((visibility("default")));
17659 #endif
17660
17661 void fnord () { int i=42; }
17662 int main ()
17663 {
17664   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17665   int status = $lt_dlunknown;
17666
17667   if (self)
17668     {
17669       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17670       else
17671         {
17672           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17673           else puts (dlerror ());
17674         }
17675       /* dlclose (self); */
17676     }
17677   else
17678     puts (dlerror ());
17679
17680   return status;
17681 }
17682 _LT_EOF
17683   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17684   (eval $ac_link) 2>&5
17685   ac_status=$?
17686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17687   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17688     (./conftest; exit; ) >&5 2>/dev/null
17689     lt_status=$?
17690     case x$lt_status in
17691       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17692       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17693       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17694     esac
17695   else :
17696     # compilation failed
17697     lt_cv_dlopen_self_static=no
17698   fi
17699 fi
17700 rm -fr conftest*
17701
17702
17703 fi
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17705 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17706     fi
17707
17708     CPPFLAGS="$save_CPPFLAGS"
17709     LDFLAGS="$save_LDFLAGS"
17710     LIBS="$save_LIBS"
17711     ;;
17712   esac
17713
17714   case $lt_cv_dlopen_self in
17715   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17716   *) enable_dlopen_self=unknown ;;
17717   esac
17718
17719   case $lt_cv_dlopen_self_static in
17720   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17721   *) enable_dlopen_self_static=unknown ;;
17722   esac
17723 fi
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741 striplib=
17742 old_striplib=
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17744 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17745 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17746   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17747   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17749 $as_echo "yes" >&6; }
17750 else
17751 # FIXME - insert some real tests, host_os isn't really good enough
17752   case $host_os in
17753   darwin*)
17754     if test -n "$STRIP" ; then
17755       striplib="$STRIP -x"
17756       old_striplib="$STRIP -S"
17757       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17758 $as_echo "yes" >&6; }
17759     else
17760       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17761 $as_echo "no" >&6; }
17762     fi
17763     ;;
17764   *)
17765     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17766 $as_echo "no" >&6; }
17767     ;;
17768   esac
17769 fi
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782   # Report which library types will actually be built
17783   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17784 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17786 $as_echo "$can_build_shared" >&6; }
17787
17788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17789 $as_echo_n "checking whether to build shared libraries... " >&6; }
17790   test "$can_build_shared" = "no" && enable_shared=no
17791
17792   # On AIX, shared libraries and static libraries use the same namespace, and
17793   # are all built from PIC.
17794   case $host_os in
17795   aix3*)
17796     test "$enable_shared" = yes && enable_static=no
17797     if test -n "$RANLIB"; then
17798       archive_cmds="$archive_cmds~\$RANLIB \$lib"
17799       postinstall_cmds='$RANLIB $lib'
17800     fi
17801     ;;
17802
17803   aix[4-9]*)
17804     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17805       test "$enable_shared" = yes && enable_static=no
17806     fi
17807     ;;
17808   esac
17809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17810 $as_echo "$enable_shared" >&6; }
17811
17812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17813 $as_echo_n "checking whether to build static libraries... " >&6; }
17814   # Make sure either enable_shared or enable_static is yes.
17815   test "$enable_shared" = yes || enable_static=yes
17816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17817 $as_echo "$enable_static" >&6; }
17818
17819
17820
17821
17822 fi
17823 ac_ext=c
17824 ac_cpp='$CPP $CPPFLAGS'
17825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17828
17829 CC="$lt_save_CC"
17830
17831       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17832     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17833     (test "X$CXX" != "Xg++"))) ; then
17834   ac_ext=cpp
17835 ac_cpp='$CXXCPP $CPPFLAGS'
17836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17840 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17841 if test -z "$CXXCPP"; then
17842   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17843   $as_echo_n "(cached) " >&6
17844 else
17845       # Double quotes because CXXCPP needs to be expanded
17846     for CXXCPP in "$CXX -E" "/lib/cpp"
17847     do
17848       ac_preproc_ok=false
17849 for ac_cxx_preproc_warn_flag in '' yes
17850 do
17851   # Use a header file that comes with gcc, so configuring glibc
17852   # with a fresh cross-compiler works.
17853   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17854   # <limits.h> exists even on freestanding compilers.
17855   # On the NeXT, cc -E runs the code through the compiler's parser,
17856   # not just through cpp. "Syntax error" is here to catch this case.
17857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17858 /* end confdefs.h.  */
17859 #ifdef __STDC__
17860 # include <limits.h>
17861 #else
17862 # include <assert.h>
17863 #endif
17864                      Syntax error
17865 _ACEOF
17866 if ac_fn_cxx_try_cpp "$LINENO"; then :
17867
17868 else
17869   # Broken: fails on valid input.
17870 continue
17871 fi
17872 rm -f conftest.err conftest.$ac_ext
17873
17874   # OK, works on sane cases.  Now check whether nonexistent headers
17875   # can be detected and how.
17876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17877 /* end confdefs.h.  */
17878 #include <ac_nonexistent.h>
17879 _ACEOF
17880 if ac_fn_cxx_try_cpp "$LINENO"; then :
17881   # Broken: success on invalid input.
17882 continue
17883 else
17884   # Passes both tests.
17885 ac_preproc_ok=:
17886 break
17887 fi
17888 rm -f conftest.err conftest.$ac_ext
17889
17890 done
17891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17892 rm -f conftest.err conftest.$ac_ext
17893 if $ac_preproc_ok; then :
17894   break
17895 fi
17896
17897     done
17898     ac_cv_prog_CXXCPP=$CXXCPP
17899
17900 fi
17901   CXXCPP=$ac_cv_prog_CXXCPP
17902 else
17903   ac_cv_prog_CXXCPP=$CXXCPP
17904 fi
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17906 $as_echo "$CXXCPP" >&6; }
17907 ac_preproc_ok=false
17908 for ac_cxx_preproc_warn_flag in '' yes
17909 do
17910   # Use a header file that comes with gcc, so configuring glibc
17911   # with a fresh cross-compiler works.
17912   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17913   # <limits.h> exists even on freestanding compilers.
17914   # On the NeXT, cc -E runs the code through the compiler's parser,
17915   # not just through cpp. "Syntax error" is here to catch this case.
17916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17917 /* end confdefs.h.  */
17918 #ifdef __STDC__
17919 # include <limits.h>
17920 #else
17921 # include <assert.h>
17922 #endif
17923                      Syntax error
17924 _ACEOF
17925 if ac_fn_cxx_try_cpp "$LINENO"; then :
17926
17927 else
17928   # Broken: fails on valid input.
17929 continue
17930 fi
17931 rm -f conftest.err conftest.$ac_ext
17932
17933   # OK, works on sane cases.  Now check whether nonexistent headers
17934   # can be detected and how.
17935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17936 /* end confdefs.h.  */
17937 #include <ac_nonexistent.h>
17938 _ACEOF
17939 if ac_fn_cxx_try_cpp "$LINENO"; then :
17940   # Broken: success on invalid input.
17941 continue
17942 else
17943   # Passes both tests.
17944 ac_preproc_ok=:
17945 break
17946 fi
17947 rm -f conftest.err conftest.$ac_ext
17948
17949 done
17950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17951 rm -f conftest.err conftest.$ac_ext
17952 if $ac_preproc_ok; then :
17953
17954 else
17955   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17957 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17958 See \`config.log' for more details." "$LINENO" 5; }
17959 fi
17960
17961 ac_ext=c
17962 ac_cpp='$CPP $CPPFLAGS'
17963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17966
17967 else
17968   _lt_caught_CXX_error=yes
17969 fi
17970
17971 ac_ext=cpp
17972 ac_cpp='$CXXCPP $CPPFLAGS'
17973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17976
17977 archive_cmds_need_lc_CXX=no
17978 allow_undefined_flag_CXX=
17979 always_export_symbols_CXX=no
17980 archive_expsym_cmds_CXX=
17981 compiler_needs_object_CXX=no
17982 export_dynamic_flag_spec_CXX=
17983 hardcode_direct_CXX=no
17984 hardcode_direct_absolute_CXX=no
17985 hardcode_libdir_flag_spec_CXX=
17986 hardcode_libdir_flag_spec_ld_CXX=
17987 hardcode_libdir_separator_CXX=
17988 hardcode_minus_L_CXX=no
17989 hardcode_shlibpath_var_CXX=unsupported
17990 hardcode_automatic_CXX=no
17991 inherit_rpath_CXX=no
17992 module_cmds_CXX=
17993 module_expsym_cmds_CXX=
17994 link_all_deplibs_CXX=unknown
17995 old_archive_cmds_CXX=$old_archive_cmds
17996 reload_flag_CXX=$reload_flag
17997 reload_cmds_CXX=$reload_cmds
17998 no_undefined_flag_CXX=
17999 whole_archive_flag_spec_CXX=
18000 enable_shared_with_static_runtimes_CXX=no
18001
18002 # Source file extension for C++ test sources.
18003 ac_ext=cpp
18004
18005 # Object file extension for compiled C++ test sources.
18006 objext=o
18007 objext_CXX=$objext
18008
18009 # No sense in running all these tests if we already determined that
18010 # the CXX compiler isn't working.  Some variables (like enable_shared)
18011 # are currently assumed to apply to all compilers on this platform,
18012 # and will be corrupted by setting them based on a non-working compiler.
18013 if test "$_lt_caught_CXX_error" != yes; then
18014   # Code to be used in simple compile tests
18015   lt_simple_compile_test_code="int some_variable = 0;"
18016
18017   # Code to be used in simple link tests
18018   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18019
18020   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18021
18022
18023
18024
18025
18026
18027 # If no C compiler was specified, use CC.
18028 LTCC=${LTCC-"$CC"}
18029
18030 # If no C compiler flags were specified, use CFLAGS.
18031 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18032
18033 # Allow CC to be a program name with arguments.
18034 compiler=$CC
18035
18036
18037   # save warnings/boilerplate of simple test code
18038   ac_outfile=conftest.$ac_objext
18039 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18040 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18041 _lt_compiler_boilerplate=`cat conftest.err`
18042 $RM conftest*
18043
18044   ac_outfile=conftest.$ac_objext
18045 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18046 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18047 _lt_linker_boilerplate=`cat conftest.err`
18048 $RM -r conftest*
18049
18050
18051   # Allow CC to be a program name with arguments.
18052   lt_save_CC=$CC
18053   lt_save_LD=$LD
18054   lt_save_GCC=$GCC
18055   GCC=$GXX
18056   lt_save_with_gnu_ld=$with_gnu_ld
18057   lt_save_path_LD=$lt_cv_path_LD
18058   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18059     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18060   else
18061     $as_unset lt_cv_prog_gnu_ld
18062   fi
18063   if test -n "${lt_cv_path_LDCXX+set}"; then
18064     lt_cv_path_LD=$lt_cv_path_LDCXX
18065   else
18066     $as_unset lt_cv_path_LD
18067   fi
18068   test -z "${LDCXX+set}" || LD=$LDCXX
18069   CC=${CXX-"c++"}
18070   compiler=$CC
18071   compiler_CXX=$CC
18072   for cc_temp in $compiler""; do
18073   case $cc_temp in
18074     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18075     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18076     \-*) ;;
18077     *) break;;
18078   esac
18079 done
18080 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18081
18082
18083   if test -n "$compiler"; then
18084     # We don't want -fno-exception when compiling C++ code, so set the
18085     # no_builtin_flag separately
18086     if test "$GXX" = yes; then
18087       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18088     else
18089       lt_prog_compiler_no_builtin_flag_CXX=
18090     fi
18091
18092     if test "$GXX" = yes; then
18093       # Set up default GNU C++ configuration
18094
18095
18096
18097 # Check whether --with-gnu-ld was given.
18098 if test "${with_gnu_ld+set}" = set; then :
18099   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18100 else
18101   with_gnu_ld=no
18102 fi
18103
18104 ac_prog=ld
18105 if test "$GCC" = yes; then
18106   # Check if gcc -print-prog-name=ld gives a path.
18107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18108 $as_echo_n "checking for ld used by $CC... " >&6; }
18109   case $host in
18110   *-*-mingw*)
18111     # gcc leaves a trailing carriage return which upsets mingw
18112     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18113   *)
18114     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18115   esac
18116   case $ac_prog in
18117     # Accept absolute paths.
18118     [\\/]* | ?:[\\/]*)
18119       re_direlt='/[^/][^/]*/\.\./'
18120       # Canonicalize the pathname of ld
18121       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18122       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18123         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18124       done
18125       test -z "$LD" && LD="$ac_prog"
18126       ;;
18127   "")
18128     # If it fails, then pretend we aren't using GCC.
18129     ac_prog=ld
18130     ;;
18131   *)
18132     # If it is relative, then search for the first ld in PATH.
18133     with_gnu_ld=unknown
18134     ;;
18135   esac
18136 elif test "$with_gnu_ld" = yes; then
18137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18138 $as_echo_n "checking for GNU ld... " >&6; }
18139 else
18140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18141 $as_echo_n "checking for non-GNU ld... " >&6; }
18142 fi
18143 if test "${lt_cv_path_LD+set}" = set; then :
18144   $as_echo_n "(cached) " >&6
18145 else
18146   if test -z "$LD"; then
18147   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18148   for ac_dir in $PATH; do
18149     IFS="$lt_save_ifs"
18150     test -z "$ac_dir" && ac_dir=.
18151     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18152       lt_cv_path_LD="$ac_dir/$ac_prog"
18153       # Check to see if the program is GNU ld.  I'd rather use --version,
18154       # but apparently some variants of GNU ld only accept -v.
18155       # Break only if it was the GNU/non-GNU ld that we prefer.
18156       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18157       *GNU* | *'with BFD'*)
18158         test "$with_gnu_ld" != no && break
18159         ;;
18160       *)
18161         test "$with_gnu_ld" != yes && break
18162         ;;
18163       esac
18164     fi
18165   done
18166   IFS="$lt_save_ifs"
18167 else
18168   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18169 fi
18170 fi
18171
18172 LD="$lt_cv_path_LD"
18173 if test -n "$LD"; then
18174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18175 $as_echo "$LD" >&6; }
18176 else
18177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18178 $as_echo "no" >&6; }
18179 fi
18180 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18182 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18183 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18184   $as_echo_n "(cached) " >&6
18185 else
18186   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18187 case `$LD -v 2>&1 </dev/null` in
18188 *GNU* | *'with BFD'*)
18189   lt_cv_prog_gnu_ld=yes
18190   ;;
18191 *)
18192   lt_cv_prog_gnu_ld=no
18193   ;;
18194 esac
18195 fi
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18197 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18198 with_gnu_ld=$lt_cv_prog_gnu_ld
18199
18200
18201
18202
18203
18204
18205
18206       # Check if GNU C++ uses GNU ld as the underlying linker, since the
18207       # archiving commands below assume that GNU ld is being used.
18208       if test "$with_gnu_ld" = yes; then
18209         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18210         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'
18211
18212         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18213         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18214
18215         # If archive_cmds runs LD, not CC, wlarc should be empty
18216         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18217         #     investigate it a little bit more. (MM)
18218         wlarc='${wl}'
18219
18220         # ancient GNU ld didn't support --whole-archive et. al.
18221         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18222           $GREP 'no-whole-archive' > /dev/null; then
18223           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18224         else
18225           whole_archive_flag_spec_CXX=
18226         fi
18227       else
18228         with_gnu_ld=no
18229         wlarc=
18230
18231         # A generic and very simple default shared library creation
18232         # command for GNU C++ for the case where it uses the native
18233         # linker, instead of GNU ld.  If possible, this setting should
18234         # overridden to take advantage of the native linker features on
18235         # the platform it is being used on.
18236         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18237       fi
18238
18239       # Commands to make compiler produce verbose output that lists
18240       # what "hidden" libraries, object files and flags are used when
18241       # linking a shared library.
18242       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18243
18244     else
18245       GXX=no
18246       with_gnu_ld=no
18247       wlarc=
18248     fi
18249
18250     # PORTME: fill in a description of your system's C++ link characteristics
18251     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18252 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18253     ld_shlibs_CXX=yes
18254     case $host_os in
18255       aix3*)
18256         # FIXME: insert proper C++ library support
18257         ld_shlibs_CXX=no
18258         ;;
18259       aix[4-9]*)
18260         if test "$host_cpu" = ia64; then
18261           # On IA64, the linker does run time linking by default, so we don't
18262           # have to do anything special.
18263           aix_use_runtimelinking=no
18264           exp_sym_flag='-Bexport'
18265           no_entry_flag=""
18266         else
18267           aix_use_runtimelinking=no
18268
18269           # Test if we are trying to use run time linking or normal
18270           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18271           # need to do runtime linking.
18272           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18273             for ld_flag in $LDFLAGS; do
18274               case $ld_flag in
18275               *-brtl*)
18276                 aix_use_runtimelinking=yes
18277                 break
18278                 ;;
18279               esac
18280             done
18281             ;;
18282           esac
18283
18284           exp_sym_flag='-bexport'
18285           no_entry_flag='-bnoentry'
18286         fi
18287
18288         # When large executables or shared objects are built, AIX ld can
18289         # have problems creating the table of contents.  If linking a library
18290         # or program results in "error TOC overflow" add -mminimal-toc to
18291         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18292         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18293
18294         archive_cmds_CXX=''
18295         hardcode_direct_CXX=yes
18296         hardcode_direct_absolute_CXX=yes
18297         hardcode_libdir_separator_CXX=':'
18298         link_all_deplibs_CXX=yes
18299         file_list_spec_CXX='${wl}-f,'
18300
18301         if test "$GXX" = yes; then
18302           case $host_os in aix4.[012]|aix4.[012].*)
18303           # We only want to do this on AIX 4.2 and lower, the check
18304           # below for broken collect2 doesn't work under 4.3+
18305           collect2name=`${CC} -print-prog-name=collect2`
18306           if test -f "$collect2name" &&
18307              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18308           then
18309             # We have reworked collect2
18310             :
18311           else
18312             # We have old collect2
18313             hardcode_direct_CXX=unsupported
18314             # It fails to find uninstalled libraries when the uninstalled
18315             # path is not listed in the libpath.  Setting hardcode_minus_L
18316             # to unsupported forces relinking
18317             hardcode_minus_L_CXX=yes
18318             hardcode_libdir_flag_spec_CXX='-L$libdir'
18319             hardcode_libdir_separator_CXX=
18320           fi
18321           esac
18322           shared_flag='-shared'
18323           if test "$aix_use_runtimelinking" = yes; then
18324             shared_flag="$shared_flag "'${wl}-G'
18325           fi
18326         else
18327           # not using gcc
18328           if test "$host_cpu" = ia64; then
18329           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18330           # chokes on -Wl,-G. The following line is correct:
18331           shared_flag='-G'
18332           else
18333             if test "$aix_use_runtimelinking" = yes; then
18334               shared_flag='${wl}-G'
18335             else
18336               shared_flag='${wl}-bM:SRE'
18337             fi
18338           fi
18339         fi
18340
18341         export_dynamic_flag_spec_CXX='${wl}-bexpall'
18342         # It seems that -bexpall does not export symbols beginning with
18343         # underscore (_), so it is better to generate a list of symbols to
18344         # export.
18345         always_export_symbols_CXX=yes
18346         if test "$aix_use_runtimelinking" = yes; then
18347           # Warning - without using the other runtime loading flags (-brtl),
18348           # -berok will link without error, but may produce a broken library.
18349           allow_undefined_flag_CXX='-berok'
18350           # Determine the default libpath from the value encoded in an empty
18351           # executable.
18352           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18353 /* end confdefs.h.  */
18354
18355 int
18356 main ()
18357 {
18358
18359   ;
18360   return 0;
18361 }
18362 _ACEOF
18363 if ac_fn_cxx_try_link "$LINENO"; then :
18364
18365 lt_aix_libpath_sed='
18366     /Import File Strings/,/^$/ {
18367         /^0/ {
18368             s/^0  *\(.*\)$/\1/
18369             p
18370         }
18371     }'
18372 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18373 # Check for a 64-bit object if we didn't find anything.
18374 if test -z "$aix_libpath"; then
18375   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18376 fi
18377 fi
18378 rm -f core conftest.err conftest.$ac_objext \
18379     conftest$ac_exeext conftest.$ac_ext
18380 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18381
18382           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18383
18384           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"
18385         else
18386           if test "$host_cpu" = ia64; then
18387             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18388             allow_undefined_flag_CXX="-z nodefs"
18389             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"
18390           else
18391             # Determine the default libpath from the value encoded in an
18392             # empty executable.
18393             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18394 /* end confdefs.h.  */
18395
18396 int
18397 main ()
18398 {
18399
18400   ;
18401   return 0;
18402 }
18403 _ACEOF
18404 if ac_fn_cxx_try_link "$LINENO"; then :
18405
18406 lt_aix_libpath_sed='
18407     /Import File Strings/,/^$/ {
18408         /^0/ {
18409             s/^0  *\(.*\)$/\1/
18410             p
18411         }
18412     }'
18413 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18414 # Check for a 64-bit object if we didn't find anything.
18415 if test -z "$aix_libpath"; then
18416   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18417 fi
18418 fi
18419 rm -f core conftest.err conftest.$ac_objext \
18420     conftest$ac_exeext conftest.$ac_ext
18421 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18422
18423             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18424             # Warning - without using the other run time loading flags,
18425             # -berok will link without error, but may produce a broken library.
18426             no_undefined_flag_CXX=' ${wl}-bernotok'
18427             allow_undefined_flag_CXX=' ${wl}-berok'
18428             if test "$with_gnu_ld" = yes; then
18429               # We only use this code for GNU lds that support --whole-archive.
18430               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18431             else
18432               # Exported symbols can be pulled into shared objects from archives
18433               whole_archive_flag_spec_CXX='$convenience'
18434             fi
18435             archive_cmds_need_lc_CXX=yes
18436             # This is similar to how AIX traditionally builds its shared
18437             # libraries.
18438             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'
18439           fi
18440         fi
18441         ;;
18442
18443       beos*)
18444         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18445           allow_undefined_flag_CXX=unsupported
18446           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18447           # support --undefined.  This deserves some investigation.  FIXME
18448           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18449         else
18450           ld_shlibs_CXX=no
18451         fi
18452         ;;
18453
18454       chorus*)
18455         case $cc_basename in
18456           *)
18457           # FIXME: insert proper C++ library support
18458           ld_shlibs_CXX=no
18459           ;;
18460         esac
18461         ;;
18462
18463       cygwin* | mingw* | pw32* | cegcc*)
18464         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18465         # as there is no search path for DLLs.
18466         hardcode_libdir_flag_spec_CXX='-L$libdir'
18467         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18468         allow_undefined_flag_CXX=unsupported
18469         always_export_symbols_CXX=no
18470         enable_shared_with_static_runtimes_CXX=yes
18471
18472         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18473           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'
18474           # If the export-symbols file already is a .def file (1st line
18475           # is EXPORTS), use it as is; otherwise, prepend...
18476           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18477             cp $export_symbols $output_objdir/$soname.def;
18478           else
18479             echo EXPORTS > $output_objdir/$soname.def;
18480             cat $export_symbols >> $output_objdir/$soname.def;
18481           fi~
18482           $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'
18483         else
18484           ld_shlibs_CXX=no
18485         fi
18486         ;;
18487       darwin* | rhapsody*)
18488
18489
18490   archive_cmds_need_lc_CXX=no
18491   hardcode_direct_CXX=no
18492   hardcode_automatic_CXX=yes
18493   hardcode_shlibpath_var_CXX=unsupported
18494   if test "$lt_cv_ld_force_load" = "yes"; then
18495     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\"`'
18496   else
18497     whole_archive_flag_spec_CXX=''
18498   fi
18499   link_all_deplibs_CXX=yes
18500   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18501   case $cc_basename in
18502      ifort*) _lt_dar_can_shared=yes ;;
18503      *) _lt_dar_can_shared=$GCC ;;
18504   esac
18505   if test "$_lt_dar_can_shared" = "yes"; then
18506     output_verbose_link_cmd=func_echo_all
18507     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}"
18508     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18509     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}"
18510     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}"
18511        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18512       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}"
18513       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}"
18514     fi
18515
18516   else
18517   ld_shlibs_CXX=no
18518   fi
18519
18520         ;;
18521
18522       dgux*)
18523         case $cc_basename in
18524           ec++*)
18525             # FIXME: insert proper C++ library support
18526             ld_shlibs_CXX=no
18527             ;;
18528           ghcx*)
18529             # Green Hills C++ Compiler
18530             # FIXME: insert proper C++ library support
18531             ld_shlibs_CXX=no
18532             ;;
18533           *)
18534             # FIXME: insert proper C++ library support
18535             ld_shlibs_CXX=no
18536             ;;
18537         esac
18538         ;;
18539
18540       freebsd[12]*)
18541         # C++ shared libraries reported to be fairly broken before
18542         # switch to ELF
18543         ld_shlibs_CXX=no
18544         ;;
18545
18546       freebsd-elf*)
18547         archive_cmds_need_lc_CXX=no
18548         ;;
18549
18550       freebsd* | dragonfly*)
18551         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18552         # conventions
18553         ld_shlibs_CXX=yes
18554         ;;
18555
18556       gnu*)
18557         ;;
18558
18559       haiku*)
18560         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18561         link_all_deplibs_CXX=yes
18562         ;;
18563
18564       hpux9*)
18565         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18566         hardcode_libdir_separator_CXX=:
18567         export_dynamic_flag_spec_CXX='${wl}-E'
18568         hardcode_direct_CXX=yes
18569         hardcode_minus_L_CXX=yes # Not in the search PATH,
18570                                              # but as the default
18571                                              # location of the library.
18572
18573         case $cc_basename in
18574           CC*)
18575             # FIXME: insert proper C++ library support
18576             ld_shlibs_CXX=no
18577             ;;
18578           aCC*)
18579             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'
18580             # Commands to make compiler produce verbose output that lists
18581             # what "hidden" libraries, object files and flags are used when
18582             # linking a shared library.
18583             #
18584             # There doesn't appear to be a way to prevent this compiler from
18585             # explicitly linking system object files so we need to strip them
18586             # from the output so that they don't get included in the library
18587             # dependencies.
18588             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"'
18589             ;;
18590           *)
18591             if test "$GXX" = yes; then
18592               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'
18593             else
18594               # FIXME: insert proper C++ library support
18595               ld_shlibs_CXX=no
18596             fi
18597             ;;
18598         esac
18599         ;;
18600
18601       hpux10*|hpux11*)
18602         if test $with_gnu_ld = no; then
18603           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18604           hardcode_libdir_separator_CXX=:
18605
18606           case $host_cpu in
18607             hppa*64*|ia64*)
18608               ;;
18609             *)
18610               export_dynamic_flag_spec_CXX='${wl}-E'
18611               ;;
18612           esac
18613         fi
18614         case $host_cpu in
18615           hppa*64*|ia64*)
18616             hardcode_direct_CXX=no
18617             hardcode_shlibpath_var_CXX=no
18618             ;;
18619           *)
18620             hardcode_direct_CXX=yes
18621             hardcode_direct_absolute_CXX=yes
18622             hardcode_minus_L_CXX=yes # Not in the search PATH,
18623                                                  # but as the default
18624                                                  # location of the library.
18625             ;;
18626         esac
18627
18628         case $cc_basename in
18629           CC*)
18630             # FIXME: insert proper C++ library support
18631             ld_shlibs_CXX=no
18632             ;;
18633           aCC*)
18634             case $host_cpu in
18635               hppa*64*)
18636                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18637                 ;;
18638               ia64*)
18639                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18640                 ;;
18641               *)
18642                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18643                 ;;
18644             esac
18645             # Commands to make compiler produce verbose output that lists
18646             # what "hidden" libraries, object files and flags are used when
18647             # linking a shared library.
18648             #
18649             # There doesn't appear to be a way to prevent this compiler from
18650             # explicitly linking system object files so we need to strip them
18651             # from the output so that they don't get included in the library
18652             # dependencies.
18653             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"'
18654             ;;
18655           *)
18656             if test "$GXX" = yes; then
18657               if test $with_gnu_ld = no; then
18658                 case $host_cpu in
18659                   hppa*64*)
18660                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18661                     ;;
18662                   ia64*)
18663                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18664                     ;;
18665                   *)
18666                     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'
18667                     ;;
18668                 esac
18669               fi
18670             else
18671               # FIXME: insert proper C++ library support
18672               ld_shlibs_CXX=no
18673             fi
18674             ;;
18675         esac
18676         ;;
18677
18678       interix[3-9]*)
18679         hardcode_direct_CXX=no
18680         hardcode_shlibpath_var_CXX=no
18681         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18682         export_dynamic_flag_spec_CXX='${wl}-E'
18683         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18684         # Instead, shared libraries are loaded at an image base (0x10000000 by
18685         # default) and relocated if they conflict, which is a slow very memory
18686         # consuming and fragmenting process.  To avoid this, we pick a random,
18687         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18688         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18689         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'
18690         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'
18691         ;;
18692       irix5* | irix6*)
18693         case $cc_basename in
18694           CC*)
18695             # SGI C++
18696             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'
18697
18698             # Archives containing C++ object files must be created using
18699             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18700             # necessary to make sure instantiated templates are included
18701             # in the archive.
18702             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18703             ;;
18704           *)
18705             if test "$GXX" = yes; then
18706               if test "$with_gnu_ld" = no; then
18707                 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'
18708               else
18709                 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'
18710               fi
18711             fi
18712             link_all_deplibs_CXX=yes
18713             ;;
18714         esac
18715         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18716         hardcode_libdir_separator_CXX=:
18717         inherit_rpath_CXX=yes
18718         ;;
18719
18720       linux* | k*bsd*-gnu | kopensolaris*-gnu)
18721         case $cc_basename in
18722           KCC*)
18723             # Kuck and Associates, Inc. (KAI) C++ Compiler
18724
18725             # KCC will only create a shared library if the output file
18726             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18727             # to its proper name (with version) after linking.
18728             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'
18729             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'
18730             # Commands to make compiler produce verbose output that lists
18731             # what "hidden" libraries, object files and flags are used when
18732             # linking a shared library.
18733             #
18734             # There doesn't appear to be a way to prevent this compiler from
18735             # explicitly linking system object files so we need to strip them
18736             # from the output so that they don't get included in the library
18737             # dependencies.
18738             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"'
18739
18740             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18741             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18742
18743             # Archives containing C++ object files must be created using
18744             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18745             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18746             ;;
18747           icpc* | ecpc* )
18748             # Intel C++
18749             with_gnu_ld=yes
18750             # version 8.0 and above of icpc choke on multiply defined symbols
18751             # if we add $predep_objects and $postdep_objects, however 7.1 and
18752             # earlier do not add the objects themselves.
18753             case `$CC -V 2>&1` in
18754               *"Version 7."*)
18755                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18756                 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'
18757                 ;;
18758               *)  # Version 8.0 or newer
18759                 tmp_idyn=
18760                 case $host_cpu in
18761                   ia64*) tmp_idyn=' -i_dynamic';;
18762                 esac
18763                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18764                 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'
18765                 ;;
18766             esac
18767             archive_cmds_need_lc_CXX=no
18768             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18769             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18770             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18771             ;;
18772           pgCC* | pgcpp*)
18773             # Portland Group C++ compiler
18774             case `$CC -V` in
18775             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18776               prelink_cmds_CXX='tpldir=Template.dir~
18777                 rm -rf $tpldir~
18778                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18779                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18780               old_archive_cmds_CXX='tpldir=Template.dir~
18781                 rm -rf $tpldir~
18782                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18783                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18784                 $RANLIB $oldlib'
18785               archive_cmds_CXX='tpldir=Template.dir~
18786                 rm -rf $tpldir~
18787                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18788                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18789               archive_expsym_cmds_CXX='tpldir=Template.dir~
18790                 rm -rf $tpldir~
18791                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18792                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
18793               ;;
18794             *) # Version 6 and above use weak symbols
18795               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18796               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'
18797               ;;
18798             esac
18799
18800             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18801             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18802             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'
18803             ;;
18804           cxx*)
18805             # Compaq C++
18806             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18807             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'
18808
18809             runpath_var=LD_RUN_PATH
18810             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18811             hardcode_libdir_separator_CXX=:
18812
18813             # Commands to make compiler produce verbose output that lists
18814             # what "hidden" libraries, object files and flags are used when
18815             # linking a shared library.
18816             #
18817             # There doesn't appear to be a way to prevent this compiler from
18818             # explicitly linking system object files so we need to strip them
18819             # from the output so that they don't get included in the library
18820             # dependencies.
18821             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'
18822             ;;
18823           xl* | mpixl* | bgxl*)
18824             # IBM XL 8.0 on PPC, with GNU ld
18825             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18826             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18827             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18828             if test "x$supports_anon_versioning" = xyes; then
18829               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18830                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18831                 echo "local: *; };" >> $output_objdir/$libname.ver~
18832                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18833             fi
18834             ;;
18835           *)
18836             case `$CC -V 2>&1 | sed 5q` in
18837             *Sun\ C*)
18838               # Sun C++ 5.9
18839               no_undefined_flag_CXX=' -zdefs'
18840               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18841               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'
18842               hardcode_libdir_flag_spec_CXX='-R$libdir'
18843               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'
18844               compiler_needs_object_CXX=yes
18845
18846               # Not sure whether something based on
18847               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18848               # would be better.
18849               output_verbose_link_cmd='func_echo_all'
18850
18851               # Archives containing C++ object files must be created using
18852               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18853               # necessary to make sure instantiated templates are included
18854               # in the archive.
18855               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18856               ;;
18857             esac
18858             ;;
18859         esac
18860         ;;
18861
18862       lynxos*)
18863         # FIXME: insert proper C++ library support
18864         ld_shlibs_CXX=no
18865         ;;
18866
18867       m88k*)
18868         # FIXME: insert proper C++ library support
18869         ld_shlibs_CXX=no
18870         ;;
18871
18872       mvs*)
18873         case $cc_basename in
18874           cxx*)
18875             # FIXME: insert proper C++ library support
18876             ld_shlibs_CXX=no
18877             ;;
18878           *)
18879             # FIXME: insert proper C++ library support
18880             ld_shlibs_CXX=no
18881             ;;
18882         esac
18883         ;;
18884
18885       netbsd*)
18886         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18887           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18888           wlarc=
18889           hardcode_libdir_flag_spec_CXX='-R$libdir'
18890           hardcode_direct_CXX=yes
18891           hardcode_shlibpath_var_CXX=no
18892         fi
18893         # Workaround some broken pre-1.5 toolchains
18894         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18895         ;;
18896
18897       *nto* | *qnx*)
18898         ld_shlibs_CXX=yes
18899         ;;
18900
18901       openbsd2*)
18902         # C++ shared libraries are fairly broken
18903         ld_shlibs_CXX=no
18904         ;;
18905
18906       openbsd*)
18907         if test -f /usr/libexec/ld.so; then
18908           hardcode_direct_CXX=yes
18909           hardcode_shlibpath_var_CXX=no
18910           hardcode_direct_absolute_CXX=yes
18911           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18912           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18913           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18914             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18915             export_dynamic_flag_spec_CXX='${wl}-E'
18916             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18917           fi
18918           output_verbose_link_cmd=func_echo_all
18919         else
18920           ld_shlibs_CXX=no
18921         fi
18922         ;;
18923
18924       osf3* | osf4* | osf5*)
18925         case $cc_basename in
18926           KCC*)
18927             # Kuck and Associates, Inc. (KAI) C++ Compiler
18928
18929             # KCC will only create a shared library if the output file
18930             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18931             # to its proper name (with version) after linking.
18932             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'
18933
18934             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18935             hardcode_libdir_separator_CXX=:
18936
18937             # Archives containing C++ object files must be created using
18938             # the KAI C++ compiler.
18939             case $host in
18940               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18941               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18942             esac
18943             ;;
18944           RCC*)
18945             # Rational C++ 2.4.1
18946             # FIXME: insert proper C++ library support
18947             ld_shlibs_CXX=no
18948             ;;
18949           cxx*)
18950             case $host in
18951               osf3*)
18952                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18953                 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'
18954                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18955                 ;;
18956               *)
18957                 allow_undefined_flag_CXX=' -expect_unresolved \*'
18958                 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'
18959                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18960                   echo "-hidden">> $lib.exp~
18961                   $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~
18962                   $RM $lib.exp'
18963                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18964                 ;;
18965             esac
18966
18967             hardcode_libdir_separator_CXX=:
18968
18969             # Commands to make compiler produce verbose output that lists
18970             # what "hidden" libraries, object files and flags are used when
18971             # linking a shared library.
18972             #
18973             # There doesn't appear to be a way to prevent this compiler from
18974             # explicitly linking system object files so we need to strip them
18975             # from the output so that they don't get included in the library
18976             # dependencies.
18977             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"'
18978             ;;
18979           *)
18980             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18981               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18982               case $host in
18983                 osf3*)
18984                   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'
18985                   ;;
18986                 *)
18987                   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'
18988                   ;;
18989               esac
18990
18991               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18992               hardcode_libdir_separator_CXX=:
18993
18994               # Commands to make compiler produce verbose output that lists
18995               # what "hidden" libraries, object files and flags are used when
18996               # linking a shared library.
18997               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18998
18999             else
19000               # FIXME: insert proper C++ library support
19001               ld_shlibs_CXX=no
19002             fi
19003             ;;
19004         esac
19005         ;;
19006
19007       psos*)
19008         # FIXME: insert proper C++ library support
19009         ld_shlibs_CXX=no
19010         ;;
19011
19012       sunos4*)
19013         case $cc_basename in
19014           CC*)
19015             # Sun C++ 4.x
19016             # FIXME: insert proper C++ library support
19017             ld_shlibs_CXX=no
19018             ;;
19019           lcc*)
19020             # Lucid
19021             # FIXME: insert proper C++ library support
19022             ld_shlibs_CXX=no
19023             ;;
19024           *)
19025             # FIXME: insert proper C++ library support
19026             ld_shlibs_CXX=no
19027             ;;
19028         esac
19029         ;;
19030
19031       solaris*)
19032         case $cc_basename in
19033           CC*)
19034             # Sun C++ 4.2, 5.x and Centerline C++
19035             archive_cmds_need_lc_CXX=yes
19036             no_undefined_flag_CXX=' -zdefs'
19037             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19038             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19039               $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'
19040
19041             hardcode_libdir_flag_spec_CXX='-R$libdir'
19042             hardcode_shlibpath_var_CXX=no
19043             case $host_os in
19044               solaris2.[0-5] | solaris2.[0-5].*) ;;
19045               *)
19046                 # The compiler driver will combine and reorder linker options,
19047                 # but understands `-z linker_flag'.
19048                 # Supported since Solaris 2.6 (maybe 2.5.1?)
19049                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19050                 ;;
19051             esac
19052             link_all_deplibs_CXX=yes
19053
19054             output_verbose_link_cmd='func_echo_all'
19055
19056             # Archives containing C++ object files must be created using
19057             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19058             # necessary to make sure instantiated templates are included
19059             # in the archive.
19060             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19061             ;;
19062           gcx*)
19063             # Green Hills C++ Compiler
19064             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19065
19066             # The C++ compiler must be used to create the archive.
19067             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19068             ;;
19069           *)
19070             # GNU C++ compiler with Solaris linker
19071             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19072               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19073               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19074                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19075                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19076                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19077
19078                 # Commands to make compiler produce verbose output that lists
19079                 # what "hidden" libraries, object files and flags are used when
19080                 # linking a shared library.
19081                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19082               else
19083                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19084                 # platform.
19085                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19086                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19087                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19088
19089                 # Commands to make compiler produce verbose output that lists
19090                 # what "hidden" libraries, object files and flags are used when
19091                 # linking a shared library.
19092                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19093               fi
19094
19095               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19096               case $host_os in
19097                 solaris2.[0-5] | solaris2.[0-5].*) ;;
19098                 *)
19099                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19100                   ;;
19101               esac
19102             fi
19103             ;;
19104         esac
19105         ;;
19106
19107     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19108       no_undefined_flag_CXX='${wl}-z,text'
19109       archive_cmds_need_lc_CXX=no
19110       hardcode_shlibpath_var_CXX=no
19111       runpath_var='LD_RUN_PATH'
19112
19113       case $cc_basename in
19114         CC*)
19115           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19116           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19117           ;;
19118         *)
19119           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19120           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19121           ;;
19122       esac
19123       ;;
19124
19125       sysv5* | sco3.2v5* | sco5v6*)
19126         # Note: We can NOT use -z defs as we might desire, because we do not
19127         # link with -lc, and that would cause any symbols used from libc to
19128         # always be unresolved, which means just about no library would
19129         # ever link correctly.  If we're not using GNU ld we use -z text
19130         # though, which does catch some bad symbols but isn't as heavy-handed
19131         # as -z defs.
19132         no_undefined_flag_CXX='${wl}-z,text'
19133         allow_undefined_flag_CXX='${wl}-z,nodefs'
19134         archive_cmds_need_lc_CXX=no
19135         hardcode_shlibpath_var_CXX=no
19136         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19137         hardcode_libdir_separator_CXX=':'
19138         link_all_deplibs_CXX=yes
19139         export_dynamic_flag_spec_CXX='${wl}-Bexport'
19140         runpath_var='LD_RUN_PATH'
19141
19142         case $cc_basename in
19143           CC*)
19144             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19145             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19146             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19147               '"$old_archive_cmds_CXX"
19148             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19149               '"$reload_cmds_CXX"
19150             ;;
19151           *)
19152             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19153             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19154             ;;
19155         esac
19156       ;;
19157
19158       tandem*)
19159         case $cc_basename in
19160           NCC*)
19161             # NonStop-UX NCC 3.20
19162             # FIXME: insert proper C++ library support
19163             ld_shlibs_CXX=no
19164             ;;
19165           *)
19166             # FIXME: insert proper C++ library support
19167             ld_shlibs_CXX=no
19168             ;;
19169         esac
19170         ;;
19171
19172       vxworks*)
19173         # FIXME: insert proper C++ library support
19174         ld_shlibs_CXX=no
19175         ;;
19176
19177       *)
19178         # FIXME: insert proper C++ library support
19179         ld_shlibs_CXX=no
19180         ;;
19181     esac
19182
19183     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19184 $as_echo "$ld_shlibs_CXX" >&6; }
19185     test "$ld_shlibs_CXX" = no && can_build_shared=no
19186
19187     GCC_CXX="$GXX"
19188     LD_CXX="$LD"
19189
19190     ## CAVEAT EMPTOR:
19191     ## There is no encapsulation within the following macros, do not change
19192     ## the running order or otherwise move them around unless you know exactly
19193     ## what you are doing...
19194     # Dependencies to place before and after the object being linked:
19195 predep_objects_CXX=
19196 postdep_objects_CXX=
19197 predeps_CXX=
19198 postdeps_CXX=
19199 compiler_lib_search_path_CXX=
19200
19201 cat > conftest.$ac_ext <<_LT_EOF
19202 class Foo
19203 {
19204 public:
19205   Foo (void) { a = 0; }
19206 private:
19207   int a;
19208 };
19209 _LT_EOF
19210
19211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19212   (eval $ac_compile) 2>&5
19213   ac_status=$?
19214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19215   test $ac_status = 0; }; then
19216   # Parse the compiler output and extract the necessary
19217   # objects, libraries and library flags.
19218
19219   # Sentinel used to keep track of whether or not we are before
19220   # the conftest object file.
19221   pre_test_object_deps_done=no
19222
19223   for p in `eval "$output_verbose_link_cmd"`; do
19224     case $p in
19225
19226     -L* | -R* | -l*)
19227        # Some compilers place space between "-{L,R}" and the path.
19228        # Remove the space.
19229        if test $p = "-L" ||
19230           test $p = "-R"; then
19231          prev=$p
19232          continue
19233        else
19234          prev=
19235        fi
19236
19237        if test "$pre_test_object_deps_done" = no; then
19238          case $p in
19239          -L* | -R*)
19240            # Internal compiler library paths should come after those
19241            # provided the user.  The postdeps already come after the
19242            # user supplied libs so there is no need to process them.
19243            if test -z "$compiler_lib_search_path_CXX"; then
19244              compiler_lib_search_path_CXX="${prev}${p}"
19245            else
19246              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19247            fi
19248            ;;
19249          # The "-l" case would never come before the object being
19250          # linked, so don't bother handling this case.
19251          esac
19252        else
19253          if test -z "$postdeps_CXX"; then
19254            postdeps_CXX="${prev}${p}"
19255          else
19256            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19257          fi
19258        fi
19259        ;;
19260
19261     *.$objext)
19262        # This assumes that the test object file only shows up
19263        # once in the compiler output.
19264        if test "$p" = "conftest.$objext"; then
19265          pre_test_object_deps_done=yes
19266          continue
19267        fi
19268
19269        if test "$pre_test_object_deps_done" = no; then
19270          if test -z "$predep_objects_CXX"; then
19271            predep_objects_CXX="$p"
19272          else
19273            predep_objects_CXX="$predep_objects_CXX $p"
19274          fi
19275        else
19276          if test -z "$postdep_objects_CXX"; then
19277            postdep_objects_CXX="$p"
19278          else
19279            postdep_objects_CXX="$postdep_objects_CXX $p"
19280          fi
19281        fi
19282        ;;
19283
19284     *) ;; # Ignore the rest.
19285
19286     esac
19287   done
19288
19289   # Clean up.
19290   rm -f a.out a.exe
19291 else
19292   echo "libtool.m4: error: problem compiling CXX test program"
19293 fi
19294
19295 $RM -f confest.$objext
19296
19297 # PORTME: override above test on systems where it is broken
19298 case $host_os in
19299 interix[3-9]*)
19300   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19301   # hack all around it, let's just trust "g++" to DTRT.
19302   predep_objects_CXX=
19303   postdep_objects_CXX=
19304   postdeps_CXX=
19305   ;;
19306
19307 linux*)
19308   case `$CC -V 2>&1 | sed 5q` in
19309   *Sun\ C*)
19310     # Sun C++ 5.9
19311
19312     # The more standards-conforming stlport4 library is
19313     # incompatible with the Cstd library. Avoid specifying
19314     # it if it's in CXXFLAGS. Ignore libCrun as
19315     # -library=stlport4 depends on it.
19316     case " $CXX $CXXFLAGS " in
19317     *" -library=stlport4 "*)
19318       solaris_use_stlport4=yes
19319       ;;
19320     esac
19321
19322     if test "$solaris_use_stlport4" != yes; then
19323       postdeps_CXX='-library=Cstd -library=Crun'
19324     fi
19325     ;;
19326   esac
19327   ;;
19328
19329 solaris*)
19330   case $cc_basename in
19331   CC*)
19332     # The more standards-conforming stlport4 library is
19333     # incompatible with the Cstd library. Avoid specifying
19334     # it if it's in CXXFLAGS. Ignore libCrun as
19335     # -library=stlport4 depends on it.
19336     case " $CXX $CXXFLAGS " in
19337     *" -library=stlport4 "*)
19338       solaris_use_stlport4=yes
19339       ;;
19340     esac
19341
19342     # Adding this requires a known-good setup of shared libraries for
19343     # Sun compiler versions before 5.6, else PIC objects from an old
19344     # archive will be linked into the output, leading to subtle bugs.
19345     if test "$solaris_use_stlport4" != yes; then
19346       postdeps_CXX='-library=Cstd -library=Crun'
19347     fi
19348     ;;
19349   esac
19350   ;;
19351 esac
19352
19353
19354 case " $postdeps_CXX " in
19355 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19356 esac
19357  compiler_lib_search_dirs_CXX=
19358 if test -n "${compiler_lib_search_path_CXX}"; then
19359  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19360 fi
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392     lt_prog_compiler_wl_CXX=
19393 lt_prog_compiler_pic_CXX=
19394 lt_prog_compiler_static_CXX=
19395
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19397 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19398
19399   # C++ specific cases for pic, static, wl, etc.
19400   if test "$GXX" = yes; then
19401     lt_prog_compiler_wl_CXX='-Wl,'
19402     lt_prog_compiler_static_CXX='-static'
19403
19404     case $host_os in
19405     aix*)
19406       # All AIX code is PIC.
19407       if test "$host_cpu" = ia64; then
19408         # AIX 5 now supports IA64 processor
19409         lt_prog_compiler_static_CXX='-Bstatic'
19410       fi
19411       ;;
19412
19413     amigaos*)
19414       case $host_cpu in
19415       powerpc)
19416             # see comment about AmigaOS4 .so support
19417             lt_prog_compiler_pic_CXX='-fPIC'
19418         ;;
19419       m68k)
19420             # FIXME: we need at least 68020 code to build shared libraries, but
19421             # adding the `-m68020' flag to GCC prevents building anything better,
19422             # like `-m68040'.
19423             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19424         ;;
19425       esac
19426       ;;
19427
19428     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19429       # PIC is the default for these OSes.
19430       ;;
19431     mingw* | cygwin* | os2* | pw32* | cegcc*)
19432       # This hack is so that the source file can tell whether it is being
19433       # built for inclusion in a dll (and should export symbols for example).
19434       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19435       # (--disable-auto-import) libraries
19436       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19437       ;;
19438     darwin* | rhapsody*)
19439       # PIC is the default on this platform
19440       # Common symbols not allowed in MH_DYLIB files
19441       lt_prog_compiler_pic_CXX='-fno-common'
19442       ;;
19443     *djgpp*)
19444       # DJGPP does not support shared libraries at all
19445       lt_prog_compiler_pic_CXX=
19446       ;;
19447     haiku*)
19448       # PIC is the default for Haiku.
19449       # The "-static" flag exists, but is broken.
19450       lt_prog_compiler_static_CXX=
19451       ;;
19452     interix[3-9]*)
19453       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19454       # Instead, we relocate shared libraries at runtime.
19455       ;;
19456     sysv4*MP*)
19457       if test -d /usr/nec; then
19458         lt_prog_compiler_pic_CXX=-Kconform_pic
19459       fi
19460       ;;
19461     hpux*)
19462       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19463       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19464       # sets the default TLS model and affects inlining.
19465       case $host_cpu in
19466       hppa*64*)
19467         ;;
19468       *)
19469         lt_prog_compiler_pic_CXX='-fPIC'
19470         ;;
19471       esac
19472       ;;
19473     *qnx* | *nto*)
19474       # QNX uses GNU C++, but need to define -shared option too, otherwise
19475       # it will coredump.
19476       lt_prog_compiler_pic_CXX='-fPIC -shared'
19477       ;;
19478     *)
19479       lt_prog_compiler_pic_CXX='-fPIC'
19480       ;;
19481     esac
19482   else
19483     case $host_os in
19484       aix[4-9]*)
19485         # All AIX code is PIC.
19486         if test "$host_cpu" = ia64; then
19487           # AIX 5 now supports IA64 processor
19488           lt_prog_compiler_static_CXX='-Bstatic'
19489         else
19490           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19491         fi
19492         ;;
19493       chorus*)
19494         case $cc_basename in
19495         cxch68*)
19496           # Green Hills C++ Compiler
19497           # _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"
19498           ;;
19499         esac
19500         ;;
19501       dgux*)
19502         case $cc_basename in
19503           ec++*)
19504             lt_prog_compiler_pic_CXX='-KPIC'
19505             ;;
19506           ghcx*)
19507             # Green Hills C++ Compiler
19508             lt_prog_compiler_pic_CXX='-pic'
19509             ;;
19510           *)
19511             ;;
19512         esac
19513         ;;
19514       freebsd* | dragonfly*)
19515         # FreeBSD uses GNU C++
19516         ;;
19517       hpux9* | hpux10* | hpux11*)
19518         case $cc_basename in
19519           CC*)
19520             lt_prog_compiler_wl_CXX='-Wl,'
19521             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19522             if test "$host_cpu" != ia64; then
19523               lt_prog_compiler_pic_CXX='+Z'
19524             fi
19525             ;;
19526           aCC*)
19527             lt_prog_compiler_wl_CXX='-Wl,'
19528             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19529             case $host_cpu in
19530             hppa*64*|ia64*)
19531               # +Z the default
19532               ;;
19533             *)
19534               lt_prog_compiler_pic_CXX='+Z'
19535               ;;
19536             esac
19537             ;;
19538           *)
19539             ;;
19540         esac
19541         ;;
19542       interix*)
19543         # This is c89, which is MS Visual C++ (no shared libs)
19544         # Anyone wants to do a port?
19545         ;;
19546       irix5* | irix6* | nonstopux*)
19547         case $cc_basename in
19548           CC*)
19549             lt_prog_compiler_wl_CXX='-Wl,'
19550             lt_prog_compiler_static_CXX='-non_shared'
19551             # CC pic flag -KPIC is the default.
19552             ;;
19553           *)
19554             ;;
19555         esac
19556         ;;
19557       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19558         case $cc_basename in
19559           KCC*)
19560             # KAI C++ Compiler
19561             lt_prog_compiler_wl_CXX='--backend -Wl,'
19562             lt_prog_compiler_pic_CXX='-fPIC'
19563             ;;
19564           ecpc* )
19565             # old Intel C++ for x86_64 which still supported -KPIC.
19566             lt_prog_compiler_wl_CXX='-Wl,'
19567             lt_prog_compiler_pic_CXX='-KPIC'
19568             lt_prog_compiler_static_CXX='-static'
19569             ;;
19570           icpc* )
19571             # Intel C++, used to be incompatible with GCC.
19572             # ICC 10 doesn't accept -KPIC any more.
19573             lt_prog_compiler_wl_CXX='-Wl,'
19574             lt_prog_compiler_pic_CXX='-fPIC'
19575             lt_prog_compiler_static_CXX='-static'
19576             ;;
19577           pgCC* | pgcpp*)
19578             # Portland Group C++ compiler
19579             lt_prog_compiler_wl_CXX='-Wl,'
19580             lt_prog_compiler_pic_CXX='-fpic'
19581             lt_prog_compiler_static_CXX='-Bstatic'
19582             ;;
19583           cxx*)
19584             # Compaq C++
19585             # Make sure the PIC flag is empty.  It appears that all Alpha
19586             # Linux and Compaq Tru64 Unix objects are PIC.
19587             lt_prog_compiler_pic_CXX=
19588             lt_prog_compiler_static_CXX='-non_shared'
19589             ;;
19590           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19591             # IBM XL 8.0, 9.0 on PPC and BlueGene
19592             lt_prog_compiler_wl_CXX='-Wl,'
19593             lt_prog_compiler_pic_CXX='-qpic'
19594             lt_prog_compiler_static_CXX='-qstaticlink'
19595             ;;
19596           *)
19597             case `$CC -V 2>&1 | sed 5q` in
19598             *Sun\ C*)
19599               # Sun C++ 5.9
19600               lt_prog_compiler_pic_CXX='-KPIC'
19601               lt_prog_compiler_static_CXX='-Bstatic'
19602               lt_prog_compiler_wl_CXX='-Qoption ld '
19603               ;;
19604             esac
19605             ;;
19606         esac
19607         ;;
19608       lynxos*)
19609         ;;
19610       m88k*)
19611         ;;
19612       mvs*)
19613         case $cc_basename in
19614           cxx*)
19615             lt_prog_compiler_pic_CXX='-W c,exportall'
19616             ;;
19617           *)
19618             ;;
19619         esac
19620         ;;
19621       netbsd*)
19622         ;;
19623       *qnx* | *nto*)
19624         # QNX uses GNU C++, but need to define -shared option too, otherwise
19625         # it will coredump.
19626         lt_prog_compiler_pic_CXX='-fPIC -shared'
19627         ;;
19628       osf3* | osf4* | osf5*)
19629         case $cc_basename in
19630           KCC*)
19631             lt_prog_compiler_wl_CXX='--backend -Wl,'
19632             ;;
19633           RCC*)
19634             # Rational C++ 2.4.1
19635             lt_prog_compiler_pic_CXX='-pic'
19636             ;;
19637           cxx*)
19638             # Digital/Compaq C++
19639             lt_prog_compiler_wl_CXX='-Wl,'
19640             # Make sure the PIC flag is empty.  It appears that all Alpha
19641             # Linux and Compaq Tru64 Unix objects are PIC.
19642             lt_prog_compiler_pic_CXX=
19643             lt_prog_compiler_static_CXX='-non_shared'
19644             ;;
19645           *)
19646             ;;
19647         esac
19648         ;;
19649       psos*)
19650         ;;
19651       solaris*)
19652         case $cc_basename in
19653           CC*)
19654             # Sun C++ 4.2, 5.x and Centerline C++
19655             lt_prog_compiler_pic_CXX='-KPIC'
19656             lt_prog_compiler_static_CXX='-Bstatic'
19657             lt_prog_compiler_wl_CXX='-Qoption ld '
19658             ;;
19659           gcx*)
19660             # Green Hills C++ Compiler
19661             lt_prog_compiler_pic_CXX='-PIC'
19662             ;;
19663           *)
19664             ;;
19665         esac
19666         ;;
19667       sunos4*)
19668         case $cc_basename in
19669           CC*)
19670             # Sun C++ 4.x
19671             lt_prog_compiler_pic_CXX='-pic'
19672             lt_prog_compiler_static_CXX='-Bstatic'
19673             ;;
19674           lcc*)
19675             # Lucid
19676             lt_prog_compiler_pic_CXX='-pic'
19677             ;;
19678           *)
19679             ;;
19680         esac
19681         ;;
19682       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19683         case $cc_basename in
19684           CC*)
19685             lt_prog_compiler_wl_CXX='-Wl,'
19686             lt_prog_compiler_pic_CXX='-KPIC'
19687             lt_prog_compiler_static_CXX='-Bstatic'
19688             ;;
19689         esac
19690         ;;
19691       tandem*)
19692         case $cc_basename in
19693           NCC*)
19694             # NonStop-UX NCC 3.20
19695             lt_prog_compiler_pic_CXX='-KPIC'
19696             ;;
19697           *)
19698             ;;
19699         esac
19700         ;;
19701       vxworks*)
19702         ;;
19703       *)
19704         lt_prog_compiler_can_build_shared_CXX=no
19705         ;;
19706     esac
19707   fi
19708
19709 case $host_os in
19710   # For platforms which do not support PIC, -DPIC is meaningless:
19711   *djgpp*)
19712     lt_prog_compiler_pic_CXX=
19713     ;;
19714   *)
19715     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19716     ;;
19717 esac
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19719 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19720
19721
19722
19723 #
19724 # Check to make sure the PIC flag actually works.
19725 #
19726 if test -n "$lt_prog_compiler_pic_CXX"; then
19727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19728 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19729 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19730   $as_echo_n "(cached) " >&6
19731 else
19732   lt_cv_prog_compiler_pic_works_CXX=no
19733    ac_outfile=conftest.$ac_objext
19734    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19735    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19736    # Insert the option either (1) after the last *FLAGS variable, or
19737    # (2) before a word containing "conftest.", or (3) at the end.
19738    # Note that $ac_compile itself does not contain backslashes and begins
19739    # with a dollar sign (not a hyphen), so the echo should work correctly.
19740    # The option is referenced via a variable to avoid confusing sed.
19741    lt_compile=`echo "$ac_compile" | $SED \
19742    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19743    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19744    -e 's:$: $lt_compiler_flag:'`
19745    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19746    (eval "$lt_compile" 2>conftest.err)
19747    ac_status=$?
19748    cat conftest.err >&5
19749    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750    if (exit $ac_status) && test -s "$ac_outfile"; then
19751      # The compiler can only warn and ignore the option if not recognized
19752      # So say no if there are warnings other than the usual output.
19753      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19754      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19755      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19756        lt_cv_prog_compiler_pic_works_CXX=yes
19757      fi
19758    fi
19759    $RM conftest*
19760
19761 fi
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19763 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19764
19765 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19766     case $lt_prog_compiler_pic_CXX in
19767      "" | " "*) ;;
19768      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19769      esac
19770 else
19771     lt_prog_compiler_pic_CXX=
19772      lt_prog_compiler_can_build_shared_CXX=no
19773 fi
19774
19775 fi
19776
19777
19778
19779 #
19780 # Check to make sure the static flag actually works.
19781 #
19782 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19784 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19785 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19786   $as_echo_n "(cached) " >&6
19787 else
19788   lt_cv_prog_compiler_static_works_CXX=no
19789    save_LDFLAGS="$LDFLAGS"
19790    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19791    echo "$lt_simple_link_test_code" > conftest.$ac_ext
19792    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19793      # The linker can only warn and ignore the option if not recognized
19794      # So say no if there are warnings
19795      if test -s conftest.err; then
19796        # Append any errors to the config.log.
19797        cat conftest.err 1>&5
19798        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19799        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19800        if diff conftest.exp conftest.er2 >/dev/null; then
19801          lt_cv_prog_compiler_static_works_CXX=yes
19802        fi
19803      else
19804        lt_cv_prog_compiler_static_works_CXX=yes
19805      fi
19806    fi
19807    $RM -r conftest*
19808    LDFLAGS="$save_LDFLAGS"
19809
19810 fi
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19812 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19813
19814 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19815     :
19816 else
19817     lt_prog_compiler_static_CXX=
19818 fi
19819
19820
19821
19822
19823     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19824 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19825 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19826   $as_echo_n "(cached) " >&6
19827 else
19828   lt_cv_prog_compiler_c_o_CXX=no
19829    $RM -r conftest 2>/dev/null
19830    mkdir conftest
19831    cd conftest
19832    mkdir out
19833    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19834
19835    lt_compiler_flag="-o out/conftest2.$ac_objext"
19836    # Insert the option either (1) after the last *FLAGS variable, or
19837    # (2) before a word containing "conftest.", or (3) at the end.
19838    # Note that $ac_compile itself does not contain backslashes and begins
19839    # with a dollar sign (not a hyphen), so the echo should work correctly.
19840    lt_compile=`echo "$ac_compile" | $SED \
19841    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19842    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19843    -e 's:$: $lt_compiler_flag:'`
19844    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19845    (eval "$lt_compile" 2>out/conftest.err)
19846    ac_status=$?
19847    cat out/conftest.err >&5
19848    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19850    then
19851      # The compiler can only warn and ignore the option if not recognized
19852      # So say no if there are warnings
19853      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19854      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19855      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19856        lt_cv_prog_compiler_c_o_CXX=yes
19857      fi
19858    fi
19859    chmod u+w . 2>&5
19860    $RM conftest*
19861    # SGI C++ compiler will create directory out/ii_files/ for
19862    # template instantiation
19863    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19864    $RM out/* && rmdir out
19865    cd ..
19866    $RM -r conftest
19867    $RM conftest*
19868
19869 fi
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19871 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19872
19873
19874
19875     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19876 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19877 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19878   $as_echo_n "(cached) " >&6
19879 else
19880   lt_cv_prog_compiler_c_o_CXX=no
19881    $RM -r conftest 2>/dev/null
19882    mkdir conftest
19883    cd conftest
19884    mkdir out
19885    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19886
19887    lt_compiler_flag="-o out/conftest2.$ac_objext"
19888    # Insert the option either (1) after the last *FLAGS variable, or
19889    # (2) before a word containing "conftest.", or (3) at the end.
19890    # Note that $ac_compile itself does not contain backslashes and begins
19891    # with a dollar sign (not a hyphen), so the echo should work correctly.
19892    lt_compile=`echo "$ac_compile" | $SED \
19893    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19894    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19895    -e 's:$: $lt_compiler_flag:'`
19896    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19897    (eval "$lt_compile" 2>out/conftest.err)
19898    ac_status=$?
19899    cat out/conftest.err >&5
19900    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19902    then
19903      # The compiler can only warn and ignore the option if not recognized
19904      # So say no if there are warnings
19905      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19906      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19907      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19908        lt_cv_prog_compiler_c_o_CXX=yes
19909      fi
19910    fi
19911    chmod u+w . 2>&5
19912    $RM conftest*
19913    # SGI C++ compiler will create directory out/ii_files/ for
19914    # template instantiation
19915    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19916    $RM out/* && rmdir out
19917    cd ..
19918    $RM -r conftest
19919    $RM conftest*
19920
19921 fi
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19923 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19924
19925
19926
19927
19928 hard_links="nottested"
19929 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19930   # do not overwrite the value of need_locks provided by the user
19931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19932 $as_echo_n "checking if we can lock with hard links... " >&6; }
19933   hard_links=yes
19934   $RM conftest*
19935   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19936   touch conftest.a
19937   ln conftest.a conftest.b 2>&5 || hard_links=no
19938   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19940 $as_echo "$hard_links" >&6; }
19941   if test "$hard_links" = no; then
19942     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19943 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19944     need_locks=warn
19945   fi
19946 else
19947   need_locks=no
19948 fi
19949
19950
19951
19952     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19953 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19954
19955   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19956   case $host_os in
19957   aix[4-9]*)
19958     # If we're using GNU nm, then we don't want the "-C" option.
19959     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19960     # Also, AIX nm treats weak defined symbols like other global defined
19961     # symbols, whereas GNU nm marks them as "W".
19962     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19963       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'
19964     else
19965       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'
19966     fi
19967     ;;
19968   pw32*)
19969     export_symbols_cmds_CXX="$ltdll_cmds"
19970   ;;
19971   cygwin* | mingw* | cegcc*)
19972     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'
19973   ;;
19974   *)
19975     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19976   ;;
19977   esac
19978   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19979
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19981 $as_echo "$ld_shlibs_CXX" >&6; }
19982 test "$ld_shlibs_CXX" = no && can_build_shared=no
19983
19984 with_gnu_ld_CXX=$with_gnu_ld
19985
19986
19987
19988
19989
19990
19991 #
19992 # Do we need to explicitly link libc?
19993 #
19994 case "x$archive_cmds_need_lc_CXX" in
19995 x|xyes)
19996   # Assume -lc should be added
19997   archive_cmds_need_lc_CXX=yes
19998
19999   if test "$enable_shared" = yes && test "$GCC" = yes; then
20000     case $archive_cmds_CXX in
20001     *'~'*)
20002       # FIXME: we may have to deal with multi-command sequences.
20003       ;;
20004     '$CC '*)
20005       # Test whether the compiler implicitly links with -lc since on some
20006       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20007       # to ld, don't add -lc before -lgcc.
20008       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20009 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20010 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20011   $as_echo_n "(cached) " >&6
20012 else
20013   $RM conftest*
20014         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20015
20016         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20017   (eval $ac_compile) 2>&5
20018   ac_status=$?
20019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20020   test $ac_status = 0; } 2>conftest.err; then
20021           soname=conftest
20022           lib=conftest
20023           libobjs=conftest.$ac_objext
20024           deplibs=
20025           wl=$lt_prog_compiler_wl_CXX
20026           pic_flag=$lt_prog_compiler_pic_CXX
20027           compiler_flags=-v
20028           linker_flags=-v
20029           verstring=
20030           output_objdir=.
20031           libname=conftest
20032           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20033           allow_undefined_flag_CXX=
20034           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20035   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20036   ac_status=$?
20037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20038   test $ac_status = 0; }
20039           then
20040             lt_cv_archive_cmds_need_lc_CXX=no
20041           else
20042             lt_cv_archive_cmds_need_lc_CXX=yes
20043           fi
20044           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20045         else
20046           cat conftest.err 1>&5
20047         fi
20048         $RM conftest*
20049
20050 fi
20051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20052 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20053       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20054       ;;
20055     esac
20056   fi
20057   ;;
20058 esac
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20124 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20125
20126 library_names_spec=
20127 libname_spec='lib$name'
20128 soname_spec=
20129 shrext_cmds=".so"
20130 postinstall_cmds=
20131 postuninstall_cmds=
20132 finish_cmds=
20133 finish_eval=
20134 shlibpath_var=
20135 shlibpath_overrides_runpath=unknown
20136 version_type=none
20137 dynamic_linker="$host_os ld.so"
20138 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20139 need_lib_prefix=unknown
20140 hardcode_into_libs=no
20141
20142 # when you set need_version to no, make sure it does not cause -set_version
20143 # flags to be left without arguments
20144 need_version=unknown
20145
20146 case $host_os in
20147 aix3*)
20148   version_type=linux
20149   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20150   shlibpath_var=LIBPATH
20151
20152   # AIX 3 has no versioning support, so we append a major version to the name.
20153   soname_spec='${libname}${release}${shared_ext}$major'
20154   ;;
20155
20156 aix[4-9]*)
20157   version_type=linux
20158   need_lib_prefix=no
20159   need_version=no
20160   hardcode_into_libs=yes
20161   if test "$host_cpu" = ia64; then
20162     # AIX 5 supports IA64
20163     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20164     shlibpath_var=LD_LIBRARY_PATH
20165   else
20166     # With GCC up to 2.95.x, collect2 would create an import file
20167     # for dependence libraries.  The import file would start with
20168     # the line `#! .'.  This would cause the generated library to
20169     # depend on `.', always an invalid library.  This was fixed in
20170     # development snapshots of GCC prior to 3.0.
20171     case $host_os in
20172       aix4 | aix4.[01] | aix4.[01].*)
20173       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20174            echo ' yes '
20175            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20176         :
20177       else
20178         can_build_shared=no
20179       fi
20180       ;;
20181     esac
20182     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20183     # soname into executable. Probably we can add versioning support to
20184     # collect2, so additional links can be useful in future.
20185     if test "$aix_use_runtimelinking" = yes; then
20186       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20187       # instead of lib<name>.a to let people know that these are not
20188       # typical AIX shared libraries.
20189       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20190     else
20191       # We preserve .a as extension for shared libraries through AIX4.2
20192       # and later when we are not doing run time linking.
20193       library_names_spec='${libname}${release}.a $libname.a'
20194       soname_spec='${libname}${release}${shared_ext}$major'
20195     fi
20196     shlibpath_var=LIBPATH
20197   fi
20198   ;;
20199
20200 amigaos*)
20201   case $host_cpu in
20202   powerpc)
20203     # Since July 2007 AmigaOS4 officially supports .so libraries.
20204     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20205     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20206     ;;
20207   m68k)
20208     library_names_spec='$libname.ixlibrary $libname.a'
20209     # Create ${libname}_ixlibrary.a entries in /sys/libs.
20210     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'
20211     ;;
20212   esac
20213   ;;
20214
20215 beos*)
20216   library_names_spec='${libname}${shared_ext}'
20217   dynamic_linker="$host_os ld.so"
20218   shlibpath_var=LIBRARY_PATH
20219   ;;
20220
20221 bsdi[45]*)
20222   version_type=linux
20223   need_version=no
20224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20225   soname_spec='${libname}${release}${shared_ext}$major'
20226   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20227   shlibpath_var=LD_LIBRARY_PATH
20228   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20229   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20230   # the default ld.so.conf also contains /usr/contrib/lib and
20231   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20232   # libtool to hard-code these into programs
20233   ;;
20234
20235 cygwin* | mingw* | pw32* | cegcc*)
20236   version_type=windows
20237   shrext_cmds=".dll"
20238   need_version=no
20239   need_lib_prefix=no
20240
20241   case $GCC,$host_os in
20242   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20243     library_names_spec='$libname.dll.a'
20244     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20245     postinstall_cmds='base_file=`basename \${file}`~
20246       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20247       dldir=$destdir/`dirname \$dlpath`~
20248       test -d \$dldir || mkdir -p \$dldir~
20249       $install_prog $dir/$dlname \$dldir/$dlname~
20250       chmod a+x \$dldir/$dlname~
20251       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20252         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20253       fi'
20254     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20255       dlpath=$dir/\$dldll~
20256        $RM \$dlpath'
20257     shlibpath_overrides_runpath=yes
20258
20259     case $host_os in
20260     cygwin*)
20261       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20262       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20263
20264       ;;
20265     mingw* | cegcc*)
20266       # MinGW DLLs use traditional 'lib' prefix
20267       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20268       ;;
20269     pw32*)
20270       # pw32 DLLs use 'pw' prefix rather than 'lib'
20271       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20272       ;;
20273     esac
20274     ;;
20275
20276   *)
20277     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20278     ;;
20279   esac
20280   dynamic_linker='Win32 ld.exe'
20281   # FIXME: first we should search . and the directory the executable is in
20282   shlibpath_var=PATH
20283   ;;
20284
20285 darwin* | rhapsody*)
20286   dynamic_linker="$host_os dyld"
20287   version_type=darwin
20288   need_lib_prefix=no
20289   need_version=no
20290   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20291   soname_spec='${libname}${release}${major}$shared_ext'
20292   shlibpath_overrides_runpath=yes
20293   shlibpath_var=DYLD_LIBRARY_PATH
20294   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20295
20296   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20297   ;;
20298
20299 dgux*)
20300   version_type=linux
20301   need_lib_prefix=no
20302   need_version=no
20303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20304   soname_spec='${libname}${release}${shared_ext}$major'
20305   shlibpath_var=LD_LIBRARY_PATH
20306   ;;
20307
20308 freebsd* | dragonfly*)
20309   # DragonFly does not have aout.  When/if they implement a new
20310   # versioning mechanism, adjust this.
20311   if test -x /usr/bin/objformat; then
20312     objformat=`/usr/bin/objformat`
20313   else
20314     case $host_os in
20315     freebsd[123]*) objformat=aout ;;
20316     *) objformat=elf ;;
20317     esac
20318   fi
20319   version_type=freebsd-$objformat
20320   case $version_type in
20321     freebsd-elf*)
20322       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20323       need_version=no
20324       need_lib_prefix=no
20325       ;;
20326     freebsd-*)
20327       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20328       need_version=yes
20329       ;;
20330   esac
20331   shlibpath_var=LD_LIBRARY_PATH
20332   case $host_os in
20333   freebsd2*)
20334     shlibpath_overrides_runpath=yes
20335     ;;
20336   freebsd3.[01]* | freebsdelf3.[01]*)
20337     shlibpath_overrides_runpath=yes
20338     hardcode_into_libs=yes
20339     ;;
20340   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20341   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20342     shlibpath_overrides_runpath=no
20343     hardcode_into_libs=yes
20344     ;;
20345   *) # from 4.6 on, and DragonFly
20346     shlibpath_overrides_runpath=yes
20347     hardcode_into_libs=yes
20348     ;;
20349   esac
20350   ;;
20351
20352 gnu*)
20353   version_type=linux
20354   need_lib_prefix=no
20355   need_version=no
20356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20357   soname_spec='${libname}${release}${shared_ext}$major'
20358   shlibpath_var=LD_LIBRARY_PATH
20359   hardcode_into_libs=yes
20360   ;;
20361
20362 haiku*)
20363   version_type=linux
20364   need_lib_prefix=no
20365   need_version=no
20366   dynamic_linker="$host_os runtime_loader"
20367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20368   soname_spec='${libname}${release}${shared_ext}$major'
20369   shlibpath_var=LIBRARY_PATH
20370   shlibpath_overrides_runpath=yes
20371   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20372   hardcode_into_libs=yes
20373   ;;
20374
20375 hpux9* | hpux10* | hpux11*)
20376   # Give a soname corresponding to the major version so that dld.sl refuses to
20377   # link against other versions.
20378   version_type=sunos
20379   need_lib_prefix=no
20380   need_version=no
20381   case $host_cpu in
20382   ia64*)
20383     shrext_cmds='.so'
20384     hardcode_into_libs=yes
20385     dynamic_linker="$host_os dld.so"
20386     shlibpath_var=LD_LIBRARY_PATH
20387     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20388     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20389     soname_spec='${libname}${release}${shared_ext}$major'
20390     if test "X$HPUX_IA64_MODE" = X32; then
20391       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20392     else
20393       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20394     fi
20395     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20396     ;;
20397   hppa*64*)
20398     shrext_cmds='.sl'
20399     hardcode_into_libs=yes
20400     dynamic_linker="$host_os dld.sl"
20401     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20402     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20403     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20404     soname_spec='${libname}${release}${shared_ext}$major'
20405     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20406     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20407     ;;
20408   *)
20409     shrext_cmds='.sl'
20410     dynamic_linker="$host_os dld.sl"
20411     shlibpath_var=SHLIB_PATH
20412     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20413     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20414     soname_spec='${libname}${release}${shared_ext}$major'
20415     ;;
20416   esac
20417   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20418   postinstall_cmds='chmod 555 $lib'
20419   # or fails outright, so override atomically:
20420   install_override_mode=555
20421   ;;
20422
20423 interix[3-9]*)
20424   version_type=linux
20425   need_lib_prefix=no
20426   need_version=no
20427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20428   soname_spec='${libname}${release}${shared_ext}$major'
20429   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20430   shlibpath_var=LD_LIBRARY_PATH
20431   shlibpath_overrides_runpath=no
20432   hardcode_into_libs=yes
20433   ;;
20434
20435 irix5* | irix6* | nonstopux*)
20436   case $host_os in
20437     nonstopux*) version_type=nonstopux ;;
20438     *)
20439         if test "$lt_cv_prog_gnu_ld" = yes; then
20440                 version_type=linux
20441         else
20442                 version_type=irix
20443         fi ;;
20444   esac
20445   need_lib_prefix=no
20446   need_version=no
20447   soname_spec='${libname}${release}${shared_ext}$major'
20448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20449   case $host_os in
20450   irix5* | nonstopux*)
20451     libsuff= shlibsuff=
20452     ;;
20453   *)
20454     case $LD in # libtool.m4 will add one of these switches to LD
20455     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20456       libsuff= shlibsuff= libmagic=32-bit;;
20457     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20458       libsuff=32 shlibsuff=N32 libmagic=N32;;
20459     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20460       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20461     *) libsuff= shlibsuff= libmagic=never-match;;
20462     esac
20463     ;;
20464   esac
20465   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20466   shlibpath_overrides_runpath=no
20467   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20468   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20469   hardcode_into_libs=yes
20470   ;;
20471
20472 # No shared lib support for Linux oldld, aout, or coff.
20473 linux*oldld* | linux*aout* | linux*coff*)
20474   dynamic_linker=no
20475   ;;
20476
20477 # This must be Linux ELF.
20478 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20479   version_type=linux
20480   need_lib_prefix=no
20481   need_version=no
20482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20483   soname_spec='${libname}${release}${shared_ext}$major'
20484   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20485   shlibpath_var=LD_LIBRARY_PATH
20486   shlibpath_overrides_runpath=no
20487
20488   # Some binutils ld are patched to set DT_RUNPATH
20489   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20490   $as_echo_n "(cached) " >&6
20491 else
20492   lt_cv_shlibpath_overrides_runpath=no
20493     save_LDFLAGS=$LDFLAGS
20494     save_libdir=$libdir
20495     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20496          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20497     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20498 /* end confdefs.h.  */
20499
20500 int
20501 main ()
20502 {
20503
20504   ;
20505   return 0;
20506 }
20507 _ACEOF
20508 if ac_fn_cxx_try_link "$LINENO"; then :
20509   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20510   lt_cv_shlibpath_overrides_runpath=yes
20511 fi
20512 fi
20513 rm -f core conftest.err conftest.$ac_objext \
20514     conftest$ac_exeext conftest.$ac_ext
20515     LDFLAGS=$save_LDFLAGS
20516     libdir=$save_libdir
20517
20518 fi
20519
20520   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20521
20522   # This implies no fast_install, which is unacceptable.
20523   # Some rework will be needed to allow for fast_install
20524   # before this can be enabled.
20525   hardcode_into_libs=yes
20526
20527   # Append ld.so.conf contents to the search path
20528   if test -f /etc/ld.so.conf; then
20529     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' ' '`
20530     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20531   fi
20532
20533   # We used to test for /lib/ld.so.1 and disable shared libraries on
20534   # powerpc, because MkLinux only supported shared libraries with the
20535   # GNU dynamic linker.  Since this was broken with cross compilers,
20536   # most powerpc-linux boxes support dynamic linking these days and
20537   # people can always --disable-shared, the test was removed, and we
20538   # assume the GNU/Linux dynamic linker is in use.
20539   dynamic_linker='GNU/Linux ld.so'
20540   ;;
20541
20542 netbsd*)
20543   version_type=sunos
20544   need_lib_prefix=no
20545   need_version=no
20546   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20547     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20548     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20549     dynamic_linker='NetBSD (a.out) ld.so'
20550   else
20551     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20552     soname_spec='${libname}${release}${shared_ext}$major'
20553     dynamic_linker='NetBSD ld.elf_so'
20554   fi
20555   shlibpath_var=LD_LIBRARY_PATH
20556   shlibpath_overrides_runpath=yes
20557   hardcode_into_libs=yes
20558   ;;
20559
20560 newsos6)
20561   version_type=linux
20562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20563   shlibpath_var=LD_LIBRARY_PATH
20564   shlibpath_overrides_runpath=yes
20565   ;;
20566
20567 *nto* | *qnx*)
20568   version_type=qnx
20569   need_lib_prefix=no
20570   need_version=no
20571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20572   soname_spec='${libname}${release}${shared_ext}$major'
20573   shlibpath_var=LD_LIBRARY_PATH
20574   shlibpath_overrides_runpath=no
20575   hardcode_into_libs=yes
20576   dynamic_linker='ldqnx.so'
20577   ;;
20578
20579 openbsd*)
20580   version_type=sunos
20581   sys_lib_dlsearch_path_spec="/usr/lib"
20582   need_lib_prefix=no
20583   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20584   case $host_os in
20585     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
20586     *)                          need_version=no  ;;
20587   esac
20588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20589   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20590   shlibpath_var=LD_LIBRARY_PATH
20591   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20592     case $host_os in
20593       openbsd2.[89] | openbsd2.[89].*)
20594         shlibpath_overrides_runpath=no
20595         ;;
20596       *)
20597         shlibpath_overrides_runpath=yes
20598         ;;
20599       esac
20600   else
20601     shlibpath_overrides_runpath=yes
20602   fi
20603   ;;
20604
20605 os2*)
20606   libname_spec='$name'
20607   shrext_cmds=".dll"
20608   need_lib_prefix=no
20609   library_names_spec='$libname${shared_ext} $libname.a'
20610   dynamic_linker='OS/2 ld.exe'
20611   shlibpath_var=LIBPATH
20612   ;;
20613
20614 osf3* | osf4* | osf5*)
20615   version_type=osf
20616   need_lib_prefix=no
20617   need_version=no
20618   soname_spec='${libname}${release}${shared_ext}$major'
20619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20620   shlibpath_var=LD_LIBRARY_PATH
20621   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20622   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20623   ;;
20624
20625 rdos*)
20626   dynamic_linker=no
20627   ;;
20628
20629 solaris*)
20630   version_type=linux
20631   need_lib_prefix=no
20632   need_version=no
20633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20634   soname_spec='${libname}${release}${shared_ext}$major'
20635   shlibpath_var=LD_LIBRARY_PATH
20636   shlibpath_overrides_runpath=yes
20637   hardcode_into_libs=yes
20638   # ldd complains unless libraries are executable
20639   postinstall_cmds='chmod +x $lib'
20640   ;;
20641
20642 sunos4*)
20643   version_type=sunos
20644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20645   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20646   shlibpath_var=LD_LIBRARY_PATH
20647   shlibpath_overrides_runpath=yes
20648   if test "$with_gnu_ld" = yes; then
20649     need_lib_prefix=no
20650   fi
20651   need_version=yes
20652   ;;
20653
20654 sysv4 | sysv4.3*)
20655   version_type=linux
20656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20657   soname_spec='${libname}${release}${shared_ext}$major'
20658   shlibpath_var=LD_LIBRARY_PATH
20659   case $host_vendor in
20660     sni)
20661       shlibpath_overrides_runpath=no
20662       need_lib_prefix=no
20663       runpath_var=LD_RUN_PATH
20664       ;;
20665     siemens)
20666       need_lib_prefix=no
20667       ;;
20668     motorola)
20669       need_lib_prefix=no
20670       need_version=no
20671       shlibpath_overrides_runpath=no
20672       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20673       ;;
20674   esac
20675   ;;
20676
20677 sysv4*MP*)
20678   if test -d /usr/nec ;then
20679     version_type=linux
20680     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20681     soname_spec='$libname${shared_ext}.$major'
20682     shlibpath_var=LD_LIBRARY_PATH
20683   fi
20684   ;;
20685
20686 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20687   version_type=freebsd-elf
20688   need_lib_prefix=no
20689   need_version=no
20690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20691   soname_spec='${libname}${release}${shared_ext}$major'
20692   shlibpath_var=LD_LIBRARY_PATH
20693   shlibpath_overrides_runpath=yes
20694   hardcode_into_libs=yes
20695   if test "$with_gnu_ld" = yes; then
20696     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20697   else
20698     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20699     case $host_os in
20700       sco3.2v5*)
20701         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20702         ;;
20703     esac
20704   fi
20705   sys_lib_dlsearch_path_spec='/usr/lib'
20706   ;;
20707
20708 tpf*)
20709   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20710   version_type=linux
20711   need_lib_prefix=no
20712   need_version=no
20713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20714   shlibpath_var=LD_LIBRARY_PATH
20715   shlibpath_overrides_runpath=no
20716   hardcode_into_libs=yes
20717   ;;
20718
20719 uts4*)
20720   version_type=linux
20721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20722   soname_spec='${libname}${release}${shared_ext}$major'
20723   shlibpath_var=LD_LIBRARY_PATH
20724   ;;
20725
20726 *)
20727   dynamic_linker=no
20728   ;;
20729 esac
20730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20731 $as_echo "$dynamic_linker" >&6; }
20732 test "$dynamic_linker" = no && can_build_shared=no
20733
20734 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20735 if test "$GCC" = yes; then
20736   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20737 fi
20738
20739 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20740   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20741 fi
20742 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20743   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20744 fi
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20784 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20785 hardcode_action_CXX=
20786 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20787    test -n "$runpath_var_CXX" ||
20788    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20789
20790   # We can hardcode non-existent directories.
20791   if test "$hardcode_direct_CXX" != no &&
20792      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20793      # have to relink, otherwise we might link with an installed library
20794      # when we should be linking with a yet-to-be-installed one
20795      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20796      test "$hardcode_minus_L_CXX" != no; then
20797     # Linking always hardcodes the temporary library directory.
20798     hardcode_action_CXX=relink
20799   else
20800     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20801     hardcode_action_CXX=immediate
20802   fi
20803 else
20804   # We cannot hardcode anything, or else we can only hardcode existing
20805   # directories.
20806   hardcode_action_CXX=unsupported
20807 fi
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20809 $as_echo "$hardcode_action_CXX" >&6; }
20810
20811 if test "$hardcode_action_CXX" = relink ||
20812    test "$inherit_rpath_CXX" = yes; then
20813   # Fast installation is not supported
20814   enable_fast_install=no
20815 elif test "$shlibpath_overrides_runpath" = yes ||
20816      test "$enable_shared" = no; then
20817   # Fast installation is not necessary
20818   enable_fast_install=needless
20819 fi
20820
20821
20822
20823
20824
20825
20826
20827   fi # test -n "$compiler"
20828
20829   CC=$lt_save_CC
20830   LDCXX=$LD
20831   LD=$lt_save_LD
20832   GCC=$lt_save_GCC
20833   with_gnu_ld=$lt_save_with_gnu_ld
20834   lt_cv_path_LDCXX=$lt_cv_path_LD
20835   lt_cv_path_LD=$lt_save_path_LD
20836   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20837   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20838 fi # test "$_lt_caught_CXX_error" != yes
20839
20840 ac_ext=c
20841 ac_cpp='$CPP $CPPFLAGS'
20842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861 # Only expand once:
20862
20863
20864
20865
20866
20867 # Identify the assembler which will work hand-in-glove with the newly
20868 # built GCC, so that we can examine its features.  This is the assembler
20869 # which will be driven by the driver program.
20870 #
20871 # If build != host, and we aren't building gas in-tree, we identify a
20872 # build->target assembler and hope that it will have the same features
20873 # as the host->target assembler we'll be using.
20874 gcc_cv_gas_major_version=
20875 gcc_cv_gas_minor_version=
20876 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20877
20878 if test "${gcc_cv_as+set}" = set; then :
20879
20880 else
20881
20882 if test -x "$DEFAULT_ASSEMBLER"; then
20883         gcc_cv_as="$DEFAULT_ASSEMBLER"
20884 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20885      && test -f ../gas/Makefile \
20886      && test x$build = x$host; then
20887         gcc_cv_as=../gas/as-new$build_exeext
20888 elif test -x as$build_exeext; then
20889         # Build using assembler in the current directory.
20890         gcc_cv_as=./as$build_exeext
20891 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
20892         gcc_cv_as="$AS_FOR_TARGET"
20893 else
20894         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20895 set dummy $AS_FOR_TARGET; ac_word=$2
20896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20897 $as_echo_n "checking for $ac_word... " >&6; }
20898 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20899   $as_echo_n "(cached) " >&6
20900 else
20901   case $gcc_cv_as in
20902   [\\/]* | ?:[\\/]*)
20903   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20904   ;;
20905   *)
20906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20907 for as_dir in $PATH
20908 do
20909   IFS=$as_save_IFS
20910   test -z "$as_dir" && as_dir=.
20911     for ac_exec_ext in '' $ac_executable_extensions; do
20912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20913     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20915     break 2
20916   fi
20917 done
20918   done
20919 IFS=$as_save_IFS
20920
20921   ;;
20922 esac
20923 fi
20924 gcc_cv_as=$ac_cv_path_gcc_cv_as
20925 if test -n "$gcc_cv_as"; then
20926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20927 $as_echo "$gcc_cv_as" >&6; }
20928 else
20929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20930 $as_echo "no" >&6; }
20931 fi
20932
20933
20934 fi
20935 fi
20936
20937 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20938
20939 case "$ORIGINAL_AS_FOR_TARGET" in
20940   ./as | ./as$build_exeext) ;;
20941   *) ac_config_files="$ac_config_files as:exec-tool.in"
20942  ;;
20943 esac
20944
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20946 $as_echo_n "checking what assembler to use... " >&6; }
20947 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20948   # Single tree build which includes gas.  We want to prefer it
20949   # over whatever linker top-level may have detected, since
20950   # we'll use what we're building after installation anyway.
20951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20952 $as_echo "newly built gas" >&6; }
20953   in_tree_gas=yes
20954   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20955 for f in $gcc_cv_as_bfd_srcdir/configure \
20956          $gcc_cv_as_gas_srcdir/configure \
20957          $gcc_cv_as_gas_srcdir/configure.in \
20958          $gcc_cv_as_gas_srcdir/Makefile.in ; do
20959   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20960   if test x$gcc_cv_gas_version != x; then
20961     break
20962   fi
20963 done
20964 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20965 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20966 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20967 case $gcc_cv_gas_patch_version in
20968   "") gcc_cv_gas_patch_version="0" ;;
20969 esac
20970 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20971                             + $gcc_cv_gas_minor_version \) \* 1000 \
20972                             + $gcc_cv_gas_patch_version`
20973
20974   in_tree_gas_is_elf=no
20975   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20976      || (grep 'obj_format = multi' ../gas/Makefile \
20977          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20978   then
20979     in_tree_gas_is_elf=yes
20980   fi
20981 else
20982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20983 $as_echo "$gcc_cv_as" >&6; }
20984   in_tree_gas=no
20985 fi
20986
20987 # Identify the linker which will work hand-in-glove with the newly
20988 # built GCC, so that we can examine its features.  This is the linker
20989 # which will be driven by the driver program.
20990 #
20991 # If build != host, and we aren't building gas in-tree, we identify a
20992 # build->target linker and hope that it will have the same features
20993 # as the host->target linker we'll be using.
20994 gcc_cv_gld_major_version=
20995 gcc_cv_gld_minor_version=
20996 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20997 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20998
20999 if test "${gcc_cv_ld+set}" = set; then :
21000
21001 else
21002
21003 if test -x "$DEFAULT_LINKER"; then
21004         gcc_cv_ld="$DEFAULT_LINKER"
21005 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21006      && test -f ../ld/Makefile \
21007      && test x$build = x$host; then
21008         gcc_cv_ld=../ld/ld-new$build_exeext
21009 elif test -x collect-ld$build_exeext; then
21010         # Build using linker in the current directory.
21011         gcc_cv_ld=./collect-ld$build_exeext
21012 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21013         gcc_cv_ld="$LD_FOR_TARGET"
21014 else
21015         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21016 set dummy $LD_FOR_TARGET; ac_word=$2
21017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21018 $as_echo_n "checking for $ac_word... " >&6; }
21019 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21020   $as_echo_n "(cached) " >&6
21021 else
21022   case $gcc_cv_ld in
21023   [\\/]* | ?:[\\/]*)
21024   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21025   ;;
21026   *)
21027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21028 for as_dir in $PATH
21029 do
21030   IFS=$as_save_IFS
21031   test -z "$as_dir" && as_dir=.
21032     for ac_exec_ext in '' $ac_executable_extensions; do
21033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21034     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21036     break 2
21037   fi
21038 done
21039   done
21040 IFS=$as_save_IFS
21041
21042   ;;
21043 esac
21044 fi
21045 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21046 if test -n "$gcc_cv_ld"; then
21047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21048 $as_echo "$gcc_cv_ld" >&6; }
21049 else
21050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21051 $as_echo "no" >&6; }
21052 fi
21053
21054
21055 fi
21056 fi
21057
21058 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21059 PLUGIN_LD=`basename $gcc_cv_ld`
21060
21061 # Check whether --with-plugin-ld was given.
21062 if test "${with_plugin_ld+set}" = set; then :
21063   withval=$with_plugin_ld; if test x"$withval" != x; then
21064    ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21065    PLUGIN_LD="$withval"
21066  fi
21067 fi
21068
21069
21070
21071 cat >>confdefs.h <<_ACEOF
21072 #define PLUGIN_LD "$PLUGIN_LD"
21073 _ACEOF
21074
21075
21076 # Check to see if we are using gold instead of ld
21077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21078 $as_echo_n "checking whether we are using gold... " >&6; }
21079 ld_is_gold=no
21080 if test x$gcc_cv_ld != x; then
21081   if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21082      | grep "GNU gold" > /dev/null; then
21083     ld_is_gold=yes
21084   fi
21085 fi
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21087 $as_echo "$ld_is_gold" >&6; }
21088
21089 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21090
21091 case "$ORIGINAL_LD_FOR_TARGET" in
21092   ./collect-ld | ./collect-ld$build_exeext) ;;
21093   *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21094  ;;
21095 esac
21096
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21098 $as_echo_n "checking what linker to use... " >&6; }
21099 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
21100         # Single tree build which includes ld.  We want to prefer it
21101         # over whatever linker top-level may have detected, since
21102         # we'll use what we're building after installation anyway.
21103         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21104 $as_echo "newly built ld" >&6; }
21105         in_tree_ld=yes
21106         in_tree_ld_is_elf=no
21107         if (grep 'EMUL = .*elf' ../ld/Makefile \
21108             || grep 'EMUL = .*linux' ../ld/Makefile \
21109             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21110           in_tree_ld_is_elf=yes
21111         fi
21112         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
21113         do
21114                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21115                 if test x$gcc_cv_gld_version != x; then
21116                         break
21117                 fi
21118         done
21119         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21120         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21121 else
21122         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21123 $as_echo "$gcc_cv_ld" >&6; }
21124         in_tree_ld=no
21125 fi
21126
21127 # Figure out what nm we will be using.
21128 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21129 if test "${gcc_cv_nm+set}" = set; then :
21130
21131 else
21132
21133 if test -f $gcc_cv_binutils_srcdir/configure.in \
21134      && test -f ../binutils/Makefile \
21135      && test x$build = x$host; then
21136         gcc_cv_nm=../binutils/nm-new$build_exeext
21137 elif test -x nm$build_exeext; then
21138         gcc_cv_nm=./nm$build_exeext
21139 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21140         gcc_cv_nm="$NM_FOR_TARGET"
21141 else
21142         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21143 set dummy $NM_FOR_TARGET; ac_word=$2
21144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21145 $as_echo_n "checking for $ac_word... " >&6; }
21146 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21147   $as_echo_n "(cached) " >&6
21148 else
21149   case $gcc_cv_nm in
21150   [\\/]* | ?:[\\/]*)
21151   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21152   ;;
21153   *)
21154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21155 for as_dir in $PATH
21156 do
21157   IFS=$as_save_IFS
21158   test -z "$as_dir" && as_dir=.
21159     for ac_exec_ext in '' $ac_executable_extensions; do
21160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21161     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21163     break 2
21164   fi
21165 done
21166   done
21167 IFS=$as_save_IFS
21168
21169   ;;
21170 esac
21171 fi
21172 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21173 if test -n "$gcc_cv_nm"; then
21174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21175 $as_echo "$gcc_cv_nm" >&6; }
21176 else
21177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21178 $as_echo "no" >&6; }
21179 fi
21180
21181
21182 fi
21183 fi
21184
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21186 $as_echo_n "checking what nm to use... " >&6; }
21187 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21188         # Single tree build which includes binutils.
21189         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21190 $as_echo "newly built nm" >&6; }
21191         in_tree_nm=yes
21192 else
21193         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21194 $as_echo "$gcc_cv_nm" >&6; }
21195         in_tree_nm=no
21196 fi
21197
21198 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21199
21200 case "$ORIGINAL_NM_FOR_TARGET" in
21201   ./nm | ./nm$build_exeext) ;;
21202   *) ac_config_files="$ac_config_files nm:exec-tool.in"
21203  ;;
21204 esac
21205
21206
21207 # Figure out what objdump we will be using.
21208 if test "${gcc_cv_objdump+set}" = set; then :
21209
21210 else
21211
21212 if test -f $gcc_cv_binutils_srcdir/configure.in \
21213      && test -f ../binutils/Makefile \
21214      && test x$build = x$host; then
21215         # Single tree build which includes binutils.
21216         gcc_cv_objdump=../binutils/objdump$build_exeext
21217 elif test -x objdump$build_exeext; then
21218         gcc_cv_objdump=./objdump$build_exeext
21219 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21220         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21221 else
21222         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21223 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21225 $as_echo_n "checking for $ac_word... " >&6; }
21226 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21227   $as_echo_n "(cached) " >&6
21228 else
21229   case $gcc_cv_objdump in
21230   [\\/]* | ?:[\\/]*)
21231   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21232   ;;
21233   *)
21234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21235 for as_dir in $PATH
21236 do
21237   IFS=$as_save_IFS
21238   test -z "$as_dir" && as_dir=.
21239     for ac_exec_ext in '' $ac_executable_extensions; do
21240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21241     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21243     break 2
21244   fi
21245 done
21246   done
21247 IFS=$as_save_IFS
21248
21249   ;;
21250 esac
21251 fi
21252 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21253 if test -n "$gcc_cv_objdump"; then
21254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21255 $as_echo "$gcc_cv_objdump" >&6; }
21256 else
21257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21258 $as_echo "no" >&6; }
21259 fi
21260
21261
21262 fi
21263 fi
21264
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21266 $as_echo_n "checking what objdump to use... " >&6; }
21267 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21268         # Single tree build which includes binutils.
21269         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21270 $as_echo "newly built objdump" >&6; }
21271 elif test x$gcc_cv_objdump = x; then
21272         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21273 $as_echo "not found" >&6; }
21274 else
21275         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21276 $as_echo "$gcc_cv_objdump" >&6; }
21277 fi
21278
21279 # Figure out what readelf we will be using.
21280 if test "${gcc_cv_readelf+set}" = set; then :
21281
21282 else
21283
21284 if test -f $gcc_cv_binutils_srcdir/configure.in \
21285      && test -f ../binutils/Makefile \
21286      && test x$build = x$host; then
21287         # Single tree build which includes binutils.
21288         gcc_cv_readelf=../binutils/readelf$build_exeext
21289 elif test -x readelf$build_exeext; then
21290         gcc_cv_readelf=./readelf$build_exeext
21291 else
21292         # Extract the first word of "readelf", so it can be a program name with args.
21293 set dummy readelf; ac_word=$2
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21295 $as_echo_n "checking for $ac_word... " >&6; }
21296 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21297   $as_echo_n "(cached) " >&6
21298 else
21299   case $gcc_cv_readelf in
21300   [\\/]* | ?:[\\/]*)
21301   ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21302   ;;
21303   *)
21304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21305 for as_dir in $PATH
21306 do
21307   IFS=$as_save_IFS
21308   test -z "$as_dir" && as_dir=.
21309     for ac_exec_ext in '' $ac_executable_extensions; do
21310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21311     ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21313     break 2
21314   fi
21315 done
21316   done
21317 IFS=$as_save_IFS
21318
21319   ;;
21320 esac
21321 fi
21322 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21323 if test -n "$gcc_cv_readelf"; then
21324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21325 $as_echo "$gcc_cv_readelf" >&6; }
21326 else
21327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21328 $as_echo "no" >&6; }
21329 fi
21330
21331
21332 fi
21333 fi
21334
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21336 $as_echo_n "checking what readelf to use... " >&6; }
21337 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21338         # Single tree build which includes binutils.
21339         { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21340 $as_echo "newly built readelf" >&6; }
21341 elif test x$gcc_cv_readelf = x; then
21342         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21343 $as_echo "not found" >&6; }
21344 else
21345         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21346 $as_echo "$gcc_cv_readelf" >&6; }
21347 fi
21348
21349 # Figure out what assembler alignment features are present.
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21351 $as_echo_n "checking assembler flags... " >&6; }
21352 if test "${gcc_cv_as_flags+set}" = set; then :
21353   $as_echo_n "(cached) " >&6
21354 else
21355    case "$target" in
21356   i[34567]86-*-linux*)
21357         gcc_cv_as_flags="--32"
21358     ;;
21359   *)
21360     gcc_cv_as_flags=" "
21361     ;;
21362   esac
21363 fi
21364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21365 $as_echo "$gcc_cv_as_flags" >&6; }
21366
21367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21368 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21369 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21370   $as_echo_n "(cached) " >&6
21371 else
21372   gcc_cv_as_balign_and_p2align=no
21373     if test $in_tree_gas = yes; then
21374     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21375   then gcc_cv_as_balign_and_p2align=yes
21376 fi
21377   elif test x$gcc_cv_as != x; then
21378     echo '.balign 4
21379 .p2align 2' > conftest.s
21380     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21381   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21382   (eval $ac_try) 2>&5
21383   ac_status=$?
21384   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21385   test $ac_status = 0; }; }
21386     then
21387         gcc_cv_as_balign_and_p2align=yes
21388     else
21389       echo "configure: failed program was" >&5
21390       cat conftest.s >&5
21391     fi
21392     rm -f conftest.o conftest.s
21393   fi
21394 fi
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21396 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21397 if test $gcc_cv_as_balign_and_p2align = yes; then
21398
21399 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21400
21401 fi
21402
21403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21404 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21405 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21406   $as_echo_n "(cached) " >&6
21407 else
21408   gcc_cv_as_max_skip_p2align=no
21409     if test $in_tree_gas = yes; then
21410     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21411   then gcc_cv_as_max_skip_p2align=yes
21412 fi
21413   elif test x$gcc_cv_as != x; then
21414     echo '.p2align 4,,7' > conftest.s
21415     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21416   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21417   (eval $ac_try) 2>&5
21418   ac_status=$?
21419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21420   test $ac_status = 0; }; }
21421     then
21422         gcc_cv_as_max_skip_p2align=yes
21423     else
21424       echo "configure: failed program was" >&5
21425       cat conftest.s >&5
21426     fi
21427     rm -f conftest.o conftest.s
21428   fi
21429 fi
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21431 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21432 if test $gcc_cv_as_max_skip_p2align = yes; then
21433
21434 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21435
21436 fi
21437
21438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21439 $as_echo_n "checking assembler for .literal16... " >&6; }
21440 if test "${gcc_cv_as_literal16+set}" = set; then :
21441   $as_echo_n "(cached) " >&6
21442 else
21443   gcc_cv_as_literal16=no
21444     if test $in_tree_gas = yes; then
21445     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21446   then gcc_cv_as_literal16=yes
21447 fi
21448   elif test x$gcc_cv_as != x; then
21449     echo '.literal16' > conftest.s
21450     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21451   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21452   (eval $ac_try) 2>&5
21453   ac_status=$?
21454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21455   test $ac_status = 0; }; }
21456     then
21457         gcc_cv_as_literal16=yes
21458     else
21459       echo "configure: failed program was" >&5
21460       cat conftest.s >&5
21461     fi
21462     rm -f conftest.o conftest.s
21463   fi
21464 fi
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21466 $as_echo "$gcc_cv_as_literal16" >&6; }
21467 if test $gcc_cv_as_literal16 = yes; then
21468
21469 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21470
21471 fi
21472
21473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21474 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21475 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21476   $as_echo_n "(cached) " >&6
21477 else
21478   gcc_cv_as_subsection_m1=no
21479     if test $in_tree_gas = yes; then
21480     if test $in_tree_gas_is_elf = yes \
21481   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21482   then gcc_cv_as_subsection_m1=yes
21483 fi
21484   elif test x$gcc_cv_as != x; then
21485     echo 'conftest_label1: .word 0
21486 .subsection -1
21487 conftest_label2: .word 0
21488 .previous' > conftest.s
21489     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21490   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21491   (eval $ac_try) 2>&5
21492   ac_status=$?
21493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21494   test $ac_status = 0; }; }
21495     then
21496         if test x$gcc_cv_nm != x; then
21497     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21498     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21499     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21500     then :
21501     else gcc_cv_as_subsection_m1=yes
21502     fi
21503     rm -f conftest.nm1 conftest.nm2
21504   fi
21505     else
21506       echo "configure: failed program was" >&5
21507       cat conftest.s >&5
21508     fi
21509     rm -f conftest.o conftest.s
21510   fi
21511 fi
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21513 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21514 if test $gcc_cv_as_subsection_m1 = yes; then
21515
21516 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21517
21518 fi
21519
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21521 $as_echo_n "checking assembler for .weak... " >&6; }
21522 if test "${gcc_cv_as_weak+set}" = set; then :
21523   $as_echo_n "(cached) " >&6
21524 else
21525   gcc_cv_as_weak=no
21526     if test $in_tree_gas = yes; then
21527     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21528   then gcc_cv_as_weak=yes
21529 fi
21530   elif test x$gcc_cv_as != x; then
21531     echo '      .weak foobar' > conftest.s
21532     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21533   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21534   (eval $ac_try) 2>&5
21535   ac_status=$?
21536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21537   test $ac_status = 0; }; }
21538     then
21539         gcc_cv_as_weak=yes
21540     else
21541       echo "configure: failed program was" >&5
21542       cat conftest.s >&5
21543     fi
21544     rm -f conftest.o conftest.s
21545   fi
21546 fi
21547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21548 $as_echo "$gcc_cv_as_weak" >&6; }
21549 if test $gcc_cv_as_weak = yes; then
21550
21551 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21552
21553 fi
21554
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21556 $as_echo_n "checking assembler for .weakref... " >&6; }
21557 if test "${gcc_cv_as_weakref+set}" = set; then :
21558   $as_echo_n "(cached) " >&6
21559 else
21560   gcc_cv_as_weakref=no
21561     if test $in_tree_gas = yes; then
21562     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21563   then gcc_cv_as_weakref=yes
21564 fi
21565   elif test x$gcc_cv_as != x; then
21566     echo '      .weakref foobar, barfnot' > conftest.s
21567     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21568   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21569   (eval $ac_try) 2>&5
21570   ac_status=$?
21571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21572   test $ac_status = 0; }; }
21573     then
21574         gcc_cv_as_weakref=yes
21575     else
21576       echo "configure: failed program was" >&5
21577       cat conftest.s >&5
21578     fi
21579     rm -f conftest.o conftest.s
21580   fi
21581 fi
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21583 $as_echo "$gcc_cv_as_weakref" >&6; }
21584 if test $gcc_cv_as_weakref = yes; then
21585
21586 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21587
21588 fi
21589
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21591 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21592 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21593   $as_echo_n "(cached) " >&6
21594 else
21595   gcc_cv_as_nsubspa_comdat=no
21596     if test $in_tree_gas = yes; then
21597     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21598   then gcc_cv_as_nsubspa_comdat=yes
21599 fi
21600   elif test x$gcc_cv_as != x; then
21601     echo '      .SPACE $TEXT$
21602         .NSUBSPA $CODE$,COMDAT' > conftest.s
21603     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21604   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21605   (eval $ac_try) 2>&5
21606   ac_status=$?
21607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21608   test $ac_status = 0; }; }
21609     then
21610         gcc_cv_as_nsubspa_comdat=yes
21611     else
21612       echo "configure: failed program was" >&5
21613       cat conftest.s >&5
21614     fi
21615     rm -f conftest.o conftest.s
21616   fi
21617 fi
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21619 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21620 if test $gcc_cv_as_nsubspa_comdat = yes; then
21621
21622 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21623
21624 fi
21625
21626 # .hidden needs to be supported in both the assembler and the linker,
21627 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21628 # This is irritatingly difficult to feature test for; we have to check the
21629 # date string after the version number.  If we've got an in-tree
21630 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21631 # to be safe.
21632 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21634 $as_echo_n "checking assembler for .hidden... " >&6; }
21635 if test "${gcc_cv_as_hidden+set}" = set; then :
21636   $as_echo_n "(cached) " >&6
21637 else
21638   gcc_cv_as_hidden=no
21639     if test $in_tree_gas = yes; then
21640     if test $in_tree_gas_is_elf = yes \
21641   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21642   then gcc_cv_as_hidden=yes
21643 fi
21644   elif test x$gcc_cv_as != x; then
21645     echo '      .hidden foobar
21646 foobar:' > conftest.s
21647     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21648   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21649   (eval $ac_try) 2>&5
21650   ac_status=$?
21651   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21652   test $ac_status = 0; }; }
21653     then
21654
21655 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21656 # STV_HIDDEN, so disable .hidden support if so.
21657 case "${target}" in
21658   i?86-*-solaris2*)
21659     if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21660       cat > conftest.s <<EOF
21661 .globl hidden
21662         .hidden hidden
21663 hidden:
21664 .globl default
21665         .set    default,hidden
21666 EOF
21667       if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21668         && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21669         grep '\.hidden default' > /dev/null; then
21670         gcc_cv_as_hidden=no
21671       else
21672         gcc_cv_as_hidden=yes
21673       fi
21674     else
21675       # Assume bug is present if objdump is missing.
21676       gcc_cv_as_hidden=no
21677     fi
21678     ;;
21679   *)
21680     gcc_cv_as_hidden=yes
21681     ;;
21682 esac
21683     else
21684       echo "configure: failed program was" >&5
21685       cat conftest.s >&5
21686     fi
21687     rm -f conftest.o conftest.s
21688   fi
21689 fi
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21691 $as_echo "$gcc_cv_as_hidden" >&6; }
21692
21693
21694 # gnu_indirect_function type is an extension proposed at
21695 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21696 # selection of function implementation
21697 # Check whether --enable-gnu-indirect-function was given.
21698 if test "${enable_gnu_indirect_function+set}" = set; then :
21699   enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21700     yes | no) ;;
21701     *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21702 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21703   esac
21704 else
21705   enable_gnu_indirect_function="$default_gnu_indirect_function"
21706 fi
21707
21708 if test x$enable_gnu_indirect_function = xyes; then
21709
21710 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
21711
21712 fi
21713
21714 if test $in_tree_ld != yes ; then
21715   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21716   if test x"$ld_is_gold" = xyes; then
21717     gcc_cv_ld_hidden=yes
21718   elif echo "$ld_ver" | grep GNU > /dev/null; then
21719     ld_vers=`echo $ld_ver | sed -n \
21720         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21721     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'`
21722     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21723     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21724     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21725   else
21726     case "${target}" in
21727       *-*-solaris2*)
21728         #
21729         # Solaris 2 ld -V output looks like this for a regular version:
21730         #
21731         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21732         #
21733         # but test versions add stuff at the end:
21734         #
21735         # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21736         #
21737         ld_ver=`$gcc_cv_ld -V 2>&1`
21738         if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21739           ld_vers=`echo $ld_ver | sed -n \
21740             -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21741           ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21742           ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21743         fi
21744         ;;
21745     esac
21746   fi
21747 fi
21748
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21750 $as_echo_n "checking linker for .hidden support... " >&6; }
21751 if test "${gcc_cv_ld_hidden+set}" = set; then :
21752   $as_echo_n "(cached) " >&6
21753 else
21754   if test $in_tree_ld = yes ; then
21755   gcc_cv_ld_hidden=no
21756   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 \
21757      && test $in_tree_ld_is_elf = yes; then
21758      gcc_cv_ld_hidden=yes
21759   fi
21760 else
21761   gcc_cv_ld_hidden=yes
21762   if echo "$ld_ver" | grep GNU > /dev/null; then
21763     if test 0"$ld_date" -lt 20020404; then
21764       if test -n "$ld_date"; then
21765         # If there was date string, but was earlier than 2002-04-04, fail
21766         gcc_cv_ld_hidden=no
21767       elif test -z "$ld_vers"; then
21768         # If there was no date string nor ld version number, something is wrong
21769         gcc_cv_ld_hidden=no
21770       else
21771         test -z "$ld_vers_patch" && ld_vers_patch=0
21772         if test "$ld_vers_major" -lt 2; then
21773           gcc_cv_ld_hidden=no
21774         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21775           gcc_cv_ld_hidden="no"
21776         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21777           gcc_cv_ld_hidden=no
21778         fi
21779       fi
21780     fi
21781   else
21782     case "${target}" in
21783       hppa64*-*-hpux* | ia64*-*-hpux*)
21784         gcc_cv_ld_hidden=yes
21785         ;;
21786       *-*-solaris2.8*)
21787         # .hidden support was backported to Solaris 8, starting with ld
21788         # version 1.276.
21789         if test "$ld_vers_minor" -ge 276; then
21790           gcc_cv_ld_hidden=yes
21791         else
21792           gcc_cv_ld_hidden=no
21793         fi
21794         ;;
21795       *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21796         # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21797         # .symbolic was only added in Solaris 9 12/02.
21798         gcc_cv_ld_hidden=yes
21799         ;;
21800       *)
21801         gcc_cv_ld_hidden=no
21802         ;;
21803     esac
21804   fi
21805 fi
21806 fi
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21808 $as_echo "$gcc_cv_ld_hidden" >&6; }
21809 libgcc_visibility=no
21810
21811
21812 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21813   libgcc_visibility=yes
21814
21815 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21816
21817 fi
21818
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21820 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21821 gcc_cv_ld_ro_rw_mix=unknown
21822 if test $in_tree_ld = yes ; then
21823   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 \
21824      && test $in_tree_ld_is_elf = yes; then
21825     gcc_cv_ld_ro_rw_mix=read-write
21826   fi
21827 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21828   echo '.section myfoosect, "a"' > conftest1.s
21829   echo '.section myfoosect, "aw"' > conftest2.s
21830   echo '.byte 1' >> conftest2.s
21831   echo '.section myfoosect, "a"' > conftest3.s
21832   echo '.byte 0' >> conftest3.s
21833   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21834      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21835      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21836      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21837         conftest2.o conftest3.o > /dev/null 2>&1; then
21838     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21839                          | sed -e '/myfoosect/!d' -e N`
21840     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21841       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21842         gcc_cv_ld_ro_rw_mix=read-only
21843       else
21844         gcc_cv_ld_ro_rw_mix=read-write
21845       fi
21846     fi
21847   fi
21848   rm -f conftest.* conftest[123].*
21849 fi
21850 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21851
21852 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21853
21854 fi
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21856 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21857
21858 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21860 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21861 if test "${gcc_cv_as_leb128+set}" = set; then :
21862   $as_echo_n "(cached) " >&6
21863 else
21864   gcc_cv_as_leb128=no
21865     if test $in_tree_gas = yes; then
21866     if test $in_tree_gas_is_elf = yes \
21867   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21868   then gcc_cv_as_leb128=yes
21869 fi
21870   elif test x$gcc_cv_as != x; then
21871     echo '      .data
21872         .uleb128 L2 - L1
21873 L1:
21874         .uleb128 1280
21875         .sleb128 -1010
21876 L2:' > conftest.s
21877     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21878   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21879   (eval $ac_try) 2>&5
21880   ac_status=$?
21881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21882   test $ac_status = 0; }; }
21883     then
21884         # GAS versions before 2.11 do not support uleb128,
21885   # despite appearing to.
21886   # ??? There exists an elf-specific test that will crash
21887   # the assembler.  Perhaps it's better to figure out whether
21888   # arbitrary sections are supported and try the test.
21889   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21890   if echo "$as_ver" | grep GNU > /dev/null; then
21891     as_vers=`echo $as_ver | sed -n \
21892         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21893     as_major=`expr "$as_vers" : '\([0-9]*\)'`
21894     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21895     if test $as_major -eq 2 && test $as_minor -lt 11
21896     then :
21897     else gcc_cv_as_leb128=yes
21898     fi
21899   fi
21900     else
21901       echo "configure: failed program was" >&5
21902       cat conftest.s >&5
21903     fi
21904     rm -f conftest.o conftest.s
21905   fi
21906 fi
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21908 $as_echo "$gcc_cv_as_leb128" >&6; }
21909 if test $gcc_cv_as_leb128 = yes; then
21910
21911 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21912
21913 fi
21914
21915 # Check if we have assembler support for unwind directives.
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21917 $as_echo_n "checking assembler for cfi directives... " >&6; }
21918 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21919   $as_echo_n "(cached) " >&6
21920 else
21921   gcc_cv_as_cfi_directive=no
21922   if test x$gcc_cv_as != x; then
21923     echo '      .text
21924         .cfi_startproc
21925         .cfi_offset 0, 0
21926         .cfi_same_value 1
21927         .cfi_def_cfa 1, 2
21928         .cfi_escape 1, 2, 3, 4, 5
21929         .cfi_endproc' > conftest.s
21930     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
21931   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21932   (eval $ac_try) 2>&5
21933   ac_status=$?
21934   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21935   test $ac_status = 0; }; }
21936     then
21937         case "$target" in
21938   *-*-solaris*)
21939     # If the linker used on Solaris (like Sun ld) isn't capable of merging
21940     # read-only and read-write sections, we need to make sure that the
21941     # assembler used emits read-write .eh_frame sections.
21942     if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21943       if test "x$gcc_cv_objdump" != x; then
21944         if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21945                 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21946           gcc_cv_as_cfi_directive=no
21947         else
21948           case "$target" in
21949             i?86-*-solaris2.1[0-9]*)
21950               # On Solaris/x86, make sure that GCC and gas agree on using
21951               # read-only .eh_frame sections for 64-bit.
21952               if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21953                 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21954                         sed -e /.eh_frame/!d -e N | \
21955                         grep READONLY > /dev/null; then
21956                 gcc_cv_as_cfi_directive=yes
21957               else
21958                 gcc_cv_as_cfi_directive=no
21959               fi
21960               ;;
21961             *)
21962               gcc_cv_as_cfi_directive=yes
21963               ;;
21964           esac
21965         fi
21966       else
21967         # no objdump, err on the side of caution
21968         gcc_cv_as_cfi_directive=no
21969       fi
21970     else
21971       gcc_cv_as_cfi_directive=yes
21972     fi
21973     ;;
21974   *-*-*)
21975     gcc_cv_as_cfi_directive=yes
21976     ;;
21977 esac
21978     else
21979       echo "configure: failed program was" >&5
21980       cat conftest.s >&5
21981     fi
21982     rm -f conftest.o conftest.s
21983   fi
21984 fi
21985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21986 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21987
21988 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
21989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21990 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21991 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21992   $as_echo_n "(cached) " >&6
21993 else
21994   gcc_cv_as_cfi_advance_working=no
21995   if test x$gcc_cv_as != x; then
21996     echo '      .text
21997         .cfi_startproc
21998         .cfi_adjust_cfa_offset 64
21999         .skip 75040, 0
22000         .cfi_adjust_cfa_offset 128
22001         .cfi_endproc' > conftest.s
22002     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22003   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22004   (eval $ac_try) 2>&5
22005   ac_status=$?
22006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22007   test $ac_status = 0; }; }
22008     then
22009
22010 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22011     | grep 'DW_CFA_advance_loc[24]:[    ][      ]*75040[        ]' >/dev/null; then
22012    gcc_cv_as_cfi_advance_working=yes
22013 fi
22014
22015     else
22016       echo "configure: failed program was" >&5
22017       cat conftest.s >&5
22018     fi
22019     rm -f conftest.o conftest.s
22020   fi
22021 fi
22022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22023 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22024
22025 else
22026   # no objdump, err on the side of caution
22027   gcc_cv_as_cfi_advance_working=no
22028 fi
22029
22030
22031 cat >>confdefs.h <<_ACEOF
22032 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22033        && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22034 _ACEOF
22035
22036
22037
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22039 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22040 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22041   $as_echo_n "(cached) " >&6
22042 else
22043   gcc_cv_as_cfi_personality_directive=no
22044   if test x$gcc_cv_as != x; then
22045     echo '      .text
22046         .cfi_startproc
22047         .cfi_personality 0, symbol
22048         .cfi_endproc' > conftest.s
22049     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22050   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22051   (eval $ac_try) 2>&5
22052   ac_status=$?
22053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22054   test $ac_status = 0; }; }
22055     then
22056         gcc_cv_as_cfi_personality_directive=yes
22057     else
22058       echo "configure: failed program was" >&5
22059       cat conftest.s >&5
22060     fi
22061     rm -f conftest.o conftest.s
22062   fi
22063 fi
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22065 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22066
22067
22068 cat >>confdefs.h <<_ACEOF
22069 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22070     then echo 1; else echo 0; fi`
22071 _ACEOF
22072
22073
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22075 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22076 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22077   $as_echo_n "(cached) " >&6
22078 else
22079   gcc_cv_as_cfi_sections_directive=no
22080   if test x$gcc_cv_as != x; then
22081     echo '      .text
22082         .cfi_sections .debug_frame, .eh_frame
22083         .cfi_startproc
22084         .cfi_endproc' > conftest.s
22085     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22086   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22087   (eval $ac_try) 2>&5
22088   ac_status=$?
22089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22090   test $ac_status = 0; }; }
22091     then
22092         case $target_os in
22093   win32 | pe | cygwin* | mingw32* | uwin*)
22094     # Need to check that we generated the correct relocation for the
22095     # .debug_frame section.  This was fixed for binutils 2.21.
22096     gcc_cv_as_cfi_sections_directive=no
22097     if test "x$gcc_cv_objdump" != x; then
22098      if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22099         grep secrel > /dev/null; then
22100       gcc_cv_as_cfi_sections_directive=yes
22101      fi
22102     fi
22103     ;;
22104   *)
22105     gcc_cv_as_cfi_sections_directive=yes
22106     ;;
22107 esac
22108     else
22109       echo "configure: failed program was" >&5
22110       cat conftest.s >&5
22111     fi
22112     rm -f conftest.o conftest.s
22113   fi
22114 fi
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22116 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22117
22118
22119
22120 cat >>confdefs.h <<_ACEOF
22121 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22122     then echo 1; else echo 0; fi`
22123 _ACEOF
22124
22125
22126 # GAS versions up to and including 2.11.0 may mis-optimize
22127 # .eh_frame data.
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22129 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22130 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22131   $as_echo_n "(cached) " >&6
22132 else
22133   gcc_cv_as_eh_frame=no
22134     if test $in_tree_gas = yes; then
22135     if test $in_tree_gas_is_elf = yes \
22136   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22137   then gcc_cv_as_eh_frame=yes
22138 fi
22139   elif test x$gcc_cv_as != x; then
22140     echo '      .text
22141 .LFB1:
22142         .4byte  0
22143 .L1:
22144         .4byte  0
22145 .LFE1:
22146         .section        .eh_frame,"aw",@progbits
22147 __FRAME_BEGIN__:
22148         .4byte  .LECIE1-.LSCIE1
22149 .LSCIE1:
22150         .4byte  0x0
22151         .byte   0x1
22152         .ascii "z\0"
22153         .byte   0x1
22154         .byte   0x78
22155         .byte   0x1a
22156         .byte   0x0
22157         .byte   0x4
22158         .4byte  1
22159         .p2align 1
22160 .LECIE1:
22161 .LSFDE1:
22162         .4byte  .LEFDE1-.LASFDE1
22163 .LASFDE1:
22164         .4byte  .LASFDE1-__FRAME_BEGIN__
22165         .4byte  .LFB1
22166         .4byte  .LFE1-.LFB1
22167         .byte   0x4
22168         .4byte  .LFE1-.LFB1
22169         .byte   0x4
22170         .4byte  .L1-.LFB1
22171 .LEFDE1:' > conftest.s
22172     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22173   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22174   (eval $ac_try) 2>&5
22175   ac_status=$?
22176   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22177   test $ac_status = 0; }; }
22178     then
22179           cat > conftest.lit <<EOF
22180  0000 10000000 00000000 017a0001 781a0004  .........z..x...
22181  0010 01000000 12000000 18000000 00000000  ................
22182  0020 08000000 04080000 0044               .........D      
22183 EOF
22184 cat > conftest.big <<EOF
22185  0000 00000010 00000000 017a0001 781a0004  .........z..x...
22186  0010 00000001 00000012 00000018 00000000  ................
22187  0020 00000008 04000000 0844               .........D      
22188 EOF
22189   # If the assembler didn't choke, and we can objdump,
22190   # and we got the correct data, then succeed.
22191   # The text in the here-document typically retains its unix-style line
22192   # endings, while the output of objdump will use host line endings.
22193   # Therefore, use diff -b for the comparisons.
22194   if test x$gcc_cv_objdump != x \
22195   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22196      | tail -3 > conftest.got \
22197   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22198     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22199   then
22200     gcc_cv_as_eh_frame=yes
22201   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
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; }; }; then
22207     gcc_cv_as_eh_frame=buggy
22208   else
22209     # Uh oh, what do we do now?
22210     gcc_cv_as_eh_frame=no
22211   fi
22212     else
22213       echo "configure: failed program was" >&5
22214       cat conftest.s >&5
22215     fi
22216     rm -f conftest.o conftest.s
22217   fi
22218 fi
22219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22220 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22221
22222
22223 if test $gcc_cv_as_eh_frame = buggy; then
22224
22225 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22226
22227 fi
22228
22229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22230 $as_echo_n "checking assembler for section merging support... " >&6; }
22231 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22232   $as_echo_n "(cached) " >&6
22233 else
22234   gcc_cv_as_shf_merge=no
22235     if test $in_tree_gas = yes; then
22236     if test $in_tree_gas_is_elf = yes \
22237   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22238   then gcc_cv_as_shf_merge=yes
22239 fi
22240   elif test x$gcc_cv_as != x; then
22241     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22242     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22243   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22244   (eval $ac_try) 2>&5
22245   ac_status=$?
22246   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22247   test $ac_status = 0; }; }
22248     then
22249         gcc_cv_as_shf_merge=yes
22250     else
22251       echo "configure: failed program was" >&5
22252       cat conftest.s >&5
22253     fi
22254     rm -f conftest.o conftest.s
22255   fi
22256 fi
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22258 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22259
22260 if test $gcc_cv_as_shf_merge = no; then
22261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22262 $as_echo_n "checking assembler for section merging support... " >&6; }
22263 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22264   $as_echo_n "(cached) " >&6
22265 else
22266   gcc_cv_as_shf_merge=no
22267     if test $in_tree_gas = yes; then
22268     if test $in_tree_gas_is_elf = yes \
22269   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22270   then gcc_cv_as_shf_merge=yes
22271 fi
22272   elif test x$gcc_cv_as != x; then
22273     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22274     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22275   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22276   (eval $ac_try) 2>&5
22277   ac_status=$?
22278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22279   test $ac_status = 0; }; }
22280     then
22281         gcc_cv_as_shf_merge=yes
22282     else
22283       echo "configure: failed program was" >&5
22284       cat conftest.s >&5
22285     fi
22286     rm -f conftest.o conftest.s
22287   fi
22288 fi
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22290 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22291
22292 fi
22293
22294 cat >>confdefs.h <<_ACEOF
22295 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22296 _ACEOF
22297
22298
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22300 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22301 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22302   $as_echo_n "(cached) " >&6
22303 else
22304   gcc_cv_as_comdat_group=no
22305     if test $in_tree_gas = yes; then
22306     if test $in_tree_gas_is_elf = yes \
22307   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22308   then gcc_cv_as_comdat_group=yes
22309 fi
22310   elif test x$gcc_cv_as != x; then
22311     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22312     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22313   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22314   (eval $ac_try) 2>&5
22315   ac_status=$?
22316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22317   test $ac_status = 0; }; }
22318     then
22319         gcc_cv_as_comdat_group=yes
22320     else
22321       echo "configure: failed program was" >&5
22322       cat conftest.s >&5
22323     fi
22324     rm -f conftest.o conftest.s
22325   fi
22326 fi
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22328 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22329
22330 if test $gcc_cv_as_comdat_group = yes; then
22331   gcc_cv_as_comdat_group_percent=no
22332 else
22333  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
22334 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
22335 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22336   $as_echo_n "(cached) " >&6
22337 else
22338   gcc_cv_as_comdat_group_percent=no
22339     if test $in_tree_gas = yes; then
22340     if test $in_tree_gas_is_elf = yes \
22341   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22342   then gcc_cv_as_comdat_group_percent=yes
22343 fi
22344   elif test x$gcc_cv_as != x; then
22345     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22346     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22347   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22348   (eval $ac_try) 2>&5
22349   ac_status=$?
22350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22351   test $ac_status = 0; }; }
22352     then
22353         gcc_cv_as_comdat_group_percent=yes
22354     else
22355       echo "configure: failed program was" >&5
22356       cat conftest.s >&5
22357     fi
22358     rm -f conftest.o conftest.s
22359   fi
22360 fi
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22362 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22363
22364 fi
22365 if test x"$ld_is_gold" = xyes; then
22366   comdat_group=yes
22367 elif test $in_tree_ld = yes ; then
22368   comdat_group=no
22369   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 \
22370      && test $in_tree_ld_is_elf = yes; then
22371      comdat_group=yes
22372   fi
22373 elif echo "$ld_ver" | grep GNU > /dev/null; then
22374   comdat_group=yes
22375   if test 0"$ld_date" -lt 20050308; then
22376     if test -n "$ld_date"; then
22377       # If there was date string, but was earlier than 2005-03-08, fail
22378       comdat_group=no
22379     elif test "$ld_vers_major" -lt 2; then
22380       comdat_group=no
22381     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22382       comdat_group=no
22383     fi
22384   fi
22385 else
22386   case "${target}" in
22387     *-*-solaris2.1[1-9]*)
22388       # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22389       # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22390       # version 1.688.
22391       #
22392       # FIXME: Maybe need to refine later when COMDAT group support with
22393       # Sun as is implemented.
22394       if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
22395         comdat_group=yes
22396       else
22397         comdat_group=no
22398       fi
22399       ;;
22400     *)
22401       # Assume linkers other than GNU ld don't support COMDAT group.
22402       comdat_group=no
22403       ;;
22404   esac
22405 fi
22406 # Allow overriding the automatic COMDAT group tests above.
22407 # Check whether --enable-comdat was given.
22408 if test "${enable_comdat+set}" = set; then :
22409   enableval=$enable_comdat; comdat_group="$enable_comdat"
22410 fi
22411
22412 if test $comdat_group = no; then
22413   gcc_cv_as_comdat_group=no
22414   gcc_cv_as_comdat_group_percent=no
22415 fi
22416
22417 cat >>confdefs.h <<_ACEOF
22418 #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`
22419 _ACEOF
22420
22421
22422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22423 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22424 if test "${gcc_cv_as_discriminator+set}" = set; then :
22425   $as_echo_n "(cached) " >&6
22426 else
22427   gcc_cv_as_discriminator=no
22428     if test $in_tree_gas = yes; then
22429     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22430   then gcc_cv_as_discriminator=yes
22431 fi
22432   elif test x$gcc_cv_as != x; then
22433     echo '      .text
22434         .file 1 "conf.c"
22435         .loc 1 1 0 discriminator 1' > conftest.s
22436     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
22437   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22438   (eval $ac_try) 2>&5
22439   ac_status=$?
22440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22441   test $ac_status = 0; }; }
22442     then
22443         gcc_cv_as_discriminator=yes
22444     else
22445       echo "configure: failed program was" >&5
22446       cat conftest.s >&5
22447     fi
22448     rm -f conftest.o conftest.s
22449   fi
22450 fi
22451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22452 $as_echo "$gcc_cv_as_discriminator" >&6; }
22453 if test $gcc_cv_as_discriminator = yes; then
22454
22455 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22456
22457 fi
22458
22459 # Thread-local storage - the check is heavily parameterized.
22460 conftest_s=
22461 tls_first_major=
22462 tls_first_minor=
22463 tls_as_opt=
22464 case "$target" in
22465   alpha*-*-*)
22466     conftest_s='
22467         .section ".tdata","awT",@progbits
22468 foo:    .long   25
22469         .text
22470         ldq     $27,__tls_get_addr($29)         !literal!1
22471         lda     $16,foo($29)                    !tlsgd!1
22472         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
22473         ldq     $27,__tls_get_addr($29)         !literal!2
22474         lda     $16,foo($29)                    !tlsldm!2
22475         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
22476         ldq     $1,foo($29)                     !gotdtprel
22477         ldah    $2,foo($29)                     !dtprelhi
22478         lda     $3,foo($2)                      !dtprello
22479         lda     $4,foo($29)                     !dtprel
22480         ldq     $1,foo($29)                     !gottprel
22481         ldah    $2,foo($29)                     !tprelhi
22482         lda     $3,foo($2)                      !tprello
22483         lda     $4,foo($29)                     !tprel'
22484         tls_first_major=2
22485         tls_first_minor=13
22486         tls_as_opt=--fatal-warnings
22487         ;;
22488   cris-*-*|crisv32-*-*)
22489     conftest_s='
22490         .section ".tdata","awT",@progbits
22491 x:      .long   25
22492         .text
22493         move.d x:IE,$r10
22494         nop'
22495         tls_first_major=2
22496         tls_first_minor=20
22497         tls_as_opt=--fatal-warnings
22498         ;;
22499   frv*-*-*)
22500     conftest_s='
22501         .section ".tdata","awT",@progbits
22502 x:      .long   25
22503         .text
22504         call    #gettlsoff(x)'
22505         tls_first_major=2
22506         tls_first_minor=14
22507         ;;
22508   hppa*-*-linux*)
22509     conftest_s='
22510 t1:     .reg    %r20
22511 t2:     .reg    %r21
22512 gp:     .reg    %r19
22513         .section ".tdata","awT",@progbits
22514 foo:    .long   25
22515         .text
22516         .align  4
22517         addil LT%foo-$tls_gdidx$,gp
22518         ldo RT%foo-$tls_gdidx$(%r1),%arg0
22519         b __tls_get_addr
22520         nop
22521         addil LT%foo-$tls_ldidx$,gp
22522         b __tls_get_addr
22523         ldo RT%foo-$tls_ldidx$(%r1),%arg0
22524         addil LR%foo-$tls_dtpoff$,%ret0
22525         ldo RR%foo-$tls_dtpoff$(%r1),%t1
22526         mfctl %cr27,%t1
22527         addil LT%foo-$tls_ieoff$,gp
22528         ldw RT%foo-$tls_ieoff$(%r1),%t2
22529         add %t1,%t2,%t3
22530         mfctl %cr27,%t1
22531         addil LR%foo-$tls_leoff$,%t1
22532         ldo RR%foo-$tls_leoff$(%r1),%t2'
22533         tls_first_major=2
22534         tls_first_minor=15
22535         tls_as_opt=--fatal-warnings
22536         ;;
22537   arm*-*-*)
22538     conftest_s='
22539         .section ".tdata","awT",%progbits
22540 foo:    .long   25
22541         .text
22542 .word foo(gottpoff)
22543 .word foo(tpoff)
22544 .word foo(tlsgd)
22545 .word foo(tlsldm)
22546 .word foo(tlsldo)'
22547         tls_first_major=2
22548         tls_first_minor=17
22549         ;;
22550   i[34567]86-*-*)
22551     case "$target" in
22552       i[34567]86-*-solaris2.*)
22553         on_solaris=yes
22554         tga_func=___tls_get_addr
22555         ;;
22556       *)
22557         on_solaris=no
22558         ;;
22559     esac
22560     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22561       conftest_s='
22562         .section .tdata,"awt",@progbits'
22563       tls_first_major=0
22564       tls_first_minor=0
22565
22566 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22567
22568     else
22569       conftest_s='
22570         .section ".tdata","awT",@progbits'
22571       tls_first_major=2
22572       tls_first_minor=14
22573       tls_as_opt="--fatal-warnings"
22574     fi
22575     conftest_s="$conftest_s
22576 foo:    .long   25
22577         .text
22578         movl    %gs:0, %eax
22579         leal    foo@tlsgd(,%ebx,1), %eax
22580         leal    foo@tlsldm(%ebx), %eax
22581         leal    foo@dtpoff(%eax), %edx
22582         movl    foo@gottpoff(%ebx), %eax
22583         subl    foo@gottpoff(%ebx), %eax
22584         addl    foo@gotntpoff(%ebx), %eax
22585         movl    foo@indntpoff, %eax
22586         movl    \$foo@tpoff, %eax
22587         subl    \$foo@tpoff, %eax
22588         leal    foo@ntpoff(%ecx), %eax"
22589     ;;
22590   x86_64-*-*)
22591     conftest_s='
22592         .section ".tdata","awT",@progbits
22593 foo:    .long   25
22594         .text
22595         movq    %fs:0, %rax
22596         leaq    foo@TLSGD(%rip), %rdi
22597         leaq    foo@TLSLD(%rip), %rdi
22598         leaq    foo@DTPOFF(%rax), %rdx
22599         movq    foo@GOTTPOFF(%rip), %rax
22600         movq    $foo@TPOFF, %rax'
22601         tls_first_major=2
22602         tls_first_minor=14
22603         tls_as_opt=--fatal-warnings
22604         ;;
22605   ia64-*-*)
22606     conftest_s='
22607         .section ".tdata","awT",@progbits
22608 foo:    data8   25
22609         .text
22610         addl    r16 = @ltoff(@dtpmod(foo#)), gp
22611         addl    r17 = @ltoff(@dtprel(foo#)), gp
22612         addl    r18 = @ltoff(@tprel(foo#)), gp
22613         addl    r19 = @dtprel(foo#), gp
22614         adds    r21 = @dtprel(foo#), r13
22615         movl    r23 = @dtprel(foo#)
22616         addl    r20 = @tprel(foo#), gp
22617         adds    r22 = @tprel(foo#), r13
22618         movl    r24 = @tprel(foo#)'
22619         tls_first_major=2
22620         tls_first_minor=13
22621         tls_as_opt=--fatal-warnings
22622         ;;
22623   mips*-*-*)
22624     conftest_s='
22625         .section .tdata,"awT",@progbits
22626 x:
22627         .word 2
22628         .text
22629         addiu $4, $28, %tlsgd(x)
22630         addiu $4, $28, %tlsldm(x)
22631         lui $4, %dtprel_hi(x)
22632         addiu $4, $4, %dtprel_lo(x)
22633         lw $4, %gottprel(x)($28)
22634         lui $4, %tprel_hi(x)
22635         addiu $4, $4, %tprel_lo(x)'
22636         tls_first_major=2
22637         tls_first_minor=16
22638         tls_as_opt='-32 --fatal-warnings'
22639         ;;
22640   m68k-*-*)
22641     conftest_s='
22642         .section .tdata,"awT",@progbits
22643 x:
22644         .word 2
22645         .text
22646 foo:
22647         move.l x@TLSGD(%a5),%a0
22648         move.l x@TLSLDM(%a5),%a0
22649         move.l x@TLSLDO(%a5),%a0
22650         move.l x@TLSIE(%a5),%a0
22651         move.l x@TLSLE(%a5),%a0'
22652         tls_first_major=2
22653         tls_first_minor=19
22654         tls_as_opt='--fatal-warnings'
22655         ;;
22656   powerpc-*-*)
22657     conftest_s='
22658         .section ".tdata","awT",@progbits
22659         .align 2
22660 ld0:    .space 4
22661 ld1:    .space 4
22662 x1:     .space 4
22663 x2:     .space 4
22664 x3:     .space 4
22665         .text
22666         addi 3,31,ld0@got@tlsgd
22667         bl __tls_get_addr
22668         addi 3,31,x1@got@tlsld
22669         bl __tls_get_addr
22670         addi 9,3,x1@dtprel
22671         addis 9,3,x2@dtprel@ha
22672         addi 9,9,x2@dtprel@l
22673         lwz 9,x3@got@tprel(31)
22674         add 9,9,x@tls
22675         addi 9,2,x1@tprel
22676         addis 9,2,x2@tprel@ha
22677         addi 9,9,x2@tprel@l'
22678         tls_first_major=2
22679         tls_first_minor=14
22680         tls_as_opt="-a32 --fatal-warnings"
22681         ;;
22682   powerpc64-*-*)
22683     conftest_s='
22684         .section ".tdata","awT",@progbits
22685         .align 3
22686 ld0:    .space 8
22687 ld1:    .space 8
22688 x1:     .space 8
22689 x2:     .space 8
22690 x3:     .space 8
22691         .text
22692         addi 3,2,ld0@got@tlsgd
22693         bl .__tls_get_addr
22694         nop
22695         addi 3,2,ld1@toc
22696         bl .__tls_get_addr
22697         nop
22698         addi 3,2,x1@got@tlsld
22699         bl .__tls_get_addr
22700         nop
22701         addi 9,3,x1@dtprel
22702         bl .__tls_get_addr
22703         nop
22704         addis 9,3,x2@dtprel@ha
22705         addi 9,9,x2@dtprel@l
22706         bl .__tls_get_addr
22707         nop
22708         ld 9,x3@got@dtprel(2)
22709         add 9,9,3
22710         bl .__tls_get_addr
22711         nop'
22712         tls_first_major=2
22713         tls_first_minor=14
22714         tls_as_opt="-a64 --fatal-warnings"
22715         ;;
22716   s390-*-*)
22717     conftest_s='
22718         .section ".tdata","awT",@progbits
22719 foo:    .long   25
22720         .text
22721         .long   foo@TLSGD
22722         .long   foo@TLSLDM
22723         .long   foo@DTPOFF
22724         .long   foo@NTPOFF
22725         .long   foo@GOTNTPOFF
22726         .long   foo@INDNTPOFF
22727         l       %r1,foo@GOTNTPOFF(%r12)
22728         l       %r1,0(%r1):tls_load:foo
22729         bas     %r14,0(%r1,%r13):tls_gdcall:foo
22730         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
22731         tls_first_major=2
22732         tls_first_minor=14
22733         tls_as_opt="-m31 --fatal-warnings"
22734         ;;
22735   s390x-*-*)
22736     conftest_s='
22737         .section ".tdata","awT",@progbits
22738 foo:    .long   25
22739         .text
22740         .quad   foo@TLSGD
22741         .quad   foo@TLSLDM
22742         .quad   foo@DTPOFF
22743         .quad   foo@NTPOFF
22744         .quad   foo@GOTNTPOFF
22745         lg      %r1,foo@GOTNTPOFF(%r12)
22746         larl    %r1,foo@INDNTPOFF
22747         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
22748         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22749         tls_first_major=2
22750         tls_first_minor=14
22751         tls_as_opt="-m64 -Aesame --fatal-warnings"
22752         ;;
22753   sh-*-* | sh[34]-*-*)
22754     conftest_s='
22755         .section ".tdata","awT",@progbits
22756 foo:    .long   25
22757         .text
22758         .long   foo@TLSGD
22759         .long   foo@TLSLDM
22760         .long   foo@DTPOFF
22761         .long   foo@GOTTPOFF
22762         .long   foo@TPOFF'
22763         tls_first_major=2
22764         tls_first_minor=13
22765         tls_as_opt=--fatal-warnings
22766         ;;
22767   sparc*-*-*)
22768     case "$target" in
22769       sparc*-sun-solaris2.*)
22770         on_solaris=yes
22771         tga_func=__tls_get_addr
22772         ;;
22773       *)
22774         on_solaris=no
22775         ;;
22776     esac
22777     if test x$on_solaris = xyes && test x$gas_flag = xno; then
22778       conftest_s='
22779         .section ".tdata",#alloc,#write,#tls'
22780         tls_first_major=0
22781         tls_first_minor=0
22782     else
22783       conftest_s='
22784         .section ".tdata","awT",@progbits'
22785         tls_first_major=2
22786         tls_first_minor=14
22787         tls_as_opt="-32 --fatal-warnings"
22788     fi
22789     conftest_s="$conftest_s
22790 foo:    .long   25
22791         .text
22792         sethi   %tgd_hi22(foo), %o0
22793         add     %o0, %tgd_lo10(foo), %o1
22794         add     %l7, %o1, %o0, %tgd_add(foo)
22795         call    __tls_get_addr, %tgd_call(foo)
22796         sethi   %tldm_hi22(foo), %l1
22797         add     %l1, %tldm_lo10(foo), %l2
22798         add     %l7, %l2, %o0, %tldm_add(foo)
22799         call    __tls_get_addr, %tldm_call(foo)
22800         sethi   %tldo_hix22(foo), %l3
22801         xor     %l3, %tldo_lox10(foo), %l4
22802         add     %o0, %l4, %l5, %tldo_add(foo)
22803         sethi   %tie_hi22(foo), %o3
22804         add     %o3, %tie_lo10(foo), %o3
22805         ld      [%l7 + %o3], %o2, %tie_ld(foo)
22806         add     %g7, %o2, %o4, %tie_add(foo)
22807         sethi   %tle_hix22(foo), %l1
22808         xor     %l1, %tle_lox10(foo), %o5
22809         ld      [%g7 + %o5], %o1"
22810         ;;
22811   xtensa*-*-*)
22812     conftest_s='
22813         .section ".tdata","awT",@progbits
22814 foo:    .long   25
22815         .text
22816         movi    a8, foo@TLSFUNC
22817         movi    a10, foo@TLSARG
22818         callx8.tls a8, foo@TLSCALL'
22819         tls_first_major=2
22820         tls_first_minor=19
22821         ;;
22822 esac
22823 set_have_as_tls=no
22824 if test "x$enable_tls" = xno ; then
22825   : # TLS explicitly disabled.
22826 elif test "x$enable_tls" = xyes ; then
22827   set_have_as_tls=yes # TLS explicitly enabled.
22828 elif test -z "$tls_first_major"; then
22829   : # If we don't have a check, assume no support.
22830 else
22831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22832 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22833 if test "${gcc_cv_as_tls+set}" = set; then :
22834   $as_echo_n "(cached) " >&6
22835 else
22836   gcc_cv_as_tls=no
22837     if test $in_tree_gas = yes; then
22838     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22839   then gcc_cv_as_tls=yes
22840 fi
22841   elif test x$gcc_cv_as != x; then
22842     echo "$conftest_s" > conftest.s
22843     if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22844   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22845   (eval $ac_try) 2>&5
22846   ac_status=$?
22847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22848   test $ac_status = 0; }; }
22849     then
22850         gcc_cv_as_tls=yes
22851     else
22852       echo "configure: failed program was" >&5
22853       cat conftest.s >&5
22854     fi
22855     rm -f conftest.o conftest.s
22856   fi
22857 fi
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22859 $as_echo "$gcc_cv_as_tls" >&6; }
22860 if test $gcc_cv_as_tls = yes; then
22861   set_have_as_tls=yes
22862 fi
22863 fi
22864 case "$target" in
22865   *-*-irix6*)
22866     # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
22867     # with TLS support are in use, native TLS cannot work.
22868     set_have_as_tls=no
22869     ;;
22870   *-*-osf*)
22871     # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
22872     # gld with TLS support are in use, native TLS cannot work.
22873     set_have_as_tls=no
22874     ;;
22875   # TLS was introduced in the Solaris 9 FCS release and backported to
22876   # Solaris 8 patches.  Support for GNU-style TLS on x86 was only
22877   # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22878   # ld and GCC don't support any longer.
22879   *-*-solaris2.*)
22880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22881 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22882     ld_tls_support=no
22883     # Check ld and ld.so.1 TLS support.
22884     if echo "$ld_ver" | grep GNU > /dev/null; then
22885       # Assume all interesting versions of GNU ld have TLS support.
22886       # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22887       ld_tls_support=yes
22888     else
22889       case "$target" in
22890         # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22891         i?86-*-solaris2.8)
22892           min_tls_ld_vers_minor=280
22893           ;;
22894         # Solaris 8/SPARC ld has TLS support since version 1.272.
22895         sparc*-*-solaris2.8)
22896           min_tls_ld_vers_minor=272
22897           ;;
22898         # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22899         i?86-*-solaris2.9)
22900           min_tls_ld_vers_minor=374
22901           ;;
22902         # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22903         sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
22904           min_tls_ld_vers_minor=343
22905           ;;
22906       esac
22907       if test "$ld_vers_major" -gt 1 || \
22908         test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
22909         ld_tls_support=yes
22910       else
22911         set_have_as_tls=no
22912       fi
22913     fi
22914     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
22915 $as_echo "$ld_tls_support" >&6; }
22916
22917     save_LIBS="$LIBS"
22918     save_LDFLAGS="$LDFLAGS"
22919     LIBS=
22920     LDFLAGS=
22921
22922     { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
22923 $as_echo_n "checking alternate thread library... " >&6; }
22924     case "$target" in
22925       # TLS support was backported to Solaris 8 patches, but only lives in
22926       # the alternate thread library which became the default in Solaris 9.
22927       # We want to always use that, irrespective of TLS support.
22928       *-*-solaris2.8)
22929         # Take multilib subdir into account.  There's no spec to handle
22930         # this.  The 64 symlink exists since Solaris 8.
22931         lwp_dir=/usr/lib/lwp
22932         lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
22933         LDFLAGS="-L$lwp_dir -R$lwp_dir"
22934         ;;
22935       *-*-solaris2*)
22936         lwp_dir="none"
22937         lwp_spec=""
22938         ;;
22939     esac
22940     # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
22941
22942 cat >>confdefs.h <<_ACEOF
22943 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
22944 _ACEOF
22945
22946     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
22947 $as_echo "$lwp_dir" >&6; }
22948
22949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
22950 $as_echo_n "checking library containing $tga_func... " >&6; }
22951     # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
22952     # (32-bit x86) only lived in libthread, so check for that.  Keep
22953     # set_have_as_tls if found, disable if not.
22954     as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
22956 $as_echo_n "checking for library containing $tga_func... " >&6; }
22957 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22958   $as_echo_n "(cached) " >&6
22959 else
22960   ac_func_search_save_LIBS=$LIBS
22961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22962 /* end confdefs.h.  */
22963
22964 /* Override any GCC internal prototype to avoid an error.
22965    Use char because int might match the return type of a GCC
22966    builtin and then its argument prototype would still apply.  */
22967 #ifdef __cplusplus
22968 extern "C"
22969 #endif
22970 char $tga_func ();
22971 int
22972 main ()
22973 {
22974 return $tga_func ();
22975   ;
22976   return 0;
22977 }
22978 _ACEOF
22979 for ac_lib in '' thread; do
22980   if test -z "$ac_lib"; then
22981     ac_res="none required"
22982   else
22983     ac_res=-l$ac_lib
22984     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22985   fi
22986   if ac_fn_c_try_link "$LINENO"; then :
22987   eval "$as_ac_Search=\$ac_res"
22988 fi
22989 rm -f core conftest.err conftest.$ac_objext \
22990     conftest$ac_exeext
22991   if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22992   break
22993 fi
22994 done
22995 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22996
22997 else
22998   eval "$as_ac_Search=no"
22999 fi
23000 rm conftest.$ac_ext
23001 LIBS=$ac_func_search_save_LIBS
23002 fi
23003 eval ac_res=\$$as_ac_Search
23004                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23005 $as_echo "$ac_res" >&6; }
23006 eval ac_res=\$$as_ac_Search
23007 if test "$ac_res" != no; then :
23008   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23009
23010 else
23011   set_have_as_tls=no
23012 fi
23013
23014     # Clear LIBS if we cannot support TLS.
23015     if test $set_have_as_tls = no; then
23016       LIBS=
23017     fi
23018     # Always define LIB_TLS_SPEC, even without TLS support.
23019
23020 cat >>confdefs.h <<_ACEOF
23021 #define LIB_TLS_SPEC "$LIBS"
23022 _ACEOF
23023
23024     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23025 $as_echo "$LIBS" >&6; }
23026
23027     LIBS="$save_LIBS"
23028     LDFLAGS="$save_LDFLAGS"
23029     ;;
23030 esac
23031 if test $set_have_as_tls = yes ; then
23032
23033 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23034
23035 fi
23036
23037 # Target-specific assembler checks.
23038
23039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23040 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23041 gcc_cv_ld_static_dynamic=no
23042 gcc_cv_ld_static_option='-Bstatic'
23043 gcc_cv_ld_dynamic_option='-Bdynamic'
23044 if test $in_tree_ld = yes ; then
23045   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
23046     gcc_cv_ld_static_dynamic=yes
23047   fi
23048 elif test x$gcc_cv_ld != x; then
23049   # Check if linker supports -Bstatic/-Bdynamic option
23050   if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23051      && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23052       gcc_cv_ld_static_dynamic=yes
23053   else
23054     case "$target" in
23055       # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23056       alpha*-dec-osf*)
23057         gcc_cv_ld_static_dynamic=yes
23058         gcc_cv_ld_static_option="-noso"
23059         gcc_cv_ld_dynamic_option="-so_archive"
23060         ;;
23061       # IRIX 6 ld supports -Bstatic/-Bdynamic.
23062       mips-sgi-irix6*)
23063         gcc_cv_ld_static_dynamic=yes
23064         ;;
23065       # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23066       *-*-solaris2*)
23067         gcc_cv_ld_static_dynamic=yes
23068         ;;
23069     esac
23070   fi
23071 fi
23072 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23073
23074 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23075
23076
23077 cat >>confdefs.h <<_ACEOF
23078 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23079 _ACEOF
23080
23081
23082 cat >>confdefs.h <<_ACEOF
23083 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23084 _ACEOF
23085
23086 fi
23087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23088 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23089
23090 if test x"$demangler_in_ld" = xyes; then
23091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23092 $as_echo_n "checking linker --demangle support... " >&6; }
23093   gcc_cv_ld_demangle=no
23094   if test $in_tree_ld = yes; then
23095     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 \
23096       gcc_cv_ld_demangle=yes
23097     fi
23098   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23099     # Check if the GNU linker supports --demangle option
23100     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23101       gcc_cv_ld_demangle=yes
23102     fi
23103   fi
23104   if test x"$gcc_cv_ld_demangle" = xyes; then
23105
23106 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23107
23108   fi
23109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23110 $as_echo "$gcc_cv_ld_demangle" >&6; }
23111 fi
23112
23113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23114 $as_echo_n "checking linker plugin support... " >&6; }
23115 gcc_cv_lto_plugin=no
23116 if test -f liblto_plugin.la; then
23117   if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET=" = x"$gcc_cv_ld"; then
23118     if test x"$ld_is_gold" = xyes; then
23119       gcc_cv_lto_plugin=yes
23120     elif 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 \
23121       gcc_cv_lto_plugin=yes
23122     fi
23123   # Check if the linker supports --plugin-opt option
23124   elif $ORIGINAL_PLUGIN_LD_FOR_TARGET --help 2>/dev/null | grep plugin-opt > /dev/null; then
23125     gcc_cv_lto_plugin=yes
23126   fi
23127 fi
23128 if test x"$gcc_cv_lto_plugin" = xyes; then
23129
23130 $as_echo "#define HAVE_LTO_PLUGIN 1" >>confdefs.h
23131
23132 fi
23133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23134 $as_echo "$gcc_cv_lto_plugin" >&6; }
23135
23136 case "$target" in
23137   # All TARGET_ABI_OSF targets.
23138   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23139     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23140 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23141 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23142   $as_echo_n "(cached) " >&6
23143 else
23144   gcc_cv_as_alpha_explicit_relocs=no
23145     if test $in_tree_gas = yes; then
23146     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23147   then gcc_cv_as_alpha_explicit_relocs=yes
23148 fi
23149   elif test x$gcc_cv_as != x; then
23150     echo '      .set nomacro
23151         .text
23152         extbl   $3, $2, $3      !lituse_bytoff!1
23153         ldq     $2, a($29)      !literal!1
23154         ldq     $4, b($29)      !literal!2
23155         ldq_u   $3, 0($2)       !lituse_base!1
23156         ldq     $27, f($29)     !literal!5
23157         jsr     $26, ($27), f   !lituse_jsr!5
23158         ldah    $29, 0($26)     !gpdisp!3
23159         lda     $0, c($29)      !gprel
23160         ldah    $1, d($29)      !gprelhigh
23161         lda     $1, d($1)       !gprellow
23162         lda     $29, 0($29)     !gpdisp!3' > conftest.s
23163     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23164   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23165   (eval $ac_try) 2>&5
23166   ac_status=$?
23167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23168   test $ac_status = 0; }; }
23169     then
23170         gcc_cv_as_alpha_explicit_relocs=yes
23171     else
23172       echo "configure: failed program was" >&5
23173       cat conftest.s >&5
23174     fi
23175     rm -f conftest.o conftest.s
23176   fi
23177 fi
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23179 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23180 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23181
23182 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23183
23184 fi
23185     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23186 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23187 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23188   $as_echo_n "(cached) " >&6
23189 else
23190   gcc_cv_as_alpha_jsrdirect_relocs=no
23191     if test $in_tree_gas = yes; then
23192     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23193   then gcc_cv_as_alpha_jsrdirect_relocs=yes
23194 fi
23195   elif test x$gcc_cv_as != x; then
23196     echo '      .set nomacro
23197         .text
23198         ldq     $27, a($29)     !literal!1
23199         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
23200     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23201   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23202   (eval $ac_try) 2>&5
23203   ac_status=$?
23204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23205   test $ac_status = 0; }; }
23206     then
23207         gcc_cv_as_alpha_jsrdirect_relocs=yes
23208     else
23209       echo "configure: failed program was" >&5
23210       cat conftest.s >&5
23211     fi
23212     rm -f conftest.o conftest.s
23213   fi
23214 fi
23215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23216 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23217 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23218
23219 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23220
23221 fi
23222     ;;
23223
23224   cris-*-*)
23225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23226 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23227 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23228   $as_echo_n "(cached) " >&6
23229 else
23230   gcc_cv_as_cris_no_mul_bug=no
23231     if test $in_tree_gas = yes; then
23232     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23233   then gcc_cv_as_cris_no_mul_bug=yes
23234 fi
23235   elif test x$gcc_cv_as != x; then
23236     echo '.text' > conftest.s
23237     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23238   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23239   (eval $ac_try) 2>&5
23240   ac_status=$?
23241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23242   test $ac_status = 0; }; }
23243     then
23244         gcc_cv_as_cris_no_mul_bug=yes
23245     else
23246       echo "configure: failed program was" >&5
23247       cat conftest.s >&5
23248     fi
23249     rm -f conftest.o conftest.s
23250   fi
23251 fi
23252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23253 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23254 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23255
23256 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23257
23258 fi
23259     ;;
23260
23261   sparc*-*-*)
23262     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23263 $as_echo_n "checking assembler for .register... " >&6; }
23264 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23265   $as_echo_n "(cached) " >&6
23266 else
23267   gcc_cv_as_sparc_register_op=no
23268   if test x$gcc_cv_as != x; then
23269     echo '.register %g2, #scratch' > conftest.s
23270     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23271   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23272   (eval $ac_try) 2>&5
23273   ac_status=$?
23274   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23275   test $ac_status = 0; }; }
23276     then
23277         gcc_cv_as_sparc_register_op=yes
23278     else
23279       echo "configure: failed program was" >&5
23280       cat conftest.s >&5
23281     fi
23282     rm -f conftest.o conftest.s
23283   fi
23284 fi
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23286 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23287 if test $gcc_cv_as_sparc_register_op = yes; then
23288
23289 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23290
23291 fi
23292
23293     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23294 $as_echo_n "checking assembler for -relax option... " >&6; }
23295 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23296   $as_echo_n "(cached) " >&6
23297 else
23298   gcc_cv_as_sparc_relax=no
23299   if test x$gcc_cv_as != x; then
23300     echo '.text' > conftest.s
23301     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23302   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23303   (eval $ac_try) 2>&5
23304   ac_status=$?
23305   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23306   test $ac_status = 0; }; }
23307     then
23308         gcc_cv_as_sparc_relax=yes
23309     else
23310       echo "configure: failed program was" >&5
23311       cat conftest.s >&5
23312     fi
23313     rm -f conftest.o conftest.s
23314   fi
23315 fi
23316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23317 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23318 if test $gcc_cv_as_sparc_relax = yes; then
23319
23320 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23321
23322 fi
23323
23324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23325 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23326 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23327   $as_echo_n "(cached) " >&6
23328 else
23329   gcc_cv_as_sparc_gotdata_op=no
23330   if test x$gcc_cv_as != x; then
23331     echo '.text
23332 foo:
23333         nop
23334 bar:
23335         sethi %gdop_hix22(foo), %g1
23336         xor    %g1, %gdop_lox10(foo), %g1
23337         ld    [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23338     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23339   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23340   (eval $ac_try) 2>&5
23341   ac_status=$?
23342   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23343   test $ac_status = 0; }; }
23344     then
23345         if test x$gcc_cv_ld != x \
23346        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23347          if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
23348            if test x$gcc_cv_objdump != x; then
23349              if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23350                 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23351                gcc_cv_as_sparc_gotdata_op=no
23352              else
23353                gcc_cv_as_sparc_gotdata_op=yes
23354              fi
23355            fi
23356          else
23357            gcc_cv_as_sparc_gotdata_op=yes
23358          fi
23359        fi
23360        rm -f conftest
23361     else
23362       echo "configure: failed program was" >&5
23363       cat conftest.s >&5
23364     fi
23365     rm -f conftest.o conftest.s
23366   fi
23367 fi
23368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23369 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23370 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23371
23372 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23373
23374 fi
23375
23376     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23377 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23378 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23379   $as_echo_n "(cached) " >&6
23380 else
23381   gcc_cv_as_sparc_ua_pcrel=no
23382   if test x$gcc_cv_as != x; then
23383     echo '.text
23384 foo:
23385         nop
23386 .data
23387 .align 4
23388 .byte 0
23389 .uaword %r_disp32(foo)' > conftest.s
23390     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23391   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23392   (eval $ac_try) 2>&5
23393   ac_status=$?
23394   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23395   test $ac_status = 0; }; }
23396     then
23397         if test x$gcc_cv_ld != x \
23398        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23399          gcc_cv_as_sparc_ua_pcrel=yes
23400        fi
23401        rm -f conftest
23402     else
23403       echo "configure: failed program was" >&5
23404       cat conftest.s >&5
23405     fi
23406     rm -f conftest.o conftest.s
23407   fi
23408 fi
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23410 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23411 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23412
23413 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23414
23415
23416       { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23417 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23418 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23419   $as_echo_n "(cached) " >&6
23420 else
23421   gcc_cv_as_sparc_ua_pcrel_hidden=no
23422   if test x$gcc_cv_as != x; then
23423     echo '.data
23424 .align 4
23425 .byte 0x31
23426 .uaword %r_disp32(foo)
23427 .byte 0x32, 0x33, 0x34
23428 .global foo
23429 .hidden foo
23430 foo:
23431 .skip 4' > conftest.s
23432     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23433   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23434   (eval $ac_try) 2>&5
23435   ac_status=$?
23436   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23437   test $ac_status = 0; }; }
23438     then
23439         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23440          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23441          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23442             | grep ' 31000000 07323334' > /dev/null 2>&1; then
23443             if $gcc_cv_objdump -R conftest 2> /dev/null \
23444                | grep 'DISP32' > /dev/null 2>&1; then
23445                 :
23446             else
23447                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23448             fi
23449          fi
23450          rm -f conftest
23451     else
23452       echo "configure: failed program was" >&5
23453       cat conftest.s >&5
23454     fi
23455     rm -f conftest.o conftest.s
23456   fi
23457 fi
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23459 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23460 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23461
23462 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23463
23464 fi
23465
23466 fi # unaligned pcrel relocs
23467
23468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23469 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23470 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23471   $as_echo_n "(cached) " >&6
23472 else
23473   gcc_cv_as_sparc_offsetable_lo10=no
23474   if test x$gcc_cv_as != x; then
23475     echo '.text
23476         or %g1, %lo(ab) + 12, %g1
23477         or %g1, %lo(ab + 12), %g1' > conftest.s
23478     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23479   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23480   (eval $ac_try) 2>&5
23481   ac_status=$?
23482   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23483   test $ac_status = 0; }; }
23484     then
23485         if test x$gcc_cv_objdump != x \
23486        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23487           | grep ' 82106000 82106000' > /dev/null 2>&1; then
23488          gcc_cv_as_sparc_offsetable_lo10=yes
23489        fi
23490     else
23491       echo "configure: failed program was" >&5
23492       cat conftest.s >&5
23493     fi
23494     rm -f conftest.o conftest.s
23495   fi
23496 fi
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23498 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23499 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23500
23501 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23502
23503 fi
23504     ;;
23505
23506   i[34567]86-*-* | x86_64-*-*)
23507     case $target_os in
23508       cygwin*)
23509         # Full C++ conformance when using a shared libstdc++-v3 requires some
23510         # support from the Cygwin DLL, which in more recent versions exports
23511         # wrappers to aid in interposing and redirecting operators new, delete,
23512         # etc., as per n2800 #17.6.4.6 [replacement.functions].  Check if we
23513         # are configuring for a version of Cygwin that exports the wrappers.
23514         if test x$host = x$target; then
23515           ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23516 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23517   gcc_ac_cygwin_dll_wrappers=yes
23518 else
23519   gcc_ac_cygwin_dll_wrappers=no
23520 fi
23521
23522         else
23523           # Can't check presence of libc functions during cross-compile, so
23524           # we just have to assume we're building for an up-to-date target.
23525           gcc_ac_cygwin_dll_wrappers=yes
23526         fi
23527
23528 cat >>confdefs.h <<_ACEOF
23529 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23530 _ACEOF
23531
23532     esac
23533     case $target_os in
23534       cygwin* | pe | mingw32*)
23535         # Recent binutils allows the three-operand form of ".comm" on PE.  This
23536         # definition is used unconditionally to initialise the default state of
23537         # the target option variable that governs usage of the feature.
23538         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23539 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23540 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23541   $as_echo_n "(cached) " >&6
23542 else
23543   gcc_cv_as_comm_has_align=no
23544     if test $in_tree_gas = yes; then
23545     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23546   then gcc_cv_as_comm_has_align=yes
23547 fi
23548   elif test x$gcc_cv_as != x; then
23549     echo '.comm foo,1,32' > conftest.s
23550     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23551   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23552   (eval $ac_try) 2>&5
23553   ac_status=$?
23554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23555   test $ac_status = 0; }; }
23556     then
23557         gcc_cv_as_comm_has_align=yes
23558     else
23559       echo "configure: failed program was" >&5
23560       cat conftest.s >&5
23561     fi
23562     rm -f conftest.o conftest.s
23563   fi
23564 fi
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23566 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23567
23568
23569 cat >>confdefs.h <<_ACEOF
23570 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23571 _ACEOF
23572
23573         # Used for DWARF 2 in PE
23574         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23575 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23576 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23577   $as_echo_n "(cached) " >&6
23578 else
23579   gcc_cv_as_ix86_pe_secrel32=no
23580     if test $in_tree_gas = yes; then
23581     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23582   then gcc_cv_as_ix86_pe_secrel32=yes
23583 fi
23584   elif test x$gcc_cv_as != x; then
23585     echo '.text
23586 foo:    nop
23587 .data
23588         .secrel32 foo' > conftest.s
23589     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23590   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23591   (eval $ac_try) 2>&5
23592   ac_status=$?
23593   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23594   test $ac_status = 0; }; }
23595     then
23596         if test x$gcc_cv_ld != x \
23597            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23598              gcc_cv_as_ix86_pe_secrel32=yes
23599            fi
23600            rm -f conftest
23601     else
23602       echo "configure: failed program was" >&5
23603       cat conftest.s >&5
23604     fi
23605     rm -f conftest.o conftest.s
23606   fi
23607 fi
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23609 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23610 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23611
23612 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23613
23614 fi
23615         # Test if the assembler supports the extended form of the .section
23616         # directive that specifies section alignment.  LTO support uses this,
23617         # but normally only after installation, so we warn but don't fail the
23618         # configure if LTO is enabled but the assembler does not support it.
23619         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23620 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23621 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23622   $as_echo_n "(cached) " >&6
23623 else
23624   gcc_cv_as_section_has_align=no
23625     if test $in_tree_gas = yes; then
23626     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23627   then gcc_cv_as_section_has_align=yes
23628 fi
23629   elif test x$gcc_cv_as != x; then
23630     echo '.section lto_test,"dr0"' > conftest.s
23631     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23632   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23633   (eval $ac_try) 2>&5
23634   ac_status=$?
23635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23636   test $ac_status = 0; }; }
23637     then
23638         gcc_cv_as_section_has_align=yes
23639     else
23640       echo "configure: failed program was" >&5
23641       cat conftest.s >&5
23642     fi
23643     rm -f conftest.o conftest.s
23644   fi
23645 fi
23646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23647 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23648
23649         if test x$gcc_cv_as_section_has_align != xyes; then
23650           case ",$enable_languages," in
23651             *,lto,*)
23652               { $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
23653 $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;}
23654               ;;
23655           esac
23656         fi
23657         ;;
23658     esac
23659
23660     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23661 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23662 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23663   $as_echo_n "(cached) " >&6
23664 else
23665   gcc_cv_as_ix86_filds=no
23666   if test x$gcc_cv_as != x; then
23667     echo 'filds mem; fists mem' > conftest.s
23668     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23669   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23670   (eval $ac_try) 2>&5
23671   ac_status=$?
23672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23673   test $ac_status = 0; }; }
23674     then
23675         gcc_cv_as_ix86_filds=yes
23676     else
23677       echo "configure: failed program was" >&5
23678       cat conftest.s >&5
23679     fi
23680     rm -f conftest.o conftest.s
23681   fi
23682 fi
23683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23684 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23685 if test $gcc_cv_as_ix86_filds = yes; then
23686
23687 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23688
23689 fi
23690
23691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23692 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23693 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23694   $as_echo_n "(cached) " >&6
23695 else
23696   gcc_cv_as_ix86_fildq=no
23697   if test x$gcc_cv_as != x; then
23698     echo 'fildq mem; fistpq mem' > conftest.s
23699     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23700   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23701   (eval $ac_try) 2>&5
23702   ac_status=$?
23703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23704   test $ac_status = 0; }; }
23705     then
23706         gcc_cv_as_ix86_fildq=yes
23707     else
23708       echo "configure: failed program was" >&5
23709       cat conftest.s >&5
23710     fi
23711     rm -f conftest.o conftest.s
23712   fi
23713 fi
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23715 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23716 if test $gcc_cv_as_ix86_fildq = yes; then
23717
23718 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23719
23720 fi
23721
23722     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23723 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23724 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23725   $as_echo_n "(cached) " >&6
23726 else
23727   gcc_cv_as_ix86_cmov_sun_syntax=no
23728   if test x$gcc_cv_as != x; then
23729     echo 'cmovl.l %edx, %eax' > conftest.s
23730     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23731   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23732   (eval $ac_try) 2>&5
23733   ac_status=$?
23734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23735   test $ac_status = 0; }; }
23736     then
23737         gcc_cv_as_ix86_cmov_sun_syntax=yes
23738     else
23739       echo "configure: failed program was" >&5
23740       cat conftest.s >&5
23741     fi
23742     rm -f conftest.o conftest.s
23743   fi
23744 fi
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23746 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23747 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23748
23749 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23750
23751 fi
23752
23753     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23754 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23755 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23756   $as_echo_n "(cached) " >&6
23757 else
23758   gcc_cv_as_ix86_ffreep=no
23759   if test x$gcc_cv_as != x; then
23760     echo 'ffreep %st(1)' > conftest.s
23761     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23762   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23763   (eval $ac_try) 2>&5
23764   ac_status=$?
23765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23766   test $ac_status = 0; }; }
23767     then
23768         gcc_cv_as_ix86_ffreep=yes
23769     else
23770       echo "configure: failed program was" >&5
23771       cat conftest.s >&5
23772     fi
23773     rm -f conftest.o conftest.s
23774   fi
23775 fi
23776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23777 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23778 if test $gcc_cv_as_ix86_ffreep = yes; then
23779
23780 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23781
23782 fi
23783
23784     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23785 $as_echo_n "checking assembler for .quad directive... " >&6; }
23786 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23787   $as_echo_n "(cached) " >&6
23788 else
23789   gcc_cv_as_ix86_quad=no
23790   if test x$gcc_cv_as != x; then
23791     echo '.quad 0' > conftest.s
23792     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23793   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23794   (eval $ac_try) 2>&5
23795   ac_status=$?
23796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23797   test $ac_status = 0; }; }
23798     then
23799         gcc_cv_as_ix86_quad=yes
23800     else
23801       echo "configure: failed program was" >&5
23802       cat conftest.s >&5
23803     fi
23804     rm -f conftest.o conftest.s
23805   fi
23806 fi
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23808 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23809 if test $gcc_cv_as_ix86_quad = yes; then
23810
23811 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23812
23813 fi
23814
23815     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23816 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23817 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23818   $as_echo_n "(cached) " >&6
23819 else
23820   gcc_cv_as_ix86_sahf=no
23821   if test x$gcc_cv_as != x; then
23822     echo '.code64
23823        sahf' > conftest.s
23824     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23825   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23826   (eval $ac_try) 2>&5
23827   ac_status=$?
23828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23829   test $ac_status = 0; }; }
23830     then
23831         gcc_cv_as_ix86_sahf=yes
23832     else
23833       echo "configure: failed program was" >&5
23834       cat conftest.s >&5
23835     fi
23836     rm -f conftest.o conftest.s
23837   fi
23838 fi
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23840 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23841 if test $gcc_cv_as_ix86_sahf = yes; then
23842
23843 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23844
23845 fi
23846
23847     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23848 $as_echo_n "checking assembler for swap suffix... " >&6; }
23849 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23850   $as_echo_n "(cached) " >&6
23851 else
23852   gcc_cv_as_ix86_swap=no
23853   if test x$gcc_cv_as != x; then
23854     echo 'movl.s %esp, %ebp' > conftest.s
23855     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23856   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23857   (eval $ac_try) 2>&5
23858   ac_status=$?
23859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23860   test $ac_status = 0; }; }
23861     then
23862         gcc_cv_as_ix86_swap=yes
23863     else
23864       echo "configure: failed program was" >&5
23865       cat conftest.s >&5
23866     fi
23867     rm -f conftest.o conftest.s
23868   fi
23869 fi
23870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23871 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23872 if test $gcc_cv_as_ix86_swap = yes; then
23873
23874 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23875
23876 fi
23877
23878     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23879 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23880 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23881   $as_echo_n "(cached) " >&6
23882 else
23883   gcc_cv_as_ix86_diff_sect_delta=no
23884   if test x$gcc_cv_as != x; then
23885     echo '.section .rodata
23886 .L1:
23887         .long .L2-.L1
23888         .long .L3-.L1
23889         .text
23890 .L3:    nop
23891 .L2:    nop' > conftest.s
23892     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23893   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23894   (eval $ac_try) 2>&5
23895   ac_status=$?
23896   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23897   test $ac_status = 0; }; }
23898     then
23899         gcc_cv_as_ix86_diff_sect_delta=yes
23900     else
23901       echo "configure: failed program was" >&5
23902       cat conftest.s >&5
23903     fi
23904     rm -f conftest.o conftest.s
23905   fi
23906 fi
23907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23908 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23909 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23910
23911 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23912
23913 fi
23914
23915     # These two are used unconditionally by i386.[ch]; it is to be defined
23916     # to 1 if the feature is present, 0 otherwise.
23917     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23918 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23919 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23920   $as_echo_n "(cached) " >&6
23921 else
23922   gcc_cv_as_ix86_gotoff_in_data=no
23923     if test $in_tree_gas = yes; then
23924     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23925   then gcc_cv_as_ix86_gotoff_in_data=yes
23926 fi
23927   elif test x$gcc_cv_as != x; then
23928     echo '      .text
23929 .L0:
23930         nop
23931         .data
23932         .long .L0@GOTOFF' > conftest.s
23933     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23934   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23935   (eval $ac_try) 2>&5
23936   ac_status=$?
23937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23938   test $ac_status = 0; }; }
23939     then
23940         gcc_cv_as_ix86_gotoff_in_data=yes
23941     else
23942       echo "configure: failed program was" >&5
23943       cat conftest.s >&5
23944     fi
23945     rm -f conftest.o conftest.s
23946   fi
23947 fi
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23949 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23950
23951
23952 cat >>confdefs.h <<_ACEOF
23953 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23954 _ACEOF
23955
23956
23957     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23958 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23959 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23960   $as_echo_n "(cached) " >&6
23961 else
23962   gcc_cv_as_ix86_rep_lock_prefix=no
23963   if test x$gcc_cv_as != x; then
23964     echo 'rep movsl
23965          lock addl %edi, (%eax,%esi)
23966          lock orl $0, (%esp)' > conftest.s
23967     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
23968   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23969   (eval $ac_try) 2>&5
23970   ac_status=$?
23971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23972   test $ac_status = 0; }; }
23973     then
23974         gcc_cv_as_ix86_rep_lock_prefix=yes
23975     else
23976       echo "configure: failed program was" >&5
23977       cat conftest.s >&5
23978     fi
23979     rm -f conftest.o conftest.s
23980   fi
23981 fi
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
23983 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
23984 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
23985
23986 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
23987
23988 fi
23989
23990     ;;
23991
23992   ia64*-*-*)
23993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23994 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23995 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23996   $as_echo_n "(cached) " >&6
23997 else
23998   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23999     if test $in_tree_gas = yes; then
24000     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24001   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24002 fi
24003   elif test x$gcc_cv_as != x; then
24004     echo '      .text
24005         addl r15 = @ltoffx(x#), gp
24006         ;;
24007         ld8.mov r16 = [r15], x#' > conftest.s
24008     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24009   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24010   (eval $ac_try) 2>&5
24011   ac_status=$?
24012   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24013   test $ac_status = 0; }; }
24014     then
24015         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24016     else
24017       echo "configure: failed program was" >&5
24018       cat conftest.s >&5
24019     fi
24020     rm -f conftest.o conftest.s
24021   fi
24022 fi
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24024 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24025 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24026
24027 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24028
24029 fi
24030
24031     ;;
24032
24033   powerpc*-*-*)
24034     case $target in
24035       *-*-aix*) conftest_s='    .machine "pwr5"
24036         .csect .text[PR]
24037         mfcr 3,128';;
24038       *-*-darwin*)
24039         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24040 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24041 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24042   $as_echo_n "(cached) " >&6
24043 else
24044   gcc_cv_as_machine_directive=no
24045   if test x$gcc_cv_as != x; then
24046     echo '      .machine ppc7400' > conftest.s
24047     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24048   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24049   (eval $ac_try) 2>&5
24050   ac_status=$?
24051   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24052   test $ac_status = 0; }; }
24053     then
24054         gcc_cv_as_machine_directive=yes
24055     else
24056       echo "configure: failed program was" >&5
24057       cat conftest.s >&5
24058     fi
24059     rm -f conftest.o conftest.s
24060   fi
24061 fi
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24063 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24064
24065         if test x$gcc_cv_as_machine_directive != xyes; then
24066           echo "*** This target requires an assembler supporting \".machine\"" >&2
24067           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24068           test x$build = x$target && exit 1
24069         fi
24070         conftest_s='    .text
24071         mfcr r3,128';;
24072       *) conftest_s='   .machine power4
24073         .text
24074         mfcr 3,128';;
24075     esac
24076
24077     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24078 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24079 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24080   $as_echo_n "(cached) " >&6
24081 else
24082   gcc_cv_as_powerpc_mfcrf=no
24083     if test $in_tree_gas = yes; then
24084     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24085   then gcc_cv_as_powerpc_mfcrf=yes
24086 fi
24087   elif test x$gcc_cv_as != x; then
24088     echo "$conftest_s" > conftest.s
24089     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24090   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24091   (eval $ac_try) 2>&5
24092   ac_status=$?
24093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24094   test $ac_status = 0; }; }
24095     then
24096         gcc_cv_as_powerpc_mfcrf=yes
24097     else
24098       echo "configure: failed program was" >&5
24099       cat conftest.s >&5
24100     fi
24101     rm -f conftest.o conftest.s
24102   fi
24103 fi
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24105 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24106 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24107
24108 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24109
24110 fi
24111
24112     case $target in
24113       *-*-aix*) conftest_s='    .machine "pwr5"
24114         .csect .text[PR]
24115         popcntb 3,3';;
24116       *) conftest_s='   .machine power5
24117         .text
24118         popcntb 3,3';;
24119     esac
24120
24121     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24122 $as_echo_n "checking assembler for popcntb support... " >&6; }
24123 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24124   $as_echo_n "(cached) " >&6
24125 else
24126   gcc_cv_as_powerpc_popcntb=no
24127     if test $in_tree_gas = yes; then
24128     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24129   then gcc_cv_as_powerpc_popcntb=yes
24130 fi
24131   elif test x$gcc_cv_as != x; then
24132     echo "$conftest_s" > conftest.s
24133     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24134   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24135   (eval $ac_try) 2>&5
24136   ac_status=$?
24137   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24138   test $ac_status = 0; }; }
24139     then
24140         gcc_cv_as_powerpc_popcntb=yes
24141     else
24142       echo "configure: failed program was" >&5
24143       cat conftest.s >&5
24144     fi
24145     rm -f conftest.o conftest.s
24146   fi
24147 fi
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24149 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24150 if test $gcc_cv_as_powerpc_popcntb = yes; then
24151
24152 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24153
24154 fi
24155
24156     case $target in
24157       *-*-aix*) conftest_s='    .machine "pwr5x"
24158         .csect .text[PR]
24159         frin 1,1';;
24160       *) conftest_s='   .machine power5
24161         .text
24162         frin 1,1';;
24163     esac
24164
24165     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24166 $as_echo_n "checking assembler for fp round support... " >&6; }
24167 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24168   $as_echo_n "(cached) " >&6
24169 else
24170   gcc_cv_as_powerpc_fprnd=no
24171     if test $in_tree_gas = yes; then
24172     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24173   then gcc_cv_as_powerpc_fprnd=yes
24174 fi
24175   elif test x$gcc_cv_as != x; then
24176     echo "$conftest_s" > conftest.s
24177     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24178   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24179   (eval $ac_try) 2>&5
24180   ac_status=$?
24181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24182   test $ac_status = 0; }; }
24183     then
24184         gcc_cv_as_powerpc_fprnd=yes
24185     else
24186       echo "configure: failed program was" >&5
24187       cat conftest.s >&5
24188     fi
24189     rm -f conftest.o conftest.s
24190   fi
24191 fi
24192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24193 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24194 if test $gcc_cv_as_powerpc_fprnd = yes; then
24195
24196 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24197
24198 fi
24199
24200     case $target in
24201       *-*-aix*) conftest_s='    .machine "pwr6"
24202         .csect .text[PR]
24203         mffgpr 1,3';;
24204       *) conftest_s='   .machine power6
24205         .text
24206         mffgpr 1,3';;
24207     esac
24208
24209     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24210 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24211 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24212   $as_echo_n "(cached) " >&6
24213 else
24214   gcc_cv_as_powerpc_mfpgpr=no
24215     if test $in_tree_gas = yes; then
24216     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24217   then gcc_cv_as_powerpc_mfpgpr=yes
24218 fi
24219   elif test x$gcc_cv_as != x; then
24220     echo "$conftest_s" > conftest.s
24221     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24222   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24223   (eval $ac_try) 2>&5
24224   ac_status=$?
24225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24226   test $ac_status = 0; }; }
24227     then
24228         gcc_cv_as_powerpc_mfpgpr=yes
24229     else
24230       echo "configure: failed program was" >&5
24231       cat conftest.s >&5
24232     fi
24233     rm -f conftest.o conftest.s
24234   fi
24235 fi
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24237 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24238 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24239
24240 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24241
24242 fi
24243
24244     case $target in
24245       *-*-aix*) conftest_s='    .csect .text[PR]
24246 LCF..0:
24247         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24248       *-*-darwin*)
24249         conftest_s='    .text
24250 LCF0:
24251         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24252       *) conftest_s='   .text
24253 .LCF0:
24254         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24255     esac
24256
24257     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24258 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24259 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24260   $as_echo_n "(cached) " >&6
24261 else
24262   gcc_cv_as_powerpc_rel16=no
24263     if test $in_tree_gas = yes; then
24264     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24265   then gcc_cv_as_powerpc_rel16=yes
24266 fi
24267   elif test x$gcc_cv_as != x; then
24268     echo "$conftest_s" > conftest.s
24269     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24270   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24271   (eval $ac_try) 2>&5
24272   ac_status=$?
24273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24274   test $ac_status = 0; }; }
24275     then
24276         gcc_cv_as_powerpc_rel16=yes
24277     else
24278       echo "configure: failed program was" >&5
24279       cat conftest.s >&5
24280     fi
24281     rm -f conftest.o conftest.s
24282   fi
24283 fi
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24285 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24286 if test $gcc_cv_as_powerpc_rel16 = yes; then
24287
24288 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24289
24290 fi
24291
24292     case $target in
24293       *-*-aix*) conftest_s='    .machine "pwr6"
24294         .csect .text[PR]
24295         cmpb 3,4,5';;
24296       *) conftest_s='   .machine power6
24297         .text
24298         cmpb 3,4,5';;
24299     esac
24300
24301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24302 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24303 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24304   $as_echo_n "(cached) " >&6
24305 else
24306   gcc_cv_as_powerpc_cmpb=no
24307     if test $in_tree_gas = yes; then
24308     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24309   then gcc_cv_as_powerpc_cmpb=yes
24310 fi
24311   elif test x$gcc_cv_as != x; then
24312     echo "$conftest_s" > conftest.s
24313     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24314   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24315   (eval $ac_try) 2>&5
24316   ac_status=$?
24317   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24318   test $ac_status = 0; }; }
24319     then
24320         gcc_cv_as_powerpc_cmpb=yes
24321     else
24322       echo "configure: failed program was" >&5
24323       cat conftest.s >&5
24324     fi
24325     rm -f conftest.o conftest.s
24326   fi
24327 fi
24328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24329 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24330 if test $gcc_cv_as_powerpc_cmpb = yes; then
24331
24332 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24333
24334 fi
24335
24336     case $target in
24337       *-*-aix*) conftest_s='    .machine "pwr6"
24338         .csect .text[PR]
24339         dadd 1,2,3';;
24340       *) conftest_s='   .machine power6
24341         .text
24342         dadd 1,2,3';;
24343     esac
24344
24345     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24346 $as_echo_n "checking assembler for decimal float support... " >&6; }
24347 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24348   $as_echo_n "(cached) " >&6
24349 else
24350   gcc_cv_as_powerpc_dfp=no
24351     if test $in_tree_gas = yes; then
24352     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24353   then gcc_cv_as_powerpc_dfp=yes
24354 fi
24355   elif test x$gcc_cv_as != x; then
24356     echo "$conftest_s" > conftest.s
24357     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24358   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24359   (eval $ac_try) 2>&5
24360   ac_status=$?
24361   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24362   test $ac_status = 0; }; }
24363     then
24364         gcc_cv_as_powerpc_dfp=yes
24365     else
24366       echo "configure: failed program was" >&5
24367       cat conftest.s >&5
24368     fi
24369     rm -f conftest.o conftest.s
24370   fi
24371 fi
24372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24373 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24374 if test $gcc_cv_as_powerpc_dfp = yes; then
24375
24376 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24377
24378 fi
24379
24380     case $target in
24381       *-*-aix*) conftest_s='    .machine "pwr7"
24382         .csect .text[PR]
24383         lxvd2x 1,2,3';;
24384       *) conftest_s='   .machine power7
24385         .text
24386         lxvd2x 1,2,3';;
24387     esac
24388
24389     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24390 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24391 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24392   $as_echo_n "(cached) " >&6
24393 else
24394   gcc_cv_as_powerpc_vsx=no
24395     if test $in_tree_gas = yes; then
24396     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24397   then gcc_cv_as_powerpc_vsx=yes
24398 fi
24399   elif test x$gcc_cv_as != x; then
24400     echo "$conftest_s" > conftest.s
24401     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24402   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24403   (eval $ac_try) 2>&5
24404   ac_status=$?
24405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24406   test $ac_status = 0; }; }
24407     then
24408         gcc_cv_as_powerpc_vsx=yes
24409     else
24410       echo "configure: failed program was" >&5
24411       cat conftest.s >&5
24412     fi
24413     rm -f conftest.o conftest.s
24414   fi
24415 fi
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24417 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24418 if test $gcc_cv_as_powerpc_vsx = yes; then
24419
24420 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24421
24422 fi
24423
24424     case $target in
24425       *-*-aix*) conftest_s='    .machine "pwr7"
24426         .csect .text[PR]
24427         popcntd 3,3';;
24428       *) conftest_s='   .machine power7
24429         .text
24430         popcntd 3,3';;
24431     esac
24432
24433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24434 $as_echo_n "checking assembler for popcntd support... " >&6; }
24435 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24436   $as_echo_n "(cached) " >&6
24437 else
24438   gcc_cv_as_powerpc_popcntd=no
24439     if test $in_tree_gas = yes; then
24440     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24441   then gcc_cv_as_powerpc_popcntd=yes
24442 fi
24443   elif test x$gcc_cv_as != x; then
24444     echo "$conftest_s" > conftest.s
24445     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24446   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24447   (eval $ac_try) 2>&5
24448   ac_status=$?
24449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24450   test $ac_status = 0; }; }
24451     then
24452         gcc_cv_as_powerpc_popcntd=yes
24453     else
24454       echo "configure: failed program was" >&5
24455       cat conftest.s >&5
24456     fi
24457     rm -f conftest.o conftest.s
24458   fi
24459 fi
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24461 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24462 if test $gcc_cv_as_powerpc_popcntd = yes; then
24463
24464 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24465
24466 fi
24467
24468     case $target in
24469       *-*-aix*) conftest_s='    .csect .text[PR]
24470         lwsync';;
24471       *) conftest_s='   .text
24472         lwsync';;
24473     esac
24474
24475     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24476 $as_echo_n "checking assembler for lwsync support... " >&6; }
24477 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24478   $as_echo_n "(cached) " >&6
24479 else
24480   gcc_cv_as_powerpc_lwsync=no
24481     if test $in_tree_gas = yes; then
24482     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24483   then gcc_cv_as_powerpc_lwsync=yes
24484 fi
24485   elif test x$gcc_cv_as != x; then
24486     echo "$conftest_s" > conftest.s
24487     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24488   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24489   (eval $ac_try) 2>&5
24490   ac_status=$?
24491   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24492   test $ac_status = 0; }; }
24493     then
24494         gcc_cv_as_powerpc_lwsync=yes
24495     else
24496       echo "configure: failed program was" >&5
24497       cat conftest.s >&5
24498     fi
24499     rm -f conftest.o conftest.s
24500   fi
24501 fi
24502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24503 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24504 if test $gcc_cv_as_powerpc_lwsync = yes; then
24505
24506 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24507
24508 fi
24509
24510     case $target in
24511       *-*-aix*) conftest_s='    .machine "476"
24512         .csect .text[PR]
24513         dci 0';;
24514       *) conftest_s='   .machine "476"
24515         .text
24516         dci 0';;
24517     esac
24518
24519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24520 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24521 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24522   $as_echo_n "(cached) " >&6
24523 else
24524   gcc_cv_as_powerpc_dci=no
24525     if test $in_tree_gas = yes; then
24526     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24527   then gcc_cv_as_powerpc_dci=yes
24528 fi
24529   elif test x$gcc_cv_as != x; then
24530     echo "$conftest_s" > conftest.s
24531     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24532   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24533   (eval $ac_try) 2>&5
24534   ac_status=$?
24535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24536   test $ac_status = 0; }; }
24537     then
24538         gcc_cv_as_powerpc_dci=yes
24539     else
24540       echo "configure: failed program was" >&5
24541       cat conftest.s >&5
24542     fi
24543     rm -f conftest.o conftest.s
24544   fi
24545 fi
24546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24547 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24548 if test $gcc_cv_as_powerpc_dci = yes; then
24549
24550 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24551
24552 fi
24553
24554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24555 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24556 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24557   $as_echo_n "(cached) " >&6
24558 else
24559   gcc_cv_as_powerpc_gnu_attribute=no
24560     if test $in_tree_gas = yes; then
24561     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24562   then gcc_cv_as_powerpc_gnu_attribute=yes
24563 fi
24564   elif test x$gcc_cv_as != x; then
24565     echo '.gnu_attribute 4,1' > conftest.s
24566     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24567   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24568   (eval $ac_try) 2>&5
24569   ac_status=$?
24570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24571   test $ac_status = 0; }; }
24572     then
24573         gcc_cv_as_powerpc_gnu_attribute=yes
24574     else
24575       echo "configure: failed program was" >&5
24576       cat conftest.s >&5
24577     fi
24578     rm -f conftest.o conftest.s
24579   fi
24580 fi
24581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24582 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24583 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24584
24585 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24586
24587 fi
24588
24589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24590 $as_echo_n "checking assembler for tls marker support... " >&6; }
24591 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24592   $as_echo_n "(cached) " >&6
24593 else
24594   gcc_cv_as_powerpc_tls_markers=no
24595     if test $in_tree_gas = yes; then
24596     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24597   then gcc_cv_as_powerpc_tls_markers=yes
24598 fi
24599   elif test x$gcc_cv_as != x; then
24600     echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24601     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24602   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24603   (eval $ac_try) 2>&5
24604   ac_status=$?
24605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24606   test $ac_status = 0; }; }
24607     then
24608         gcc_cv_as_powerpc_tls_markers=yes
24609     else
24610       echo "configure: failed program was" >&5
24611       cat conftest.s >&5
24612     fi
24613     rm -f conftest.o conftest.s
24614   fi
24615 fi
24616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24617 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24618 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24619
24620 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24621
24622 fi
24623
24624     case $target in
24625       *-*-aix*)
24626         { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24627 $as_echo_n "checking assembler for .ref support... " >&6; }
24628 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24629   $as_echo_n "(cached) " >&6
24630 else
24631   gcc_cv_as_aix_ref=no
24632     if test $in_tree_gas = yes; then
24633     if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24634   then :
24635 fi
24636   elif test x$gcc_cv_as != x; then
24637     echo '      .csect stuff[rw]
24638              stuff:
24639                 .long 1
24640                 .extern sym
24641                 .ref sym
24642           ' > conftest.s
24643     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24644   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24645   (eval $ac_try) 2>&5
24646   ac_status=$?
24647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24648   test $ac_status = 0; }; }
24649     then
24650         gcc_cv_as_aix_ref=yes
24651     else
24652       echo "configure: failed program was" >&5
24653       cat conftest.s >&5
24654     fi
24655     rm -f conftest.o conftest.s
24656   fi
24657 fi
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24659 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24660 if test $gcc_cv_as_aix_ref = yes; then
24661
24662 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24663
24664 fi
24665         ;;
24666     esac
24667     ;;
24668
24669   mips*-*-*)
24670     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24671 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24672 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24673   $as_echo_n "(cached) " >&6
24674 else
24675   gcc_cv_as_mips_explicit_relocs=no
24676     if test $in_tree_gas = yes; then
24677     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24678   then gcc_cv_as_mips_explicit_relocs=yes
24679 fi
24680   elif test x$gcc_cv_as != x; then
24681     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
24682     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24683   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24684   (eval $ac_try) 2>&5
24685   ac_status=$?
24686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24687   test $ac_status = 0; }; }
24688     then
24689         gcc_cv_as_mips_explicit_relocs=yes
24690     else
24691       echo "configure: failed program was" >&5
24692       cat conftest.s >&5
24693     fi
24694     rm -f conftest.o conftest.s
24695   fi
24696 fi
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24698 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24699 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24700   if test x$target_cpu_default = x
24701        then target_cpu_default=MASK_EXPLICIT_RELOCS
24702        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24703        fi
24704 fi
24705     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24706 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24707 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24708   $as_echo_n "(cached) " >&6
24709 else
24710   gcc_cv_as_mips_no_shared=no
24711     if test $in_tree_gas = yes; then
24712     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24713   then gcc_cv_as_mips_no_shared=yes
24714 fi
24715   elif test x$gcc_cv_as != x; then
24716     echo 'nop' > conftest.s
24717     if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24718   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24719   (eval $ac_try) 2>&5
24720   ac_status=$?
24721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24722   test $ac_status = 0; }; }
24723     then
24724         gcc_cv_as_mips_no_shared=yes
24725     else
24726       echo "configure: failed program was" >&5
24727       cat conftest.s >&5
24728     fi
24729     rm -f conftest.o conftest.s
24730   fi
24731 fi
24732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24733 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24734 if test $gcc_cv_as_mips_no_shared = yes; then
24735
24736 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24737
24738 fi
24739
24740     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24741 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24742 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24743   $as_echo_n "(cached) " >&6
24744 else
24745   gcc_cv_as_mips_gnu_attribute=no
24746     if test $in_tree_gas = yes; then
24747     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24748   then gcc_cv_as_mips_gnu_attribute=yes
24749 fi
24750   elif test x$gcc_cv_as != x; then
24751     echo '.gnu_attribute 4,1' > conftest.s
24752     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24753   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24754   (eval $ac_try) 2>&5
24755   ac_status=$?
24756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24757   test $ac_status = 0; }; }
24758     then
24759         gcc_cv_as_mips_gnu_attribute=yes
24760     else
24761       echo "configure: failed program was" >&5
24762       cat conftest.s >&5
24763     fi
24764     rm -f conftest.o conftest.s
24765   fi
24766 fi
24767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24768 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24769 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24770
24771 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24772
24773 fi
24774
24775     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24776 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24777 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24778   $as_echo_n "(cached) " >&6
24779 else
24780   gcc_cv_as_mips_dtprelword=no
24781     if test $in_tree_gas = yes; then
24782     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24783   then gcc_cv_as_mips_dtprelword=yes
24784 fi
24785   elif test x$gcc_cv_as != x; then
24786     echo '.section .tdata,"awT",@progbits
24787 x:
24788         .word 2
24789         .text
24790         .dtprelword x+0x8000' > conftest.s
24791     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24792   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24793   (eval $ac_try) 2>&5
24794   ac_status=$?
24795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24796   test $ac_status = 0; }; }
24797     then
24798         gcc_cv_as_mips_dtprelword=yes
24799     else
24800       echo "configure: failed program was" >&5
24801       cat conftest.s >&5
24802     fi
24803     rm -f conftest.o conftest.s
24804   fi
24805 fi
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24807 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24808 if test $gcc_cv_as_mips_dtprelword = yes; then
24809
24810 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24811
24812 fi
24813
24814     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
24815 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
24816 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
24817   $as_echo_n "(cached) " >&6
24818 else
24819   gcc_cv_as_mips_dspr1_mult=no
24820   if test x$gcc_cv_as != x; then
24821     echo '      .set    mips32r2
24822         .set    nodspr2
24823         .set    dsp
24824         madd    $ac3,$4,$5
24825         maddu   $ac3,$4,$5
24826         msub    $ac3,$4,$5
24827         msubu   $ac3,$4,$5
24828         mult    $ac3,$4,$5
24829         multu   $ac3,$4,$5' > conftest.s
24830     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24831   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24832   (eval $ac_try) 2>&5
24833   ac_status=$?
24834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24835   test $ac_status = 0; }; }
24836     then
24837         gcc_cv_as_mips_dspr1_mult=yes
24838     else
24839       echo "configure: failed program was" >&5
24840       cat conftest.s >&5
24841     fi
24842     rm -f conftest.o conftest.s
24843   fi
24844 fi
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
24846 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
24847 if test $gcc_cv_as_mips_dspr1_mult = yes; then
24848
24849 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
24850
24851 fi
24852
24853     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24854 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24855     gcc_cv_as_ld_jalr_reloc=no
24856     if test $gcc_cv_as_mips_explicit_relocs = yes; then
24857       if test $in_tree_ld = yes ; then
24858         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 \
24859            && test $in_tree_ld_is_elf = yes; then
24860           gcc_cv_as_ld_jalr_reloc=yes
24861         fi
24862       elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24863         echo '  .ent x' > conftest.s
24864         echo 'x:        ld $2,%got_disp(y)($3)' >> conftest.s
24865         echo '  ld $25,%call16(y)($28)' >> conftest.s
24866         echo '  .reloc  1f,R_MIPS_JALR,y' >> conftest.s
24867         echo '1:        jalr $25' >> conftest.s
24868         echo '  .reloc  1f,R_MIPS_JALR,x' >> conftest.s
24869         echo '1:        jalr $25' >> conftest.s
24870         echo '  .end x' >> conftest.s
24871         if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24872            && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24873           if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
24874              && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
24875             gcc_cv_as_ld_jalr_reloc=yes
24876           fi
24877         fi
24878         rm -f conftest.*
24879       fi
24880     fi
24881     if test $gcc_cv_as_ld_jalr_reloc = yes; then
24882       if test x$target_cpu_default = x; then
24883         target_cpu_default=MASK_RELAX_PIC_CALLS
24884       else
24885         target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24886       fi
24887     fi
24888     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24889 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24890
24891     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24892 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24893 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24894   $as_echo_n "(cached) " >&6
24895 else
24896   gcc_cv_ld_mips_personality_relaxation=no
24897        if test $in_tree_ld = yes ; then
24898          if test "$gcc_cv_gld_major_version" -eq 2 \
24899                  -a "$gcc_cv_gld_minor_version" -ge 21 \
24900                  -o "$gcc_cv_gld_major_version" -gt 2; then
24901            gcc_cv_ld_mips_personality_relaxation=yes
24902          fi
24903        elif test x$gcc_cv_as != x \
24904                  -a x$gcc_cv_ld != x \
24905                  -a x$gcc_cv_readelf != x ; then
24906          cat > conftest.s <<EOF
24907         .cfi_startproc
24908         .cfi_personality 0x80,indirect_ptr
24909         .ent test
24910 test:
24911         nop
24912         .end test
24913         .cfi_endproc
24914
24915         .section .data,"aw",@progbits
24916 indirect_ptr:
24917         .dc.a personality
24918 EOF
24919          if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24920             && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24921            if $gcc_cv_readelf -d conftest 2>&1 \
24922               | grep TEXTREL > /dev/null 2>&1; then
24923              :
24924            elif $gcc_cv_readelf --relocs conftest 2>&1 \
24925                 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24926              :
24927            else
24928              gcc_cv_ld_mips_personality_relaxation=yes
24929            fi
24930          fi
24931        fi
24932        rm -f conftest.s conftest.o conftest
24933 fi
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24935 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24936     if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24937
24938 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24939
24940     fi
24941     ;;
24942 esac
24943
24944 # Mips and HP-UX need the GNU assembler.
24945 # Linux on IA64 might be able to use the Intel assembler.
24946
24947 case "$target" in
24948   mips*-*-* | *-*-hpux* )
24949     if test x$gas_flag = xyes \
24950        || test x"$host" != x"$build" \
24951        || test ! -x "$gcc_cv_as" \
24952        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24953       :
24954     else
24955       echo "*** This configuration requires the GNU assembler" >&2
24956       exit 1
24957     fi
24958     ;;
24959 esac
24960
24961 # ??? Not all targets support dwarf2 debug_line, even within a version
24962 # of gas.  Moreover, we need to emit a valid instruction to trigger any
24963 # info to the output file.  So, as supported targets are added to gas 2.11,
24964 # add some instruction here to (also) show we expect this might work.
24965 # ??? Once 2.11 is released, probably need to add first known working
24966 # version to the per-target configury.
24967 case "$cpu_type" in
24968   alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
24969   | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
24970     insn="nop"
24971     ;;
24972   ia64 | s390)
24973     insn="nop 0"
24974     ;;
24975   mmix)
24976     insn="swym 0"
24977     ;;
24978 esac
24979 if test x"$insn" != x; then
24980  conftest_s="\
24981         .file 1 \"conftest.s\"
24982         .loc 1 3 0
24983         $insn"
24984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24985 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24986 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24987   $as_echo_n "(cached) " >&6
24988 else
24989   gcc_cv_as_dwarf2_debug_line=no
24990     if test $in_tree_gas = yes; then
24991     if test $in_tree_gas_is_elf = yes \
24992   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24993   then gcc_cv_as_dwarf2_debug_line=yes
24994 fi
24995   elif test x$gcc_cv_as != x; then
24996     echo "$conftest_s" > conftest.s
24997     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
24998   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24999   (eval $ac_try) 2>&5
25000   ac_status=$?
25001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25002   test $ac_status = 0; }; }
25003     then
25004         if test x$gcc_cv_objdump != x \
25005    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25006       | grep debug_line > /dev/null 2>&1; then
25007      gcc_cv_as_dwarf2_debug_line=yes
25008    fi
25009     else
25010       echo "configure: failed program was" >&5
25011       cat conftest.s >&5
25012     fi
25013     rm -f conftest.o conftest.s
25014   fi
25015 fi
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25017 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25018
25019
25020 # The .debug_line file table must be in the exact order that
25021 # we specified the files, since these indices are also used
25022 # by DW_AT_decl_file.  Approximate this test by testing if
25023 # the assembler bitches if the same index is assigned twice.
25024  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25025 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25026 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25027   $as_echo_n "(cached) " >&6
25028 else
25029   gcc_cv_as_dwarf2_file_buggy=no
25030   if test x$gcc_cv_as != x; then
25031     echo '      .file 1 "foo.s"
25032         .file 1 "bar.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         gcc_cv_as_dwarf2_file_buggy=yes
25041     else
25042       echo "configure: failed program was" >&5
25043       cat conftest.s >&5
25044     fi
25045     rm -f conftest.o conftest.s
25046   fi
25047 fi
25048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25049 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25050
25051
25052  if test $gcc_cv_as_dwarf2_debug_line = yes \
25053  && test $gcc_cv_as_dwarf2_file_buggy = no; then
25054
25055 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25056
25057  fi
25058
25059  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25060 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25061 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25062   $as_echo_n "(cached) " >&6
25063 else
25064   gcc_cv_as_gdwarf2_flag=no
25065     if test $in_tree_gas = yes; then
25066     if test $in_tree_gas_is_elf = yes \
25067   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25068   then gcc_cv_as_gdwarf2_flag=yes
25069 fi
25070   elif test x$gcc_cv_as != x; then
25071     echo "$insn" > conftest.s
25072     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25073   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25074   (eval $ac_try) 2>&5
25075   ac_status=$?
25076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25077   test $ac_status = 0; }; }
25078     then
25079         gcc_cv_as_gdwarf2_flag=yes
25080     else
25081       echo "configure: failed program was" >&5
25082       cat conftest.s >&5
25083     fi
25084     rm -f conftest.o conftest.s
25085   fi
25086 fi
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25088 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25089 if test $gcc_cv_as_gdwarf2_flag = yes; then
25090
25091 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25092
25093 fi
25094
25095  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25096 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25097 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25098   $as_echo_n "(cached) " >&6
25099 else
25100   gcc_cv_as_gstabs_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_gstabs_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 --gstabs -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         # The native Solaris 9/Intel assembler doesn't understand --gstabs
25116    # and warns about it, but still exits successfully.  So check for
25117    # this.
25118    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25119   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25120   (eval $ac_try) 2>&5
25121   ac_status=$?
25122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25123   test $ac_status = 0; }; }
25124    then :
25125    else gcc_cv_as_gstabs_flag=yes
25126    fi
25127     else
25128       echo "configure: failed program was" >&5
25129       cat conftest.s >&5
25130     fi
25131     rm -f conftest.o conftest.s
25132   fi
25133 fi
25134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25135 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25136 if test $gcc_cv_as_gstabs_flag = yes; then
25137
25138 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25139
25140 fi
25141
25142  { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25143 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25144 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25145   $as_echo_n "(cached) " >&6
25146 else
25147   gcc_cv_as_debug_prefix_map_flag=no
25148     if test $in_tree_gas = yes; then
25149     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25150   then gcc_cv_as_debug_prefix_map_flag=yes
25151 fi
25152   elif test x$gcc_cv_as != x; then
25153     echo "$insn" > conftest.s
25154     if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
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         gcc_cv_as_debug_prefix_map_flag=yes
25162     else
25163       echo "configure: failed program was" >&5
25164       cat conftest.s >&5
25165     fi
25166     rm -f conftest.o conftest.s
25167   fi
25168 fi
25169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25170 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25171 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25172
25173 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25174
25175 fi
25176 fi
25177
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25179 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25180 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25181   $as_echo_n "(cached) " >&6
25182 else
25183   gcc_cv_as_lcomm_with_alignment=no
25184   if test x$gcc_cv_as != x; then
25185     echo '.lcomm bar,4,16' > conftest.s
25186     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25187   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25188   (eval $ac_try) 2>&5
25189   ac_status=$?
25190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25191   test $ac_status = 0; }; }
25192     then
25193         gcc_cv_as_lcomm_with_alignment=yes
25194     else
25195       echo "configure: failed program was" >&5
25196       cat conftest.s >&5
25197     fi
25198     rm -f conftest.o conftest.s
25199   fi
25200 fi
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25202 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25203 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25204
25205 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25206
25207 fi
25208
25209 # Check whether --enable-gnu-unique-object was given.
25210 if test "${enable_gnu_unique_object+set}" = set; then :
25211   enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25212     yes | no) ;;
25213     *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25214 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25215   esac
25216 else
25217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25218 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25219 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25220   $as_echo_n "(cached) " >&6
25221 else
25222   gcc_cv_as_gnu_unique_object=no
25223     if test $in_tree_gas = yes; then
25224     if test $in_tree_gas_is_elf = yes \
25225   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25226   then gcc_cv_as_gnu_unique_object=yes
25227 fi
25228   elif test x$gcc_cv_as != x; then
25229     echo '.type foo, @gnu_unique_object' > conftest.s
25230     if { ac_try='$gcc_cv_as $gcc_cv_as_flags  -o conftest.o conftest.s >&5'
25231   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25232   (eval $ac_try) 2>&5
25233   ac_status=$?
25234   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25235   test $ac_status = 0; }; }
25236     then
25237         gcc_cv_as_gnu_unique_object=yes
25238     else
25239       echo "configure: failed program was" >&5
25240       cat conftest.s >&5
25241     fi
25242     rm -f conftest.o conftest.s
25243   fi
25244 fi
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25246 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25247 if test $gcc_cv_as_gnu_unique_object = yes; then
25248   # Also check for ld.so support, i.e. glibc 2.11 or higher.
25249    if test x$host = x$build -a x$host = x$target &&
25250        ldd --version 2>/dev/null &&
25251        glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25252       glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25253       glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25254       glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25255       if test "$glibcnum" -ge 2011 ; then
25256         enable_gnu_unique_object=yes
25257       fi
25258     fi
25259 fi
25260 fi
25261
25262 if test x$enable_gnu_unique_object = xyes; then
25263
25264 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25265
25266 fi
25267
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25269 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25270 if test "${gcc_cv_as_line_zero+set}" = set; then :
25271   $as_echo_n "(cached) " >&6
25272 else
25273   gcc_cv_as_line_zero=no
25274   if test $in_tree_gas = yes; then
25275     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25276   then gcc_cv_as_line_zero=yes
25277 fi
25278   elif test "x$gcc_cv_as" != x; then
25279     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25280     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25281   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25282   (eval $ac_try) 2>&5
25283   ac_status=$?
25284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25285   test $ac_status = 0; }; } &&
25286        test "x`cat conftest.out`" = x
25287     then
25288       gcc_cv_as_line_zero=yes
25289     else
25290       echo "configure: failed program was" >&5
25291       cat conftest.s >&5
25292       echo "configure: error output was" >&5
25293       cat conftest.out >&5
25294     fi
25295     rm -f conftest.o conftest.s conftest.out
25296   fi
25297 fi
25298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25299 $as_echo "$gcc_cv_as_line_zero" >&6; }
25300 if test "x$gcc_cv_as_line_zero" = xyes; then
25301
25302 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25303
25304 fi
25305
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25307 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25308 gcc_cv_ld_eh_frame_hdr=no
25309 if test $in_tree_ld = yes ; then
25310   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
25311      && test $in_tree_ld_is_elf = yes; then
25312     gcc_cv_ld_eh_frame_hdr=yes
25313   fi
25314 elif test x$gcc_cv_ld != x; then
25315   if echo "$ld_ver" | grep GNU > /dev/null; then
25316     # Check if linker supports --eh-frame-hdr option
25317     if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
25318       gcc_cv_ld_eh_frame_hdr=yes
25319     fi
25320   else
25321     case "$target" in
25322       *-*-solaris2*)
25323         # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
25324         if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
25325           gcc_cv_ld_eh_frame_hdr=yes
25326         fi
25327         ;;
25328     esac
25329   fi
25330 fi
25331
25332 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
25333
25334 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25335
25336 fi
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25338 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25339
25340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25341 $as_echo_n "checking linker position independent executable support... " >&6; }
25342 gcc_cv_ld_pie=no
25343 if test $in_tree_ld = yes ; then
25344   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 \
25345      && test $in_tree_ld_is_elf = yes; then
25346     gcc_cv_ld_pie=yes
25347   fi
25348 elif test x$gcc_cv_ld != x; then
25349         # Check if linker supports -pie option
25350         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
25351                 gcc_cv_ld_pie=yes
25352         fi
25353 fi
25354 if test x"$gcc_cv_ld_pie" = xyes; then
25355
25356 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25357
25358 fi
25359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25360 $as_echo "$gcc_cv_ld_pie" >&6; }
25361
25362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25363 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25364 gcc_cv_ld_eh_gc_sections=no
25365 if test $in_tree_ld = yes ; then
25366   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 \
25367      && test $in_tree_ld_is_elf = yes; then
25368     gcc_cv_ld_eh_gc_sections=yes
25369   fi
25370 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
25371   cat > conftest.s <<EOF
25372         .section        .text
25373 .globl _start
25374         .type _start, @function
25375 _start:
25376         .long foo
25377         .size _start, .-_start
25378         .section        .text.foo,"ax",@progbits
25379         .type foo, @function
25380 foo:
25381         .long 0
25382         .size foo, .-foo
25383         .section        .gcc_except_table.foo,"a",@progbits
25384 .L0:
25385         .long 0
25386         .section        .eh_frame,"a",@progbits
25387         .long .L0
25388 EOF
25389   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25390     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25391          | grep "gc-sections option ignored" > /dev/null; then
25392       gcc_cv_ld_eh_gc_sections=no
25393     elif $gcc_cv_objdump -h conftest 2> /dev/null \
25394          | grep gcc_except_table > /dev/null; then
25395       gcc_cv_ld_eh_gc_sections=yes
25396       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25397       if test x$gcc_cv_as_comdat_group != xyes; then
25398         gcc_cv_ld_eh_gc_sections=no
25399         cat > conftest.s <<EOF
25400         .section        .text
25401 .globl _start
25402         .type _start, @function
25403 _start:
25404         .long foo
25405         .size _start, .-_start
25406         .section        .gnu.linkonce.t.foo,"ax",@progbits
25407         .type foo, @function
25408 foo:
25409         .long 0
25410         .size foo, .-foo
25411         .section        .gcc_except_table.foo,"a",@progbits
25412 .L0:
25413         .long 0
25414         .section        .eh_frame,"a",@progbits
25415         .long .L0
25416 EOF
25417         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25418           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25419                | grep "gc-sections option ignored" > /dev/null; then
25420             gcc_cv_ld_eh_gc_sections=no
25421           elif $gcc_cv_objdump -h conftest 2> /dev/null \
25422                | grep gcc_except_table > /dev/null; then
25423             gcc_cv_ld_eh_gc_sections=yes
25424           fi
25425         fi
25426       fi
25427     fi
25428   fi
25429   rm -f conftest.s conftest.o conftest
25430 fi
25431 case "$target" in
25432   hppa*-*-linux*)
25433     # ??? This apparently exposes a binutils bug with PC-relative relocations.
25434     gcc_cv_ld_eh_gc_sections=no
25435     ;;
25436 esac
25437 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
25438
25439 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25440
25441 fi
25442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25443 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25444
25445 # --------
25446 # UNSORTED
25447 # --------
25448
25449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
25450 $as_echo_n "checking linker --as-needed support... " >&6; }
25451 if test "${gcc_cv_ld_as_needed+set}" = set; then :
25452   $as_echo_n "(cached) " >&6
25453 else
25454   gcc_cv_ld_as_needed=no
25455 if test $in_tree_ld = yes ; then
25456   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 \
25457      && test $in_tree_ld_is_elf = yes; then
25458     gcc_cv_ld_as_needed=yes
25459   fi
25460 elif test x$gcc_cv_ld != x; then
25461         # Check if linker supports --as-needed and --no-as-needed options
25462         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
25463                 gcc_cv_ld_as_needed=yes
25464         fi
25465 fi
25466
25467 fi
25468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
25469 $as_echo "$gcc_cv_ld_as_needed" >&6; }
25470 if test x"$gcc_cv_ld_as_needed" = xyes; then
25471
25472 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25473
25474 fi
25475
25476 case "$target:$tm_file" in
25477   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
25478     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25479 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25480 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25481   $as_echo_n "(cached) " >&6
25482 else
25483   gcc_cv_ld_no_dot_syms=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" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
25486         gcc_cv_ld_no_dot_syms=yes
25487       fi
25488     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25489       cat > conftest1.s <<EOF
25490         .text
25491         bl .foo
25492 EOF
25493       cat > conftest2.s <<EOF
25494         .section ".opd","aw"
25495         .align 3
25496         .globl foo
25497         .type foo,@function
25498 foo:
25499         .quad .LEfoo,.TOC.@tocbase,0
25500         .text
25501 .LEfoo:
25502         blr
25503         .size foo,.-.LEfoo
25504 EOF
25505       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
25506          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
25507          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
25508         gcc_cv_ld_no_dot_syms=yes
25509       fi
25510       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25511     fi
25512
25513 fi
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25515 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25516     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
25517
25518 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25519
25520     fi
25521
25522     { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25523 $as_echo_n "checking linker large toc support... " >&6; }
25524 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25525   $as_echo_n "(cached) " >&6
25526 else
25527   gcc_cv_ld_large_toc=no
25528     if test $in_tree_ld = yes ; then
25529       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
25530         gcc_cv_ld_large_toc=yes
25531       fi
25532     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25533       cat > conftest.s <<EOF
25534         .section ".tbss","awT",@nobits
25535         .align 3
25536 ie0:    .space 8
25537         .global _start
25538         .text
25539 _start:
25540         addis 9,13,ie0@got@tprel@ha
25541         ld 9,ie0@got@tprel@l(9)
25542 EOF
25543       if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
25544          && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
25545         gcc_cv_ld_large_toc=yes
25546       fi
25547       rm -f conftest conftest.o conftest.s
25548     fi
25549
25550 fi
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25552 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25553     if test x"$gcc_cv_ld_large_toc" = xyes; then
25554
25555 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25556
25557     fi
25558     ;;
25559 esac
25560
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25562 $as_echo_n "checking linker --build-id support... " >&6; }
25563 if test "${gcc_cv_ld_buildid+set}" = set; then :
25564   $as_echo_n "(cached) " >&6
25565 else
25566   gcc_cv_ld_buildid=no
25567   if test $in_tree_ld = yes ; then
25568     if test "$gcc_cv_gld_major_version" -eq 2 -a \
25569        "$gcc_cv_gld_minor_version" -ge 18 -o \
25570        "$gcc_cv_gld_major_version" -gt 2 \
25571        && test $in_tree_ld_is_elf = yes; then
25572       gcc_cv_ld_buildid=yes
25573     fi
25574   elif test x$gcc_cv_ld != x; then
25575     if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
25576       gcc_cv_ld_buildid=yes
25577     fi
25578   fi
25579 fi
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25581 $as_echo "$gcc_cv_ld_buildid" >&6; }
25582 if test x"$gcc_cv_ld_buildid" = xyes; then
25583
25584 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25585
25586 fi
25587
25588 # Check whether --enable-linker-build-id was given.
25589 if test "${enable_linker_build_id+set}" = set; then :
25590   enableval=$enable_linker_build_id;
25591 else
25592   enable_linker_build_id=no
25593 fi
25594
25595
25596 if test x"$enable_linker_build_id" = xyes; then
25597   if test x"$gcc_cv_ld_buildid" = xyes; then
25598
25599 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25600
25601   else
25602     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25603 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25604   fi
25605 fi
25606
25607 # In binutils 2.21, GNU ld gained support for new emulations fully
25608 # supporting the Solaris 2 ABI.  Detect their presence in the linker used.
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25610 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25611 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25612   $as_echo_n "(cached) " >&6
25613 else
25614   gcc_cv_ld_sol2_emulation=no
25615   if test $in_tree_ld = yes ; then
25616     if test "$gcc_cv_gld_major_version" -eq 2 -a \
25617        "$gcc_cv_gld_minor_version" -ge 21 -o \
25618        "$gcc_cv_gld_major_version" -gt 2 \
25619        && test $in_tree_ld_is_elf = yes; then
25620       gcc_cv_ld_sol2_emulation=yes
25621     fi
25622   elif test x$gcc_cv_ld != x; then
25623     if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
25624        grep _sol2 > /dev/null; then
25625       gcc_cv_ld_sol2_emulation=yes
25626     fi
25627   fi
25628 fi
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25630 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25631 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
25632
25633 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25634
25635 fi
25636
25637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25638 $as_echo_n "checking linker --sysroot support... " >&6; }
25639 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25640   $as_echo_n "(cached) " >&6
25641 else
25642   gcc_cv_ld_sysroot=no
25643   if test $in_tree_ld = yes ; then
25644       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
25645         gcc_cv_ld_sysroot=yes
25646       fi
25647   elif test x$gcc_cv_ld != x; then
25648     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
25649       gcc_cv_ld_sysroot=yes
25650     fi
25651   fi
25652 fi
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25654 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25655 if test x"$gcc_cv_ld_sysroot" = xyes; then
25656
25657 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25658
25659 fi
25660
25661 if test x$with_sysroot = x && test x$host = x$target \
25662    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25663    && test "$prefix" != "NONE"; then
25664
25665 cat >>confdefs.h <<_ACEOF
25666 #define PREFIX_INCLUDE_DIR "$prefix/include"
25667 _ACEOF
25668
25669 fi
25670
25671 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25672   if test "x$with_headers" != x; then
25673     target_header_dir=$with_headers
25674   elif test "x$with_sysroot" = x; then
25675     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25676   elif test "x$with_build_sysroot" != "x"; then
25677     target_header_dir="${with_build_sysroot}/usr/include"
25678   elif test "x$with_sysroot" = xyes; then
25679     target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25680   else
25681     target_header_dir="${with_sysroot}/usr/include"
25682   fi
25683 else
25684   target_header_dir=/usr/include
25685 fi
25686
25687 # Test for stack protector support in target C library.
25688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25689 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25690 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25691   $as_echo_n "(cached) " >&6
25692 else
25693   gcc_cv_libc_provides_ssp=no
25694     case "$target" in
25695        *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
25696       # glibc 2.4 and later provides __stack_chk_fail and
25697       # either __stack_chk_guard, or TLS access to stack guard canary.
25698       if test -f $target_header_dir/features.h \
25699          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
25700             $target_header_dir/features.h > /dev/null; then
25701         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
25702            $target_header_dir/features.h > /dev/null; then
25703           gcc_cv_libc_provides_ssp=yes
25704         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
25705              $target_header_dir/features.h > /dev/null \
25706              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
25707              $target_header_dir/features.h > /dev/null; then
25708           gcc_cv_libc_provides_ssp=yes
25709         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
25710              $target_header_dir/features.h > /dev/null && \
25711              test -f $target_header_dir/bits/uClibc_config.h && \
25712              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
25713              $target_header_dir/bits/uClibc_config.h > /dev/null; then
25714           gcc_cv_libc_provides_ssp=yes
25715         fi
25716       fi
25717         ;;
25718        *-*-gnu*)
25719          # Avoid complicated tests (see
25720          # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25721          # simply assert that glibc does provide this, which is true for all
25722          # realistically usable GNU/Hurd configurations.
25723          gcc_cv_libc_provides_ssp=yes;;
25724        *-*-darwin* | *-*-freebsd*)
25725          ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25726 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
25727   gcc_cv_libc_provides_ssp=yes
25728 else
25729   echo "no __stack_chk_fail on this target"
25730 fi
25731
25732         ;;
25733   *) gcc_cv_libc_provides_ssp=no ;;
25734     esac
25735 fi
25736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25737 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25738
25739 if test x$gcc_cv_libc_provides_ssp = xyes; then
25740
25741 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25742
25743 fi
25744
25745 # Check if TFmode long double should be used by default or not.
25746 # Some glibc targets used DFmode long double, but with glibc 2.4
25747 # and later they can use TFmode.
25748 case "$target" in
25749   powerpc*-*-linux* | \
25750   powerpc*-*-gnu* | \
25751   sparc*-*-linux* | \
25752   s390*-*-linux* | \
25753   alpha*-*-linux*)
25754
25755 # Check whether --with-long-double-128 was given.
25756 if test "${with_long_double_128+set}" = set; then :
25757   withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
25758 else
25759   gcc_cv_target_ldbl128=no
25760       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25761         $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
25762       && gcc_cv_target_ldbl128=yes
25763
25764 fi
25765
25766     ;;
25767 esac
25768 if test x$gcc_cv_target_ldbl128 = xyes; then
25769
25770 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25771
25772 fi
25773
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
25775 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
25776 gcc_cv_target_dl_iterate_phdr=unknown
25777 case "$target" in
25778   *-*-solaris2*)
25779     # <link.h> needs both a dl_iterate_phdr declaration and support for
25780     # compilation with largefile support.
25781     if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
25782       && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
25783       gcc_cv_target_dl_iterate_phdr=yes
25784     else
25785       gcc_cv_target_dl_iterate_phdr=no
25786     fi
25787     ;;
25788 esac
25789
25790 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
25791
25792 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
25793
25794 fi
25795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
25796 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
25797
25798 # Find out what GC implementation we want, or may, use.
25799
25800 # Check whether --with-gc was given.
25801 if test "${with_gc+set}" = set; then :
25802   withval=$with_gc; case "$withval" in
25803   page)
25804     GGC=ggc-$withval
25805     ;;
25806   zone)
25807     GGC=ggc-$withval
25808
25809 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25810
25811     ;;
25812   *)
25813     as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
25814     ;;
25815 esac
25816 else
25817   GGC=ggc-page
25818 fi
25819
25820
25821 echo "Using $GGC for garbage collection."
25822
25823 # Libraries to use on the host.  This will normally be set by the top
25824 # level Makefile.  Here we simply capture the value for our Makefile.
25825 if test -z "${HOST_LIBS+set}"; then
25826   HOST_LIBS=
25827 fi
25828
25829
25830 # Use the system's zlib library.
25831 zlibdir=-L../zlib
25832 zlibinc="-I\$(srcdir)/../zlib"
25833
25834 # Check whether --with-system-zlib was given.
25835 if test "${with_system_zlib+set}" = set; then :
25836   withval=$with_system_zlib; zlibdir=
25837 zlibinc=
25838
25839 fi
25840
25841
25842
25843
25844
25845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25846 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25847     # Check whether --enable-maintainer-mode was given.
25848 if test "${enable_maintainer_mode+set}" = set; then :
25849   enableval=$enable_maintainer_mode; maintainer_mode=$enableval
25850 else
25851   maintainer_mode=no
25852 fi
25853
25854
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25856 $as_echo "$maintainer_mode" >&6; }
25857
25858 if test "$maintainer_mode" = "yes"; then
25859   MAINT=''
25860 else
25861   MAINT='#'
25862 fi
25863
25864 # --------------
25865 # Language hooks
25866 # --------------
25867
25868 # Make empty files to contain the specs and options for each language.
25869 # Then add #include lines to for a compiler that has specs and/or options.
25870
25871 subdirs=
25872 lang_opt_files=
25873 lang_specs_files=
25874 lang_tree_files=
25875 # These (without "all_") are set in each config-lang.in.
25876 # `language' must be a single word so is spelled singularly.
25877 all_languages=
25878 all_compilers=
25879 all_outputs='Makefile'
25880 # List of language makefile fragments.
25881 all_lang_makefrags=
25882 # Additional files for gengtype
25883 all_gtfiles="$target_gtfiles"
25884
25885 # These are the languages that are set in --enable-languages,
25886 # and are available in the GCC tree.
25887 all_selected_languages=
25888
25889 # Add the language fragments.
25890 # Languages are added via two mechanisms.  Some information must be
25891 # recorded in makefile variables, these are defined in config-lang.in.
25892 # We accumulate them and plug them into the main Makefile.
25893 # The other mechanism is a set of hooks for each of the main targets
25894 # like `clean', `install', etc.
25895
25896 language_hooks="Make-hooks"
25897
25898 for lang in ${srcdir}/*/config-lang.in
25899 do
25900         test "$lang" = "${srcdir}/*/config-lang.in" && continue
25901
25902         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
25903         if test "x$lang_alias" = x
25904         then
25905               echo "$lang doesn't set \$language." 1>&2
25906               exit 1
25907         fi
25908         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25909         subdirs="$subdirs $subdir"
25910
25911         # $gcc_subdir is where the gcc integration files are to be found
25912         # for a language, both for internal compiler purposes (compiler
25913         # sources implementing front-end to GCC tree converters), and for
25914         # build infrastructure purposes (Make-lang.in, etc.)
25915         #
25916         # This will be <subdir> (relative to $srcdir) if a line like
25917         # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25918         # is found in <langdir>/config-lang.in, and will remain <langdir>
25919         # otherwise.
25920         #
25921         # Except for the language alias (fetched above), the regular
25922         # "config-lang.in" contents are always retrieved from $gcc_subdir,
25923         # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25924         # only this and the language alias.
25925
25926         gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^   ]*\).*$,\1,p' $lang`
25927         if [ "$gcc_subdir" = "" ]; then
25928            gcc_subdir="$subdir"
25929         fi
25930
25931         case ",$enable_languages," in
25932         *,$lang_alias,*)
25933             all_selected_languages="$all_selected_languages $lang_alias"
25934             if test -f $srcdir/$gcc_subdir/lang-specs.h; then
25935                 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25936             fi
25937             ;;
25938         esac
25939
25940         language=
25941         boot_language=
25942         compilers=
25943         outputs=
25944         gtfiles=
25945         subdir_requires=
25946         . ${srcdir}/$gcc_subdir/config-lang.in
25947         if test "x$language" = x
25948         then
25949                 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25950                 exit 1
25951         fi
25952
25953         ok=:
25954         case ",$enable_languages," in
25955                 *,$lang_alias,*) ;;
25956                 *)
25957                         for i in $subdir_requires; do
25958                                 test -f "${srcdir}/$i/config-lang.in" && continue
25959                                 ok=false
25960                                 break
25961                         done
25962                 ;;
25963         esac
25964         $ok || continue
25965
25966         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25967         if test -f $srcdir/$gcc_subdir/lang.opt; then
25968             lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25969             all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
25970         fi
25971         if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
25972             lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25973         fi
25974         all_languages="$all_languages $language"
25975         all_compilers="$all_compilers $compilers"
25976         all_outputs="$all_outputs $outputs"
25977         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
25978         case ",$enable_languages," in
25979                 *,lto,*)
25980
25981 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25982
25983                     enable_lto=yes
25984
25985                     ;;
25986                 *) ;;
25987         esac
25988 done
25989
25990 # Pick up gtfiles for c
25991 gtfiles=
25992 . ${srcdir}/c-config-lang.in
25993 all_gtfiles="$all_gtfiles [c] $gtfiles"
25994
25995 check_languages=
25996 for language in $all_selected_languages
25997 do
25998         check_languages="$check_languages check-$language"
25999 done
26000
26001 # We link each language in with a set of hooks, reached indirectly via
26002 # lang.${target}.  Only do so for selected languages.
26003
26004 rm -f Make-hooks
26005 touch Make-hooks
26006 target_list="all.cross start.encap rest.encap tags \
26007         install-common install-man install-info install-pdf install-html dvi \
26008         pdf html uninstall info man srcextra srcman srcinfo \
26009         mostlyclean clean distclean maintainer-clean install-plugin"
26010
26011 for t in $target_list
26012 do
26013         x=
26014         for lang in $all_selected_languages
26015         do
26016                 x="$x $lang.$t"
26017         done
26018         echo "lang.$t: $x" >> Make-hooks
26019 done
26020
26021 # --------
26022 # Option include files
26023 # --------
26024
26025 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26026 option_includes="option-includes.mk"
26027
26028
26029 # --------
26030 # UNSORTED
26031 # --------
26032
26033 # Create .gdbinit.
26034
26035 echo "dir ." > .gdbinit
26036 echo "dir ${srcdir}" >> .gdbinit
26037 if test x$gdb_needs_out_file_path = xyes
26038 then
26039         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26040 fi
26041 if test "x$subdirs" != x; then
26042         for s in $subdirs
26043         do
26044                 echo "dir ${srcdir}/$s" >> .gdbinit
26045         done
26046 fi
26047 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26048
26049 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26050
26051
26052
26053 # Find a directory in which to install a shared libgcc.
26054
26055 # Check whether --enable-version-specific-runtime-libs was given.
26056 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26057   enableval=$enable_version_specific_runtime_libs;
26058 fi
26059
26060
26061
26062 # Check whether --with-slibdir was given.
26063 if test "${with_slibdir+set}" = set; then :
26064   withval=$with_slibdir; slibdir="$with_slibdir"
26065 else
26066   if test "${enable_version_specific_runtime_libs+set}" = set; then
26067   slibdir='$(libsubdir)'
26068 elif test "$host" != "$target"; then
26069   slibdir='$(build_tooldir)/lib'
26070 else
26071   slibdir='$(libdir)'
26072 fi
26073 fi
26074
26075
26076
26077 # Substitute configuration variables
26078
26079
26080
26081
26082
26083
26084
26085
26086
26087
26088
26089
26090
26091
26092
26093
26094
26095
26096
26097
26098
26099
26100
26101
26102
26103
26104
26105
26106
26107
26108
26109
26110
26111
26112
26113
26114
26115
26116
26117
26118
26119
26120
26121
26122
26123
26124
26125
26126
26127
26128
26129
26130
26131
26132
26133
26134
26135
26136
26137
26138
26139
26140 # Echo link setup.
26141 if test x${build} = x${host} ; then
26142   if test x${host} = x${target} ; then
26143     echo "Links are now set up to build a native compiler for ${target}." 1>&2
26144   else
26145     echo "Links are now set up to build a cross-compiler" 1>&2
26146     echo " from ${host} to ${target}." 1>&2
26147   fi
26148 else
26149   if test x${host} = x${target} ; then
26150     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26151     echo " for ${target}." 1>&2
26152   else
26153     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26154     echo " from ${host} to ${target}." 1>&2
26155   fi
26156 fi
26157
26158
26159
26160
26161
26162
26163
26164
26165
26166 if test "x${CLOOGLIBS}" != "x" ; then
26167
26168 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26169
26170 fi
26171
26172 # Check for plugin support
26173 # Check whether --enable-plugin was given.
26174 if test "${enable_plugin+set}" = set; then :
26175   enableval=$enable_plugin; enable_plugin=$enableval
26176 else
26177   enable_plugin=yes; default_plugin=yes
26178 fi
26179
26180
26181 pluginlibs=
26182
26183 case "${host}" in
26184   *-*-darwin*)
26185     if test x$build = x$host; then
26186       export_sym_check="nm${exeext} -g"
26187     elif test x$host = x$target; then
26188       export_sym_check="$gcc_cv_nm -g"
26189     else
26190       export_sym_check=
26191     fi
26192   ;;
26193   *)
26194     if test x$build = x$host; then
26195       export_sym_check="objdump${exeext} -T"
26196     elif test x$host = x$target; then
26197       export_sym_check="$gcc_cv_objdump -T"
26198     else
26199       export_sym_check=
26200     fi
26201   ;;
26202 esac
26203
26204 if test x"$enable_plugin" = x"yes"; then
26205
26206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26207 $as_echo_n "checking for exported symbols... " >&6; }
26208   if test "x$export_sym_check" != x; then
26209     echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26210     ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
26211     if $export_sym_check conftest | grep foobar > /dev/null; then
26212       : # No need to use a flag
26213       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26214 $as_echo "yes" >&6; }
26215     else
26216       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26217 $as_echo "yes" >&6; }
26218       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26219 $as_echo_n "checking for -rdynamic... " >&6; }
26220       ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
26221       if $export_sym_check conftest | grep foobar > /dev/null; then
26222         plugin_rdynamic=yes
26223         pluginlibs="-rdynamic"
26224       else
26225         plugin_rdynamic=no
26226         enable_plugin=no
26227       fi
26228       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26229 $as_echo "$plugin_rdynamic" >&6; }
26230     fi
26231   else
26232     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26233 $as_echo "unable to check" >&6; }
26234   fi
26235
26236   # Check -ldl
26237   saved_LIBS="$LIBS"
26238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26239 $as_echo_n "checking for library containing dlopen... " >&6; }
26240 if test "${ac_cv_search_dlopen+set}" = set; then :
26241   $as_echo_n "(cached) " >&6
26242 else
26243   ac_func_search_save_LIBS=$LIBS
26244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26245 /* end confdefs.h.  */
26246
26247 /* Override any GCC internal prototype to avoid an error.
26248    Use char because int might match the return type of a GCC
26249    builtin and then its argument prototype would still apply.  */
26250 #ifdef __cplusplus
26251 extern "C"
26252 #endif
26253 char dlopen ();
26254 int
26255 main ()
26256 {
26257 return dlopen ();
26258   ;
26259   return 0;
26260 }
26261 _ACEOF
26262 for ac_lib in '' dl; do
26263   if test -z "$ac_lib"; then
26264     ac_res="none required"
26265   else
26266     ac_res=-l$ac_lib
26267     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26268   fi
26269   if ac_fn_c_try_link "$LINENO"; then :
26270   ac_cv_search_dlopen=$ac_res
26271 fi
26272 rm -f core conftest.err conftest.$ac_objext \
26273     conftest$ac_exeext
26274   if test "${ac_cv_search_dlopen+set}" = set; then :
26275   break
26276 fi
26277 done
26278 if test "${ac_cv_search_dlopen+set}" = set; then :
26279
26280 else
26281   ac_cv_search_dlopen=no
26282 fi
26283 rm conftest.$ac_ext
26284 LIBS=$ac_func_search_save_LIBS
26285 fi
26286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26287 $as_echo "$ac_cv_search_dlopen" >&6; }
26288 ac_res=$ac_cv_search_dlopen
26289 if test "$ac_res" != no; then :
26290   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26291
26292 fi
26293
26294   if test x"$ac_cv_search_dlopen" = x"-ldl"; then
26295     pluginlibs="$pluginlibs -ldl"
26296   fi
26297   LIBS="$saved_LIBS"
26298
26299   # Check that we can build shared objects with -fPIC -shared
26300   saved_LDFLAGS="$LDFLAGS"
26301   saved_CFLAGS="$CFLAGS"
26302   case "${host}" in
26303     *-*-darwin*)
26304       CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26305       CFLAGS="$CFLAGS -fPIC"
26306       LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
26307     ;;
26308     *)
26309       CFLAGS="$CFLAGS -fPIC"
26310       LDFLAGS="$LDFLAGS -fPIC -shared"
26311     ;;
26312   esac
26313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26314 $as_echo_n "checking for -fPIC -shared... " >&6; }
26315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26316 /* end confdefs.h.  */
26317 extern int X;
26318 int
26319 main ()
26320 {
26321 return X == 0;
26322   ;
26323   return 0;
26324 }
26325 _ACEOF
26326 if ac_fn_c_try_link "$LINENO"; then :
26327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26328 $as_echo "yes" >&6; }; have_pic_shared=yes
26329 else
26330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26331 $as_echo "no" >&6; }; have_pic_shared=no
26332 fi
26333 rm -f core conftest.err conftest.$ac_objext \
26334     conftest$ac_exeext conftest.$ac_ext
26335   if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
26336     pluginlibs=
26337     enable_plugin=no
26338   fi
26339   LDFLAGS="$saved_LDFLAGS"
26340   CFLAGS="$saved_CFLAGS"
26341
26342   # If plugin support had been requested but not available, fail.
26343   if test x"$enable_plugin" = x"no" ; then
26344     if test x"$default_plugin" != x"yes"; then
26345       as_fn_error "
26346 Building GCC with plugin support requires a host that supports
26347 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26348     fi
26349   fi
26350 fi
26351
26352
26353
26354 if test x"$enable_plugin" = x"yes"; then
26355
26356 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26357
26358 fi
26359
26360
26361 # Check whether --enable-libquadmath-support was given.
26362 if test "${enable_libquadmath_support+set}" = set; then :
26363   enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
26364 else
26365   ENABLE_LIBQUADMATH_SUPPORT=yes
26366 fi
26367
26368 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
26369
26370 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
26371
26372 fi
26373
26374
26375 # Configure the subdirectories
26376 # AC_CONFIG_SUBDIRS($subdirs)
26377
26378 # Create the Makefile
26379 # and configure language subdirectories
26380 ac_config_files="$ac_config_files $all_outputs"
26381
26382
26383 ac_config_commands="$ac_config_commands default"
26384
26385 cat >confcache <<\_ACEOF
26386 # This file is a shell script that caches the results of configure
26387 # tests run on this system so they can be shared between configure
26388 # scripts and configure runs, see configure's option --config-cache.
26389 # It is not useful on other systems.  If it contains results you don't
26390 # want to keep, you may remove or edit it.
26391 #
26392 # config.status only pays attention to the cache file if you give it
26393 # the --recheck option to rerun configure.
26394 #
26395 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26396 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26397 # following values.
26398
26399 _ACEOF
26400
26401 # The following way of writing the cache mishandles newlines in values,
26402 # but we know of no workaround that is simple, portable, and efficient.
26403 # So, we kill variables containing newlines.
26404 # Ultrix sh set writes to stderr and can't be redirected directly,
26405 # and sets the high bit in the cache file unless we assign to the vars.
26406 (
26407   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26408     eval ac_val=\$$ac_var
26409     case $ac_val in #(
26410     *${as_nl}*)
26411       case $ac_var in #(
26412       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26413 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26414       esac
26415       case $ac_var in #(
26416       _ | IFS | as_nl) ;; #(
26417       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26418       *) { eval $ac_var=; unset $ac_var;} ;;
26419       esac ;;
26420     esac
26421   done
26422
26423   (set) 2>&1 |
26424     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26425     *${as_nl}ac_space=\ *)
26426       # `set' does not quote correctly, so add quotes: double-quote
26427       # substitution turns \\\\ into \\, and sed turns \\ into \.
26428       sed -n \
26429         "s/'/'\\\\''/g;
26430           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26431       ;; #(
26432     *)
26433       # `set' quotes correctly as required by POSIX, so do not add quotes.
26434       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26435       ;;
26436     esac |
26437     sort
26438 ) |
26439   sed '
26440      /^ac_cv_env_/b end
26441      t clear
26442      :clear
26443      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26444      t end
26445      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26446      :end' >>confcache
26447 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26448   if test -w "$cache_file"; then
26449     test "x$cache_file" != "x/dev/null" &&
26450       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26451 $as_echo "$as_me: updating cache $cache_file" >&6;}
26452     cat confcache >$cache_file
26453   else
26454     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26455 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26456   fi
26457 fi
26458 rm -f confcache
26459
26460 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26461 # Let make expand exec_prefix.
26462 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26463
26464 DEFS=-DHAVE_CONFIG_H
26465
26466 ac_libobjs=
26467 ac_ltlibobjs=
26468 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26469   # 1. Remove the extension, and $U if already installed.
26470   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26471   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26472   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26473   #    will be set to the directory where LIBOBJS objects are built.
26474   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26475   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26476 done
26477 LIBOBJS=$ac_libobjs
26478
26479 LTLIBOBJS=$ac_ltlibobjs
26480
26481
26482
26483
26484 : ${CONFIG_STATUS=./config.status}
26485 ac_write_fail=0
26486 ac_clean_files_save=$ac_clean_files
26487 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26489 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26490 as_write_fail=0
26491 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26492 #! $SHELL
26493 # Generated by $as_me.
26494 # Run this file to recreate the current configuration.
26495 # Compiler output produced by configure, useful for debugging
26496 # configure, is in config.log if it exists.
26497
26498 debug=false
26499 ac_cs_recheck=false
26500 ac_cs_silent=false
26501
26502 SHELL=\${CONFIG_SHELL-$SHELL}
26503 export SHELL
26504 _ASEOF
26505 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26506 ## -------------------- ##
26507 ## M4sh Initialization. ##
26508 ## -------------------- ##
26509
26510 # Be more Bourne compatible
26511 DUALCASE=1; export DUALCASE # for MKS sh
26512 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26513   emulate sh
26514   NULLCMD=:
26515   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26516   # is contrary to our usage.  Disable this feature.
26517   alias -g '${1+"$@"}'='"$@"'
26518   setopt NO_GLOB_SUBST
26519 else
26520   case `(set -o) 2>/dev/null` in #(
26521   *posix*) :
26522     set -o posix ;; #(
26523   *) :
26524      ;;
26525 esac
26526 fi
26527
26528
26529 as_nl='
26530 '
26531 export as_nl
26532 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26533 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26534 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26535 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26536 # Prefer a ksh shell builtin over an external printf program on Solaris,
26537 # but without wasting forks for bash or zsh.
26538 if test -z "$BASH_VERSION$ZSH_VERSION" \
26539     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26540   as_echo='print -r --'
26541   as_echo_n='print -rn --'
26542 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26543   as_echo='printf %s\n'
26544   as_echo_n='printf %s'
26545 else
26546   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26547     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26548     as_echo_n='/usr/ucb/echo -n'
26549   else
26550     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26551     as_echo_n_body='eval
26552       arg=$1;
26553       case $arg in #(
26554       *"$as_nl"*)
26555         expr "X$arg" : "X\\(.*\\)$as_nl";
26556         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26557       esac;
26558       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26559     '
26560     export as_echo_n_body
26561     as_echo_n='sh -c $as_echo_n_body as_echo'
26562   fi
26563   export as_echo_body
26564   as_echo='sh -c $as_echo_body as_echo'
26565 fi
26566
26567 # The user is always right.
26568 if test "${PATH_SEPARATOR+set}" != set; then
26569   PATH_SEPARATOR=:
26570   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26571     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26572       PATH_SEPARATOR=';'
26573   }
26574 fi
26575
26576
26577 # IFS
26578 # We need space, tab and new line, in precisely that order.  Quoting is
26579 # there to prevent editors from complaining about space-tab.
26580 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26581 # splitting by setting IFS to empty value.)
26582 IFS=" ""        $as_nl"
26583
26584 # Find who we are.  Look in the path if we contain no directory separator.
26585 case $0 in #((
26586   *[\\/]* ) as_myself=$0 ;;
26587   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26588 for as_dir in $PATH
26589 do
26590   IFS=$as_save_IFS
26591   test -z "$as_dir" && as_dir=.
26592     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26593   done
26594 IFS=$as_save_IFS
26595
26596      ;;
26597 esac
26598 # We did not find ourselves, most probably we were run as `sh COMMAND'
26599 # in which case we are not to be found in the path.
26600 if test "x$as_myself" = x; then
26601   as_myself=$0
26602 fi
26603 if test ! -f "$as_myself"; then
26604   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26605   exit 1
26606 fi
26607
26608 # Unset variables that we do not need and which cause bugs (e.g. in
26609 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26610 # suppresses any "Segmentation fault" message there.  '((' could
26611 # trigger a bug in pdksh 5.2.14.
26612 for as_var in BASH_ENV ENV MAIL MAILPATH
26613 do eval test x\${$as_var+set} = xset \
26614   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26615 done
26616 PS1='$ '
26617 PS2='> '
26618 PS4='+ '
26619
26620 # NLS nuisances.
26621 LC_ALL=C
26622 export LC_ALL
26623 LANGUAGE=C
26624 export LANGUAGE
26625
26626 # CDPATH.
26627 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26628
26629
26630 # as_fn_error ERROR [LINENO LOG_FD]
26631 # ---------------------------------
26632 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26633 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26634 # script with status $?, using 1 if that was 0.
26635 as_fn_error ()
26636 {
26637   as_status=$?; test $as_status -eq 0 && as_status=1
26638   if test "$3"; then
26639     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26640     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26641   fi
26642   $as_echo "$as_me: error: $1" >&2
26643   as_fn_exit $as_status
26644 } # as_fn_error
26645
26646
26647 # as_fn_set_status STATUS
26648 # -----------------------
26649 # Set $? to STATUS, without forking.
26650 as_fn_set_status ()
26651 {
26652   return $1
26653 } # as_fn_set_status
26654
26655 # as_fn_exit STATUS
26656 # -----------------
26657 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26658 as_fn_exit ()
26659 {
26660   set +e
26661   as_fn_set_status $1
26662   exit $1
26663 } # as_fn_exit
26664
26665 # as_fn_unset VAR
26666 # ---------------
26667 # Portably unset VAR.
26668 as_fn_unset ()
26669 {
26670   { eval $1=; unset $1;}
26671 }
26672 as_unset=as_fn_unset
26673 # as_fn_append VAR VALUE
26674 # ----------------------
26675 # Append the text in VALUE to the end of the definition contained in VAR. Take
26676 # advantage of any shell optimizations that allow amortized linear growth over
26677 # repeated appends, instead of the typical quadratic growth present in naive
26678 # implementations.
26679 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26680   eval 'as_fn_append ()
26681   {
26682     eval $1+=\$2
26683   }'
26684 else
26685   as_fn_append ()
26686   {
26687     eval $1=\$$1\$2
26688   }
26689 fi # as_fn_append
26690
26691 # as_fn_arith ARG...
26692 # ------------------
26693 # Perform arithmetic evaluation on the ARGs, and store the result in the
26694 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26695 # must be portable across $(()) and expr.
26696 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26697   eval 'as_fn_arith ()
26698   {
26699     as_val=$(( $* ))
26700   }'
26701 else
26702   as_fn_arith ()
26703   {
26704     as_val=`expr "$@" || test $? -eq 1`
26705   }
26706 fi # as_fn_arith
26707
26708
26709 if expr a : '\(a\)' >/dev/null 2>&1 &&
26710    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26711   as_expr=expr
26712 else
26713   as_expr=false
26714 fi
26715
26716 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26717   as_basename=basename
26718 else
26719   as_basename=false
26720 fi
26721
26722 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26723   as_dirname=dirname
26724 else
26725   as_dirname=false
26726 fi
26727
26728 as_me=`$as_basename -- "$0" ||
26729 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26730          X"$0" : 'X\(//\)$' \| \
26731          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26732 $as_echo X/"$0" |
26733     sed '/^.*\/\([^/][^/]*\)\/*$/{
26734             s//\1/
26735             q
26736           }
26737           /^X\/\(\/\/\)$/{
26738             s//\1/
26739             q
26740           }
26741           /^X\/\(\/\).*/{
26742             s//\1/
26743             q
26744           }
26745           s/.*/./; q'`
26746
26747 # Avoid depending upon Character Ranges.
26748 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26749 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26750 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26751 as_cr_digits='0123456789'
26752 as_cr_alnum=$as_cr_Letters$as_cr_digits
26753
26754 ECHO_C= ECHO_N= ECHO_T=
26755 case `echo -n x` in #(((((
26756 -n*)
26757   case `echo 'xy\c'` in
26758   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26759   xy)  ECHO_C='\c';;
26760   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26761        ECHO_T=' ';;
26762   esac;;
26763 *)
26764   ECHO_N='-n';;
26765 esac
26766
26767 rm -f conf$$ conf$$.exe conf$$.file
26768 if test -d conf$$.dir; then
26769   rm -f conf$$.dir/conf$$.file
26770 else
26771   rm -f conf$$.dir
26772   mkdir conf$$.dir 2>/dev/null
26773 fi
26774 if (echo >conf$$.file) 2>/dev/null; then
26775   if ln -s conf$$.file conf$$ 2>/dev/null; then
26776     as_ln_s='ln -s'
26777     # ... but there are two gotchas:
26778     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26779     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26780     # In both cases, we have to default to `cp -p'.
26781     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26782       as_ln_s='cp -p'
26783   elif ln conf$$.file conf$$ 2>/dev/null; then
26784     as_ln_s=ln
26785   else
26786     as_ln_s='cp -p'
26787   fi
26788 else
26789   as_ln_s='cp -p'
26790 fi
26791 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26792 rmdir conf$$.dir 2>/dev/null
26793
26794
26795 # as_fn_mkdir_p
26796 # -------------
26797 # Create "$as_dir" as a directory, including parents if necessary.
26798 as_fn_mkdir_p ()
26799 {
26800
26801   case $as_dir in #(
26802   -*) as_dir=./$as_dir;;
26803   esac
26804   test -d "$as_dir" || eval $as_mkdir_p || {
26805     as_dirs=
26806     while :; do
26807       case $as_dir in #(
26808       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26809       *) as_qdir=$as_dir;;
26810       esac
26811       as_dirs="'$as_qdir' $as_dirs"
26812       as_dir=`$as_dirname -- "$as_dir" ||
26813 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26814          X"$as_dir" : 'X\(//\)[^/]' \| \
26815          X"$as_dir" : 'X\(//\)$' \| \
26816          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26817 $as_echo X"$as_dir" |
26818     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26819             s//\1/
26820             q
26821           }
26822           /^X\(\/\/\)[^/].*/{
26823             s//\1/
26824             q
26825           }
26826           /^X\(\/\/\)$/{
26827             s//\1/
26828             q
26829           }
26830           /^X\(\/\).*/{
26831             s//\1/
26832             q
26833           }
26834           s/.*/./; q'`
26835       test -d "$as_dir" && break
26836     done
26837     test -z "$as_dirs" || eval "mkdir $as_dirs"
26838   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26839
26840
26841 } # as_fn_mkdir_p
26842 if mkdir -p . 2>/dev/null; then
26843   as_mkdir_p='mkdir -p "$as_dir"'
26844 else
26845   test -d ./-p && rmdir ./-p
26846   as_mkdir_p=false
26847 fi
26848
26849 if test -x / >/dev/null 2>&1; then
26850   as_test_x='test -x'
26851 else
26852   if ls -dL / >/dev/null 2>&1; then
26853     as_ls_L_option=L
26854   else
26855     as_ls_L_option=
26856   fi
26857   as_test_x='
26858     eval sh -c '\''
26859       if test -d "$1"; then
26860         test -d "$1/.";
26861       else
26862         case $1 in #(
26863         -*)set "./$1";;
26864         esac;
26865         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26866         ???[sx]*):;;*)false;;esac;fi
26867     '\'' sh
26868   '
26869 fi
26870 as_executable_p=$as_test_x
26871
26872 # Sed expression to map a string onto a valid CPP name.
26873 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26874
26875 # Sed expression to map a string onto a valid variable name.
26876 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26877
26878
26879 exec 6>&1
26880 ## ----------------------------------- ##
26881 ## Main body of $CONFIG_STATUS script. ##
26882 ## ----------------------------------- ##
26883 _ASEOF
26884 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26885
26886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26887 # Save the log message, to keep $0 and so on meaningful, and to
26888 # report actual input values of CONFIG_FILES etc. instead of their
26889 # values after options handling.
26890 ac_log="
26891 This file was extended by $as_me, which was
26892 generated by GNU Autoconf 2.64.  Invocation command line was
26893
26894   CONFIG_FILES    = $CONFIG_FILES
26895   CONFIG_HEADERS  = $CONFIG_HEADERS
26896   CONFIG_LINKS    = $CONFIG_LINKS
26897   CONFIG_COMMANDS = $CONFIG_COMMANDS
26898   $ $0 $@
26899
26900 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26901 "
26902
26903 _ACEOF
26904
26905 case $ac_config_files in *"
26906 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26907 esac
26908
26909 case $ac_config_headers in *"
26910 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26911 esac
26912
26913
26914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26915 # Files that config.status was made for.
26916 config_files="$ac_config_files"
26917 config_headers="$ac_config_headers"
26918 config_commands="$ac_config_commands"
26919
26920 _ACEOF
26921
26922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26923 ac_cs_usage="\
26924 \`$as_me' instantiates files and other configuration actions
26925 from templates according to the current configuration.  Unless the files
26926 and actions are specified as TAGs, all are instantiated by default.
26927
26928 Usage: $0 [OPTION]... [TAG]...
26929
26930   -h, --help       print this help, then exit
26931   -V, --version    print version number and configuration settings, then exit
26932   -q, --quiet, --silent
26933                    do not print progress messages
26934   -d, --debug      don't remove temporary files
26935       --recheck    update $as_me by reconfiguring in the same conditions
26936       --file=FILE[:TEMPLATE]
26937                    instantiate the configuration file FILE
26938       --header=FILE[:TEMPLATE]
26939                    instantiate the configuration header FILE
26940
26941 Configuration files:
26942 $config_files
26943
26944 Configuration headers:
26945 $config_headers
26946
26947 Configuration commands:
26948 $config_commands
26949
26950 Report bugs to the package provider."
26951
26952 _ACEOF
26953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26954 ac_cs_version="\\
26955 config.status
26956 configured by $0, generated by GNU Autoconf 2.64,
26957   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26958
26959 Copyright (C) 2009 Free Software Foundation, Inc.
26960 This config.status script is free software; the Free Software Foundation
26961 gives unlimited permission to copy, distribute and modify it."
26962
26963 ac_pwd='$ac_pwd'
26964 srcdir='$srcdir'
26965 AWK='$AWK'
26966 test -n "\$AWK" || AWK=awk
26967 _ACEOF
26968
26969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26970 # The default lists apply if the user does not specify any file.
26971 ac_need_defaults=:
26972 while test $# != 0
26973 do
26974   case $1 in
26975   --*=*)
26976     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26977     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26978     ac_shift=:
26979     ;;
26980   *)
26981     ac_option=$1
26982     ac_optarg=$2
26983     ac_shift=shift
26984     ;;
26985   esac
26986
26987   case $ac_option in
26988   # Handling of the options.
26989   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26990     ac_cs_recheck=: ;;
26991   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26992     $as_echo "$ac_cs_version"; exit ;;
26993   --debug | --debu | --deb | --de | --d | -d )
26994     debug=: ;;
26995   --file | --fil | --fi | --f )
26996     $ac_shift
26997     case $ac_optarg in
26998     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26999     esac
27000     as_fn_append CONFIG_FILES " '$ac_optarg'"
27001     ac_need_defaults=false;;
27002   --header | --heade | --head | --hea )
27003     $ac_shift
27004     case $ac_optarg in
27005     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27006     esac
27007     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27008     ac_need_defaults=false;;
27009   --he | --h)
27010     # Conflict between --help and --header
27011     as_fn_error "ambiguous option: \`$1'
27012 Try \`$0 --help' for more information.";;
27013   --help | --hel | -h )
27014     $as_echo "$ac_cs_usage"; exit ;;
27015   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27016   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27017     ac_cs_silent=: ;;
27018
27019   # This is an error.
27020   -*) as_fn_error "unrecognized option: \`$1'
27021 Try \`$0 --help' for more information." ;;
27022
27023   *) as_fn_append ac_config_targets " $1"
27024      ac_need_defaults=false ;;
27025
27026   esac
27027   shift
27028 done
27029
27030 ac_configure_extra_args=
27031
27032 if $ac_cs_silent; then
27033   exec 6>/dev/null
27034   ac_configure_extra_args="$ac_configure_extra_args --silent"
27035 fi
27036
27037 _ACEOF
27038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27039 if \$ac_cs_recheck; then
27040   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27041   shift
27042   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27043   CONFIG_SHELL='$SHELL'
27044   export CONFIG_SHELL
27045   exec "\$@"
27046 fi
27047
27048 _ACEOF
27049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27050 exec 5>>config.log
27051 {
27052   echo
27053   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27054 ## Running $as_me. ##
27055 _ASBOX
27056   $as_echo "$ac_log"
27057 } >&5
27058
27059 _ACEOF
27060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27061 #
27062 # INIT-COMMANDS
27063 #
27064 subdirs='$subdirs'
27065
27066 _ACEOF
27067
27068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27069
27070 # Handling of arguments.
27071 for ac_config_target in $ac_config_targets
27072 do
27073   case $ac_config_target in
27074     "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27075     "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27076     "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27077     "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27078     "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27079     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27080
27081   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27082   esac
27083 done
27084
27085
27086 # If the user did not use the arguments to specify the items to instantiate,
27087 # then the envvar interface is used.  Set only those that are not.
27088 # We use the long form for the default assignment because of an extremely
27089 # bizarre bug on SunOS 4.1.3.
27090 if $ac_need_defaults; then
27091   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27092   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27093   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27094 fi
27095
27096 # Have a temporary directory for convenience.  Make it in the build tree
27097 # simply because there is no reason against having it here, and in addition,
27098 # creating and moving files from /tmp can sometimes cause problems.
27099 # Hook for its removal unless debugging.
27100 # Note that there is a small window in which the directory will not be cleaned:
27101 # after its creation but before its name has been assigned to `$tmp'.
27102 $debug ||
27103 {
27104   tmp=
27105   trap 'exit_status=$?
27106   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27107 ' 0
27108   trap 'as_fn_exit 1' 1 2 13 15
27109 }
27110 # Create a (secure) tmp directory for tmp files.
27111
27112 {
27113   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27114   test -n "$tmp" && test -d "$tmp"
27115 }  ||
27116 {
27117   tmp=./conf$$-$RANDOM
27118   (umask 077 && mkdir "$tmp")
27119 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27120
27121 # Set up the scripts for CONFIG_FILES section.
27122 # No need to generate them if there are no CONFIG_FILES.
27123 # This happens for instance with `./config.status config.h'.
27124 if test -n "$CONFIG_FILES"; then
27125
27126 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27127   ac_cs_awk_getline=:
27128   ac_cs_awk_pipe_init=
27129   ac_cs_awk_read_file='
27130       while ((getline aline < (F[key])) > 0)
27131         print(aline)
27132       close(F[key])'
27133   ac_cs_awk_pipe_fini=
27134 else
27135   ac_cs_awk_getline=false
27136   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27137   ac_cs_awk_read_file='
27138       print "|#_!!_#|"
27139       print "cat " F[key] " &&"
27140       '$ac_cs_awk_pipe_init
27141   # The final `:' finishes the AND list.
27142   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27143 fi
27144 ac_cr=`echo X | tr X '\015'`
27145 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27146 # But we know of no other shell where ac_cr would be empty at this
27147 # point, so we can use a bashism as a fallback.
27148 if test "x$ac_cr" = x; then
27149   eval ac_cr=\$\'\\r\'
27150 fi
27151 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27152 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27153   ac_cs_awk_cr='\r'
27154 else
27155   ac_cs_awk_cr=$ac_cr
27156 fi
27157
27158 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27159 _ACEOF
27160
27161 # Create commands to substitute file output variables.
27162 {
27163   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27164   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27165   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27166   echo "_ACAWK" &&
27167   echo "_ACEOF"
27168 } >conf$$files.sh &&
27169 . ./conf$$files.sh ||
27170   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27171 rm -f conf$$files.sh
27172
27173 {
27174   echo "cat >conf$$subs.awk <<_ACEOF" &&
27175   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27176   echo "_ACEOF"
27177 } >conf$$subs.sh ||
27178   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27179 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27180 ac_delim='%!_!# '
27181 for ac_last_try in false false false false false :; do
27182   . ./conf$$subs.sh ||
27183     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27184
27185   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27186   if test $ac_delim_n = $ac_delim_num; then
27187     break
27188   elif $ac_last_try; then
27189     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27190   else
27191     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27192   fi
27193 done
27194 rm -f conf$$subs.sh
27195
27196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27197 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27198 _ACEOF
27199 sed -n '
27200 h
27201 s/^/S["/; s/!.*/"]=/
27202 p
27203 g
27204 s/^[^!]*!//
27205 :repl
27206 t repl
27207 s/'"$ac_delim"'$//
27208 t delim
27209 :nl
27210 h
27211 s/\(.\{148\}\).*/\1/
27212 t more1
27213 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27214 p
27215 n
27216 b repl
27217 :more1
27218 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27219 p
27220 g
27221 s/.\{148\}//
27222 t nl
27223 :delim
27224 h
27225 s/\(.\{148\}\).*/\1/
27226 t more2
27227 s/["\\]/\\&/g; s/^/"/; s/$/"/
27228 p
27229 b
27230 :more2
27231 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27232 p
27233 g
27234 s/.\{148\}//
27235 t delim
27236 ' <conf$$subs.awk | sed '
27237 /^[^""]/{
27238   N
27239   s/\n//
27240 }
27241 ' >>$CONFIG_STATUS || ac_write_fail=1
27242 rm -f conf$$subs.awk
27243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27244 _ACAWK
27245 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27246   for (key in S) S_is_set[key] = 1
27247   FS = "\a"
27248   \$ac_cs_awk_pipe_init
27249 }
27250 {
27251   line = $ 0
27252   nfields = split(line, field, "@")
27253   substed = 0
27254   len = length(field[1])
27255   for (i = 2; i < nfields; i++) {
27256     key = field[i]
27257     keylen = length(key)
27258     if (S_is_set[key]) {
27259       value = S[key]
27260       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27261       len += length(value) + length(field[++i])
27262       substed = 1
27263     } else
27264       len += 1 + keylen
27265   }
27266   if (nfields == 3 && !substed) {
27267     key = field[2]
27268     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
27269       \$ac_cs_awk_read_file
27270       next
27271     }
27272   }
27273   print line
27274 }
27275 \$ac_cs_awk_pipe_fini
27276 _ACAWK
27277 _ACEOF
27278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27279 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27280   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27281 else
27282   cat
27283 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27284   || as_fn_error "could not setup config files machinery" "$LINENO" 5
27285 _ACEOF
27286
27287 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27288 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27289 # trailing colons and then remove the whole line if VPATH becomes empty
27290 # (actually we leave an empty line to preserve line numbers).
27291 if test "x$srcdir" = x.; then
27292   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27293 s/:*\$(srcdir):*/:/
27294 s/:*\${srcdir}:*/:/
27295 s/:*@srcdir@:*/:/
27296 s/^\([^=]*=[     ]*\):*/\1/
27297 s/:*$//
27298 s/^[^=]*=[       ]*$//
27299 }'
27300 fi
27301
27302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27303 fi # test -n "$CONFIG_FILES"
27304
27305 # Set up the scripts for CONFIG_HEADERS section.
27306 # No need to generate them if there are no CONFIG_HEADERS.
27307 # This happens for instance with `./config.status Makefile'.
27308 if test -n "$CONFIG_HEADERS"; then
27309 cat >"$tmp/defines.awk" <<\_ACAWK ||
27310 BEGIN {
27311 _ACEOF
27312
27313 # Transform confdefs.h into an awk script `defines.awk', embedded as
27314 # here-document in config.status, that substitutes the proper values into
27315 # config.h.in to produce config.h.
27316
27317 # Create a delimiter string that does not exist in confdefs.h, to ease
27318 # handling of long lines.
27319 ac_delim='%!_!# '
27320 for ac_last_try in false false :; do
27321   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27322   if test -z "$ac_t"; then
27323     break
27324   elif $ac_last_try; then
27325     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27326   else
27327     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27328   fi
27329 done
27330
27331 # For the awk script, D is an array of macro values keyed by name,
27332 # likewise P contains macro parameters if any.  Preserve backslash
27333 # newline sequences.
27334
27335 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27336 sed -n '
27337 s/.\{148\}/&'"$ac_delim"'/g
27338 t rset
27339 :rset
27340 s/^[     ]*#[    ]*define[       ][      ]*/ /
27341 t def
27342 d
27343 :def
27344 s/\\$//
27345 t bsnl
27346 s/["\\]/\\&/g
27347 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27348 D["\1"]=" \3"/p
27349 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
27350 d
27351 :bsnl
27352 s/["\\]/\\&/g
27353 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27354 D["\1"]=" \3\\\\\\n"\\/p
27355 t cont
27356 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27357 t cont
27358 d
27359 :cont
27360 n
27361 s/.\{148\}/&'"$ac_delim"'/g
27362 t clear
27363 :clear
27364 s/\\$//
27365 t bsnlc
27366 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27367 d
27368 :bsnlc
27369 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27370 b cont
27371 ' <confdefs.h | sed '
27372 s/'"$ac_delim"'/"\\\
27373 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27374
27375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27376   for (key in D) D_is_set[key] = 1
27377   FS = "\a"
27378 }
27379 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27380   line = \$ 0
27381   split(line, arg, " ")
27382   if (arg[1] == "#") {
27383     defundef = arg[2]
27384     mac1 = arg[3]
27385   } else {
27386     defundef = substr(arg[1], 2)
27387     mac1 = arg[2]
27388   }
27389   split(mac1, mac2, "(") #)
27390   macro = mac2[1]
27391   prefix = substr(line, 1, index(line, defundef) - 1)
27392   if (D_is_set[macro]) {
27393     # Preserve the white space surrounding the "#".
27394     print prefix "define", macro P[macro] D[macro]
27395     next
27396   } else {
27397     # Replace #undef with comments.  This is necessary, for example,
27398     # in the case of _POSIX_SOURCE, which is predefined and required
27399     # on some systems where configure will not decide to define it.
27400     if (defundef == "undef") {
27401       print "/*", prefix defundef, macro, "*/"
27402       next
27403     }
27404   }
27405 }
27406 { print }
27407 _ACAWK
27408 _ACEOF
27409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27410   as_fn_error "could not setup config headers machinery" "$LINENO" 5
27411 fi # test -n "$CONFIG_HEADERS"
27412
27413
27414 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27415 shift
27416 for ac_tag
27417 do
27418   case $ac_tag in
27419   :[FHLC]) ac_mode=$ac_tag; continue;;
27420   esac
27421   case $ac_mode$ac_tag in
27422   :[FHL]*:*);;
27423   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27424   :[FH]-) ac_tag=-:-;;
27425   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27426   esac
27427   ac_save_IFS=$IFS
27428   IFS=:
27429   set x $ac_tag
27430   IFS=$ac_save_IFS
27431   shift
27432   ac_file=$1
27433   shift
27434
27435   case $ac_mode in
27436   :L) ac_source=$1;;
27437   :[FH])
27438     ac_file_inputs=
27439     for ac_f
27440     do
27441       case $ac_f in
27442       -) ac_f="$tmp/stdin";;
27443       *) # Look for the file first in the build tree, then in the source tree
27444          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27445          # because $ac_f cannot contain `:'.
27446          test -f "$ac_f" ||
27447            case $ac_f in
27448            [\\/$]*) false;;
27449            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27450            esac ||
27451            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27452       esac
27453       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27454       as_fn_append ac_file_inputs " '$ac_f'"
27455     done
27456
27457     # Let's still pretend it is `configure' which instantiates (i.e., don't
27458     # use $as_me), people would be surprised to read:
27459     #    /* config.h.  Generated by config.status.  */
27460     configure_input='Generated from '`
27461           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27462         `' by configure.'
27463     if test x"$ac_file" != x-; then
27464       configure_input="$ac_file.  $configure_input"
27465       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27466 $as_echo "$as_me: creating $ac_file" >&6;}
27467     fi
27468     # Neutralize special characters interpreted by sed in replacement strings.
27469     case $configure_input in #(
27470     *\&* | *\|* | *\\* )
27471        ac_sed_conf_input=`$as_echo "$configure_input" |
27472        sed 's/[\\\\&|]/\\\\&/g'`;; #(
27473     *) ac_sed_conf_input=$configure_input;;
27474     esac
27475
27476     case $ac_tag in
27477     *:-:* | *:-) cat >"$tmp/stdin" \
27478       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27479     esac
27480     ;;
27481   esac
27482
27483   ac_dir=`$as_dirname -- "$ac_file" ||
27484 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27485          X"$ac_file" : 'X\(//\)[^/]' \| \
27486          X"$ac_file" : 'X\(//\)$' \| \
27487          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27488 $as_echo X"$ac_file" |
27489     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27490             s//\1/
27491             q
27492           }
27493           /^X\(\/\/\)[^/].*/{
27494             s//\1/
27495             q
27496           }
27497           /^X\(\/\/\)$/{
27498             s//\1/
27499             q
27500           }
27501           /^X\(\/\).*/{
27502             s//\1/
27503             q
27504           }
27505           s/.*/./; q'`
27506   as_dir="$ac_dir"; as_fn_mkdir_p
27507   ac_builddir=.
27508
27509 case "$ac_dir" in
27510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27511 *)
27512   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27513   # A ".." for each directory in $ac_dir_suffix.
27514   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27515   case $ac_top_builddir_sub in
27516   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27517   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27518   esac ;;
27519 esac
27520 ac_abs_top_builddir=$ac_pwd
27521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27522 # for backward compatibility:
27523 ac_top_builddir=$ac_top_build_prefix
27524
27525 case $srcdir in
27526   .)  # We are building in place.
27527     ac_srcdir=.
27528     ac_top_srcdir=$ac_top_builddir_sub
27529     ac_abs_top_srcdir=$ac_pwd ;;
27530   [\\/]* | ?:[\\/]* )  # Absolute name.
27531     ac_srcdir=$srcdir$ac_dir_suffix;
27532     ac_top_srcdir=$srcdir
27533     ac_abs_top_srcdir=$srcdir ;;
27534   *) # Relative name.
27535     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27536     ac_top_srcdir=$ac_top_build_prefix$srcdir
27537     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27538 esac
27539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27540
27541
27542   case $ac_mode in
27543   :F)
27544   #
27545   # CONFIG_FILE
27546   #
27547
27548 _ACEOF
27549
27550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27551 # If the template does not know about datarootdir, expand it.
27552 # FIXME: This hack should be removed a few years after 2.60.
27553 ac_datarootdir_hack=; ac_datarootdir_seen=
27554 ac_sed_dataroot='
27555 /datarootdir/ {
27556   p
27557   q
27558 }
27559 /@datadir@/p
27560 /@docdir@/p
27561 /@infodir@/p
27562 /@localedir@/p
27563 /@mandir@/p'
27564 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27565 *datarootdir*) ac_datarootdir_seen=yes;;
27566 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27567   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27568 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27569 _ACEOF
27570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27571   ac_datarootdir_hack='
27572   s&@datadir@&$datadir&g
27573   s&@docdir@&$docdir&g
27574   s&@infodir@&$infodir&g
27575   s&@localedir@&$localedir&g
27576   s&@mandir@&$mandir&g
27577   s&\\\${datarootdir}&$datarootdir&g' ;;
27578 esac
27579 _ACEOF
27580
27581 # Neutralize VPATH when `$srcdir' = `.'.
27582 # Shell code in configure.ac might set extrasub.
27583 # FIXME: do we really want to maintain this feature?
27584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27585 ac_sed_extra="$ac_vpsub
27586 $extrasub
27587 _ACEOF
27588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27589 :t
27590 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27591 s|@configure_input@|$ac_sed_conf_input|;t t
27592 s&@top_builddir@&$ac_top_builddir_sub&;t t
27593 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27594 s&@srcdir@&$ac_srcdir&;t t
27595 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27596 s&@top_srcdir@&$ac_top_srcdir&;t t
27597 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27598 s&@builddir@&$ac_builddir&;t t
27599 s&@abs_builddir@&$ac_abs_builddir&;t t
27600 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27601 $ac_datarootdir_hack
27602 "
27603 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27604 if $ac_cs_awk_getline; then
27605   $AWK -f "$tmp/subs.awk"
27606 else
27607   $AWK -f "$tmp/subs.awk" | $SHELL
27608 fi >$tmp/out \
27609   || as_fn_error "could not create $ac_file" "$LINENO" 5
27610
27611 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27612   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27613   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27614   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27615 which seems to be undefined.  Please make sure it is defined." >&5
27616 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27617 which seems to be undefined.  Please make sure it is defined." >&2;}
27618
27619   rm -f "$tmp/stdin"
27620   case $ac_file in
27621   -) cat "$tmp/out" && rm -f "$tmp/out";;
27622   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27623   esac \
27624   || as_fn_error "could not create $ac_file" "$LINENO" 5
27625  ;;
27626   :H)
27627   #
27628   # CONFIG_HEADER
27629   #
27630   if test x"$ac_file" != x-; then
27631     {
27632       $as_echo "/* $configure_input  */" \
27633       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27634     } >"$tmp/config.h" \
27635       || as_fn_error "could not create $ac_file" "$LINENO" 5
27636     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27637       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27638 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27639     else
27640       rm -f "$ac_file"
27641       mv "$tmp/config.h" "$ac_file" \
27642         || as_fn_error "could not create $ac_file" "$LINENO" 5
27643     fi
27644   else
27645     $as_echo "/* $configure_input  */" \
27646       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27647       || as_fn_error "could not create -" "$LINENO" 5
27648   fi
27649  ;;
27650
27651   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27652 $as_echo "$as_me: executing $ac_file commands" >&6;}
27653  ;;
27654   esac
27655
27656
27657   case $ac_file$ac_mode in
27658     "as":F) chmod +x as ;;
27659     "collect-ld":F) chmod +x collect-ld ;;
27660     "nm":F) chmod +x nm ;;
27661     "default":C)
27662 case ${CONFIG_HEADERS} in
27663   *auto-host.h:config.in*)
27664   echo > cstamp-h ;;
27665 esac
27666 # Make sure all the subdirs exist.
27667 for d in $subdirs doc build c-family
27668 do
27669     test -d $d || mkdir $d
27670 done
27671  ;;
27672
27673   esac
27674 done # for ac_tag
27675
27676
27677 as_fn_exit 0
27678 _ACEOF
27679 ac_clean_files=$ac_clean_files_save
27680
27681 test $ac_write_fail = 0 ||
27682   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27683
27684
27685 # configure is writing to config.log, and then calls config.status.
27686 # config.status does its own redirection, appending to config.log.
27687 # Unfortunately, on DOS this fails, as config.log is still kept open
27688 # by configure, so config.status won't be able to write to it; its
27689 # output is simply discarded.  So we exec the FD to /dev/null,
27690 # effectively closing config.log, so it can be properly (re)opened and
27691 # appended to by config.status.  When coming back to configure, we
27692 # need to make the FD available again.
27693 if test "$no_create" != yes; then
27694   ac_cs_success=:
27695   ac_config_status_args=
27696   test "$silent" = yes &&
27697     ac_config_status_args="$ac_config_status_args --quiet"
27698   exec 5>/dev/null
27699   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27700   exec 5>>config.log
27701   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27702   # would make configure fail if this is the last instruction.
27703   $ac_cs_success || as_fn_exit $?
27704 fi
27705 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27706   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27707 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27708 fi
27709
27710